:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --secondary-gradient: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --accent-color: #FFD93D;
    --text-main: #2D3436;
    --text-secondary: #636E72;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 24px;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    color: var(--text-main);
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Top Navigation Bar for Map Page */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    border-bottom: 1px solid #f0f0f0;
}

.top-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: #999;
    transition: all 0.3s ease;
    border-radius: 10px;
    min-width: 60px;
    text-decoration: none;
}

.top-nav-item:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.top-nav-item.active {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.15);
}

.top-nav-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.top-nav-item.disabled:hover {
    background: transparent;
    color: #ccc;
}

.top-nav-item i {
    font-size: 1.1rem;
}

.top-nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
}

/* Map Page Bottom Navigation - visible on all screens */
nav.bottom-nav.map-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    border-top: 1px solid #f0f0f0;
    height: 60px;
    box-sizing: border-box;
}

/* =========================================
   DESKTOP SIDEBAR - Flush Left Layout
   ========================================= */
.sidebar {
    /* Positioning: Flush to left edge, full height minus nav */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 60px;
    /* Stops exactly at top of bottom nav */
    width: 480px;

    /* Appearance */
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);

    /* Layout */
    z-index: 1000;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Adjust map to account for sidebar width on desktop */
#map {
    margin-left: 480px;
    height: calc(100vh - 60px);
}

/* =========================================
   SEARCH COMPONENT
   ========================================= */
.search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
}

.search-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.search-input-wrapper {
    display: none;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 4px 8px 4px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.2s ease;
}

.search-input-wrapper.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-input-wrapper input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 150px;
    background: transparent;
    font-family: inherit;
}

.search-input-wrapper input::placeholder {
    color: #999;
}

.search-clear {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--primary-color);
}

/* Hide toggle when search is active */
.search-container.active .search-toggle {
    display: none;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #ddd;
}

/* Choices.js Custom Styling */
.choices-custom,
.choices-days-filter,
.choices-city-filter {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

.choices-custom .choices__inner,
.choices-days-filter .choices__inner,
.choices-city-filter .choices__inner {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0 30px 0 12px;
    width: -webkit-fill-available;
    /* Added right padding for arrow */
    min-height: 27px;
    max-height: 27px;
    line-height: 25px;
    /* 27px - 2px border */
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px auto;
}

.choices-custom.is-open .choices__inner,
.choices-days-filter.is-open .choices__inner,
.choices-city-filter.is-open .choices__inner {
    border-radius: 12px 12px 0 0;
    border-color: #FF6B6B;
}

.choices-custom .choices__inner:hover,
.choices-days-filter .choices__inner:hover,
.choices-city-filter .choices__inner:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 107, 107, 0.3);
}

.choices-custom.is-focused .choices__inner,
.choices-days-filter.is-focused .choices__inner,
.choices-city-filter.is-focused .choices__inner {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.choices-custom .choices__list--single,
.choices-days-filter .choices__list--single,
.choices-city-filter .choices__list--single {
    padding: 0;
}

.choices-custom .choices__item--selectable,
.choices-days-filter .choices__item--selectable,
.choices-city-filter .choices__item--selectable {
    color: #333;
    font-size: 0.85rem;
}

.filters-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.days-filter-container {
    flex-shrink: 0;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    box-sizing: border-box;
    position: relative;
    z-index: 52;
}

.city-filter-container {
    flex-shrink: 0;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    box-sizing: border-box;
    position: relative;
    z-index: 51;
}

.choices-days-filter .choices__inner,
.choices-city-filter .choices__inner {
    padding-right: 30px;
    /* Match hours filter padding */
    font-size: 0.85rem;
    /* Match hours filter font size */
}



.choices__list--dropdown {
    background: white;
    border: 1px solid #FF6B6B;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100% !important;
    min-width: 100%;
    right: 0 !important;
    left: auto !important;
    z-index: 100;
}

.choices__list--dropdown .choices__item {
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: rgba(255, 107, 107, 0.1);
}

.choices__list--dropdown .choices__item--selectable:hover {
    background-color: rgba(255, 107, 107, 0.15);
}

/* Hide default select when Choices is active */
#category-filter,
#days-filter,
#city-filter {
    display: none;
}

