:root {
    --blok-listing-max-width: 1200px;
    --blok-listing-gutter: clamp(16px, 4vw, 40px);
    --blok-color-surface: #ffffff;
    --blok-color-surface-alt: #f5f7fa;
    --blok-color-border: #dde2eb;
    --blok-color-primary: var(--brand-color-1);
    --blok-color-primary-light: rgba(0, 79, 113, 0.08);
    --blok-color-text: #1f2933;
    --blok-color-muted: #6b7785;
    --blok-radius-lg: 18px;
    --blok-radius-md: 12px;
    --blok-radius-sm: 8px;
    --blok-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --blok-transition: 0.25s ease;
}

.blok-listing {
    margin: 0 auto clamp(48px, 8vw, 96px);
    color: var(--blok-color-text);
    width: 90%;
}

.blok-listing--error {
    display: flex;
    min-height: 40vh;
    align-items: center;
    justify-content: center;
}

.blok-listing__hero {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    margin-bottom: clamp(32px, 5vw, 10px);
}

/* Feature Carousel Styles */
.carousel-container {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 712px;
    overflow: visible;
}

.carousel-main {
    width: 100%;
    max-width: 2200px;
    height: 592px;
    position: relative;
    margin-bottom: 0;
    font-size: 12px;
    font-family: Arial;
}

