body {
    margin: 0;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin: 5px 0 0;
    text-align: center;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

h2 {
    top: -10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #616161;
    font-size: 21px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.14)
}

h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 9px;
}

.browse-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px;
}

/* MAP WRAPPER */
.browse-map-wrapper {
    position: relative;
    height: 490px;
    margin-bottom: 30px;
}

.browse-map-privacy-notice {
    position: absolute;
    left: 50%;
    bottom: 82px;
    z-index: 500;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #222;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    pointer-events: none;
}

#browse-listings-map {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 11px 12px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
}

/* FILTER ROWS OVER MAP */
.browse-filter-overlay {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
}

.browse-filter-overlay.top {
    top: 16px;
}

.browse-filter-overlay.bottom {
    bottom: 16px;
}

/* FILTER BUTTONS */
.browse-filter-btn {
    width: 77px;
    height: 47px;
    border: 0;
    border-radius: 18px;
    background: #ffffffb9;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.browse-filter-btn:hover,
.browse-filter-btn.is-active {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.36);
    border: 1px solid #ababab;
}

.browse-filter-btn img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
}

.browse-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #222;
    text-align: center;
    line-height: 1.05;
}

.browse-infinity-icon {
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #222;
}

/* CATEGORY OVERLAY OVER MAP */

.browse-category-overlay {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 16px;
    box-sizing: border-box;
    pointer-events: auto;
}

.browse-category-overlay-panel {
    width: min(520px, 100%);
    max-height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    padding: 18px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    z-index: 1500;
}

.browse-category-overlay-header {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.browse-category-overlay-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.browse-category-overlay-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    border: 1px solid #e8e8e8;
    border-radius: 16px;

    background: linear-gradient(
        120deg,
        rgb(239, 239, 239) 0%,
        rgba(255, 255, 255, 0.91) 50%,
        rgb(238, 238, 238) 100%
    );
    background-size: 200% 200%;
    animation: moveGradient 7s ease infinite alternate;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.browse-category-overlay-header-center.is-simple-overlay {
    background: transparent;
    border: 0;
}

.browse-category-overlay-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.browse-category-overlay-title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browse-category-overlay-title:disabled {
    cursor: default;
}

.browse-category-overlay-back,
.browse-category-overlay-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f1;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.browse-category-overlay-back:hover,
.browse-category-overlay-close:hover {
    background: #e4e4e4;
}

.browse-category-overlay-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding-right: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.browse-category-overlay-list::-webkit-scrollbar {
    display: none;
}

.browse-category-overlay-item {
    width: 100%;
    min-height: 52px;
    padding: 3px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #ffffff;
    color: #111;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}

.browse-category-overlay-item img.is-fallback-icon {
    filter: grayscale(0.25);
    opacity: 0.77;
}

.browse-category-overlay-item:hover {
    border-color: #111;
    background: #fafafa;
}

.browse-category-overlay-item img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    display: block;
}

.browse-category-overlay-item span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.browse-category-overlay-parent {
    border-color: #111;
    background: #f8f8f8;
}

/* LEAFLET CLUSTERS / MARKERS */
.custom-cluster-wrapper {
    background: transparent;
}

.custom-cluster {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #038120e1;
    color: #fffffff9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.listing-circle-marker {
    border-radius: 999px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 55%,
        rgba(173, 224, 166, 0.33) 55%,  
        rgba(255, 255, 255, 1) 100%
    );
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-circle-marker-active {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 55%,
        rgba(40, 182, 4, 0.38) 48%,
        rgba(255, 255, 255, 1) 100%
    );
    box-shadow: 0 8px 28px rgba(7, 135, 255, 0.45);
}

.listing-circle-marker-active span {
    background: #0669b9;
}

.listing-circle-marker span {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #00ccffa4;
    display: block;
}

/* MAP CONTROL BUTTONS */
.reset-category-btn,
.locate-me-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-category-btn:hover,
.locate-me-btn:hover {
    background: #f3f3f3;
}

.reset-category-btn img,
.locate-me-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

#browse-listings-map .leaflet-control-container {
    z-index: 400;
}

#browse-listings-map .leaflet-bottom,
#browse-listings-map .leaflet-top {
    z-index: 400;
}

#browse-listings-map .leaflet-control {
    z-index: 400;
}

/* LISTING DISPLAY */
.listing-display-box {
    margin: 32px 70px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
    padding: 20px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-height: 260px;
    max-height: 430px;
    overflow: hidden;
     overflow: hidden;
}

.listing-left-column {
    width: 30%;
    min-width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-photo-slider {
    width: 100%;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.listing-photo-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.listing-side-summary {
    min-height: 54px; 
    padding: 0 16px;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

#listing-side-price {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
}

#listing-side-delivery-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.left {
    left: 17px;
}

.slider-btn.right {
    right: 17px;
}
.listing-info::-webkit-scrollbar {
    width: 6px;
}

.listing-info::-webkit-scrollbar-track {
    background: transparent;
}

.listing-info::-webkit-scrollbar-thumb {
    background: rgba(25, 42, 31, 0.22);
    border-radius: 999px;
}

.listing-info {
    width: 70%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.listing-info h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.listing-info p {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.1;
    white-space: pre-line;
}
.listing-content-scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.listing-content-scroll::-webkit-scrollbar {
    width: 6px;
}

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

.listing-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(25, 42, 31, 0.22);
    border-radius: 999px;
}

.listing-empty {
    color: #777;
}

.listing-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.listing-badges span:not(:empty) {
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9f8ee;
    color: #038120;
    font-size: 13px;
    font-weight: 700;
}

.listing-price {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
}

.listing-meta,
.listing-location {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.listing-tags {
    margin-top: 10px;
}

.listing-business-details {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f7f7;
    color: #444;
    line-height: 1.5;
}

.listing-business-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

#listing-display-instagram {
    margin-right: auto;
}

#listing-display-booking {
    margin-left: auto;
}