/* Make header tighter */
.sidebar-header {
    padding: 24px 20px 16px 20px;
    position: relative;
    z-index: 200;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0));
    overflow: visible;
}

/* Title - smaller on web to fit filter */
.sidebar-header h1 {
    margin: 0;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.sidebar-header p {
    margin: 6px 0 0 0;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
}

/* Keep elements in a row */
/* Header Layout */
.header-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-align: left;
}

.header-filters-row {
    width: 100%;
}

.filters-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    flex-wrap: wrap;
    width: 100%;
}

.toggles-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

/* Filter container properly aligned - must fit in remaining space */
.filter-container {
    flex-shrink: 0;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    box-sizing: border-box;
    position: relative;
    z-index: 53;
}



.sidebar-content {
    padding: 0 32px 32px 32px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Place List */
.place-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.place-list-item {
    padding: 4px 8px;
    margin-bottom: 2px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #FF8E53;
}

.place-list-item.selected {
    border-color: #FF6B6B;
    background-color: #FFF0F0;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.place-list-item h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.place-list-item span {
    font-size: 0.55rem;
    margin-top: 1px;
    color: var(--text-secondary);
}

/* Place Details */
.place-details {
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.back-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--text-main);
}

.place-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.place-category {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.place-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.place-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    direction: rtl;
    text-align: left;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Info Window Styling */
.info-window-content {
    font-family: 'Outfit', sans-serif;
    padding: 10px 5px;
    max-width: 200px;
}

.info-window-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #FF6B6B;
    padding-bottom: 5px;
    display: inline-block;
}

.info-window-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Google Maps InfoWindow Overrides */
.gm-style .gm-style-iw-c {
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
    max-width: 300px !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: none !important;
    padding: 12px 12px 12px 12px !important;
}

.gm-style .gm-style-iw-tc::after {
    background: white !important;
}

/* Reduce the header container height to minimize blank space */
.gm-style .gm-style-iw-chr {
    height: auto !important;
    position: absolute !important;
    top: 0 !important;
    right: 4px !important;
    padding: 8px !important;
}

/* Close button styling */
.gm-ui-hover-effect {
    opacity: 0.7 !important;
    width: 24px !important;
    height: 24px !important;
}

.gm-ui-hover-effect img {
    width: 14px !important;
    height: 14px !important;
}

/* Mobile Responsiveness - Fullscreen Map with Minimal List */