.carousel-feature {
    position: absolute;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0 15px 3px rgba(0, 0, 0, .1);
    background-color: #fff;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-feature a {
    font-size: 18px;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-image {
    border: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Image Counter */
.carousel-counter {
    position: absolute;
    bottom: 80px;
    left: 73.5%;
    transform: translateX(-50%);
    margin-left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-counter__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
}

/* Navigation arrows on the sides */
.carousel-navigation-arrow {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    width: 64px;
    height: 64px;
    color: var(--brand-color-1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 100;
    position: absolute;
}

.carousel-navigation-arrow:hover {
    transform: scale(1.2);
    color: var(--brand-color-1);
}

.carousel-navigation-arrow--left {
    left: 200px;
}

.carousel-navigation-arrow--right {
    right: 200px;
}

.carousel-navigation-arrow svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Large desktop screens (1920px+) */
@media (min-width: 1441px) {
    .carousel-counter {
        bottom: 65px;
        left: 74.2%;
    }
}

/* Ultra-wide desktop screens (2560px+) */
@media (min-width: 1921px) {
    .carousel-container {
        height: 900px;
    }
    
    .carousel-main {
        height: 788px !important;
        max-width: 2800px !important;
    }
    
    .carousel-feature {
        max-width: 1400px !important;
        max-height: 788px !important;
    }
    
    .carousel-counter {
        bottom: 70px;
        left: 74.5%;
    }
    
    .video-modal-trigger {
        bottom: 75px;
    }
    
    .carousel-navigation-arrow svg {
        width: 80px;
        height: 80px;
    }
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .carousel-main {
        height: 478px !important;
        max-width: 100% !important;
        max-height: 478px !important;
    }
    
    .carousel-feature {
        max-width: 850px !important;
        max-height: 478px !important;
    }
    
    .carousel-container {
        padding: 30px 0;
        margin-bottom: 40px;
        height: 550px;
    }
    
    .carousel-counter {
        bottom: 50px !important;
        left: auto !important;
        right: 22% !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 8px 16px !important;
        border-radius: 4px !important;
    }
    
    .carousel-navigation-arrow--left {
        left: 40px;
    }
    
    .carousel-navigation-arrow--right {
        right: 40px;
    }
    
    .carousel-navigation-arrow svg {
        width: 50px;
        height: 50px;
    }
    
    .blok-listing-gallery__video-btn {
        bottom: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 1400px) {
    .carousel-main {
        height: 562px !important;
        max-width: 1000px !important;
        max-height: 562px !important;
    }
    
    .carousel-feature {
        max-width: 1000px !important;
        max-height: 562px !important;
    }
    
    .carousel-container {
        padding: 50px 0;
        margin-bottom: 60px;
        height: 662px;
    }
    
    .carousel-counter {
        margin-left: 0;
        bottom: 75px;
    }
    
    .carousel-navigation-arrow svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 1200px) {
    .carousel-main {
        height: 500px !important;
        max-width: 890px !important;
        max-height: 500px !important;
    }
    
    .carousel-feature {
        max-width: 890px !important;
        max-height: 500px !important;
    }
    
    .carousel-container {
        padding: 40px 0;
        margin-bottom: 60px;
        height: 600px;
    }
    
    .carousel-counter {
        bottom: 70px;
        left: 70%;
    }
    
    .carousel-navigation-arrow--left {
        left: 120px;
    }
    
    .carousel-navigation-arrow--right {
        right: 120px;
    }
    
    .carousel-navigation-arrow svg {
        width: 56px;
        height: 56px;
    }
    
    .blok-listing-gallery__video-btn {
        bottom: 70px;
        left: 30%;
    }
}

@media (max-width: 1024px) {
    .carousel-main {
        height: 366px !important;
        max-width: 100% !important;
        max-height: 366px !important;
    }
    
    .carousel-feature {
        max-width: 650px !important;
        max-height: 366px !important;
    }
    
    .carousel-container {
        padding: 20px 0;
        margin-bottom: 40px;
        gap: 15px;
        height: 430px;
    }
    
    /* Position counter at bottom right of center image */
    .carousel-counter {
        bottom: 50px !important;
        left: auto !important;
        right: 22% !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 8px 16px !important;
        border-radius: 4px !important;
    }
    
    /* Position arrows outside the main image area */
    .carousel-navigation-arrow {
        width: 44px;
        height: 44px;
    }
    
    .carousel-navigation-arrow svg {
        width: 44px;
        height: 44px;
    }
    
    .carousel-navigation-arrow--left {
        left: 20px;
    }
    
    .carousel-navigation-arrow--right {
        right: 20px;
    }
    
    /* Position video button at bottom center of center image */
    .blok-listing-gallery__video-btn {
        bottom: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 768px) {
    .blok-listing__hero {
        min-height: auto;
        max-height: none;
        height: auto;
        gap: 0;
        margin-bottom: 20px;
        overflow: visible;
    }
    
    .carousel-container {
        gap: 0;
        padding: 0;
        margin-top: 0;
        margin-bottom: 20px;
        flex-direction: row;
        max-height: none;
        height: auto;
        position: relative;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        overflow: visible;
    }
    
    .carousel-main {
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        width: 100% !important;
        overflow: visible;
        position: relative;
    }
    
    .carousel-feature {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        max-width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 1 !important;
        box-shadow: none;
        overflow: visible;
    }
    
    .carousel-feature a {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .carousel-feature .carousel-image {
        width: 100% !important;
        height: auto !important;
        max-height: 500px !important;
        max-width: 100% !important;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    .carousel-navigation-arrow {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        position: absolute !important;
        z-index: 10;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 50%;
        transition: background 0.2s ease;
    }
    
    .carousel-navigation-arrow:hover,
    .carousel-navigation-arrow:active {
        background: rgba(0, 0, 0, 0.6) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .carousel-navigation-arrow svg {
        width: 28px;
        height: 28px;
        fill: white;
        color: white;
        filter: none;
    }
    
    /* Position arrows on sides of single image */
    .carousel-navigation-arrow--left {
        left: 12px !important;
    }
    
    .carousel-navigation-arrow--right {
        right: 12px !important;
    }
    
    /* Position counter for mobile */
    .carousel-counter {
        bottom: 12px !important;
        left: auto !important;
        right: 12px !important;
        transform: none !important;
        margin-left: 0 !important;
        background: rgba(0, 0, 0, 0.6);
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    /* Position video button for mobile */
    .blok-listing-gallery__video-btn {
        bottom: 12px !important;
        left: 50% !important;
        right: auto !important;
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        transform: translateX(-50%) !important;
    }
    
    .blok-listing-gallery__video-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 480px) {
    .carousel-main {
        height: auto !important;
        width: 100%;
        max-height: none !important;
    }
    
    .carousel-container {
        margin-bottom: 16px;
        padding: 0;
        max-height: none;
    }
    
    .blok-listing__hero {
        min-height: auto;
        max-height: none;
        height: auto;
        gap: 0;
        margin-bottom: 12px;
        overflow: visible;
    }
    
    .carousel-feature {
        height: auto !important;
        max-height: none !important;
    }
    
    .carousel-feature .carousel-image {
        height: auto !important;
        max-height: none !important;
    }
    
    .carousel-navigation-arrow {
        width: 38px !important;
        height: 38px !important;
    }
    
    .carousel-navigation-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .carousel-navigation-arrow--left {
        left: 8px !important;
    }
    
    .carousel-navigation-arrow--right {
        right: 8px !important;
    }
    
    .carousel-counter {
        bottom: 10px !important;
        right: 10px !important;
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    .carousel-counter__icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .blok-listing-gallery__video-btn {
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    .blok-listing-gallery__video-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Placeholder for no photos */
.blok-listing-gallery__placeholder {
    background: var(--blok-color-surface-alt);
    border-radius: var(--blok-radius-lg);
    padding: 60px 20px;
    text-align: center;
    color: var(--blok-color-muted);
    font-size: 18px;
}

/* Similar listings section - single row with 4 articles max */
#similar-listings .blok-map__results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding-right: 0;
    margin-right: 0;
    overflow: visible;
    margin-top: 20px;
    margin-bottom: 20px;
}

#similar-listings .blok-map__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 0;
    align-content: start;
}

/* Force single row layout - override all responsive breakpoints */
@media (max-width: 1200px) {
    #similar-listings .blok-map__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    #similar-listings .blok-map__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px; /* Slightly smaller gap on smaller screens */
    }
}

@media (max-width: 768px) {
    #similar-listings .blok-map__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Only on mobile show 2 per row */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    #similar-listings .blok-map__cards {
        grid-template-columns: 1fr; /* Only on very small screens show 1 per row */
        gap: 15px;
    }
}

/* Styling for different listing types in similar listings */
#similar-listings .blok-card[data-sale-state="to-rent"] {
    color: var(--blok-color-primary); /* Green for rental prices */
}

#similar-listings .blok-card[data-sale-state="for-sale"] {
    color: #dc2626; /* Red for sale prices */
}

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

#similar-listings .blok-card__badge--state-to-rent {
    background-color: var(--blok-color-primary);
}

#similar-listings .blok-card__badge--state-for-sale {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Photo Carousel Navigation for Similar Listings */
#similar-listings .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;
}

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

#similar-listings .blok-card__carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

#similar-listings .blok-card:hover .blok-card__carousel-btn:active {
    transform: translateY(-50%) scale(0.98);
}

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

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

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

/* Image link positioning for carousel */
#similar-listings .blok-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 280px;
}

#similar-listings .blok-card__media {
    height: 280px;
}

#similar-listings .blok-card__media img {
    height: 280px;
    object-fit: cover;
}

