* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    min-height: 100vh;
    color: #f1f5f9;
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.map-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.container {
    display: block;
    /* Override flex for immersive layout */
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* ===== HEADER - PREMIUM GLASSMORPHISM ===== */
.header {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    padding: 12px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1200;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.65rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.logo .kurdish {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.logo .english {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    color: #cbd5e6;
    font-size: 0.85rem;
    min-width: 70px;
    text-align: center;
}

.lang-btn:focus {
    outline: 2px solid rgba(245, 158, 11, 0.5);
    outline-offset: 2px;
}

.lang-btn.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.lang-btn:hover:not(.active) {
    background: rgba(245, 158, 11, 0.2);
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* ===== SIDEBAR - PREMIUM GLASSMORPHISM ===== */
.sidebar {
    width: 380px;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 114px;
    bottom: 24px;
    inset-inline-start: 24px;
    height: auto;
    border-radius: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
}

/* Closed state */
.sidebar.closed {
    width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
}

/* Sidebar Toggle Button - Floating action button */
.sidebar-toggle {
    position: absolute;
    top: 114px;
    inset-inline-end: 24px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    z-index: 1050;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

.sidebar-toggle:active {
    transform: scale(0.98);
}

/* Scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

/* Firefox scrollbar for sidebar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(255, 255, 255, 0.05);
}

/* Scrollbar for locations list (keep for backward compatibility) */
.locations-list::-webkit-scrollbar {
    width: 4px;
}

.locations-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.locations-list::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

/* Firefox scrollbar for locations list */
.locations-list {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(255, 255, 255, 0.05);
}

/* ===== BUTTON STYLES - WARM TONES ===== */
.btn-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    margin-bottom: 28px;
}

.filter-section h3 {
    color: #f1f5f9;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.filter-section h3 i {
    color: #f59e0b;
    font-size: 1rem;
}

.government-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.gov-btn {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gov-btn.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.gov-btn:hover:not(.active) {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gov-color {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.cat-btn {
    padding: 14px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #cbd5e6;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cat-btn.active {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}

.cat-btn:hover:not(.active) {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cat-btn i {
    font-size: 1.3rem;
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0 20px;
}

.action-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
}

.clear-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.reset-btn:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* ===== LOCATIONS LIST ===== */
.locations-list {
    margin-top: 20px;
    flex: 1;
    min-height: 0;
    /* Important for flex child scrolling */
}

.locations-list h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-item {
    background: rgba(30, 41, 59, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-left: 4px solid #f59e0b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 14px;
    align-items: center;
}

.location-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-item-content {
    flex: 1;
    min-width: 0;
}

.location-item:hover {
    transform: translateX(-6px) scale(1.01);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(245, 158, 11, 0.5);
    border-left-width: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.15);
}

.location-item h4 {
    color: white;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.location-rating {
    color: #fbbf24;
    font-size: 0.8rem;
}

.location-details {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
}

/* ===== MAP CONTAINER ===== */
.map-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* ===== PAGE CONTENT IN MAP CONTAINER ===== */
#page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 24, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    padding: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#page-content[hidden] {
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-back-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.page-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.page-header h2 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

.page-body {
    flex: 1;
    overflow-y: auto;
    color: #cbd5e1;
    line-height: 1.7;
}

.page-body h3 {
    color: white;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.page-body p {
    margin-bottom: 15px;
}

.page-body ul,
.page-body ol {
    margin-bottom: 15px;
    padding-right: 20px;
}

.page-body li {
    margin-bottom: 8px;
}

/* ===== POPUP - WARM ACCENTS ===== */
.leaflet-popup-content-wrapper {
    background: #1e293b;
    border-radius: 20px;
    color: #f1f5f9;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.leaflet-popup-tip {
    background: #1e293b;
}

.leaflet-popup-content {
    min-width: 260px;
    margin: 14px 16px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.popup-title {
    font-weight: 800;
    color: white;
    font-size: 1rem;
}

.popup-rating {
    color: #fbbf24;
    font-size: 0.8rem;
}

.popup-category {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.popup-description {
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.8rem;
}

.popup-actions {
    display: flex;
    gap: 8px;
}

.popup-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    background: #334155;
    color: white;
}

.popup-btn:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

.popup-details {
    background: #f59e0b;
}

.popup-feedback {
    background: #10b981;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(2, 6, 23, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #94a3b8;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 6px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #f59e0b;
}

/* Fixed footer for map page */
body.map-page .footer {
    position: absolute;
    bottom: 24px;
    inset-inline-end: 24px;
    width: max-content;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1100;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== MODAL - MODERN ===== */
.app-modal[hidden] {
    display: none;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.app-modal__dialog {
    position: relative;
    width: min(540px, 100%);
    max-height: min(85vh, 750px);
    overflow: auto;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.app-modal__close:hover {
    background: #ef4444;
    color: white;
}

.app-modal__header {
    margin-bottom: 20px;
    padding-inline-end: 48px;
}

.app-modal__title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-modal__body {
    color: #cbd5e6;
    line-height: 1.6;
}

.app-modal__footer {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn--primary {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.modal-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.modal-btn--secondary {
    background: #334155;
    color: #e2e8f0;
}

.modal-btn--secondary:hover {
    background: #475569;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-field--full {
    grid-column: 1 / -1;
}

.modal-label {
    font-weight: 600;
    color: #cbd5e6;
    font-size: 0.8rem;
}

.modal-input,
.modal-textarea,
.modal-select {
    width: 100%;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 14px;
    background: #0f172a;
    font: inherit;
    color: white;
    transition: all 0.2s;
}

.modal-input:focus,
.modal-textarea:focus,
.modal-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.modal-textarea {
    min-height: 90px;
    resize: vertical;
}

.modal-note {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.8rem;
    border-right: 3px solid #f59e0b;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.details-card {
    padding: 12px;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.details-card strong {
    display: block;
    color: #f59e0b;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-description {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* ===== LAYER CONTROLS ===== */
.layer-section {
    margin: 20px 0 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.layer-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.layer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.layer-color {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.layer-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.layer-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.layer-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Fix RTL toggle bug */
[dir="rtl"] .toggle-slider:before {
    right: 3px;
    left: auto;
}

[dir="rtl"] input:checked+.toggle-slider:before {
    transform: translateX(-20px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeUp 0.3s ease forwards;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .location-item {
    border-left: none;
    border-right: 3px solid #f59e0b;
}

[dir="rtl"] .app-modal__close {
    left: auto;
    right: 18px;
}

[dir="rtl"] .action-buttons {
    flex-direction: row;
}

[dir="rtl"] .page-back-btn i {
    transform: rotate(180deg);
}

[dir="rtl"] .footer-links {
    flex-direction: row;
}

[dir="rtl"] .search-box {
    grid-template-columns: auto 1fr auto;
    direction: rtl;
}

[dir="rtl"] .search-box input {
    text-align: right;
}

/* Feature Buttons Grid Responsive */
@media (max-width: 480px) {
    .feature-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .sidebar {
        width: 100% !important;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .feature-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 400px) {
    .feature-buttons {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 320px;
    }

    .government-filter {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        top: 12px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 12px 16px;
        border-radius: 24px;
        gap: 12px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo .english {
        display: none;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .language-switcher {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .lang-btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    .main-content {
        flex-direction: column;
    }

    /* On mobile, use a smooth bottom sheet style */
    .sidebar {
        width: 100%;
        height: 60vh;
        position: absolute;
        bottom: 0;
        right: 0;
        inset-inline-start: 0;
        top: auto;
        z-index: 1200;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 32px 32px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Add a drag handle indicator for mobile sidebar */
    .sidebar::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        z-index: 10;
    }

    .sidebar:not(.closed) {
        transform: translateY(0);
    }

    .sidebar.closed {
        transform: translateY(100%);
        width: 100%;
        padding: 0;
    }

    /* On mobile, hide absolute positioned toggle, show a fixed bottom button instead */
    .sidebar-toggle {
        position: fixed;
        top: auto;
        bottom: 24px;
        left: 24px;
        right: auto;
        z-index: 1060;
        width: 56px;
        height: 56px;
        border-radius: 28px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    [dir="rtl"] .sidebar-toggle {
        left: auto;
        right: 24px;
    }

    .map-container {
        height: 100%;
        width: 100%;
    }

    .header {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 12px 20px;
    }

    .logo {
        justify-content: center;
    }

    .logo h1 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .government-filter {
        grid-template-columns: 1fr 1fr;
    }
}

/* Standard Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-success {
    background: #10b981;
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 1.55rem;
}

/* Ensure map container is visible */
#map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f0f0f0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn,
.map-tool-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(15, 23, 42, .75);
    color: #fbbf24;
    cursor: pointer;
    transition: .25s ease;
}

.icon-btn:hover,
.map-tool-btn:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, .18);
    border-color: rgba(245, 158, 11, .35);
}

.search-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: relative;
}

.search-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f59e0b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box .search-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box:focus-within {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: transparent;
    font: inherit;
}

.search-box input::placeholder {
    color: #64748b;
}

.clear-search {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.clear-search:hover {
    opacity: 1;
    color: #f59e0b;
}

.clear-search:focus {
    outline: 2px solid rgba(245, 158, 11, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.clear-search[hidden] {
    display: none;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.chip-btn {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(30, 41, 59, .55);
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: .22s ease;
}

.chip-btn:hover,
.chip-btn.active {
    color: #fff;
    border-color: rgba(245, 158, 11, .45);
    background: linear-gradient(135deg, rgba(245, 158, 11, .92), rgba(239, 68, 68, .92));
    box-shadow: 0 10px 24px rgba(245, 158, 11, .22);
}

.location-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.location-item-header h4 {
    flex: 1;
    cursor: pointer;
}

.location-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.favorite-btn,
.directions-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(15, 23, 42, .7);
    color: #94a3b8;
    cursor: pointer;
    transition: .2s ease;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .4);
}

.directions-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, .12);
    border-color: rgba(56, 189, 248, .35);
}

.custom-marker {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.custom-marker i {
    transform: rotate(45deg);
}

.popup-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
}

.popup-small {
    font-size: .78rem;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.7;
}

.popup-actions--secondary {
    margin-top: 8px;
}

.popup-actions--secondary .fa-heart.active {
    color: #ef4444;
}

.empty-state {
    cursor: default;
    text-align: center;
    color: #94a3b8;
}

.map-toolbar {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 900;
    display: flex;
    gap: 10px;
}

.details-gallery {
    margin-top: 18px;
}

.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.04);
}

body.light-mode {
    background: linear-gradient(145deg, #e0f2fe 0%, #fff7ed 100%);
    color: #0f172a;
}

body.light-mode .header,
body.light-mode .sidebar,
body.light-mode .footer {
    background: rgba(255, 255, 255, .86);
    color: #0f172a;
    border-color: rgba(15, 23, 42, .08);
}

body.light-mode .filter-section h3,
body.light-mode .locations-list h3,
body.light-mode .layer-name,
body.light-mode .section-title,
body.light-mode .location-item h4,
body.light-mode .modal-label {
    color: #0f172a;
}

body.light-mode .search-box,
body.light-mode .gov-btn,
body.light-mode .cat-btn,
body.light-mode .layer-item,
body.light-mode .location-item,
body.light-mode .chip-btn,
body.light-mode .action-btn,
body.light-mode .icon-btn,
body.light-mode .map-tool-btn {
    background: rgba(255, 255, 255, .78);
    color: #0f172a;
    border-color: rgba(15, 23, 42, .10);
}

body.light-mode .search-box input {
    color: #0f172a;
}

body.light-mode .location-details,
body.light-mode .location-meta,
body.light-mode .footer,
body.light-mode .footer-link {
    color: #475569;
}

body.light-mode .app-modal__dialog {
    background: #ffffff;
    color: #0f172a;
}

body.light-mode .app-modal__body {
    color: #334155;
}

body.light-mode .details-card,
body.light-mode .modal-input,
body.light-mode .modal-textarea,
body.light-mode .modal-select {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .map-toolbar {
        top: 12px;
        inset-inline-end: 12px;
    }
}

/* ===== INFORMATIONAL PAGES STYLES ===== */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

body.map-page .page-section {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.map-page .page-section h2 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 10px;
}

body.map-page .page-section h3 {
    color: #93c5fd;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

body.map-page .page-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e2e8f0;
}

body.map-page .page-section ul,
body.map-page .page-section ol {
    margin: 15px 0 15px 20px;
    padding-right: 20px;
}

body.map-page .page-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #cbd5e1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 25px;
    border-left: 4px solid #f59e0b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.contact-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border-top: 4px solid #f59e0b;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.highlight-box {
    background: rgba(30, 41, 59, 0.6);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    width: 160px;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f59e0b;
    margin-bottom: 15px;
}

.team-member h4 {
    color: #f1f5f9;
    margin-bottom: 5px;
}

.team-member p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.map-container-small {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-date {
    color: #94a3b8;
    font-style: italic;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for informational pages */
@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }

    body.map-page .page-section {
        padding: 20px;
    }

    .features-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .team-section {
        gap: 20px;
    }

    .team-member {
        width: 140px;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* ===== CONTENT PAGES LAYOUT ===== */
body.content-page .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

body.content-page .page-content {
    flex: 1;
    width: 100%;
}

body.content-page .sidebar-toggle {
    display: none;
}

/* Scrollbar for content pages */
body.content-page .main-content::-webkit-scrollbar {
    width: 6px;
}

body.content-page .main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.content-page .main-content::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

body.content-page .main-content {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(255, 255, 255, 0.05);
}

/* ===== LEAFLET ATTRIBUTION FIX ===== */
[dir="rtl"] .leaflet-bottom.leaflet-right {
    right: 430px;
    /* Width of sidebar + margin to prevent overlap */
}

[dir="ltr"] .leaflet-bottom.leaflet-left {
    left: 430px;
}

@media (max-width: 768px) {
    .header {
        top: 10px !important;
        width: calc(100% - 20px) !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        gap: 8px !important;
    }

    .logo {
        gap: 8px !important;
    }

    .logo h1 {
        font-size: 1rem !important;
    }

    .header-actions {
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    .language-switcher {
        gap: 4px !important;
        padding: 4px !important;
    }

    .lang-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        min-width: 0 !important;
    }

    #theme-toggle {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #f59e0b !important;
    }
}


@media (max-width: 768px) {
    .sidebar-toggle {
        z-index: 1300 !important;
    }
}


@media (max-width: 768px) {
    [dir="rtl"] .leaflet-bottom.leaflet-right {
        right: 10px !important;
    }

    [dir="ltr"] .leaflet-bottom.leaflet-left {
        left: 10px !important;
    }
}


@media (max-width: 768px) {
    .sidebar-toggle {
        z-index: 9999 !important;
    }
}

@media (max-width: 768px) {

    /* Ultra-compact Mobile Header */
    .header {
        top: 8px !important;
        width: calc(100% - 16px) !important;
        padding: 6px 10px !important;
        border-radius: 16px !important;
        gap: 6px !important;
    }

    .logo {
        gap: 6px !important;
    }

    .logo h1 {
        font-size: 0.85rem !important;
    }

    .logo-icon i {
        font-size: 1.1rem !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .language-switcher {
        padding: 3px !important;
        gap: 2px !important;
    }

    .lang-btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    #theme-toggle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    /* Dynamic Menu Button that rides the sidebar */
    .sidebar-toggle {
        position: fixed !important;
        top: auto !important;
        bottom: 24px !important;
        inset-inline-end: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 28px !important;
        z-index: 9999 !important;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .sidebar:not(.closed)+.map-container .sidebar-toggle {
        bottom: calc(60vh + 20px) !important;
    }
}


/* Fix Content Page Overlap */
body.content-page .main-content {
    padding-top: 130px !important;
}

@media (max-width: 768px) {
    body.content-page .main-content {
        padding-top: 90px !important;
    }
}


/* ===== Standard Page Layout for Content Pages ===== */
body.content-page {
    overflow: auto !important;
    /* Allow normal scrolling */
}

body.content-page .container {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
}

body.content-page .header {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 100 !important;
}

body.content-page .main-content {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding-top: 20px !important;
    overflow: visible !important;
}

body.content-page .footer {
    position: static !important;
    margin-top: auto !important;
    /* Pushes footer to bottom if content is short */
    width: 100% !important;
    border-radius: 0 !important;
}


/* ===== BEAUTIFUL TEAM CARDS ===== */
.team-section {
    gap: 40px !important;
    margin-top: 50px !important;
}

.team-member {
    width: 240px !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 35px 25px !important;
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.team-member:hover {
    transform: translateY(-12px) !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.team-member img {
    width: 110px !important;
    height: 110px !important;
    border: 4px solid #f59e0b !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3) !important;
    transition: transform 0.4s ease !important;
    margin-bottom: 20px !important;
}

.team-member:hover img {
    transform: scale(1.1) !important;
}

.team-member h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.team-member p {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
    opacity: 0.9 !important;
}

.team-social {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 0 !important;
}

.team-social a {
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.team-social a:hover {
    color: #ffffff !important;
    background: #f59e0b !important;
    transform: translateY(-4px) scale(1.1) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5) !important;
}

.details-card a,
.details-card span {
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* ===== LEAFLET ROUTING MACHINE — FULLY RESPONSIVE ===== */

/* ── BASE (Desktop ≥ 1025 px) ── */
.leaflet-routing-container {
    background: rgba(15, 23, 42, 0.85) !important;
    -webkit-backdrop-filter: blur(28px) saturate(150%) !important;
    backdrop-filter: blur(28px) saturate(150%) !important;
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    position: fixed !important;
    top: 114px !important;
    bottom: 24px !important;
    /* Opposite side of the sidebar (Right in EN, Left in KU/AR) */
    inset-inline-end: 24px !important;
    inset-inline-start: auto !important;
    width: 380px !important;
    border-radius: 28px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1100 !important;
    color: #f1f5f9 !important;
    direction: inherit !important;
    text-align: start !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
    margin: 0 !important;
    padding-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Slide out to hide (desktop) */
.leaflet-routing-container.closed {
    /* LTR: panel is on right, slide right */
    transform: translateX(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* RTL: panel is on left, slide left */
[dir="rtl"] .leaflet-routing-container.closed {
    transform: translateX(-120%) !important;
}

/* ── Internal colours ── */
.leaflet-routing-container h2,
.leaflet-routing-container h3,
.leaflet-routing-container div,
.leaflet-routing-alt h2,
.leaflet-routing-alt h3 {
    color: #f1f5f9 !important;
}

.leaflet-routing-alt {
    max-height: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-routing-container table {
    width: 100% !important;
    color: #cbd5e6 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-top: 12px !important;
}

.leaflet-routing-alt tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.leaflet-routing-alt tr {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.leaflet-routing-alt tr:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
}

.leaflet-routing-alt tr td {
    padding: 0 !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Icon column */
.leaflet-routing-alt tr td:nth-child(1) {
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Instruction text column */
.leaflet-routing-alt tr td:nth-child(2) {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    text-align: start !important;
    font-weight: 500 !important;
    color: #f8fafc !important;
}

/* Distance column */
.leaflet-routing-alt tr td:nth-child(3) {
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
    color: #f59e0b !important;
    font-weight: 700 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-routing-alt h2 {
    font-size: 1rem !important;
    color: #f59e0b !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.leaflet-routing-alt h3 {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
}

.leaflet-routing-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(180deg) !important;
}

/* Enhanced Directions List Styling */
.leaflet-routing-alt tr {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
    padding: 8px !important;
    transition: background 0.2s ease !important;
}

.leaflet-routing-alt tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}




/* RTL table alignment */
[dir="rtl"] .leaflet-routing-alt table {
    direction: rtl !important;
    text-align: right !important;
}

[dir="rtl"] .leaflet-routing-alt tr td:last-child {
    text-align: left !important;
}

/* Scrollbar */
.leaflet-routing-container::-webkit-scrollbar {
    width: 5px;
}

.leaflet-routing-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.leaflet-routing-container::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

/* Hide Leaflet's own collapse button */
.leaflet-routing-collapse-btn {
    display: none !important;
}

/* ── LIGHT MODE ── */
body.light-mode .leaflet-routing-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .leaflet-routing-container h2,
body.light-mode .leaflet-routing-container h3,
body.light-mode .leaflet-routing-container div,
body.light-mode .leaflet-routing-alt h2,
body.light-mode .leaflet-routing-alt h3 {
    color: #1e293b !important;
}

body.light-mode .leaflet-routing-container table {
    color: #475569 !important;
}

body.light-mode .leaflet-routing-alt {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .leaflet-routing-alt tr {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .leaflet-routing-alt tr td:nth-child(2) {
    color: #1e293b !important;
    font-weight: 600 !important;
}

body.light-mode .leaflet-routing-alt tr td:nth-child(3) {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #d97706 !important;
}

body.light-mode .leaflet-routing-alt tr:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

body.light-mode .leaflet-routing-icon {
    filter: sepia(1) saturate(5) hue-rotate(180deg) brightness(0.8) !important;
}

/* ── ROUTING ACTION BAR — Fixed floating pill (all screen sizes) ── */
.routing-action-bar {
    position: fixed;
    top: 170px; /* 114px (toggle) + 46px + 10px */
    bottom: auto;
    inset-inline-end: 420px; /* Aligned with toggle button */
    inset-inline-start: auto;
    width: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack vertically below the toggle button */
    gap: 12px;
    z-index: 1260;
    border-radius: 0;
    border: none;
    box-shadow: none;
    justify-content: flex-start;
    align-items: flex-end; /* Align buttons to the right edge */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.routing-action-bar.panel-closed {
    top: 170px;
    bottom: auto;
    inset-inline-end: 24px; /* Move to right edge with toggle button */
    width: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: auto;
}

.routing-action-bar .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    border: none;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.routing-action-bar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.action-start-btn {
    flex: 2;
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.action-cancel-btn {
    flex: 1;
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
}

/* ── FLOATING TOGGLE BUTTON ── */
.action-toggle-btn {
    position: fixed;
    top: 114px;
    inset-inline-end: 420px;
    inset-inline-start: auto;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #cbd5e1;
    cursor: pointer;
    z-index: 1250;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-toggle-btn:hover {
    transform: scale(1.08);
    background: #f59e0b;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.action-toggle-btn.panel-closed {
    inset-inline-end: 24px;
    background: #f59e0b;
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* =====================================================
   TABLET  769 – 1024 px  (compact side panel)
   ===================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .leaflet-routing-container {
        width: 300px !important;
        top: 100px !important;
        bottom: 16px !important;
        inset-inline-end: 16px !important;
        inset-inline-start: auto !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .routing-action-bar {
        bottom: 24px !important;
        inset-inline-end: 20px !important;
        width: 264px !important;
        padding: 10px 10px !important;
        gap: 8px !important;
    }

    .routing-action-bar .btn {
        padding: 11px 12px !important;
        font-size: 0.88rem !important;
    }

    .leaflet-routing-alt h2 {
        font-size: 0.95rem !important;
    }

    .leaflet-routing-alt h3 {
        font-size: 0.8rem !important;
    }

    .leaflet-routing-container table {
        font-size: 0.82rem !important;
    }

    .action-toggle-btn {
        top: 100px !important;
        inset-inline-end: 332px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    .action-toggle-btn.panel-closed {
        inset-inline-end: 16px !important;
    }

    .routing-action-bar {
        top: 154px !important; /* 100 + 44 + 10 */
        bottom: auto !important;
        inset-inline-end: 332px !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-end !important;
    }

    .routing-action-bar.panel-closed {
        top: 154px !important;
        inset-inline-end: 16px !important;
        bottom: auto !important;
        height: auto !important;
        padding: 0 !important;
    }
}

/* =====================================================
   MOBILE  ≤ 768 px  (bottom sheet)
   ===================================================== */
@media (max-width: 768px) {
    .leaflet-routing-container {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        inset-inline-start: 0 !important;
        inset-inline-end: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48vh !important;
        padding: 30px 16px 16px !important;
        border-radius: 24px 24px 0 0 !important;
        z-index: 1200 !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        overflow-y: auto !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
    }

    /* Drag-handle pill */
    .leaflet-routing-container::before {
        content: '' !important;
        position: absolute !important;
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 36px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border-radius: 10px !important;
    }

    /* Slide DOWN to hide (same for RTL on mobile) */
    .leaflet-routing-container.closed,
    [dir="rtl"] .leaflet-routing-container.closed {
        transform: translateY(110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Action bar floats ABOVE the bottom sheet, fixed to viewport */
    .routing-action-bar {
        position: fixed !important;
        bottom: calc(48vh + 12px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        max-width: 420px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        z-index: 1260 !important;
        border-radius: 20px !important;
        background: rgba(15, 23, 42, 0.97) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        gap: 10px !important;
        flex-direction: row !important; /* Restore horizontal layout */
        align-items: stretch !important;
    }

    /* When panel is hidden, keep the action bar at bottom */
    .routing-action-bar.panel-closed {
        bottom: 20px !important;
        top: auto !important;
        inset-inline-end: auto !important;
        transform: translateX(-50%) !important;
        left: 50% !important;
    }

    .routing-action-bar .btn {
        padding: 13px 14px !important;
        font-size: 0.92rem !important;
        border-radius: 14px !important;
    }

    /* Toggle button: fixed on left side above action bar on mobile */
    .action-toggle-btn {
        position: fixed !important;
        top: auto !important;
        bottom: calc(48vh + 80px) !important; /* Float just above the action bar */
        inset-inline-end: 16px !important;    /* Left side in RTL */
        inset-inline-start: auto !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
        background: rgba(15, 23, 42, 0.95) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        z-index: 1300 !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .action-toggle-btn.panel-closed {
        background: #f59e0b !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
        top: auto !important;
        bottom: 84px !important; /* Float just above the dropped action bar */
        inset-inline-end: 16px !important;
    }

    .leaflet-routing-alt {
        max-height: none !important;
        margin-top: 0 !important;
    }

    .leaflet-routing-alt h2 {
        font-size: 1rem !important;
        color: #f59e0b !important;
        margin-bottom: 4px !important;
        text-align: center !important;
    }

    .leaflet-routing-alt h3 {
        font-size: 0.82rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
        color: #94a3b8 !important;
    }

    .leaflet-routing-container table {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    .leaflet-routing-alt tr td {
        padding: 7px 4px !important;
    }

    .leaflet-routing-icon {
        transform: scale(0.8) !important;
    }
}

/* =====================================================
   TINY MOBILE  ≤ 480 px
   ===================================================== */
@media (max-width: 480px) {
    .leaflet-routing-container {
        height: 52vh !important;
        padding: 28px 12px 12px !important;
    }

    .routing-action-bar {
        bottom: calc(52vh + 10px) !important;
        width: 96% !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    .routing-action-bar.panel-closed {
        bottom: 16px !important;
    }

    .routing-action-bar .btn {
        padding: 12px 10px !important;
        font-size: 0.84rem !important;
        border-radius: 12px !important;
    }

    .action-toggle-btn {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.1rem !important;
    }

    .leaflet-routing-container table {
        font-size: 0.78rem !important;
    }

    .leaflet-routing-alt h2 {
        font-size: 0.92rem !important;
    }

    .leaflet-routing-alt h3 {
        font-size: 0.75rem !important;
    }
}

/* Enhanced Search Styles */
.search-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-action-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0 8px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.search-action-btn:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.voice-search-btn {
    position: relative;
}

.voice-status {
    position: absolute;
    top: -5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.voice-search-btn.listening .voice-status {
    display: block;
}

.voice-search-btn.listening i {
    color: #ef4444;
    animation: mic-pulse 0.8s infinite alternate;
}

@keyframes mic-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

.search-suggestions {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 5px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.suggestion-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-header button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.suggestion-header button:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.suggestions-list {
    padding: 8px 0;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    color: #e2e8f0;
}

.suggestion-item:hover {
    background: rgba(245, 158, 11, 0.1);
}

.suggestion-item i {
    color: #94a3b8;
    font-size: 0.9em;
}

.suggestion-item.recent i {
    color: #f59e0b;
}

.suggestion-item.popular i {
    color: #3b82f6;
}

.suggestion-item.voice i {
    color: #ef4444;
}

.voice-help {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-help i {
    color: #667eea;
}

/* Light mode adjustments */
body.light-mode .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

body.light-mode .suggestion-header {
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

body.light-mode .suggestion-item {
    color: #334155;
}

body.light-mode .suggestion-item:hover {
    background: rgba(245, 158, 11, 0.08);
}

body.light-mode .voice-help {
    border-top: 1px solid #f1f5f9;
    color: #64748b;
}

/* Voice command hints */
.voice-command-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 15px;
    max-width: 300px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
}

body.light-mode .voice-command-hint {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.voice-command-hint h4 {
    margin: 0 0 10px 0;
    color: #f59e0b;
    font-size: 1em;
}

.voice-command-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
    color: #cbd5e1;
}

body.light-mode .voice-command-list {
    color: #64748b;
}

.voice-command-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-command-list li i {
    color: #f59e0b;
    font-size: 0.9em;
}

