/* 2 ustunli layout */
.house-details {
    display: grid;
    grid-template-columns: 1fr 54%;
    gap: 10px;
    margin-top: 15px;
    align-items: start;
}

/* Card */
.hd-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.hd-card__head {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.hd-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.hd-card__body {
    padding: 10px 12px;
}

/* Rows */
.hd-row {
    display: grid;
    grid-template-columns: minmax(150px, 100px) 1fr; /* label ustuni MIN keng */
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hd-row:last-child {
    border-bottom: 0;
}

/* MUHIM: label harf-harf bo‘linmasin */
.hd-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;

    white-space: normal;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* qiymat uzun bo‘lsa o‘zi chiroyli bo‘linadi */
.hd-value {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Gallery */
.hd-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hd-gallery__item:first-child {
    grid-column: 1 / -1;
}

.hd-gallery__item img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    object-fit: cover;
}

.hd-gallery__item:first-child img {
    aspect-ratio: 16/9;
}

.hd-gallery__item:not(:first-child) img {
    aspect-ratio: 16/10;
}

/* Responsive */
@media (max-width: 992px) {
    .house-details {
        grid-template-columns: 1fr;
    }

    .hd-row {
        gap: 4px;
    }
}


/*---------------------------------  Telegram matn va youtube video -----------------------------------------   */

.detail-content-block {
    width: 100%;
}

/* 2 ustunli grid: RIGHT widthni --right-col bilan boshqarasiz */
.detail-content-grid {
    --right-col: 55%; /* default */
    display: grid;
    grid-template-columns: minmax(0, calc(100% - var(--right-col))) minmax(0, var(--right-col));
    gap: 14px;
    align-items: start;
}

/* card dizayn */
.detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.detail-card-head {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.detail-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.detail-card-body {
    padding: 10px 12px;
}

/* text ixcham, chiroyli */
.detail-text {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    word-break: break-word;
}

/* video responsive */
.video-frame {
    position: relative;
    width: 95%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin: 10px 12px 12px;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* video yo'q bo'lsa */
.video-empty {
    margin: 10px 12px 12px;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    background: #fafafa;
}

/* Responsive: 992px dan past bo'lsa 1 ustun */
@media (max-width: 992px) {
    .detail-content-grid {
        grid-template-columns: 1fr;
    }
}


/*---------------------------------  Yandex Map styles -----------------------------------------   */
.map-card{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    box-shadow:0 6px 16px rgba(0,0,0,.06);
    overflow:hidden;
}

.map-card__head{
    padding:10px 12px;
    border-bottom:1px solid #f1f5f9;
    background:#fff;
}

.map-card__title{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}

.map-card__body{
    padding:10px 12px 12px;
}

.map-frame{
    position:relative;
    width:100%;
    aspect-ratio: 16 / 9;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #f1f5f9;
    background:#f8fafc;
}

.map-frame iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

.map-open{
    display:inline-block;
    margin-top:10px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    color:#0f766e;
}

.map-empty{
    padding:12px;
    font-size:13px;
    color:#64748b;
    border:1px dashed #e2e8f0;
    border-radius:10px;
    background:#fafafa;
}