/* Description limited to 2 lines */
#similar-listings .blok-card__description {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #475569;
    /* Limit to exactly 2 lines with ellipsis */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(1.4em * 2) !important; /* 2 lines max */
}

/* Address limited to 1 line */
#similar-listings .blok-card__address {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* 2-image layout for responsive */
.blok-listing-gallery__viewport[data-slides-per-view="3"] .blok-listing-gallery__slide.is-visible {
    flex: 0 0 calc(100% / 3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    /* Show 2 images on tablet */
    .blok-listing-gallery__viewport[data-slides-per-view="3"] .blok-listing-gallery__slide.is-visible {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    /* Show 1 image on mobile */
    .blok-listing-gallery__viewport[data-slides-per-view="3"] .blok-listing-gallery__slide.is-visible {
        flex: 0 0 100%;
    }
    
    .blok-listing-gallery__navigation {
        padding: 0 12px;
    }
    
    .blok-listing-gallery__nav {
        width: 40px;
        height: 40px;
    }
    
    .blok-listing-gallery__nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .blok-listing-gallery__navigation {
        padding: 0 8px;
    }
    
    .blok-listing-gallery__nav {
        width: 36px;
        height: 36px;
    }
}

.blok-listing-gallery__placeholder {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blok-color-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 12px,
        rgba(255, 255, 255, 0.08) 12px,
        rgba(255, 255, 255, 0.08) 24px
    );
}

/* Video Tour Button */
.blok-listing-gallery__video-btn {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 100;
}

.blok-listing-gallery__video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blok-listing-gallery__video-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-container {
    position: relative;
}

/* Video Modal */
.blok-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blok-video-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.blok-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.blok-video-modal__container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    z-index: 1;
}