/* Tablet (768px and below) */
@media (max-width: 768px) {

    /* Adjust nav bar height for mobile */
    nav.bottom-nav.map-bottom-nav {
        height: 56px;
        padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    }

    body,
    html {
        overflow: hidden;
    }

    /* Reset map for mobile - full width */
    #map {
        height: 100vh;
        width: 100vw;
        margin-left: 0;
        /* Reset desktop offset */
        position: fixed;
        top: 0;
        left: 0;
    }

    /* Mobile sidebar - bottom sheet style
       Strategy: Sidebar extends to viewport bottom (bottom: 0).
       Transform shows 260px visible + 56px behind nav.
       Nav overlays the bottom 56px with higher z-index.
       Expanded state caps at 66vh (2/3 viewport) to keep map visible. */
    .sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 316px;
        /* 260px visible + 56px behind nav */
        max-height: 75vh;
        /* Cap at 3/4 of viewport */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
        border-right: none;
        box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.2);
        padding: 0;
        padding-bottom: 56px;
        /* Space for nav overlay */
        transform: translateY(calc(100% - 316px));
        /* Show 260px above nav */
        transition: transform 0.3s ease;
        background: white;
        box-sizing: border-box;
        overflow: visible;
        /* Allow dropdowns to overflow */
    }

    .sidebar.expanded {
        transform: translateY(0);
        /* Expand to max-height (66vh) */
    }

    .sidebar.is-dragging {
        transition: none;
    }

    /* Drag handle */
    .sidebar::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        z-index: 10;
    }

    .sidebar-header {
        padding: 8px 14px 4px 14px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
        cursor: pointer;
        position: relative;
    }

    .sidebar-header h1 {
        font-size: 1.1rem;
        margin: 0 0 2px 0;
        letter-spacing: -0.5px;
    }

    .sidebar-header p {
        font-size: 0.6rem;
        margin: 0 0 4px 0;
    }

    /* Mobile search adjustments */
    .search-input-wrapper input {
        width: 120px;
    }

    .search-toggle {
        width: 32px;
        height: 32px;
    }

    .filter-container,
    .days-filter-container,
    .city-filter-container {
        margin-top: 4px;
    }

    .filters-wrapper {
        flex-wrap: wrap;
    }

    .filter-container,
    .days-filter-container,
    .city-filter-container {
        flex: 1 1 auto;
    }

    .toggles-row {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 2px;
    }

    .sidebar-content {
        padding: 4px 12px 60px 12px;
        /* Extra bottom padding so content doesn't hide behind nav */
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.95);
    }

    #category-filter {
        font-size: 0.65rem;
        padding: 5px 8px;
        border-radius: 8px;
        background-size: 8px auto;
        background-position: right 8px top 50%;
        min-height: 28px;
    }

    .place-list {
        margin-top: 4px;
    }

    .place-list-item {
        padding: 4px 6px;
        margin-bottom: 2px;
        border-radius: 8px;
        min-height: 28px;
    }

    .place-list-item h3 {
        font-size: 18px;
        line-height: 1.2;
        margin: 0;
    }

    .place-list-item span {
        font-size: 0.6rem;
    }

    .place-list-item a {
        font-size: 13px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .sidebar {
        transform: translateY(calc(100% - 250px));
    }

    .sidebar-header {
        padding: 6px 12px 3px 12px;
    }

    .sidebar-header h1 {
        font-size: 1rem;
        margin: 0 0 1px 0;
    }

    .sidebar-header p {
        font-size: 11px;
        margin-top: 5px;
    }

    .header-logo-row {
        margin-bottom: 6px;
    }

    .sidebar-content {
        padding: 3px 10px 20px 10px;
    }

    /* When collapsed, restrict content height to fit visible area */
    .sidebar:not(.expanded) .sidebar-content {
        max-height: calc(260px - 110px);
        /* 260px visible - approx header height */
        overflow-y: auto;
    }

    #category-filter,
    .choices-days-filter .choices__inner,
    .choices-city-filter .choices__inner {
        font-size: 0.6rem;
        padding: 0 25px 0 8px;
        /* Slightly tighter padding for mobile */
        min-height: 27px;
        max-height: 27px;
        line-height: 25px;
    }

    .place-list-item {
        padding: 3px 5px;
        margin-bottom: 1px;
        min-height: 26px;
    }

    .place-list-item h3 {
        font-size: 16px;
    }

    .place-list-item span {
        font-size: 0.55rem;
    }

    /* Adjust InfoWindow for mobile */
    .gm-style .gm-style-iw-c {
        max-width: 220px !important;
        padding: 8px !important;
    }

    .info-window-content h3 {
        font-size: 0.95rem !important;
    }

    .info-window-content p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Place details in sidebar */
    .place-card h2 {
        font-size: 1.3rem;
    }

    .place-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .back-button {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 10px;
    }

    .place-image {
        height: 180px;
        margin-bottom: 16px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 35%;
        height: 100vh;
        max-height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        bottom: auto;
        right: auto;
        border-radius: 0 16px 16px 0;
        transform: translateX(0);
    }

    #map {
        width: 65%;
        height: 100vh;
        margin-left: 35%;
    }

    .sidebar::before {
        display: none;
    }

    .sidebar-header {
        padding: 12px 14px;
        cursor: default;
    }

    .sidebar-header h1 {
        font-size: 1.3rem;
    }

    .sidebar-content {
        max-height: calc(100vh - 140px);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .place-list-item {
        min-height: 48px;
    }

    #category-filter {
        min-height: 34px;
    }

    .back-button {
        min-height: 38px;
    }

    /* Larger tap targets for Instagram icons */
    .place-list-item a {
        padding: 8px;
        margin: -8px;
    }
}

