:root {
    --blok-map-font-body: var(--blok-propsync-font-base, var(--font-2, var(--font-1, Lato, Arial, sans-serif)));
    --blok-map-font-heading: var(--blok-propsync-font-heading, var(--font-1, var(--font-2, Lato, Arial, sans-serif)));
}

.blok-map,
.blok-map input,
.blok-map select,
.blok-map textarea,
.blok-map button {
    font-family: var(--blok-map-font-body);
}

.blok-map h1,
.blok-map h2,
.blok-map h3,
.blok-map h4,
.blok-map h5,
.blok-map h6,
.blok-map__heading,
.blok-map__badge,
.blok-map__badge--total,
.blok-map__price,
.blok-card__price,
.blok-card__primary-link,
.blok-map__save,
.blok-map__toggle,
.blok-map__contact {
    font-family: var(--blok-map-font-heading);
}

.blok-img-counts{
    width: 51px;
    height: 28px;
    background: rgba(17, 17, 17, 0.4);
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 5px 7px;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index:50;
}

.blok-house-item .blok-house-img .blok-img-counts {
    width: fit-content !important;
    background: rgba(17, 17, 17, 0.5) !important;
    border-bottom-left-radius: 0px !important;
    padding: 5px 10px !important;
}

/* Video badge - positioned to the left of photo count */
.blok-video-badge {
    width: 36px;
    height: 28px;
    background: rgba(17, 17, 17, 0.4);
    position: absolute;
    right: 53px; /* Position to the left of photo count (51px width) */
    top: 0px;
    padding: 5px;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.blok-video-badge .blok-icon-video {
    flex-shrink: 0;
}

.blok-map {
    background: #ffffff;
    padding: 90px 0 64px;
    /* Ensure map container can grow for infinite scroll */
    overflow: visible;
    min-height: 100vh;
}

.blok-map__inner {
    width: 100%;
    margin: 0;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Ensure inner can grow */
    overflow: visible;
}

.blok-map__masthead {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #0f172a;
}

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

.blok-map__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blok-map__badge {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blok-map__badge--total {
    background: #0f172a;
    color: #fff;
}

.blok-map__heading {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.blok-map__subtitle {
    margin: 0;
    color: #475569;
    font-size: 15px;
}

.blok-map__subtitle [data-subtitle-loading] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blok-map__spinner {
    animation: blok-spin 1s linear infinite;
    color: var(--brand-color-1, #3b82f6);
}

@keyframes blok-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.blok-map__masthead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blok-map__save {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blok-map__save:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.blok-map__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.blok-map__contact:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.blok-map__quickbar .blok-propsync-quickbar {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Larger tags on map-search page */
.blok-map .blok-tag {
    padding: 6px 16px !important;
    font-size: 16px !important;
}

/* Label for tags section */
.blok-map .blok-quickbar__tags-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--second-color);
    margin-bottom: 8px;
    display: none; /* Hidden by default */
}

/* Show label when next sibling (tags container) has is-active class */
.blok-map .blok-quickbar__tags-label:has(+ .blok-quickbar__tags.is-active) {
    display: block;
    text-align: left;
}

.blok-map__toolbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.blok-map__toolbar-meta {
    font-size: 14px;
    color: #475569;
}

.blok-map__toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.blok-map__sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #dddddd;
}

.blok-map__sort-label {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.blok-map__sort select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #475569;
    padding-right: 20px;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.blok-map__sort select:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    border-radius: 6px;
}

.blok-map__toggle {
    border: 1px solid var(--brand-color-1);
    background: var(--brand-color-1);
    color: #fff;
    padding: 7px 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blok-map__toggle:hover {
    background: #fff;
    color: var(--brand-color-1);
    border-color: var(--brand-color-1);
}

.blok-map__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: calc(-240px + 100vh);
    /* Ensure body doesn't constrain height */
    max-height: none;
    overflow: visible;
}

.blok-map__results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: -8px;
    scrollbar-width: thin;
    /* Allow results to grow naturally */
    min-height: 0;
    overflow: visible;
}

.blok-map__results::-webkit-scrollbar {
    width: 8px;
}

.blok-map__results::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.24);
    border-radius: 999px;
}

.blok-map__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}

.blok-map--map-hidden .blok-map__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blok-map--map-hidden .blok-card__media {
    min-height: 280px;
}

