/* ============================================
   호주 한국병원 지도 - 스타일시트
   ============================================ */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 메인 컨테이너 */
.main-container {
    display: flex;
    height: 100vh;
}

/* 사이드바 */
.sidebar {
    width: 400px;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-logo a {
    display: inline-block;
}

.sidebar-logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* 사이드바 탭 */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.sidebar-tab:hover {
    background-color: var(--background);
    color: var(--text-primary);
}

.sidebar-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--background);
}

/* 탭 콘텐츠 */
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.search-section {
    padding: 1.5rem;
    padding-bottom: 6rem;
}

.search-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.search-dropdown.hidden {
    display: none;
}

.search-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: var(--background);
}

.search-dropdown-item.active {
    background-color: #eff6ff;
}

.search-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-dropdown-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-dropdown-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: var(--background);
    border-radius: 0.25rem;
}

.search-dropdown-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: var(--background);
}

.checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

/* 병원 목록 */
.hospital-list {
    padding: 1.5rem;
    padding-bottom: 6rem;
}

.hospital-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hospital-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hospital-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.hospital-card.active {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.hospital-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.hospital-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hospital-card-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--background);
    border-radius: 0.25rem;
    color: var(--text-secondary);
}

.hospital-card-address {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hospital-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 0.25rem;
}

.tag.korean {
    background-color: #dcfce7;
    color: #166534;
}

.tag.bulk-billing {
    background-color: #fef3c7;
    color: #92400e;
}

/* 지도 컨테이너 */
.map-container {
    flex: 1;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
}

/* 로딩 스피너 */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.spinner-circle {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--background);
}

/* 병원 상세정보 */
.hospital-detail-header {
    margin-bottom: 1.5rem;
}

.hospital-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hospital-detail-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--background);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hospital-detail-section {
    margin-bottom: 1.5rem;
}

.hospital-detail-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.hospital-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    min-width: 100px;
}

