/*index 45 - fixing scroll on iphone. now. */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    /* FIXES DOUBLE-CLICK ZOOM */
    touch-action: manipulation;
}

/*index 30*/
:root {
    --brand-green: #50e4c4;
    --bg-dark: #181a1e;
    /* Matching the dark theme in */
}

#map {
    height: calc(100vh - 60px);
    /* Subtract navbar height */
    margin-top: 60px;
    /* Push down to clear the navbar */
    width: 100%;
    /* inde 45 | mobile issues zooming on double click */
    touch-action: cross-slide-y;
}

/* finish index 30*/
body {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

/*info panel update index 10 | collapse after this save*/

.info-panel {
    position: absolute;
    bottom: 30px;
    left: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    z-index: 10000;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

.highlight-link {
    color: #50E4C4;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    /* Optional: adds a subtle hint it's clickable */
    text-underline-offset: 3px;
}

.highlight-link:hover {
    filter: brightness(0.9);
    /* Slightly darkens on hover for feedback */
}

.brand-dot {
    width: 8px;
    height: 8px;
    background-color: #50E4C4;
    border-radius: 50%;
    display: inline-block;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step .icon {
    font-size: 16px;
    margin-top: 2px;
}

.step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.highlight {
    color: #50E4C4;
    font-weight: bold;
}

.info-footer {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

.info-price-increase {
    margin-top: 5px;
    padding-top: 0px;
    padding-left: 4px;
    font-size: 12px;
    color: #50E4C4;
    font-weight: 600;

}

/* The X Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
}

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

/* The Reappear Button */
.help-button {
    position: absolute;
    bottom: 30px;
    left: 20px;
    display: none;
    /* Hidden until panel is closed */
    background: #50E4C4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(80, 228, 196, 0.3);
    z-index: 11;
    transition: transform 0.2s;
}

.help-button:hover {
    transform: scale(1.05);
    background: #45d1b3;
}

/*.support-button {
            position: absolute;
            bottom: 75px;
            left: 20px;
            background: #ffffff;
            color: #50E4C4;
            padding: 12px 20px;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-weight: bold;
            font-size: 12px;
            letter-spacing: 1px;
            cursor: pointer;
            z-index: 11;
        }

        .support-button:hover {
            transform: scale(1.05);
            background: #45d1b3;
            color: white;
        }*/




/* Helper class to hide/show */
.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}


/* Index 7 search bar styling*/
/* Customizing the Search Box */
#map .mapboxgl-ctrl-geocoder {
    min-width: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    /* Professional rounded look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Floating shadow effect */
    font-family: 'Inter', sans-serif;
    margin-top: 20px;
    margin-left: 10px;
    border: 1px solid #f0f0f0;
}

/* Input text styling */
#map .mapboxgl-ctrl-geocoder--input {
    color: #333 !important;
    padding: 12px 45px !important;
}

/* Icon colors */
#map .mapboxgl-ctrl-geocoder--icon-search {
    fill: #50E4C4 !important;
    /* Your brand green */
}

/* Customizing the GPS Button to match */
#map .mapboxgl-ctrl-group {
    border-radius: 12px !important;
    border: none !important;
    height: 40px !important;
    width: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    margin-left: 10px !important;
    margin-top: 8px !important;
    overflow: hidden;
}

/* The actual button inside the group */
.mapboxgl-ctrl-group button {
    width: 40px !important;
    height: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map .mapboxgl-ctrl-geolocate {
    background-color: #50E4C4 !important;
}

/* Centering and sizing the icon itself */
#map .mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate {
    background-size: 24px 24px !important;
    /* Adjust this to make the icon larger/smaller */
    background-position: center !important;
    background-repeat: no-repeat !important;
}


/* index 10 - Change the GPS 'User Location' dot to your Green */
#map .mapboxgl-user-location-dot {
    position: absolute;
    background-color: #4285F4 !important;
}

#map .mapboxgl-user-location-dot::before {
    background-color: #4285F4 !important;
    /* The pulsing circle */
}