/* Ensure page can scroll for infinite scroll */
body.blok-map-search {
    overflow-y: auto !important;
    height: auto !important;
}

body.blok-map-search html {
    overflow-y: auto !important;
    height: auto !important;
}

/* Add padding only on the map-search page */
body.blok-map-search .blok-map__inner {
    padding: 10px 26px;
}

.blok-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 345px; /* Changed from fixed height to min-height */
    width: 100%;
}

.blok-card__media {
    position: relative;
    background: #fff;
    min-height: 200px;
    overflow: hidden;
}

.blok-card__image-link {
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Carousel track wrapper - holds all images side by side */
.blok-card__carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Individual carousel images */
.blok-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Active image - centered */
.blok-card__image.carousel-active {
    transform: translateX(0);
    z-index: 2;
}

/* Next image - positioned to the right, ready to slide in */
.blok-card__image.carousel-next {
    transform: translateX(100%);
    z-index: 1;
}

/* Previous image - positioned to the left, ready to slide in */
.blok-card__image.carousel-prev {
    transform: translateX(-100%);
    z-index: 1;
}

/* Exiting left */
.blok-card__image.carousel-exit-left {
    transform: translateX(-100%);
    z-index: 1;
}

/* Exiting right */
.blok-card__image.carousel-exit-right {
    transform: translateX(100%);
    z-index: 1;
}

/* Photo Carousel Navigation */
.blok-card__carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 45;
    opacity: 1;
    transition: all 0.35s ease;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.blok-card__carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blok-card__carousel-btn:active {
    transform: translateY(-50%);
}

.blok-card__carousel-btn--prev {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.blok-card__carousel-btn--next {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.blok-card__carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    pointer-events: none;
}

.blok-card__carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.blok-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    height: 22px;
    padding: 0px 6px;
    border-radius: 2px;
    color: rgb(255, 255, 255);
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    margin: 0px;
    z-index:50;
}

.blok-card__badge--state {
    top: 14px;
    left: 14px;
}

.blok-card__badge--state-new {
    background: var(--brand-color-4); /* Green for new listings */
}

.blok-card__badge--state-for-sale {
    background: var(--brand-color-4);
}

.blok-card__badge--state-price-reduced {
    background: rgb(251 122 31 / 82%);
}

.blok-card__badge--state-offer-accepted {
    background: rgba(59, 130, 246, 0.95);
}

.blok-card__badge--state-sold {
    background: rgba(190, 18, 60, 0.9);
}

.blok-card__badge--state-offer-made {
    background: rgb(251 122 31 / 82%);
}

.blok-card__badge--photos {
    bottom: 14px;
    left: 14px;
}

.blok-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* Allow body to grow with content, changed from height: 100% */
    padding-top: 10px;
    padding-bottom: 15px; /* Add bottom padding for spacing */
    position: relative;
}

/* Contact Us Button */
.blok-card__contact-btn {
    position: absolute;
    top: 10px;
    right: 0;
    background: transparent;
    color: #000000;
    border: solid 1px #000000;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.blok-card__contact-btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-color-1);
    transition: top 0.3s ease;
    z-index: -1;
}

.blok-card__contact-btn:hover {
    border-color: var(--brand-color-1);
    color: var(--brand-color-2);
}

.blok-card__contact-btn:hover::before {
    top: 0;
}

.blok-card__contact-btn:active {
    opacity: 0.9;
}

.blok-map .blok-card__body {
    align-items: flex-start;
    text-align: left;
}

.blok-card__price {
    margin: 0 !important;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    color: #111111;
}

.blok-card__stats-line {
    margin: 0 !important;
    font-size: 15px;
    color: #555555;
}

.blok-card__address {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #555555;
}

/* Limit address to 1 line with ellipsis only when map is visible */
.blok-map:not(.blok-map--map-hidden) .blok-card__address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blok-card__address-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blok-card__address-link:hover {
    color: var(--brand-color-4);
}

