﻿.home-hero-header {
    margin-bottom: 0 !important;
}

.detail-wrap,
.detail-wrap * {
    box-sizing: border-box;
}

.detail-wrap {
    max-width: 1200px;
    margin: 18px auto 28px;
    padding: 0 16px;
    overflow: visible;
}

.detail-title {
    margin: 18px 0 14px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
    text-align: left;
    word-break: break-word;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
    gap: 18px;
    align-items: start;
}

    .detail-grid > div,
    .detail-grid > aside {
        min-width: 0;
    }

.card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .08);
    min-width: 0;
}

.section-title,
.basic-info-side,
.house-info-title {
    position: relative;
    margin: 0 0 12px;
    padding-left: 14px;
    color: #0f172a;
}

    .section-title:before,
    .basic-info-side:before,
    .house-info-title:before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 22px;
        border-radius: 999px;
        background: linear-gradient(180deg, #ff6b6b 0%, #ef4444 100%);
        box-shadow: 0 2px 8px rgba(239, 68, 68, .22);
    }

.section-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.preview,
.gallery-main,
.preview-shell,
.basic-info-wrap,
.basic-info-grid,
.basic-info-item,
.detail-price-row,
.similar-scroll,
.map-wrap {
    min-width: 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

    .preview img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: contain;
        display: block;
        background: #000;
        user-select: none;
        -webkit-user-drag: none;
    }

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgb(59, 164, 255);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    z-index: 4;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .08), rgba(0, 0, 0, .38));
    z-index: 2;
}

    .play .btn {
        width: 66px;
        height: 66px;
        border-radius: 999px;
        background: rgba(15, 23, 42, .86);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    }

        .play .btn span {
            color: #fff;
            font-weight: 900;
            font-size: 12px;
            letter-spacing: .6px;
        }

.hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.danger {
    color: #ef4444;
}

.gallery-main,
.preview-shell {
    position: relative;
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

    .preview-nav:hover {
        background: rgba(15, 23, 42, .88);
    }

    .preview-nav.prev {
        left: 12px;
    }

    .preview-nav.next {
        right: 12px;
    }

    .preview-nav i {
        font-size: 14px;
    }

.preview-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.gallery-strip {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .7) transparent;
}

    .gallery-strip::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-strip::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, .7);
        border-radius: 999px;
    }

    .gallery-strip::-webkit-scrollbar-track {
        background: transparent;
    }

#detailGalleryStrip {
    scroll-behavior: smooth;
}

.gallery-thumb {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 0;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    -webkit-tap-highlight-color: transparent;
    scroll-snap-align: start;
}

    .gallery-thumb:hover {
        transform: translateY(-1px);
    }

    .gallery-thumb.is-active {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
    }

    .gallery-thumb img {
        width: 100%;
        height: 78px;
        object-fit: cover;
        display: block;
        background: #f3f4f6;
        user-select: none;
        -webkit-user-drag: none;
    }

.thumb-vr-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    z-index: 2;
    background: rgb(59, 164, 255);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 999px;
    font-weight: 900;
}

.gallery-empty {
    color: #64748b;
    font-size: 13px;
    margin-top: 12px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.detail-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .detail-lightbox.is-open {
        display: flex;
    }

.detail-lightbox-inner {
    position: relative;
    width: min(1100px, 100%);
    height: min(82vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overflow: hidden;
}

.detail-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    background: #0f172a;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
    cursor: grab;
}

    .detail-lightbox-img.is-grabbing {
        cursor: grabbing;
    }

.detail-lightbox-close,
.detail-lightbox-nav,
.detail-lightbox-tool {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.detail-lightbox-close {
    top: -10px;
    right: -10px;
    width: 42px;
    height: 42px;
    font-size: 22px;
    font-weight: 900;
    z-index: 5;
}

.detail-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 16px;
    z-index: 4;
}

    .detail-lightbox-nav.prev {
        left: 12px;
    }

    .detail-lightbox-nav.next {
        right: 12px;
    }

.detail-lightbox-tools {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.detail-lightbox-tool {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.detail-lightbox-zoom-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 40px;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(15, 23, 42, .56);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.detail-lightbox-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(15, 23, 42, .76);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    z-index: 4;
}

/* =========================================================
   RIGHT COLUMN / SUMMARY
   ========================================================= */
.right {
    position: sticky;
    top: 5px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
   /* max-height: calc(100vh - 104px);*/
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .7) transparent;
}

    .right::-webkit-scrollbar {
        width: 6px;
    }

    .right::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, .7);
        border-radius: 999px;
    }

    .right::-webkit-scrollbar-track {
        background: transparent;
    }

.detail-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.detail-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

    .detail-price-line i {
        color: #ef4444;
        font-size: 14px;
        opacity: .95;
        flex: 0 0 auto;
    }

.detail-price-text {
    color: #ef4444;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.15;
    white-space: nowrap;
}