/* Change the accuracy circle (the big faint blue one) to green */
#map .mapboxgl-user-location-accuracy-circle {
    background-color: rgba(80, 228, 196, 0.2) !important;
}

/* Custom Marker Styling for Search Results | after this i edited the custom marker to snap at the exact locaiton*/
.custom-marker {
    background-color: #50E4C4;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    /* White border helps it stand out on satellite */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    /* This ensures the center of the circle is the anchor */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Zoom buttons container*/
.custom-zoom-controls {
    position: absolute;
    right: 10px;
    /* Centers it vertically on the right
            top: 50%;
            transform: translateY(-50%); */
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.custom-zoom-controls button {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.custom-zoom-controls button:hover {
    background-color: #f7f7f7;
    color: #50E4C4;
    /* Your brand green on hover */
}

.custom-zoom-controls button:active {
    transform: scale(0.95);
}

.zoom-display {
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    /* Slightly different shade to distinguish from buttons */
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    color: #50E4C4;
    /* Brand Green */
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 4px;
    /* Small gap before the + button */
}

/* Overriding the default Mapbox Close Button */
#map .mapboxgl-popup-close-button {
    font-size: 24px !important;
    color: #333 !important;
    font-family: Arial, sans-serif !important;
    padding: 0 8px !important;
    top: 5px !important;
    right: 5px !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    transition: color 0.2s ease;
}

#map .mapboxgl-popup-close-button:hover {
    color: #ff5f5f !important;
    background-color: transparent !important;
}

/* Optional: Make the popup container match the guide's rounded corners */
#map .mapboxgl-popup-content {
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

#map .mapboxgl-popup-content-post {
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    min-width: 300px;
}

/* index 22 | map legend */
.map-legend {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    /* Blurs the map behind the legend */
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 5px;
    /* Smooth rounded corners */
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-family: 'inter';
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    /* Allows clicks to pass through to the map if needed */
}

.session-legend {
    position: fixed;
    text-align: center;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    /* Blurs the map behind the legend */
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 5px;
    /* Smooth rounded corners */
    display: flex;
    gap: 15px;

    z-index: 10;
    font-family: 'inter';
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    color: #fff;
    /* Allows clicks to pass through to the map if needed */
}

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

.legend-icon {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    /* Slightly rounded icons */
    display: inline-block;
}

/* Color definitions - Adjust hex codes to match your map exactly */
.bg-available {
    background-color: #2ecc71;
    border: 1px solid #27ae60;
}

.bg-cart {
    background-color: #f1c40f;
    border: 1px solid #f39c12;
}

.bg-reserved {
    background-color: #000000;
    border: 1px solid #000000;
}

.bg-sold {
    background-color: #e74c3c;
    border: 1px solid #c0392b;
}


/* index 62 | Fomo strip
/* FOMO Notification Strip */
/* FOMO Notification Strip */
.fomo-toast {
    position: absolute;
    top: 130px;
    right: -650px;
    /* Reduced distance so it doesn't fly in too fast */
    width: calc(100vw - 100px);
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid #50E4C4;
    border-radius: 8px;
    padding: 7px 5px;
    display: flex;
    align-items: center;
    /* Centers icon and text block */
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9;
    font-family: 'Inter', sans-serif;
    /* Replaced bouncy bezier with smooth ease-out */
    transition: right 0.5s ease-out;
}

.fomo-toast.show {
    right: 10px;
}

.fomo-icon {
    font-size: 12px;
    background: #f0fdfa;
    width: 22px;
    /* Gave the emoji a bit more room to center perfectly */
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    /* Prevents the circle from squishing into an oval on small screens */
}

.fomo-text {
    /* Transforms the text container to strictly center the different-sized fonts */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.2;
}


/* index 14 | add to cart */
.cart-panel {
    position: absolute;
    top: 70px;
    right: 10px;
    width: 320px;
    max-height: (100vh-100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    /*index 22*/
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* State when collapsed */
.cart-panel.collapsed .cart-body {
    display: none;
    /* Hides items and footer */
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 10px;
    color: #888;
}

.collapsed #cart-toggle-icon {
    transform: rotate(-180deg);
    /* Arrow points up when closed */
}

/* Optional: Make the header look clickable on hover */
.cart-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 350px;
    padding: 10px 0;
}

