/* =========================================
   R33 Location Menu — sidebar nav component
   Matches filter bar: white bg, black borders, gold accents
   [r33_location_menu]
   ========================================= */

.r33-loc-menu {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #fff;
}

.r33-loc-menu::-webkit-scrollbar {
    width: 5px;
}

.r33-loc-menu::-webkit-scrollbar-track {
    background: #fff;
}

.r33-loc-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Continent header */
.r33-loc-menu__continent-header {
    background: #111;
    color: #caa84b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 7px 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
}

/* Country list */
.r33-loc-menu__country-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Country row */
.r33-loc-menu__country-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
    user-select: none;
}

.r33-loc-menu__country-row:hover {
    background: #f7f7f7;
}

.r33-loc-menu__country--active > .r33-loc-menu__country-row {
    background: #f7f7f7;
    border-bottom-color: #ddd;
}

/* Country link inside row */
.r33-loc-menu__country-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.r33-loc-menu__country-link:hover .r33-loc-menu__country-name {
    color: #caa84b;
}

/* Flag emoji */
.r33-loc-menu__flag {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Country name */
.r33-loc-menu__country-name {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

/* Listing count */
.r33-loc-menu__count {
    color: #444;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Plus/minus toggle */
.r33-loc-menu__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #caa84b;
    font-size: 20px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
    transition: color 0.2s ease;
}

.r33-loc-menu__chevron::before {
    content: "+";
}

.r33-loc-menu__chevron:hover {
    color: #b8963e;
}

.r33-loc-menu__country--active > .r33-loc-menu__country-row .r33-loc-menu__chevron::before {
    content: "−";
}

.r33-loc-menu__country--active > .r33-loc-menu__country-row .r33-loc-menu__chevron {
    color: #caa84b;
}

/* City list */
.r33-loc-menu__city-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.r33-loc-menu__city-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 6px 44px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, color 0.15s ease;
}

.r33-loc-menu__city-link:hover {
    background: #f0f0f0;
    color: #caa84b;
}

/* City name */
.r33-loc-menu__city-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active city highlight */
.r33-loc-menu__city--active .r33-loc-menu__city-link {
    color: #caa84b;
    background: #f0f0f0;
    font-weight: 600;
}

.r33-loc-menu__city--active .r33-loc-menu__city-link .r33-loc-menu__count {
    color: #caa84b;
}

/* =====================
   Mini mode
   ===================== */

.r33-loc-menu--mini {
    max-height: none;
}

.r33-loc-menu--mini .r33-loc-menu__country-row--linked {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.r33-loc-menu--mini .r33-loc-menu__country-row--linked:hover {
    background: #f7f7f7;
}

.r33-loc-menu--mini .r33-loc-menu__country-row--linked:hover .r33-loc-menu__country-name {
    color: #caa84b;
}

/* =====================
   Mobile responsive
   ===================== */
@media (max-width: 767px) {

    .r33-loc-menu {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }

    .r33-loc-menu__country-row {
        padding: 10px 12px;
    }

    .r33-loc-menu__city-link {
        padding: 8px 12px 8px 40px;
    }
}