.blok-card__description {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tags for On Show and Mandate Type - positioned on photo bottom left */
.blok-card__tags {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 40;
    max-width: calc(100% - 60px); /* Leave space for photo count badge */
}

.blok-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    line-height: 1;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.blok-card-tag--on-show {
    background-color: var(--brand-color-1);
    color: var(--fourth-color);
}

.blok-card-tag--no-transfer {
    background-color: var(--brand-color-1);
    color: var(--fourth-color);
}

.blok-card-tag--mandate {
    background-color: var(--brand-color-1);
    color: var(--fourth-color);
}

.blok-card__location {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.blok-card__meta {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.blok-card__primary-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.blok-card__primary-link:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.blok-map__empty {
    background: #fff;
    border-radius: 18px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.blok-map__empty h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #0f172a;
}

.blok-map__empty p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.blok-map__pagination {
    display: flex;
    justify-content: center;
}

.blok-map__pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blok-map__pagination a,
.blok-map__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 5px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.03);
    color: #555555;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blok-map__pagination .current,
.blok-map__pagination a:hover {
    background-color: var(--brand-color-1);
    color: #fff;
}

/* Infinite scroll styles */
.blok-map__infinite-scroll {
    margin: 40px 0 20px;
}

.blok-map__loading-more,
.blok-map__infinite-end {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.blok-map__loading-more span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blok-map__loading-more span::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--brand-color-1);
    border-top-color: transparent;
    border-radius: 50%;
    animation: blok-spinner 0.6s linear infinite;
}

@keyframes blok-spinner {
    to { transform: rotate(360deg); }
}

.blok-map__infinite-end {
    font-weight: 500;
    color: #999;
}

/* Scroll to top button */
.blok-map__scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-color-1, #0066cc);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.blok-map__scroll-top:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blok-map__scroll-top:hover {
    background-color: var(--second-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.blok-map__scroll-top:active {
    transform: translateY(0);
}

.blok-map__scroll-top svg {
    width: 24px;
    height: 24px;
}

.blok-map__map {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.blok-map__canvas {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.blok-map--map-hidden .blok-map__map {
    display: none;
}

.leaflet-container {
    font-family: inherit;
}

@media (min-width: 1024px) {
    .blok-map__masthead {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .blok-map__masthead-info {
        align-self: flex-end;
    }

    .blok-map__toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .blok-map__body {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        /* Ensure body can grow on desktop for infinite scroll */
        max-height: none;
        overflow: visible;
    }

    .blok-map__map {
        order: 0;
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
        position: sticky;
        top: 112px;
        height: calc(100vh - 140px); /* Fixed height for sticky map */
        align-self: flex-start;
    }

    .blok-map__results {
        order: 1;
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        /* Allow results to grow */
        min-height: 0;
        overflow: visible;
    }
}

.blok-map--map-hidden .blok-map__body {
    display: block;
}

.blok-map--map-hidden .blok-map__results {
    max-width: 100%;
    flex: none;
}

body.blok-map-search #header {
    background-color: #000 !important;
}

@media (max-width: 1023px) {
    .blok-map__results {
        overflow: visible;
        padding-right: 0;
        margin-right: 0;
        max-height: 1000px;
        overflow-y: auto;
    }

    .blok-map__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blok-map--map-hidden .blok-map__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blok-map--map-hidden .blok-map__results {
        max-height: none;
        overflow: visible;
    }

    /* Removed overflow: scroll to allow page-level scrolling for infinite scroll */
}

@media (max-width: 768px) {
    .blok-map {
        padding: 90px 0 48px;
    }

    .blok-map__inner {
        padding: 0 18px;
    }

    .blok-map__cards {
        grid-template-columns: 1fr;
    }

    .blok-map--map-hidden .blok-map__cards {
        grid-template-columns: 1fr;
    }

    .blok-map__canvas {
        min-height: 360px;
    }

    /* Removed overflow: scroll to allow page-level scrolling for infinite scroll */
}

/* Custom theme color marker styles */
.blok-custom-marker {
    background: transparent;
    border: none;
}

.blok-marker-inner {
    background: var(--brand-color-4);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-align: center;
    border: 2px solid var(--brand-color-4);
    filter: brightness(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blok-marker-inner::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--brand-color-4);
    filter: brightness(0.95);
}

/* Marker pulse animation */
.blok-marker-pulse .blok-marker-inner {
    animation: marker-pulse 1s ease-in-out 2;
}

@keyframes marker-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
}

/* Marker Cluster Styles */
.blok-marker-cluster {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--brand-color-4);
    border-radius: 50%;
    text-align: center;
    font-family: var(--blok-map-font-heading);
    font-weight: 700;
}

.blok-cluster-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color-4);
    font-size: 14px;
}

