:root {
    --text: #1f2937;
    --card-bg: #ffffff;
    --input-bg: #f3f4f6;
    --highlight: #3b82f6; /* светло-жёлтый для акцента */
    --bg: #f4f6f8;
    --card-bg: rgba(255, 255, 255, 0.75);
    --input-bg: rgba(255, 255, 255, 0.9);
    --accent: #e2e8f0;
    --accent-dark: #cbd5e1;
    --accent-text: #475569;
    --glass-blur: blur(10px);
}

body.dark-mode {
    --bg: #1f1f1f;
    --text: #e5e7eb;
    --card-bg: rgba(31, 31, 31, 0.85);
    --input-bg: rgba(55, 65, 81, 0.8);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--glass-blur);
    font-weight: 600;
}

h1 {
    text-align: center;
    padding: 30px 0;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    gap: 16px;
}

.site-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.calc-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 16px 30px;
    width: fit-content;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.calculator {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.calculator input {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    outline: none;
    background: #f9fafb;
    color: #111827;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    width: 130px;
    font-weight: 500;
}

.calculator input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.calculator label {
    font-weight: 500;
    font-size: 14px;
    margin-right: 5px;
    min-width: 70px;
    display: inline-block;
    text-align: right;
}

.calc-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.calc-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}

.swap-btn {
    font-size: 18px;
    padding: 10px 14px;
    background: var(--accent);
    color: var(--accent-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.swap-btn:active {
    transform: scale(0.98);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

#calc-warning {
    min-height: 20px;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
    background: rgba(255, 237, 213, 0.95);
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.1);
    width: 100%;
    text-align: center;
}

.alert-warning {
    background: rgba(255, 230, 180, 0.95);
    color: #92400e;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
}

.map-sidebar-container {
    display: flex;
    padding: 24px;
    background: transparent;
    height: calc(100vh - 240px);
}

#map {
    width: 75%;
    margin-right: 16px;
    height: 680px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

#map:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    transform: scale(1.005);
}

#sidebar {
    flex: 1.2;
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.city-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.city-row select {
    flex: 1;
}

#locate-me-btn {
    margin-top: 8px;
    background: var(--accent);
    color: var(--accent-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#locate-me-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#locate-me-btn:active {
    transform: scale(0.98);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}