.blok-video-modal__close {
    position: absolute;
    right: -50px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.blok-video-modal__close:hover {
    transform: scale(1.1);
}

.blok-video-modal__close svg {
    width: 32px;
    height: 32px;
}

.blok-video-modal__content {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.blok-video-modal__content iframe {
    display: block;
}

@media (max-width: 768px) {
    .blok-listing-gallery__video-btn {
        padding: 5px 10px;
        font-size: 14px;
        bottom: 15px;
    }

    .blok-listing-gallery__video-btn svg {
        width: 20px;
        height: 20px;
    }

    .blok-video-modal__container {
        width: 95%;
    }

    .blok-video-modal__close {
        top: -45px;
    }

    .blok-video-modal__close svg {
        width: 28px;
        height: 28px;
    }
}

.blok-listing-gallery__thumbs {
    overflow-x: auto;
    display: grid;
    gap: 12px;
    grid-auto-flow: column;
    padding: 0 16px 16px;
    scrollbar-width: thin;
}

.blok-listing-gallery__thumb {
    background: var(--blok-color-surface-alt);
    border: 2px solid transparent;
    border-radius: var(--blok-radius-sm);
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: border-color var(--blok-transition), transform var(--blok-transition);
}

.blok-listing-gallery__thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.blok-listing-gallery__thumb:hover {
    transform: translateY(-4px);
}

.blok-listing-gallery__thumb.is-active {
    border-color: var(--blok-color-primary);
}

.blok-line {
    width: 100%;
    height: 1px;
    background-color: rgba(17, 17, 17, 0.1);
}

.blok-listing-hero__breadcrumb {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--blok-color-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.blok-listing-hero__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blok-listing-hero__breadcrumb a:hover {
    color: var(--blok-color-primary);
}

.blok-listing-hero__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 8px;
    line-height: 1.1;
}

.blok-listing-hero__address-line {
    font-size: 24px;
    font-weight: 600;
    line-height: 34px;
    text-align: left;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding-left: 4px;
    width: calc(100% - 48px);
}

.blok-listing-hero__address-subline {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #6b7785;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
    padding-left: 4px;
}

.blok-listing-hero__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 12px 4px;
}

.blok-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    line-height: 1;
}

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

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

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

.blok-listing-hero__show-days {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 16px 4px;
}

.blok-show-day-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #6b7785;
    line-height: 1.5;
}

.blok-show-day-icon {
    flex-shrink: 0;
    color: var(--brand-color-1)
}

.blok-show-day-text {
    flex: 1;
}

.blok-add-to-calendar-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-color-1);
    background: transparent;
    border: 1px solid var(--brand-color-1);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.blok-add-to-calendar-btn:hover {
    background: var(--brand-color-1);
    color: #ffffff;
}

/* Show Days Toggle Button */
.blok-show-days-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-color-1);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    justify-content: flex-start;
}

.blok-show-days-toggle:hover {
    color: var(--brand-color-4);
}

.blok-show-days-toggle__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blok-show-days-toggle__text {
    line-height: 1;
}

/* Calendar Modal */
.blok-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blok-calendar-modal[hidden] {
    display: none;
}

.blok-calendar-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.blok-calendar-modal__container {
    position: relative;
    background: #ffffff;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.blok-calendar-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #6b7785;
    z-index: 10;
    pointer-events: auto;
}

.blok-calendar-modal__close:hover {
    background: #f5f7fa;
    color: #1f2937;
}

.blok-calendar-modal__content {
    padding: 32px 24px 24px;
}

.blok-calendar-modal__content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.blok-calendar-modal__subtitle {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7785;
}

.blok-calendar-modal__buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.blok-calendar-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blok-calendar-modal__btn:hover {
    border-color: #cbd5e1;
}

.blok-calendar-modal__btn--google:hover {
    border-color: #1976D2;
}

.blok-calendar-modal__btn--outlook:hover {
    border-color: #D32F2F;
}

.blok-calendar-modal__btn--office:hover {
    border-color: #0078D4;
}

.blok-calendar-modal__btn svg {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.blok-calendar-modal__download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blok-calendar-modal__download svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    fill: #1f2937;
}