.cart-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-item:hover {
    background: #f5f5f5;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-id {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.item-coords {
    font-size: 10px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-price {
    font-weight: bold;
    color: #50E4C4;
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff5f5f;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-clear {
    flex: 1;
    background: #f0f0f0;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-purchase {
    flex: 2;
    background: #50E4C4;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.empty-msg {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 13px;
}

/* index 20 | error message on pruchased tiles that are in crt */
#checkout-error-msg {
    color: #ff4d4d;
    /* Professional warning red */
    font-size: 12px;
    /* Smaller font */
    line-height: 1.4;
    margin: 8px 0;
    font-weight: 500;
    text-align: left;
    min-height: 0px;
    /* Prevents layout jump when message appears */
}

#checkout-error-msg:not(:empty) {
    margin: 8px 0;
}

/* index 31 | share icon to popup*/
/* Styling the Share link inside the popup */
.popup-share-link {
    position: absolute;
    top: 10px;
    right: 40px;
    /* Positions it just to the left of the X */
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.popup-share-link:hover {
    color: #50E4C4;
}

.popup-share-link.copied {
    color: #50E4C4;
    text-decoration: none;
    font-weight: bold;
}




/* inde 35 | popip and content | The Drawer itself */
.drawer {
    font-family: 'Inter', sans-serif;
    /* Matching your popup */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65vh;
    /* Slightly taller for better content display */
    background: white;
    z-index: 2000;
    border-radius: 24px 24px 0 0;
    /* Softer corners like the popup */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 30000;
}

.drawer.open {
    transform: translateY(0);
}

/* Header Area with Close Button */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.btn-close-drawer {
    background: #f5f5f5;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #333333;
    transition: background 0.2s;
}

.btn-close-drawer:hover {
    background: #eeeeee;
}

/* Content Area */
.scroll-area {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.empty-state {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 40px;
}

/* Overlay Styling */
#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    /* Match modern UI trends */
    z-index: 1999;
    display: none;
}

#drawer-overlay.active {
    display: block;
}

.social-btn {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #f0f0f0;
}

/*events cart arrow collapsae*/
details summary::-webkit-details-marker {
    display: none;
}

/* Hide default arrow */

details[open] .collapse-arrow {
    transform: rotate(180deg);
}

