/* ============================================
   Villa Page V2 - Airbnb-style Layout
   ============================================ */

/* --- Photo Grid (Desktop) --- */
.villa-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    height: 460px;
    position: relative;
}

/* Smaller laptops / MacBook screens */
@media (min-width: 992px) and (max-height: 900px) {
    .villa-photo-grid {
        height: 340px;
    }
}
@media (min-width: 992px) and (max-height: 750px) {
    .villa-photo-grid {
        height: 280px;
    }
}
.villa-photo-grid .photo-item {
    overflow: hidden;
    position: relative;
}
.villa-photo-grid .photo-main {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.villa-photo-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s ease;
    display: block;
}
.villa-photo-grid .photo-item:hover img {
    filter: brightness(0.88);
}

/* "Show all photos" button */
.villa-show-all-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    background: #fff;
    color: #222;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.villa-show-all-btn:hover {
    background: #f7f7f7;
}
.villa-show-all-btn:active {
    transform: scale(0.97);
}

/* Hidden lightbox links (for remaining images beyond grid) */
.villa-gallery-hidden {
    display: none;
}

/* --- Photo Grid (Mobile) --- */
.villa-photo-mobile {
    display: none;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin: 0 -12px;
}
.villa-photo-mobile img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.villa-photo-mobile .villa-show-all-btn {
    bottom: 12px;
    right: 12px;
    font-size: 0.78rem;
    padding: 6px 12px;
}
.villa-photo-mobile .villa-photo-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .villa-photo-grid {
        display: none;
    }
    .villa-photo-mobile {
        display: block;
    }
}

/* --- Villa Header Info --- */
.villa-v2-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.25;
}
.villa-v2-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
    padding: 8px 0 16px;
}
.villa-v2-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.villa-v2-stats .stat-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #999;
}
.villa-v2-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333;
}
.villa-v2-divider {
    border: 0;
    border-top: 1px solid #ebebeb;
    margin: 20px 0;
}

/* --- Two-Column Layout --- */
.villa-v2-content {
    padding-top: 32px;
}
.villa-v2-left {
    padding-right: 48px;
}
@media (max-width: 991.98px) {
    .villa-v2-left {
        padding-right: 0;
    }
    .villa-v2-content {
        padding-top: 20px;
    }
    .villa-v2-title {
        font-size: 1.35rem;
    }
}

/* --- Villa Detail Content (embedded .hbs) --- */
.villa-v2-detail h2,
.villa-v2-detail h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #222;
}
.villa-v2-detail h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
}
.villa-v2-detail p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #444;
}
.villa-v2-detail ul {
    padding-left: 20px;
}
.villa-v2-detail ul li {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #444;
}

/* Property features inline */
.villa-v2-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.villa-v2-features li {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}