.blok-marker-cluster-small {
    width: 40px;
    height: 40px;
}

.blok-marker-cluster-small .blok-cluster-inner {
    font-size: 13px;
}

.blok-marker-cluster-medium {
    width: 50px;
    height: 50px;
}

.blok-marker-cluster-medium .blok-cluster-inner {
    font-size: 15px;
}

.blok-marker-cluster-large {
    width: 60px;
    height: 60px;
}

.blok-marker-cluster-large .blok-cluster-inner {
    font-size: 17px;
    font-weight: 800;
}

/* Map popup styles */
.blok-map-popup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 4px;
    font-family: var(--blok-map-font-body);
    min-width: 260px;
}

.blok-map-popup__thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.blok-map-popup__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blok-map-popup__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

.blok-map-popup__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.blok-map-popup__price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--blok-map-font-heading);
    line-height: 1.2;
}

.blok-map-popup__features {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.blok-map-popup__address {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
}

.blok-map-popup__location {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.blok-map-popup__link {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background: var(--brand-color-4);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.blok-map-popup__link:hover {
    opacity: 0.85;
    color: #ffffff !important;
}

.blok-map-popup__suburb-search {
    display: block;
    width: 100%;
    flex-basis: 100%;
    margin-top: 0;
    padding: 10px 16px;
    background: #ffffff;
    color: #333;
    border: 1px solid #dddddd;
    border-top: 2px solid #e9ecef;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-1) !important;
    order: 3;
}

.blok-map-popup__suburb-search:hover {
    background: var(--brand-color-4);
    color: #fff;
    border-color: var(--brand-color-4);
}

.blok-map-popup__suburb-search:active {
    background: #dee2e6;
}

/* Override Leaflet popup styles */
.leaflet-popup-content-wrapper {
    padding: 12px !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
    min-width: 260px !important;
}

.blok-custom-popup .leaflet-popup-close-button {
    font-size: 20px !important;
    padding: 4px 8px !important;
}

/* Leaflet tile fix - only on larger screens (tablets and desktops) */
@media (min-width: 769px) {
    .leaflet-container img.leaflet-tile {
        mix-blend-mode: normal;
        width: 256px !important;
        height: 256px !important;
    }
}

/* Contact Modal */
.blok-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blok-contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.blok-contact-modal__container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.blok-contact-modal__content {
    position: relative;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blok-contact-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.2s ease;
    z-index: 10;
}

.blok-contact-modal__close:hover {
    color: #000;
}

.blok-contact-modal__close svg {
    display: block;
}

.blok-contact-modal .blok-sidebar-card {
    margin: 0;
    border: 1px solid #dde2eb;
    padding: clamp(24px, 3vw, 32px);
}

.blok-contact-modal .blok-enquiry {
    display: grid;
    gap: 18px;
}

.blok-contact-modal .blok-enquiry__title {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2933;
}

.blok-contact-modal .blok-enquiry__subtitle {
    margin: 0;
    color: #6b7785;
    font-size: 0.95rem;
}

.blok-contact-modal .blok-field {
    display: grid;
    gap: 6px;
}

.blok-contact-modal .blok-field__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7785;
}

.blok-contact-modal .blok-field__control {
    border: 1px solid #dde2eb;
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.blok-contact-modal .blok-field__control:focus {
    outline: none;
    border-color: var(--brand-color-1, #004F71);
    box-shadow: 0 0 0 4px rgba(0, 79, 113, 0.12);
}

.blok-contact-modal .blok-button {
    border: none;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blok-contact-modal .blok-button--primary {
    background: var(--brand-color-1, #004F71);
    color: #ffffff;
    width: 100%;
}

.blok-contact-modal .blok-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 113, 0.2);
}

.blok-contact-modal .blok-button--primary:active {
    transform: translateY(0);
}

.blok-card.is-active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 3px #00000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    padding: 5px;
}

/* Map Search Page - Search segment takes 50% width */
.blok-map .blok-quickbar__search {
    flex: 1 1 50%;
    max-width: 50%;
}

/* Other filter segments share the remaining 50% equally */
.blok-map .blok-propsync-select {
    flex: 1 1 auto;
    min-width: 0;
}

/* Responsive: Full width on mobile */
@media (max-width: 768px) {
    .blok-map .blok-quickbar__search {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .blok-map .blok-propsync-select {
        flex: 1 1 100%;
    }
}