.blok-calendar-modal__download span {
    font-size: 9px;
    font-weight: 600;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    text-align: center;
}

.blok-calendar-modal__download:hover {
    border-color:  var(--brand-color-1);
}

.blok-calendar-modal__download:hover svg {
    fill: var(--brand-color-1);
}

.blok-calendar-modal__download:hover span {
    color: var(--brand-color-1);
}

@media (max-width: 640px) {
    .blok-add-to-calendar-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .blok-calendar-modal__content {
        padding: 24px 16px 16px;
    }
    
    .blok-calendar-modal__content h4 {
        font-size: 20px;
    }
}

.blok-listing-hero__address-pin {
    font-size: 20px;
}

.blok-listing-hero__time-on-market {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    text-align: left;
    color: #aaaaaa;
    margin: 0 0 10px;
    padding-left: 4px;
}

/* Listing hero summary with favorite button */
.blok-listing-hero__summary {
    position: relative;
}

/* On mobile, position favorite button next to price */
@media (max-width: 767px) {
    .blok-listing-hero__summary {
        display: flex;
        flex-direction: column;
    }
    
    .blok-listing-detail-favorite {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }

}

.blok-listing-hero__price {
    font-size: 48px;
    color: #111111;
    margin: 0 0 16px;
    font-family: var(--font-2);
    line-height: 58px;
    display: inline-block;
}

.blok-price-suffix {
    font-size: 24px;
    font-weight: normal;
}

.blok-listing-hero__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.blok-listing-hero__address {
    font-size: 1rem;
    color: var(--blok-color-muted);
    margin: 0;
}

.blok-listing-hero__specs-text {
    font-size: clamp(1rem, 1vw, 1rem);
    font-weight: 500;
    line-height: 18px;
    text-align: left;
    color: var(--blok-color-text);
    padding-left: 4px;
    padding-bottom: 10px !important;
}

.blok-pill {
    background: var(--blok-color-primary-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blok-color-primary);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blok-pill--outline {
    background: transparent;
    border: 1px solid var(--blok-color-primary);
}

.blok-pill--ref {
    background: rgba(17, 24, 39, 0.06);
    color: var(--blok-color-text);
}

.blok-pill--spec {
    background: rgba(41, 56, 70, 0.08);
    color: var(--blok-color-text);
}

.blok-listing__layout {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 1080px) {
    .blok-listing__layout {
        grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
        align-items: start;
    }
}

.blok-listing__main {
    display: grid;
}

.blok-panel__title {
    margin: 0 0 16px;
    font-size: 2rem;
    padding-top: 30px;
}

.lofty-detail-wrapper {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .lofty-detail-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Mobile: single column for better readability */
@media (max-width: 599px) {
    .lofty-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

.lofty-detail-key-detail-item {
    margin: 0;
    padding: 16px 18px;
    background: var(--blok-color-surface-alt);
    border-radius: var(--blok-radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: none;
    min-width: 0;
}

.lofty-key {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blok-color-muted);
    word-wrap: normal;
    overflow-wrap: normal;
}

.lofty-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blok-color-text);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.blok-panel__body--prose p {
    margin: 0 0 16px;
    line-height: 1.6;
    color: var(--blok-color-text);
    margin-top: 8px;
    margin-bottom: 8px;
}

.blok-panel__body{
    padding-bottom: 24px;
    padding-top: 8px;
}

.blok-feature-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 600px) {
    .blok-feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.blok-feature-card {
    border: 1px solid var(--blok-color-border);
    padding: 16px 20px;
    background: var(--blok-color-surface-alt);
}

.blok-feature-card__label {
    font-size: 0.82rem;
    color: var(--blok-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blok-feature-card__value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 6px;
}

.blok-details-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .blok-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Mobile: single column for better readability */
@media (max-width: 639px) {
    .blok-details-grid {
        grid-template-columns: 1fr;
    }
}

.blok-details-grid dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blok-color-muted);
    margin-bottom: 4px;
    word-wrap: normal;
    overflow-wrap: normal;
}

.blok-details-grid dd {
    margin: 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.blok-tag-list {
    list-style: none;
    padding: 0;
    margin: -6px;
    display: flex;
    flex-wrap: wrap;
}

.blok-tag-list__item {
    margin: 6px;
    padding: 8px 14px;
    background: var(--blok-color-surface-alt);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--blok-color-text);
}

.blok-downloads {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.blok-downloads__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blok-color-surface-alt);
    padding: 14px 18px;
    border-radius: var(--blok-radius-md);
    text-decoration: none;
    color: var(--blok-color-text);
    transition: background var(--blok-transition), transform var(--blok-transition);
}