#filter {
    display: flex;
    position: relative;
    top: 20px;
    left: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.filter__label {
    margin-bottom: 0 !important;
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #111827;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.popup-card {
    font-size: 14px;
    color: var(--text);
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: var(--glass-blur);
    max-width: 100%;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.popup-header {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.popup-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
    margin-bottom: 4px;
}

.popup-address {
    font-size: 13px;
    color: #6b7280;
}

.popup-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 13.5px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.popup-table thead {
    background: var(--accent);
    color: white;
}

.popup-table th, .popup-table td {
    padding: 10px;
    text-align: center;
}

.popup-table td:nth-child(2) {
    color: #16a34a;
    font-weight: 600;
}

.popup-table td:nth-child(3) {
    color: #dc2626;
    font-weight: 600;
}

.popup-table tbody tr {
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.2s ease;
}

.popup-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.calc-button {
    margin-top: 15px;
    background: var(--accent);
    color: var(--accent-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calc-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.calc-button:active {
    transform: scale(0.98);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.leaflet-container {
    background: #dbeafe;
}

/* Custom tooltip for currency display */
.currency-tooltip {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px;
    font-size: 12px;
    max-width: 120px;
    text-align: center;
}

.currency-tooltip::before {
    display: none;
}

.leaflet-control-zoom {
    border-radius: 10px;
}

.leaflet-top.leaflet-right {
    top: 5px !important;
    right: 5px !important;
}

.exchanger-label {
    display: inline-block;
    background: #e0f2fe; /* светло-голубой фон */
    color: #0369a1; /* насыщенный синий текст */
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(3, 105, 161, 0.2);
    transition: all 0.2s ease-in-out;
}


.leaflet-control-attribution {
    display: none !important;
}

.calculator .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.calculator select {
    width: 120px;
    margin-bottom: 0;
}

.choices {
    margin-bottom: 0px;
}

.choices__inner {
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    padding: 8px 12px;
    min-height: auto;
}

.choices[data-type*=select-one]::after {
    border-color: #ccc;
    width: 6px;
    height: 6px;
    right: 12px;
    top: 50%;
    margin-top: -3px;
}

.choices__item {
    color: #111827;
}

.choices__list--dropdown {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2200 !important;
    position: absolute;
}

.choices__list--dropdown .choices__item--selectable {
    padding: 8px 12px;
    color: #111827;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f3f4f6;
}

/* flag inside select */
.flag-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    color: #666;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
}

#swap, #swapMobile {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--accent-text);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 12px;
    position: relative;
    z-index: 1;
}

#swap:hover, #swapMobile:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#swap:active, #swapMobile:active {
    transform: scale(0.98);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 500px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    .desktop-only {
        display: none;
    }

    .leaflet-control-container {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    /* Main top bar with title */
    .main-top-bar {
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        align-items: center;
        background: var(--card-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 10;
    }

    .main-top-bar .site-title {
        font-size: 24px;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    /* Calculator container */
    .calculator-container {
        padding: 15px;
        margin-bottom: 15px;
    }

    .calculator {
        display: flex;
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        background: var(--card-bg);
        backdrop-filter: var(--glass-blur);
        width: 100%;
        box-sizing: border-box;
        gap: 15px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .calculator label {
        margin-bottom: 5px;
        text-align: left;
        min-width: auto;
        font-weight: 600;
        font-size: 15px;
        color: var(--text);
    }

    .calculator input,
    .calculator select,
    .calculator .choices {
        width: 100%;
        margin-bottom: 5px;
    }

    .card-calc-popup .calculator input {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }

    #swap, #swapMobile {
        align-self: center;
        margin: 15px 0;
    }

    /* Map controls */
    .map-controls {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        background: var(--card-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 5;
    }

    .control-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 8px 15px;
        font-size: 14px;
        color: var(--text);
    }

    .control-btn i {
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* Map and sidebar */
    .map-sidebar-container {
        height: calc(100vh - 200px);
        padding: 0;
        flex-direction: column;
    }

    #map {
        min-height: 400px;
        height: 100vh;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #sidebar {
        display: none;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Filter */
    #filter {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: flex-end;
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    #filter.open {
        opacity: 1;
        pointer-events: all;
        transform: translateX(0);
    }

    #filter .filter-content {
        background: #fff;
        width: 80%;
        height: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .mobile-header {
        display: none; /* Hide the mobile header */
    }

    .calculator {
        margin-top: 10px; /* Reduced margin since header is hidden */
        padding: 10px 16px;
    }

    .card-calc-popup {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }

    .card-calc-popup .popup-content {
        background: var(--card-bg);
        border-radius: 20px;
        padding: 28px;
        width: 92%;
        max-width: 420px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: popupFadeIn 0.3s ease;
    }

    @keyframes popupFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .close-popup {
        position: absolute;
        right: 16px;
        top: 16px;
        background: var(--accent);
        border: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 24px;
        cursor: pointer;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-text);
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        overflow: hidden;
        line-height: 1;
        padding: 0;
    }

    .close-popup:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .close-popup:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
        width: 36px;
        height: 36px;
    }

    .map-list-container {
        margin-top: 0; /* Removed margin since header is hidden */
        margin-bottom: 80px;
        height: calc(100vh - 80px); /* Adjusted height calculation */
        position: relative;
    }

    .mobile-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 70px;
        background: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 3000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }

    .navbar-btn {
        background: transparent;
        border: none;
        font-size: 16px;
        color: #333; /* Changed from white to dark gray for visibility */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 12px;
        transition: all 0.2s ease;
        border-radius: 8px;
        width: 100px; /* Fixed width for all buttons */
        text-align: center; /* Center text */
        overflow: hidden; /* Prevent text overflow */
        white-space: nowrap; /* Keep text on one line */
        text-overflow: ellipsis; /* Add ellipsis for overflow text */
    }

    /* Make filter and exchanger buttons bold */
    #filterBtn, #toggleViewBtn {
        font-weight: bold;
    }

    .menu-nav-text{
        background: transparent;
        border: none;
        font-size: 13px;
        color: #333; /* Changed from white to dark gray for visibility */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 12px;
        transition: all 0.2s ease;
        border-radius: 8px;
        width: 100px; /* Fixed width for all buttons */
        text-align: center; /* Center text */
        overflow: hidden; /* Prevent text overflow */
        white-space: nowrap; /* Keep text on one line */
        text-overflow: ellipsis; /* Add ellipsis for overflow text */
    }

    /* Add specific styling for the icons */
    .navbar-btn i {
        font-size: 20px;
        margin-bottom: 4px;
        color: #333; /* Ensure icons are visible */
    }

    .menu-btn {
        font-size: 16px !important;
        margin-bottom: 4px;
        color: #333;
    }

    .navbar-btn:hover {
        transform: translateY(-1px);
    }

    .navbar-btn:active {
        transform: scale(0.98);
    }

    #languageToggleBtn {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--accent);
        color: var(--accent-text);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    #languageToggleBtn:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    #languageToggleBtn:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    #languageToggleBtn i {
        font-size: 22px;
        color: var(--accent-text);
        margin-bottom: 4px;
    }

    .lang-text {
        font-weight: 600;
        font-size: 14px;
        color: var(--accent-text);
    }

    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        display: none;
        z-index: 1100;
        justify-content: flex-end;
    }

    .filter-overlay.open {
        display: flex;
    }

    .filter-overlay .filter-content {
        background: #fff;
        width: 85%;
        height: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .filter-overlay .filter-field {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
    }

    .filter-overlay .filter__label {
        font-size: 14px;
        margin-bottom: 10px !important;
        color: #495057;
    }

    .filter-overlay .form-select {
        background-color: #fff;
        border: 1px solid #ced4da;
        margin-bottom: 10px;
    }

    .filter-overlay #mobile-locate-me-btn {
        background: var(--accent);
        color: var(--accent-text);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        font-size: 14px;
        padding: 10px;
        width: 100%;
        margin-top: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .filter-overlay #mobile-locate-me-btn:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .filter-overlay #mobile-locate-me-btn:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .close-filter {
        margin-top: 20px;
        width: 100%;
        background: var(--accent);
        color: var(--accent-text);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .close-filter:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .close-filter:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    /* Menu button styles - removed custom styles to use navbar-btn styles */
    /* Full width button for menu items */
    .full-width-btn {
        width: 100%;
        background: var(--accent);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        font-size: 14px;
        color: var(--accent-text);
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .full-width-btn:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .full-width-btn:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    #menuLanguageToggleBtn, #privacyPolicyBtn, #termsOfServiceBtn {
        background: var(--accent);
        color: var(--accent-text);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Modal styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1300;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
    }

    .modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 0;
        border: 1px solid #888;
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: modalFadeIn 0.3s ease;
        overflow-y: auto;
    }

    .modal-header {
        position: sticky;
        top: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fefefe;
        padding: 15px 20px;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 12px 12px 0 0;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    #policyTitle {
        margin: 0;
        font-size: 20px;
        color: #1f2937;
        font-weight: 600;
    }

    /* Policy content styling */
    #policyContent {
        font-size: 14px;
        line-height: 1.6;
        color: #333;
        padding: 20px;
    }

    #policyContent h2 {
        font-size: 22px;
        margin-bottom: 10px;
        color: #1f2937;
    }

    #policyContent h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #374151;
    }

    #policyContent p {
        margin-bottom: 15px;
    }

    #policyContent ul {
        margin-bottom: 15px;
        padding-left: 20px;
    }

    #policyContent li {
        margin-bottom: 5px;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .close-modal {
        background: var(--accent);
        color: var(--accent-text);
        border: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 20px;
        cursor: pointer;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        overflow: hidden;
        line-height: 1;
        padding: 0;
    }

    .close-modal:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .close-modal:active {
        transform: scale(0.98);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
        width: 32px;
        height: 32px;
    }

    /* Card Calculator Styles */
    #cardCalculatorModal {
        display: none;
        position: fixed;
        z-index: 1300;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        align-items: center;
        justify-content: center;
    }

    #cardCalculatorModal .modal-content {
        width: 90%;
        max-width: 500px;
        padding: 24px;
    }

    #cardCalculatorModal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    #cardCalculatorModal h2 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

    #cardCalculatorModal .calculator {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    #cardCalculatorModal .currency-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 8px;
    }

    /* Mobile responsiveness for calculator */
    @media (max-width: 640px) {
        #cardCalculatorModal .currency-row {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        #cardCalculatorModal .button-group {
            flex-direction: row;
            gap: 8px;
        }

        #cardCalculatorModal .modal-content {
            width: 95%;
            padding: 16px;
        }

        #cardCalculatorModal .currency-card {
            padding: 5px;
        }

        #cardCalculatorModal .result-box {
            padding: 16px;
        }
    }

    #cardCalculatorModal .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    #cardCalculatorModal .currency-card {
        background: #f9f9f9;
        padding: 5px;
        border-radius: 5px;
        border: 1px solid #e5e5e5;
    }

    #cardCalculatorModal .currency-label {
        font-size: 12px;
        color: #666;
        margin-bottom: 4px;
    }

    #cardCalculatorModal .currency-code {
        font-size: 18px;
        font-weight: 600;
        color: #4a90e2;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    #cardCalculatorModal .currency-code:hover {
        background-color: #f5f5f5;
    }

    .currency-dropdown {
        position: absolute;
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
    }

    .currency-item {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .currency-item:hover {
        background-color: #f5f5f5;
    }

    .currency-item:active {
        background-color: #e5e5e5;
    }

    /* Add a click-away handler to close dropdowns when clicking outside */
    body.has-dropdown-open {
        position: relative;
    }

    /* Close button for mobile */
    .currency-dropdown-close {
        display: none;
        text-align: right;
        padding: 8px;
        color: #999;
        font-size: 16px;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .currency-dropdown {
            position: fixed;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%);
            width: 80% !important;
            max-width: 300px;
            max-height: 60vh;
        }

        .currency-dropdown-close {
            display: block;
        }
    }

    #cardCalculatorModal .button-group {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        margin: 8px 0;
    }

    #cardCalculatorModal .result-box {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        margin-top: 16px;
    }

    #cardCalculatorModal .result-label {
        font-size: 12px;
        opacity: 0.9;
        margin-bottom: 8px;
    }

    #cardCalculatorModal .result-value {
        font-size: 20px;
        font-weight: 600;
    }

    #cardCalculatorModal .result-rate {
        font-size: 11px;
        opacity: 0.8;
        margin-top: 8px;
    }

    #cardCalculatorModal .calc-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #cardCalculatorModal label {
        font-weight: 600;
        color: #333;
    }

    #cardCalculatorModal input {
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        width: 100%;
    }

    #cardCalculatorModal select {
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        width: 100%;
    }

    #cardCalculatorModal .swap-btn {
        padding: 10px 20px;
        background: white;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cardCalculatorModal .swap-btn:hover {
        background: #f5f5f5;
        border-color: #4a90e2;
    }

    #cardCalculatorModal .swap-btn:active {
        transform: scale(0.98);
    }

    #cardCalculatorModal .clear-btn {
        padding: 10px 20px;
        background: white;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cardCalculatorModal .clear-btn:hover {
        background: #f5f5f5;
        border-color: #4a90e2;
    }

    #cardCalculatorModal .clear-btn:active {
        transform: scale(0.98);
    }

    #cardCalculatorModal .rate-status {
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 6px;
        font-size: 14px;
        color: #555;
        text-align: center;
    }

    #cardCalculatorModal .rate-status.error {
        background: #fff5f5;
        color: #e53e3e;
    }

    /* Currency flag styles */
    .currency-flag {
        display: inline-block;
        width: 20px;
        height: 14px;
        background-size: cover;
        background-position: center;
        margin-right: 8px;
        vertical-align: middle;
    }

    /* Button for calculator in exchanger card */
    .btn-calc {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        background: var(--accent);
        color: var(--accent-text);
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-top: 10px;
    }

    .btn-calc i {
        margin-right: 6px;
    }

    .btn-calc:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }

    .btn-calc:active {
        transform: scale(0.95);
    }
}