.info-value {
    color: var(--text-secondary);
    word-break: break-all;
    overflow-wrap: break-word;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.hospital-detail-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* 폼 */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* 입력 요소 */
.input,
.select,
.textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.textarea {
    resize: vertical;
    font-family: inherit;
}

/* 버튼 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.5rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 배너 카드 */
.banner-card {
    margin: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.banner-card:hover::before {
    top: -30%;
    right: -30%;
}

.banner-card a {
    display: block;
    text-decoration: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.banner-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.banner-brand {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.banner-card:hover .banner-brand {
    letter-spacing: 0.2em;
    transform: scale(1.05);
}

/* 유틸리티 */
.hidden {
    display: none !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 반응형 디자인 */
@media (min-width: 769px) {
    /* 데스크톱에서는 병원 등록 버튼 항상 표시 */
    .floating-btn {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 350px;
    }
}

@media (min-width: 769px) {
    /* 데스크톱에서 지도 상단 배너 표시 */
    .map-top-banner {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    /* 모바일에서 기본적으로 지도만 표시 */
    .sidebar {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    /* 모바일 배너 카드 */
    .banner-card {
        margin: 0.75rem 1rem;
        padding: 1.25rem;
    }

    .banner-label {
        font-size: 0.75rem;
    }

    .banner-brand {
        font-size: 1.5rem;
    }

    .sidebar.mobile-active {
        transform: translateX(0);
    }

    .map-container {
        height: 100vh;
        width: 100%;
    }

    /* 토글 버튼 표시 */
    .mobile-toggle-btn {
        display: flex !important;
    }

    /* 모바일 지도 헤더 로고 표시 */
    .mobile-map-header {
        display: block !important;
    }

    /* 모바일 카테고리 스크롤 표시 */
    .mobile-category-scroll {
        display: block !important;
    }

    /* 데스크탑 카테고리 바 숨기기 */
    .desktop-category-bar {
        display: none !important;
    }

    /* 모바일 병원 등록 버튼 표시 */
    .mobile-submit-btn {
        display: block !important;
    }

    /* 사이드바 열렸을 때 로고와 카테고리, 등록 버튼 숨기기 */
    .sidebar.mobile-active ~ .mobile-map-header,
    .sidebar.mobile-active ~ .mobile-category-scroll,
    .sidebar.mobile-active ~ .mobile-submit-btn {
        opacity: 0;
        pointer-events: none;
    }

    .search-section {
        padding: 1rem;
        padding-bottom: 8rem;
    }

    .hospital-list {
        padding: 1rem;
        padding-bottom: 8rem;
    }

    .sidebar-logo {
        padding: 1rem;
    }

    .sidebar-logo img {
        max-width: 200px;
    }

    /* 터치 친화적인 입력 요소 */
    .input,
    .select,
    .textarea {
        font-size: 16px; /* iOS 자동 줌 방지 */
        padding: 0.75rem;
        min-height: 44px; /* 터치 최소 크기 */
    }

    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }

    /* 병원 카드 터치 최적화 */
    .hospital-card {
        padding: 1rem;
    }

    /* 체크박스 레이블 터치 영역 확대 */
    .checkbox-label {
        padding: 0.75rem 0.5rem;
        min-height: 44px;
    }

    /* 검색 드롭다운 모바일 최적화 */
    .search-dropdown {
        max-height: 300px;
    }

    .search-dropdown-item {
        padding: 1rem;
        min-height: 60px;
    }

    /* 모달 모바일 최적화 */
    .modal {
        padding: 3rem 1rem;
    }

    .modal-content {
        padding: 1rem;
        max-height: 80vh;
    }

    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    /* 모바일 토글 버튼 */
    .mobile-toggle-btn {
        bottom: 1.5rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Floating 버튼 */
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    }

    /* 폼 간격 조정 */
    .form-group {
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .sidebar-logo {
        padding: 0.75rem;
    }

    .sidebar-logo img {
        max-width: 160px;
    }

    .search-section h2 {
        font-size: 1.125rem;
    }

    .filter-section h3 {
        font-size: 0.8125rem;
    }

    /* 입력 요소 더 크게 */
    .input,
    .select,
    .textarea {
        font-size: 16px;
        padding: 0.875rem;
    }

    /* 병원 카드 */
    .hospital-card-title {
        font-size: 0.9375rem;
    }

    .hospital-card-address {
        font-size: 0.8125rem;
    }

    .tag {
        font-size: 0.6875rem;
    }

    /* 모달 타이틀 */
    .hospital-detail-title {
        font-size: 1.25rem;
    }

    /* 모바일 토글 버튼 */
    .mobile-toggle-btn {
        bottom: 1.5rem;
    }

    /* Floating 버튼 */
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
    }

    /* 테이블 반응형 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    /* 터치 피드백 개선 */
    .btn:active {
        transform: scale(0.98);
    }

    .hospital-card:active {
        transform: scale(0.99);
    }

    .search-dropdown-item:active {
        background-color: #dbeafe;
    }

    /* 스크롤 성능 개선 */
    .sidebar,
    .hospital-list,
    .modal-content,
    .search-dropdown {
        -webkit-overflow-scrolling: touch;
    }
}

/* 관리자 페이지 스타일 */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-content {
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 테이블 */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--background);
}

.table tbody tr:hover {
    background-color: var(--background);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

/* 알림/토스트 */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 0.875rem;
}

/* 데스크탑 카테고리 버튼 */
.desktop-category-bar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: block;
    pointer-events: none;
}

.desktop-category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    pointer-events: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    user-select: none; /* 드래그 시 텍스트 선택 방지 */
}

.desktop-category-chips.active-drag {
    cursor: grabbing !important;
}

.desktop-category-chips.active-drag .desktop-category-chip {
    pointer-events: none; /* 드래그 중에는 버튼 클릭 방지 */
}

.desktop-category-chips::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.desktop-category-chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-category-chip:hover {
    background-color: rgba(248, 250, 252, 0.95);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.desktop-category-chip.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 모바일 지도 헤더 로고 */
.mobile-map-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: none;
    background-color: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-map-header img {
    height: 40px;
    width: auto;
    display: block;
}

/* 모바일 카테고리 스크롤 */
.mobile-category-scroll {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 500;
    display: none;
    padding: 0.75rem 0;
}

/* 모바일 병원 등록 버튼 */
.mobile-submit-btn {
    position: fixed;
    top: 10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: none;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.mobile-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.mobile-submit-btn:active {
    transform: translateX(-50%) translateY(0);
}

.mobile-category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.mobile-category-chips::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-category-chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mobile-category-chip:hover {
    border-color: var(--primary-color);
}

.mobile-category-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 모바일 토글 버튼 */
.mobile-toggle-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    background-color: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none; /* 768px 이하에서만 표시 */
    align-items: center;
    gap: 0.5rem;
}

.mobile-toggle-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-toggle-btn:active {
    transform: translateX(-50%) translateY(0);
}

/* Floating 버튼 */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
    display: none; /* 기본적으로 숨김 */
    align-items: center;
    gap: 0.5rem;
}

.floating-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.floating-btn:active {
    transform: translateY(0);
}