/* Locate Me Button */
.locate-btn {
    position: absolute;
    top: auto;
    bottom: 160px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.locate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #FF6B6B;
}

/* User Location Marker */
.user-location-marker {
    width: 20px;
    height: 20px;
    background-color: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.user-location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: rgba(66, 133, 244, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Adjust button position on mobile */
@media (max-width: 768px) {
    .locate-btn {
        top: auto;
        bottom: 340px;
        /* Above the sidebar */
        right: 16px;
        z-index: 1050;
        /* Ensure it's above the sidebar */
        transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    body.sidebar-expanded .locate-btn {
        bottom: calc(75vh + 70px);
        /* Above FAB, above expanded sheet */
    }

    /* Bottom nav stays fixed */
    .map-bottom-nav {
        z-index: 1200;
    }
}

/* Add Happy Hour Button */
.add-btn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
    .add-btn {
        right: 16px;
        bottom: 280px;
        /* Below locate button (340px - 48px button - 12px gap) */
    }

    /* When expanded, position just above the sheet (75vh) */
    body.sidebar-expanded .add-btn {
        bottom: calc(75vh + 20px);
    }
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* Form Styling */
#add-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B6B;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-group label:hover {
    background: #eee;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: #FF6B6B;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Top Banner - Fixed at very top */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    color: #795548;
    padding: 10px 40px 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    direction: rtl;
    z-index: 2500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.update-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.update-banner .banner-text {
    flex: 1;
}

.update-banner .update-date {
    font-weight: 400;
    opacity: 0.8;
    margin-right: 8px;
}

.banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #795548;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.banner-close:hover {
    opacity: 1;
}

/* Form Toggle */
.form-toggle {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}

.form-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.form-toggle button.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #FF6B6B;
}

/* Place select dropdown for update mode */
.place-select-container {
    display: none;
}

.place-select-container.show {
    display: block;
}

.place-select-container select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 16px;
}

/* Verified Badge (Twitter Style) */
.verified-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    text-decoration: none;
    align-self: center;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #1DA1F2;
    /* Twitter Blue */
    font-size: 18px;
    border-radius: 50%;
    animation: ripple 1.5s infinite;
}



@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 161, 242, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(29, 161, 242, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 161, 242, 0);
    }
}

.verified-container:hover .verified-badge {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Hide action buttons in list view */
.place-list-item .action-buttons {
    display: none !important;
}

/* Verified Toggle Switch */
.verified-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.verified-toggle input {
    display: none;
}

.slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #1DA1F2;
    /* Twitter Blue */
}

input:focus+.slider {
    box-shadow: 0 0 1px #1DA1F2;
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

input:checked~.toggle-label {
    color: #1DA1F2;
}

/* Sort toggle buttons */
.sort-toggle-group {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #e0e0e0;
    margin-left: auto;
    flex-shrink: 0;
}

.sort-btn {
    background: #fff;
    border: none;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
    line-height: 1.6;
}

.sort-btn:first-child {
    border-right: 1px solid #e0e0e0;
}

.sort-btn.active {
    background: #FF6B6B;
    color: #fff;
}

.sort-btn:hover:not(.active) {
    background: #fff0f0;
    color: #FF6B6B;
}

/* Distance badge in list items */
.distance-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FF6B6B;
    background: #fff0f0;
    border-radius: 10px;
    padding: 2px 6px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Legal Footer */
.legal-footer {
    font-family: 'Sour Gummy', 'Outfit', sans-serif;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85em;
    opacity: 0.8;
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.legal-footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
}