.blok-downloads__link:hover {
    background: rgba(0, 79, 113, 0.12);
    transform: translateY(-2px);
}

.blok-downloads__icon {
    font-size: 1.4rem;
}

.blok-video-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--blok-radius-lg);
    overflow: hidden;
    box-shadow: var(--blok-shadow-soft);
}

.blok-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.blok-listing-map {
    height: 360px;
    overflow: hidden;
    box-shadow: var(--blok-shadow-soft);
    margin-top: 30px;
    margin-bottom: 30px;
}

.blok-listing__sidebar {
    display: grid;
    gap: 24px;
}

.blok-sidebar-card {
    border: 1px solid var(--blok-color-border);
    padding: clamp(24px, 3vw, 32px);
}

.blok-sidebar-card__price {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blok-color-primary);
}

.blok-sidebar-card__meta {
    margin: 0 0 24px;
    color: var(--blok-color-muted);
    font-weight: 600;
}

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

.blok-enquiry__title {
    margin: 0;
    font-size: 1.25rem;
}

.blok-enquiry__subtitle {
    margin: 0;
    color: var(--blok-color-muted);
    font-size: 0.95rem;
}

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

.blok-field__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blok-color-muted);
}

.blok-field__control {
    border: 1px solid var(--blok-color-border);
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color var(--blok-transition), box-shadow var(--blok-transition);
    width: 100%;
}

.blok-field__control:focus {
    outline: none;
    border-color: var(--blok-color-primary);
    box-shadow: 0 0 0 4px rgba(0, 79, 113, 0.12);
}

.blok-button {
    border: none;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--blok-transition), box-shadow var(--blok-transition);
}

.blok-button--primary {
    background: var(--blok-color-primary);
    color: #ffffff;
}

.blok-button--primary:hover {
    transform: translateY(-2px);
}

.blok-sidebar-card--agents {
    background: var(--blok-color-surface-alt);
}

.blok-sidebar-card__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.blok-sidebar-card--share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blok-sidebar-card--share .blok-sidebar-card__title {
    margin: 0;
    flex-shrink: 0;
}

.blok-agent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.blok-agent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.blok-agent__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

body.blok-listing-detail #header {
    background-color: #000 !important;
}

.blok-agent__avatar {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    background: #dfe5ec;
}

.blok-agent__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9baf1e;
}

.blok-agent__placeholder-icon {
    display: block;
    width: 32px;
    height: 32px;
}

.blok-agent__name {
    margin: 0 0 4px;
    font-weight: 600;
}

.blok-agent__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.blok-agent__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--blok-color-border, #dfe5ec);
    border-radius: 50%;
    background: var(--blok-color-surface-alt, #f8f9fa);
    color: var(--blok-color-text, #333);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.blok-agent__icon-btn:hover {
    background: var(--blok-color-primary, #004f71);
    color: white;
    border-color: var(--blok-color-primary, #004f71);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blok-agent__icon-btn svg {
    flex-shrink: 0;
}

/* Show desktop phone button (reveal) on larger screens */
.blok-agent__phone-desktop {
    display: inline-flex;
}

.blok-agent__phone-mobile {
    display: none;
}

/* Show mobile phone button (direct call) on smaller screens */
@media (max-width: 768px) {
    .blok-agent__phone-desktop {
        display: none;
    }
    
    .blok-agent__phone-mobile {
        display: inline-flex;
    }
}

.blok-agent__contact {
    display: block;
    color: var(--blok-color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 8px;
}

.blok-agent__contact:hover {
    text-decoration: underline;
}

.blok-agent__bio-btn {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fourth-color);
    background-color: var(--brand-color-1);
    border: 1px solid var(--brand-color-1);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    max-width: 160px;
}

.blok-agent__bio-btn:hover {
    background-color: var(--fourth-color);
    color: var(--brand-color-1);
    border-color: var(--brand-color-1);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 79, 113, 0.15);
}

.blok-agent__bio-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 79, 113, 0.1);
}