.listing-display-box.is-default-ad .listing-info {
    justify-content: center;
}

.listing-display-box.is-default-ad .listing-content-scroll {
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listing-display-box.is-default-ad #listing-display-title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.listing-display-box.is-default-ad #listing-display-description {
    font-size: 17px;
    line-height: 1.55;
    max-width: 560px;
}

.listing-btn.booking {
    background: #2f8f22f0;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
}

.listing-btn.app {
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 7px 18px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 500;
}

.listing-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: #f3f3f3;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-icon-btn img {
    width: 20px;
    height: 20px;
}

.ad-badge {
    font-size: 8px;
    color: #ecececda;
    padding-left: 4px;
}

.ad-badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 11px;
}

.listing-gallery-image {
    cursor: zoom-in;
}

.listing-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.listing-image-lightbox.is-visible {
    display: block;
}

.listing-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.listing-image-lightbox-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image-lightbox-image-wrap {
    width: min(1100px, 92vw);
    height: min(760px, 82vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.listing-image-lightbox-close,
.listing-image-lightbox-nav {
    position: absolute;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
}


.listing-image-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image-lightbox-nav.prev {
    left: calc(50% - min(550px, 46vw) - 64px);
}

.listing-image-lightbox-nav.next {
    right: calc(50% - min(550px, 46vw) - 64px);
}

.listing-image-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
}

.listing-image-lightbox-ad-link {
    position: relative;
    display: block;
    pointer-events: none;
}

.listing-image-lightbox-ad-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.listing-photo-slider::after,
.listing-gallery-image::after,
.zoom-icon,
.magnifier-icon {
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 1500px) {
    .browse-page {
        max-width: 1000px;
        width: calc(100% - 32px);
    }

    .listing-display-box {
        margin: 20px 15px;
    }
}


@media (max-width: 1000px) {
    .browse-map-wrapper {
        height: 400px;
    }
}

    .listing-btn.app,
    .listing-btn.booking {
        font-size: 12px;
        padding: 8px 12px;
    }

    .listing-display-box.is-default-ad #listing-display-title {
    font-size: 25px;
    }

@media (max-width: 800px) {
    h1 {
        font-size: 17px;
    }

        .browse-page {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .browse-map-wrapper {
        height: 250px;
    }

    .browse-map-privacy-notice {
        bottom: 58px;
        font-size: 8px;
        padding: 7px 8px;
        max-width: calc(100% - 30px);
        white-space: nowrap;
    }

    .browse-filter-overlay {
        gap: 8px;
        z-index: 1000;
    }

    .browse-filter-overlay.top {
        top: 10px;
    }

    .browse-filter-overlay.bottom {
        bottom: 10px;
    }

    .browse-filter-btn {
        width: 45px;
        height: 35px;
        border-radius: 14px;
    }

    .browse-filter-btn img {
        width: 13px;
        height: 13px;
    }

    .browse-filter-label {
        font-size: 9px;
    }

    .browse-infinity-icon {
        font-size: 24px;
    }

    .browse-category-overlay {
        align-items: center;
        padding: 58px 20px 54px;
        z-index: 900;
    }

.reset-category-btn,
.locate-me-btn {
    width: 34px;
    height: 35px;
}

.browse-category-overlay-panel {
    width: 60%;
    max-height: 100%;
    border-radius: 22px;
    padding: 14px;
}

.browse-category-overlay-header {
    grid-template-columns: 15% 1fr 15%;
    margin-bottom: 5px;
    gap: 5px;
}

.browse-category-overlay-title {
    font-size: 12px;
    padding: 5px 5px;
}

.browse-category-overlay-back,
.browse-category-overlay-close {
    width: 15px;
    height: 15px;
    font-size: 17px;
}

.browse-category-overlay-item {
    min-height: 28px;
    grid-template-columns: 32px 1fr;
    padding: 0 10px;
}

.browse-category-overlay-item span {
    font-size: 9px;
}

.browse-category-overlay-item img {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
}

    .listing-display-box {
    margin: 24px 0;
    border-radius: 24px;
    flex-direction: column;
    gap: 14px;
    max-height: none;
    overflow: visible;
}

    .listing-left-column {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .listing-photo-slider {
        width: 100%;
        height: 210px;
    }

    .listing-side-summary {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 18px;
    }

    #listing-side-price {
        font-size: 17px;
    }

    #listing-side-delivery-icon {
        width: 19px;
        height: 19px;
    }

    .listing-info {
        width: 100%;
        max-height: none;
        overflow: visible;
    }

    .listing-content-scroll {
        max-height: 260px;
        overflow-y: auto;
    }

    .listing-info h2 {
        font-size: 22px;
    }

    .listing-business-actions {
        margin-top: 14px;
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
    }

    .listing-image-lightbox-image-wrap {
        width: 100vw;
        height: 100vh;
        padding: 56px 12px 64px;
    }

    .listing-image-lightbox-image-wrap img {
        border-radius: 12px;
    }

    .listing-image-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .listing-image-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }

    .listing-image-lightbox-nav.prev {
        left: 10px;
    }

    .listing-image-lightbox-nav.next {
        right: 10px;
    }
}