.event-card:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* index 36*/
.form-choice-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.form-choice-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Index 37 | layers | Layer Panel Base */
.layer-panel {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* Centers vertically */
    z-index: 1500;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* When the panel is hidden (collapsed) */
.layer-panel.collapsed {
    transform: translate(-100%, -50%);
}

/* The actual box with content */
.layer-panel-content {
    width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 16px 16px 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    border-left: none;
    padding: 15px 0;
}

.layer-panel-header {
    padding: 0 20px 15px;
    border-bottom: 1px solid #eee;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.layer-close-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
}

/* Layer Items */
.layer-list {
    padding: 10px 0;
}

.layer-item {
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    padding: 5px 10px;
}

.layer-item:hover {
    background: #f9f9f9;
    color: #50E4C4;
}

.layer-item.active {
    background: rgba(80, 228, 196, 0.1);
    color: #50E4C4;
    font-weight: 600;
    border-right: 3px solid #50E4C4;
}

/* Colored Dots */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.all {
    background: #888;
}

.dot.traffic {
    background: #50E4C4;
}

.dot.municipality {
    background: #FFB347;
}

.dot.security {
    background: #e74c3c;
}

.dot.pets {
    background: #5c3f03;
}

.dot.parking {
    background: #4facfe;
}

.dot.rental {
    background: #6c5ce7;
}

.dot.properties {
    background: #fcde68;
}

.dot.events {
    background: #5d2041;
}

/* The Vertical Toggle Button (The "Tab") */
.layer-toggle-btn {
    position: absolute;
    left: 100%;
    /* Sits outside the container */
    background: #1a1d23;
    color: #50E4C4;
    border: 1px solid #3f4349;
    border-left: none;
    padding: 15px 8px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    /* Makes text vertical */
    text-transform: uppercase;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

/* The Dot / Ping styling */
.map-dot {
    position: absolute;
    /* This ensures the browser sees the dot as a button */
    pointer-events: auto !important;
    cursor: pointer !important;
    /*pointer-events: none; /* Allows tile clicking */
    will-change: transform;
    /* Tells the browser to optimize for movement */

    /* Remove any transitions that might make it 'slide' instead of 'snap' */
    /*transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 99099;
    /* 500 before */
}

.map-dot:hover {
    transform: scale(1.5);
}

/* Optional: Pulse effect for active alerts */
.pulse-animation {
    animation: pulse-red 2s infinite;
}

/* --- Base Styles (Mobile First) --- */
.event-card-image {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.post-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    /* Forces exact height on desktop */
    flex-shrink: 0;
    border-right: 1px solid #eee;
    background: #000;
    /* Black background prevents white flashes if image loads slow */
}

.realestate-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    /* Forces exact height on desktop */
    flex-shrink: 0;
    border-right: 1px solid #eee;
    background: #000;
    /* Black background prevents white flashes if image loads slow */
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .post-image-wrapper::after {
        content: "";
        display: block;
        padding-bottom: 100%;
    }

    .realestate-image-wrapper::after {
        content: "";
        display: block;
        padding-bottom: 100%;
    }
}

.post-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensures image stretches to container height */
    object-fit: cover;
    /* Crops center to fill */
    object-position: center;
}

.realestate-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensures image stretches to container height */
    object-fit: cover;
    /* Crops center to fill */
    object-position: center;
}

.post-content-area {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(80, 228, 196, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(80, 228, 196, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(80, 228, 196, 0);
    }
}

/*index 38 */
/* Ensure the phone input container spans 100% */
.iti {
    width: 100% !important;
    margin-bottom: 20px;
}

/* Style the input to look like your screenshot */
#phone-input {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    padding-left: 100px !important;
    /* Space for the flag */
}

/* Adjust the 6-digit code spacing */
#code-input {
    letter-spacing: 4px;
}

/*INDEX 45 -Changing categories buttons */
.category-card:hover {
    border-color: #000 !important;
    background-color: #fefefe !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.category-card:active {
    transform: scale(0.98);
}