/* Social media icons in listing detail agent section */
.blok-agent__meta .blok-agent-socials {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    justify-content: flex-start;
    max-width: 160px;
}

.blok-agent__meta .blok-agent-socials li {
    margin: 0;
    padding: 0;
}

.blok-agent__meta .blok-agent-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color:  var(--brand-color-1);
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.blok-agent__meta .blok-agent-socials a:hover {
    background-color: var(--brand-color-4);
    color: #ffffff;
    transform: translateY(-2px);
}

.blok-agent__meta .blok-agent-socials svg {
    width: 16px;
    height: 16px;
}

.blok-share__divider {
    flex: 1;
    height: 1px;
    background-color: var(--blok-color-border);
    margin: 0 8px;
}

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

.blok-share__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--blok-color-border);
    text-decoration: none;
    background: var(--blok-color-surface);
    color: var(--blok-color-text);
    cursor: pointer;
    transition: all var(--blok-transition);
    position: relative;
}

.blok-share__button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.blok-share__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--blok-color-primary);
    background: var(--blok-color-surface);
}

/* Individual button colors on hover */
.blok-share__button:nth-child(1):hover {
    /* Facebook */
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.blok-share__button:nth-child(2):hover {
    /* X (Twitter) */
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.blok-share__button:nth-child(3):hover {
    /* WhatsApp */
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.blok-share__button:nth-child(4):hover {
    /* LinkedIn */
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.blok-share__button:nth-child(5):hover {
    /* Copy Link */
    background: var(--blok-color-primary);
    border-color: var(--blok-color-primary);
    color: #ffffff;
}

[data-blok-copy-success] {
    position: relative;
}

[data-blok-copy-success]::after {
    content: attr(data-blok-copy-success);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 6px 12px;
    background: var(--blok-color-primary);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

[data-blok-copy-success]::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--blok-color-primary);
    z-index: 10;
}

@media (max-width: 640px) {
    .blok-sidebar-card--share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .blok-share__divider {
        display: none;
    }
    
    .blok-share {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .blok-share__button {
        width: 44px;
        height: 44px;
    }
    
    .blok-share__button svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .blok-listing-gallery__thumbs {
        grid-auto-columns: 120px;
    }

    /* Keep agent layout as avatar-left, info-right on mobile */
    .blok-agent {
        gap: 12px;
    }

    .blok-agent__avatar {
        width: 100px;
        height: 133px;
    }

    .blok-agent__name {
        font-size: 0.95rem;
    }

    .blok-agent__icon-btn {
        width: 36px;
        height: 36px;
    }

    .blok-agent__icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

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

.blok-detail-wrapper{
    display: flex;
    margin-top: 15px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    flex-wrap: wrap;
}

.blok-detail-key-detail-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #555555;
    padding: 10px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    flex: none;
    width: 50%;
    display: flex;
    min-width: 0;
}

/* Mobile: full width for each detail item */
@media (max-width: 639px) {
    .blok-detail-key-detail-item {
        width: 50%;
    }
}

.blok-key {
    display: inline-block;
    width: 150px;
    margin-right: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Mobile: reduce key width */
@media (max-width: 639px) {
    .blok-key {
        margin-right: 0;
        flex: 1;
        overflow: unset;
        text-overflow: unset;
        font-weight: 600;
    }

    .blok-value {
        max-width: none !important;
        flex: 2;
        text-align: right;
        padding-right: 10px !important;
        overflow-wrap: normal !important;
    }
}

.blok-value {
    display: inline-block;
    max-width: 270px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    padding-right: 15px;
    flex: 1;
    min-width: 0;
}


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

.blok-card__media {
    position: relative;
    background: #0f172a;
    min-height: 250px;
}

.blok-card__image-link {
    display: block;
    height: 100%;
}

.blok-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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:999;
}

.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;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    color: #111111;
}

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

.blok-card__address {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
}

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

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

.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-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:999;
}

.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;
}

/* Full-screen Gallery Modal */
.blok-fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blok-fullscreen-gallery.is-active {
    display: flex;
    opacity: 1;
}

.blok-fullscreen-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.blok-fullscreen-gallery__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blok-fullscreen-gallery__close {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    backdrop-filter: blur(10px);
}

.blok-fullscreen-gallery__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blok-fullscreen-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    backdrop-filter: blur(10px);
}