.detail-fav-btn.js-fav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none !important;
    outline: none;
    cursor: pointer;
    background: rgba(15, 23, 42, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .detail-fav-btn.js-fav-toggle i {
        color: #64748b !important;
        font-size: 14px;
    }

    .detail-fav-btn.js-fav-toggle.is-fav {
        background: #ef4444 !important;
    }

        .detail-fav-btn.js-fav-toggle.is-fav i {
            color: #fff !important;
        }

.meta {
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.addr {
    margin-top: 6px;
    color: #475569;
    line-height: 1.6;
    word-break: break-word;
}

.detail-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.detail-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

    .detail-summary-chip i {
        color: #64748b;
        font-size: 14px;
        flex: 0 0 auto;
    }

.detail-summary-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .detail-summary-address i {
        margin-top: 4px;
        color: #64748b;
        flex: 0 0 auto;
    }

    .detail-summary-address span {
        min-width: 0;
        word-break: break-word;
    }

.mobile-summary {
    display: none;
    margin-top: 18px;
}

.mobile-only-card {
    display: none;
}

/* =========================================================
   BASIC INFO / DESCRIPTION
   ========================================================= */
.house-info-section {
    margin-top: 18px;
}

.house-info-title {
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: 900;
}

.basic-info-card {
    padding: 0;
    overflow: hidden;
}

.basic-info-wrap {
    display: grid;
    gap: 20px;
    padding: 22px 20px;
}

.basic-info-side {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    margin-bottom: 0;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.basic-info-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.basic-info-item_if {
    grid-template-columns: 73px minmax(0, 1fr) !important;
}

.basic-info-label {
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.basic-info-value {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.desc-card {
    margin-top: 14px;
}

/* =========================================================
   AMENITIES / MAP
   ========================================================= */
.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amenity-chip {
    width: auto;
    max-width: 100%;
    min-width: 104px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.amenity-icon {
    width: auto;
    height: 22px;
    object-fit: contain;
    display: block;
}

.amenity-text {
    display: block;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.amenity-map-card {
    overflow: hidden;
}

.amenity-map-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

    .amenity-map-section .section-title {
        margin-bottom: 12px;
    }

    .amenity-map-section .map-wrap iframe {
        height: 260px;
    }

.mobile-map-card {
    display: none;
}

.muted {
    color: #64748b;
}

.map-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
}

    .map-wrap iframe {
        width: 100%;
        height: 300px;
        border: 0;
        display: block;
    }

.map-open {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(15, 23, 42, .85);
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

    .map-open:hover {
        opacity: .95;
    }

/* =========================================================
   SIMILAR
   ========================================================= */
.similar-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding: 4px 2px 0;
    align-items: stretch;
}

    .similar-scroll > .property-card--hero {
        min-width: 0;
        height: 100%;
    }

.detail-similar {
    overflow: visible;
}

    .detail-similar .property-card--hero {
        min-width: 0;
        height: 100%;
    }

        .detail-similar .property-card--hero .property-card-link--body,
        .detail-similar .property-card--hero .property-card-body {
            height: 100%;
        }

        .detail-similar .property-card--hero .property-card-title {
            min-height: calc(1.35em * 2);
        }

        .detail-similar .property-card--hero .property-card-address span {
            -webkit-line-clamp: 2;
        }

        .detail-similar .property-card--hero .property-card-meta-inline {
            min-height: 40px;
        }

    .detail-similar.is-collapsed .similar-scroll > .property-card--hero:nth-child(n+4) {
        display: none;
    }

.detail-similar-more-wrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.detail-similar-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    cursor: pointer;
    transition: .2s ease;
}

    .detail-similar-more-btn:hover {
        transform: translateY(-1px);
    }

    .detail-similar-more-btn i {
        transition: transform .2s ease;
    }

.detail-similar.is-expanded .detail-similar-more-btn i {
    transform: rotate(180deg);
}

.detail-infor-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-infor-tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 11px;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, .08);
    white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .detail-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, .88fr);
        gap: 16px;
    }

    .basic-info-grid {
        gap: 12px 20px;
    }

    .basic-info-item {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .similar-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .detail-wrap {
        margin: 14px auto 22px;
        padding: 0 14px;
        overflow-x: hidden;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .right {
        display: none;
    }

    .mobile-summary {
        display: block;
    }

    .mobile-only-card,
    .mobile-map-card {
        display: block;
    }

    .preview img {
        aspect-ratio: 16 / 10;
    }

    .gallery-strip {
        margin-top: 12px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 6px;
        grid-template-columns: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumb {
        flex: 0 0 96px;
        width: 96px;
    }

        .gallery-thumb img {
            height: 72px;
        }

    .basic-info-wrap {
        padding: 18px 16px;
        gap: 16px;
    }

    .basic-info-side {
        font-size: 18px;
    }

    .basic-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }

    .basic-info-item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 10px;
    }

    .map-wrap iframe {
        height: 260px;
    }

    .similar-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .detail-wrap {
        padding: 0 12px;
    }

    .detail-title {
        margin: 12px 0 10px;
        font-size: 22px;
    }

    .card {
        padding: 14px;
        border-radius: 16px;
    }

    .section-title,
    .basic-info-side,
    .house-info-title {
        padding-left: 12px;
    }

        .section-title:before,
        .basic-info-side:before,
        .house-info-title:before {
            width: 4px;
            height: 20px;
        }

    .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .house-info-section {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-only-card {
        display: block;
        order: 1;
        margin-top: 15px !important;
    }

    .basic-info-card {
        order: 2;
    }

    .desc-card {
        order: 3;
        margin-top: 0;
    }

    .preview img {
        aspect-ratio: 4 / 3;
        object-fit: contain;
        background: #000;
    }

    .preview-nav {
        width: 38px;
        height: 38px;
    }

        .preview-nav.prev {
            left: 8px;
        }

        .preview-nav.next {
            right: 8px;
        }

    .preview-counter {
        right: 8px;
        bottom: 8px;
        font-size: 11px;
        padding: 5px 8px;
    }

    .detail-price-row {
        align-items: flex-start;
        gap: 10px;
    }

    .detail-price-line {
        white-space: normal;
        line-height: 1.3;
    }

    .detail-price-text {
        font-size: 16px;
    }

    .meta,
    .addr {
        font-size: 14px;
        line-height: 1.55;
    }

    .detail-summary-meta {
        gap: 8px 10px;
    }

    .detail-summary-chip {
        font-size: 13px;
    }

    .amenity-list {
        gap: 10px;
    }

    .amenity-chip {
        width: auto;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        padding: 12px 8px;
        border-radius: 14px;
    }

    .amenity-text {
        font-size: 12px;
    }

    .amenity-icon {
        height: 20px;
    }

    .map-wrap iframe {
        height: 220px;
    }

    .similar-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 2px 2px 0;
    }

    .detail-similar.is-collapsed .similar-scroll > .property-card--hero:nth-child(n+3) {
        display: none;
    }

    .detail-similar.is-expanded .similar-scroll > .property-card--hero:nth-child(n+11) {
        display: none;
    }

    .detail-similar-more-wrap {
        margin-top: 14px;
    }

    .detail-similar-more-btn {
        min-height: 40px;
        padding: 0 18px;
        font-size: 14px;
    }

    .detail-lightbox {
        padding: 10px;
    }

    .detail-lightbox-close {
        top: 0;
        right: 0;
        width: 36px;
        height: 36px;
    }

    .detail-lightbox-nav {
        width: 40px;
        height: 40px;
    }

        .detail-lightbox-nav.prev {
            left: 4px;
        }

        .detail-lightbox-nav.next {
            right: 4px;
        }

    .detail-lightbox-tools {
        top: 8px;
        left: 8px;
        gap: 6px;
    }

    .detail-lightbox-tool {
        width: 36px;
        height: 36px;
    }

    .detail-lightbox-zoom-text {
        min-width: 52px;
        height: 36px;
        font-size: 11px;
        padding: 0 10px;
    }

    .detail-lightbox-counter {
        right: 10px;
        bottom: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 575px) {
    .detail-wrap {
        padding: 0 10px;
        margin: 12px auto 18px;
    }

    .detail-title {
        font-size: 18px;
        margin: 10px 0 8px;
    }

    .card {
        padding: 12px;
        border-radius: 14px;
    }

    .section-title,
    .basic-info-side,
    .house-info-title {
        padding-left: 11px;
    }

        .section-title:before,
        .basic-info-side:before,
        .house-info-title:before {
            height: 18px;
        }

    .preview img {
        aspect-ratio: 4 / 3;
        object-fit: contain;
        background: #000;
    }

    .badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 5px 8px;
    }

    .play .btn {
        width: 56px;
        height: 56px;
    }

        .play .btn span {
            font-size: 11px;
        }

    .gallery-thumb {
        flex: 0 0 76px;
        width: 76px;
        border-radius: 10px;
    }

        .gallery-thumb img {
            height: 58px;
        }

    .detail-price-text {
        font-size: 15px;
    }

    .meta,
    .addr {
        font-size: 13px;
    }

    .detail-infor-tags,
    .amenity-list {
        gap: 8px;
    }

    .detail-infor-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .basic-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .basic-info-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px;
    }

    .basic-info-label {
        font-size: 11px;
    }

    .basic-info-value {
        font-size: 12px;
    }

    .amenity-chip {
        width: auto;
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto;
        padding: 10px 8px;
    }

    .amenity-icon {
        height: 18px;
    }

    .amenity-text {
        font-size: 11px;
    }

    .map-open {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 7px 9px;
        gap: 6px;
    }

    .map-wrap iframe {
        height: 200px;
    }
}

@media (max-width: 389px) {
    .detail-wrap {
        padding: 0 8px;
    }

    .card {
        padding: 10px;
    }

    .preview-nav {
        width: 34px;
        height: 34px;
    }

    .detail-price-text {
        font-size: 14px;
    }

    .basic-info-wrap {
        padding: 14px 12px;
    }

    .basic-info-side {
        font-size: 15px;
    }

    .basic-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .basic-info-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 6px;
    }

    .basic-info-label {
        font-size: 10.5px;
    }

    .basic-info-value {
        font-size: 11.5px;
    }

    .amenity-list {
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .detail-similar.is-expanded .similar-scroll > .property-card--hero:nth-child(n+16) {
        display: none;
    }
}
