/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #F2F6FA;
}

/* Header */
.map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(43, 58, 74, 0.08);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn,
.back-btn,
.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #F2F6FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-btn:hover,
.back-btn:hover,
.icon-btn:hover {
    background: #E0E8F0;
    transform: scale(1.05);
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #2B3A4A;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #F9B6B6;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2B3A4A;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.profile-btn:hover .profile-avatar {
    transform: scale(1.1);
}

/* Geocoder Container */
.geocoder-container {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    z-index: 999;
    max-width: 600px;
    margin: 0 auto;
}

.mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: none;
    box-shadow: 0 4px 16px rgba(43, 58, 74, 0.12);
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mapboxgl-ctrl-geocoder input {
    font-family: inherit;
    font-size: 15px;
}

/* Map */
.map {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

/* Map Controls */
.map-controls {
    position: absolute;
    right: 16px;
    bottom: 180px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(43, 58, 74, 0.12);
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: #F9FCFF;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(154, 198, 243, 0.3);
}

.location-btn {
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
}

.location-btn:hover {
    background: linear-gradient(135deg, #7AB3E8 0%, #A3D9B1 100%);
}

/* Legend */
.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(43, 58, 74, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.green {
    background: #A3D9B1;
}

.legend-dot.amber {
    background: #FFF2B2;
}

.legend-dot.red {
    background: #F9B6B6;
}

.legend-text {
    font-size: 13px;
    color: #2B3A4A;
    font-weight: 500;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    position: absolute;
    bottom: 100px;
    right: 16px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(154, 198, 243, 0.4);
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(154, 198, 243, 0.5);
}

/* Filter Panel */
.filter-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1100;
    box-shadow: -4px 0 16px rgba(43, 58, 74, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.filter-panel.active {
    right: 0;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(43, 58, 74, 0.5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E0E8F0;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 10;
}

.filter-title {
    font-size: 20px;
    font-weight: 700;
    color: #2B3A4A;
    margin: 0;
}

.close-btn {
    width: 40px;
    height: 40px;
    background: #F2F6FA;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #E0E8F0;
}

.filter-content {
    padding: 20px;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2B3A4A;
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.filter-checkbox:hover {
    background: #F2F6FA;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #E0E8F0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.filter-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #A3D9B1;
    border-color: #A3D9B1;
}

.filter-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label {
    font-size: 15px;
    color: #2B3A4A;
    font-weight: 500;
}

/* Rating Filter */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #E0E8F0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rating-option:hover {
    border-color: #9AC6F3;
    background: #F9FCFF;
}

.rating-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #9AC6F3;
    cursor: pointer;
}

.rating-option:has(input:checked) {
    border-color: #9AC6F3;
    background: #F9FCFF;
}

.rating-label {
    font-size: 15px;
    color: #2B3A4A;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154, 198, 243, 0.4);
}

.btn-large {
    width: 100%;
}

.btn-text {
    background: none;
    color: #8A9AAB;
    padding: 12px;
    width: 100%;
}

.btn-text:hover {
    background: #F2F6FA;
}

/* Custom Markers */
.custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.custom-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Popup Styling - Enhanced Google Maps Style (Matches Admin Map) */
.mapboxgl-popup-content {
    border-radius: 16px;
    padding: 16px;
    min-width: 280px;
    max-width: 350px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 8px 24px rgba(43, 58, 74, 0.2);
}

.mapboxgl-popup-close-button {
    font-size: 24px;
    padding: 8px;
    color: #8A9AAB;
    right: 8px;
    top: 8px;
}

.mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    color: #2B3A4A;
}

.popup-location-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2B3A4A;
}

.popup-rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 8px;
}

.popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.popup-feature {
    background: #F2F6FA;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #2B3A4A;
}

.popup-review {
    color: #5A6C7D;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.popup-photos {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.popup-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.popup-actions {
    display: flex;
    gap: 8px;
}

.popup-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-btn-primary {
    background: #9AC6F3;
    color: white;
}

.popup-btn-primary:hover {
    background: #7AB3E8;
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1200;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 48px;
    box-shadow: 0 8px 32px rgba(43, 58, 74, 0.15);
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E0E8F0;
    border-top-color: #9AC6F3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-indicator p {
    font-size: 14px;
    color: #5A6C7D;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .geocoder-container {
        top: 65px;
    }

    .map-legend {
        left: 8px;
        bottom: 8px;
        font-size: 12px;
    }

    .legend-text {
        font-size: 11px;
    }

    .filter-panel {
        max-width: 100%;
    }

    .map-controls {
        bottom: 100px;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Accessibility */
*:focus-visible {
    outline: 3px solid #9AC6F3;
    outline-offset: 2px;
}
/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -4px 0 16px rgba(43, 58, 74, 0.15);
    z-index: 1200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.notifications-panel.active {
    right: 0;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #E0E8F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.notifications-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2B3A4A;
    margin: 0;
}

.close-notifications-btn,
.close-profile-btn {
    width: 40px;
    height: 40px;
    background: #F2F6FA;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-notifications-btn:hover,
.close-profile-btn:hover {
    background: #E0E8F0;
}

.notifications-content {
    padding: 20px;
}

.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    color: #8A9AAB;
}

.empty-notifications svg {
    margin-bottom: 16px;
}

.empty-notifications p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5A6C7D;
}

.empty-notifications small {
    font-size: 13px;
    color: #8A9AAB;
}

.notification-item {
    padding: 16px;
    border-radius: 12px;
    background: #F8FAFC;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #9AC6F3;
}

.notification-item:hover {
    background: #F2F6FA;
    transform: translateX(-4px);
}

.notification-item.unread {
    background: #E5F2FF;
    border-left-color: #9AC6F3;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #2B3A4A;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #5A6C7D;
    line-height: 1.4;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 11px;
    color: #8A9AAB;
}

/* Profile Panel */
.profile-panel {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -4px 0 16px rgba(43, 58, 74, 0.15);
    z-index: 1200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.profile-panel.active {
    right: 0;
}

.profile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #E0E8F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.profile-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2B3A4A;
    margin: 0;
}

.profile-panel-content {
    padding: 20px;
}

.profile-info {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #F9FCFF 0%, #E5F2FF 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(154, 198, 243, 0.3);
}

.profile-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2B3A4A;
    margin: 0 0 4px 0;
}

.profile-info p {
    font-size: 14px;
    color: #8A9AAB;
    margin: 0;
}

.profile-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #8A9AAB;
}

.profile-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5A6C7D;
}

.profile-placeholder small {
    font-size: 13px;
    color: #8A9AAB;
}

.profile-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #E0E8F0;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #DC2626;
    background: transparent;
    border: 2px solid #DC2626;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #FEF2F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-logout svg {
    flex-shrink: 0;
}

/* Panel Overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 58, 74, 0.5);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Update notification badge position */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #F9B6B6;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Profile image updates */
.profile-avatar img,
.profile-avatar-large img {
    border-radius: 50%;
}