.blok-fullscreen-gallery__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blok-fullscreen-gallery__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blok-fullscreen-gallery__nav--prev {
    left: 30px;
}

.blok-fullscreen-gallery__nav--next {
    right: 30px;
}

.blok-fullscreen-gallery__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blok-fullscreen-gallery__image {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.blok-fullscreen-gallery__counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blok-fullscreen-gallery__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .blok-fullscreen-gallery__nav {
        width: 50px;
        height: 50px;
    }
    
    .blok-fullscreen-gallery__nav--prev {
        left: 10px;
    }
    
    .blok-fullscreen-gallery__nav--next {
        right: 10px;
    }
    
    .blok-fullscreen-gallery__content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .blok-fullscreen-gallery__image {
        max-height: calc(100vh - 80px);
    }
    
    .blok-fullscreen-gallery__counter {
        bottom: -30px;
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Custom map marker styling */
.blok-custom-marker {
    background: transparent;
    border: none;
}

.blok-custom-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 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;
    }
}

/* Disclaimer Section */
.blok-disclaimer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px) 0;
}

.blok-disclaimer__content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.blok-disclaimer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.blok-disclaimer__text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--blok-color-muted, #6b7785);
}

/* Desktop: 50% width */
@media (min-width: 768px) {
    .blok-disclaimer__content {
        width: 50%;
    }
}

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

/* Show modal when display is set to flex via JavaScript */
.blok-contact-modal[style*="display: flex"] {
    display: flex;
}

@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-bond-calculator{
    margin-bottom: 30px;
}

#afford_loanterm {
    width: 50% !important;
}

/* Ensure slider container allows handle to overflow */
.ui-slider,
.ui-slider-horizontal {
    height: 8px !important;
    background: #e5e7eb !important;
    border: none !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: visible !important;
}

#afford_loanterm > div.slider.ui-slider.ui-corner-all.ui-slider-horizontal.ui-widget.ui-widget-content > div {
    background-color: var(--brand-color-1) !important;
}

/* Slider handle styling */
.ui-slider-handle {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-color: var(--brand-color-1) !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
}

.ui-slider-handle:hover {
    background-color: var(--brand-color-1) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

.ui-slider-handle:focus,
.ui-slider-handle:active {
    outline: none !important;
    background-color: var(--brand-color-1) !important;
    border: 2px solid var(--brand-color-1) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

#afford_loanterm > div.slider.ui-slider.ui-corner-all.ui-slider-horizontal.ui-widget.ui-widget-content > span:active {
    background-color: var(--brand-color-1) !important;
    border: solid 1px var(--brand-color-1) !important;
}

/* ========================================
   Bond Calculator Ad Section
   ======================================== */

.blok-calculator-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    margin: 30px 0;
}

/* Row Layout (Horizontal) */
.blok-calculator-ad--row {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Column Layout (Vertical/Stacked) */
.blok-calculator-ad--column {
    flex-direction: column;
}

/* Alignment Options */
.blok-calculator-ad--left {
    justify-content: flex-start;
}

.blok-calculator-ad--center {
    justify-content: center;
}

.blok-calculator-ad--right {
    justify-content: flex-end;
}

/* Logo Styling */
.blok-calculator-ad__logo {
    flex-shrink: 0;
}

.blok-calculator-ad__logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Buttons Container */
.blok-calculator-ad__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.blok-calculator-ad--column .blok-calculator-ad__buttons {
    justify-content: center;
}

/* Button Styling */
.blok-calculator-ad__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--blok-radius-sm, 8px);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.blok-calculator-ad__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.blok-calculator-ad__button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blok-calculator-ad {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .blok-calculator-ad__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .blok-calculator-ad__button {
        width: 100%;
        justify-content: center;
    }
    
    .blok-calculator-ad__logo img {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .blok-calculator-ad {
        padding: 15px;
    }
    
    .blok-calculator-ad__button {
        padding: 10px 20px;
        font-size: 14px;
    }
}