/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 600px) {





    /*index 45 | zooming and scroling the map below the navar bar etc.*/
    #map {
        position: fixed;
        /* Changed from absolute/relative */
        top: 70px;
        /* Match your mobile navbar height */
        left: 0;
        right: 0;
        bottom: 0;
        height: auto !important;
        /* Let top and bottom pin it */
        width: 100%;
        margin-top: 0 !important;
        /* Force the map to fill exactly the remaining space */
        height: calc(100dvh - 70px) !important;
    }











    .mobile-icon-btn {
        width: 42.5px;
        height: 42.5px;
        background: white;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }



    /* 1. The Main Panel Container */
    /* 1. The Main Panel Container */
    .cart-panel {
        position: absolute;
        top: 75px !important;
        left: 65px !important;
        right: 10px !important;

        width: auto !important;
        height: auto !important;

        /* THE FIX: Safe fallback for old phones, exact dynamic height for modern ones */
        max-height: calc(100vh - 130px) !important;
        max-height: calc(100dvh - 90px) !important;

        display: flex;
        flex-direction: column;
        z-index: 1001;
        overflow: hidden;
    }

    /* 2. The Header */
    .cart-header {
        flex-shrink: 0;
        padding: 10px 15px;
    }

    /* 3. The Scrollable Items Box */
    .cart-items {
        /* This is the magic line that brings back the scroll */
        flex: 1 1 auto !important;
        overflow-y: auto !important;

        /* Forces the browser to recognize this as a scrollable area */
        display: block;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
        min-height: 0;
    }

    /* 4. The Footer (Total & Purchase) */
    .cart-footer {
        flex: 0 1 auto;
        /* Allows the footer to shrink if the screen is tiny */
        background: #fff;
        padding: 12px 15px;
        border-top: 1px solid #eee;

        /* Add internal scroll safety */
        max-height: 200px;
        /* Limits footer height (adjust as needed for your buttons) */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 5. Fix for buttons inside footer */
    .cart-buttons {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .btn-purchase,
    .btn-clear {
        padding: 12px 5px !important;
        font-size: 13px !important;
    }

    /* 1. Force Mapbox controls to the absolute top of their trapped layer */
    #map .mapboxgl-ctrl-top-left {
        z-index: 999 !important;
    }

    /* 2. Lower the FOMO strip so it successfully slides BEHIND the search bar */
    .fomo-toast {
        z-index: 2 !important;
        /* Add 'top' to the transition so it moves smoothly */
        transition: right 0.5s ease-out, top 0.3s ease !important;
        top: 125px;
    }

    body.search-active .fomo-toast {
        top: 175px !important;
    }


    /* 4. Hide Search Bar by default on mobile */
    #map .mapboxgl-ctrl-geocoder {
        display: none;
        /* Hidden until toggled */
        position: absolute;
        top: 55px !important;
        /* Appears below the header */
        left: 10px !important;
        margin: 0 !important;
        width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        z-index: 999 !important;
        height: 42.5px;
    }

    #map .mapboxgl-ctrl-geocoder--input {
        height: 40px;
    }

    #map .mapboxgl-ctrl-geocoder--icon-search {
        top: 9px;
    }

    /* 5. Utility classes for the JS toggle */
    .search-active .mapboxgl-ctrl-geocoder {
        display: block !important;
    }

    /* Customizing the GPS Button to match */
    #map .mapboxgl-ctrl-group {
        margin-left: 10px !important;
        height: 42.5px !important;
        width: 42.5px !important;
        margin-top: 55px !important;
    }

    #map .mapboxgl-ctrl-group button {
        width: 42.5px !important;
        height: 42.5px !important;
    }

    /* 2. Reposition Zoom Buttons to avoid overlapping the Guide */
    .custom-zoom-controls {
        bottom: 40px;
        /* Move higher up the screen */
        right: 5px;
        gap: 5px;
    }

    .custom-zoom-controls button {
        width: 30px;
        height: 30px;
        font-size: 10px !important;
        ;
    }

    .zoom-display {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    /* 3. Scale the Explorer Guide */
    .info-panel {
        width: calc(100vw - 80px);
        left: 10px;
        bottom: 30px;
        padding: 15px;
        z-index: 1000;
    }

    .info-header {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .step p {
        font-size: 12px;
        /* Smaller text for mobile */
    }

    /* 4. Move the Help Button to a safe corner */
    .help-button {
        bottom: 30px;
        left: 10px;
        padding: 10px 10px;
        font-size: 10px;
        border-radius: 10px;
    }

    /*.support-button {
                bottom: 65px;
                left: 10px;
                padding: 10px 10px;
                font-size: 10px;
                border-radius: 10px;

            }*/

    /*index 22*/

    .map-legend {
        /*bottom: 100px; /* Lift it higher on mobile to clear the cart button */
        /*padding: 8px 12px;*/
        /*gap: 12px;*/
        font-size: 9px;
    }

    .session-legend {
        /*bottom: 100px; /* Lift it higher on mobile to clear the cart button */
        /*padding: 8px 12px;*/
        /*gap: 12px;*/
        font-size: 9px;
    }

    .legend-icon {
        width: 6px;
        height: 6px;
        border-radius: 2px;
        /* Slightly rounded icons */
        display: inline-block;
    }

    /* Index 37 | layers | Layer Panel Base */
    .layer-panel-content {
        width: 160px;
    }

    .layer-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .event-card-image {
        flex-direction: column !important;
        /* Image Top, Text Bottom */
    }

    .post-image-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        /* Forces perfect square on mobile */
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .post-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .realestate-image-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        /* Forces perfect square on mobile */
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .realestate-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
    }
}