/* House Index — custom styles (Bootstrap 5 first, only what BS can't do) */

/* Hero with parallax */
.house_hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.house_hero_bg {
    position: absolute;
    inset: -20% 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}
.house_hero_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30,41,59,0.4) 0%, rgba(52,69,162,0.8) 100%);
    z-index: 1;
}
.house_hero_content {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

/* Search wrapper */
.house_search_wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.house_search_box {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 0 auto;
    max-width: 850px;
}
.house_search_item {
    flex: 1;
    padding: 0;
    border-right: 1px solid #E2E8F0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 40px;
}
.house_search_item:hover { background-color: #F1F5F9; }
.house_search_item:last-of-type { border-right: none; }
.house_search_label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1E293B;
    padding: 10px 24px 0;
    pointer-events: none;
}
.house_search_input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-weight: 500;
    color: #64748B;
    padding: 4px 24px 10px;
    font-size: 15px;
    cursor: pointer;
    min-height: 32px;
}
.house_search_input::placeholder { color: #94A3B8; }
/* Chevron icon inside search item */
.house_search_item > i.bi-chevron-down {
    pointer-events: none;
}
.house_search_btn {
    width: 52px;
    height: 52px;
    background: #fb471f;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}
.house_search_btn:hover {
    background: #e4411c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(241,82,36,0.2);
}

/* Swiper — Latest & Featured slider */
.house-latest-swiper {
    padding-bottom: 48px;
    overflow: hidden;
}
.house-latest-swiper .swiper-slide {
    height: auto;
}
.house-latest-swiper .swiper-slide .house_card {
    height: 100%;
}

/* Pagination dots */
.house-swiper-dots.swiper-pagination {
    bottom: 0;
    position: absolute;
}
.house-swiper-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: all .3s;
}
.house-swiper-dots .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: #fb471f;
}

/* Nav buttons */
.house-swiper-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.house-swiper-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .25s;
}
.house-swiper-btn:hover {
    background: #fb471f;
    border-color: #fb471f;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(251,71,31,.3);
}
.house-swiper-btn.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

/* Property card — premium style */
.house_card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.house_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.house_card_img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.house_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.house_card:hover .house_card_img img { transform: scale(1.08); }
.house_card_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.35) 0%, transparent 40%);
    pointer-events: none;
}
.house_badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    color: #1E293B;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.house_badge_blue {
    position: absolute;
    top: 0;
    left: 0;
    margin: 12px;
    background: #3949ab;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50rem;
}
.house_price_tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.house_amenity_pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    padding: 6px 12px;
    border-radius: 12px;
}
.house_location_label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.house_line_clamp_2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Agent avatar */
.house_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
}
.house_avatar_initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

/* Section bg */
.house_section_gray { background-color: #f1f5f9; }

/* See-all card */
.house_see_all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

/* Mobile floating bar */
.house_mobile_bar {
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* Category highlight sections */
.house_cate_section .section-highlight {
    background: #EEF0F8;
}
.house_cate_section:nth-child(even) .section-highlight {
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .house_hero { height: 400px; }
    .house_hero_content { margin-top: -40px; }
    .house_search_box {
        flex-direction: column;
        border-radius: 24px;
        padding: 15px;
    }
    .house_search_item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        width: 100%;
        border-radius: 12px;
    }
    .house_search_label { padding: 10px 14px 0; }
    .house_search_input { padding: 4px 14px 10px; }
    .house_search_item:last-of-type { border-bottom: none; }
    .house-latest-swiper { padding-bottom: 40px; }
}

@media (max-width: 575px) {
    .house_hero { height: 300px; }
    .house_hero_content { margin-top: -20px; }
    .house_hero_content h1 { font-size: 1.5rem; }
    .house_hero_content p { font-size: 0.9rem; }
    .house_search_box {
        border-radius: 16px;
        padding: 10px;
    }
    .house_search_label { padding: 8px 10px 0; }
    .house_search_input { padding: 2px 10px 8px; }
    .house_search_label { font-size: 10px; }
    .house_search_input { font-size: 14px; }
    .house_search_btn {
        width: 44px;
        height: 44px;
    }
    .house-latest-swiper { padding-bottom: 36px; }
}

/* ============================================================
   HOUSE DETAIL — prefix houseD_
   Prototype: .claude/prototype/house-detail-prototype.html
   ============================================================ */

.houseD_page { padding-bottom: 2rem; background-color: #f4f7f6; }

/* Header */
.houseD_header { margin-bottom: 0.5rem; }
.houseD_title {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.houseD_price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #526BC0 0%, #3949AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.houseD_tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 90, 42, 0.1);
    color: #E0481D;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
}
.houseD_action_btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.houseD_action_btn:hover {
    border-color: #3949AB;
    color: #3949AB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 73, 171, 0.15);
}

/* ---- Bento Gallery (flat 3-col grid, matching prototype) ---- */
.houseD_gallery {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    grid-template-rows: 250px 250px;
    gap: 10px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}
.houseD_gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
}
.houseD_gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}
.houseD_gallery_main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: block;
    overflow: hidden;
}
.houseD_gallery_2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.houseD_gallery_3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.houseD_gallery_4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.houseD_gallery_5 { grid-column: 3 / 4; grid-row: 2 / 3; }

.houseD_gallery_item {
    position: relative;
    overflow: hidden;
    display: block;
}
.houseD_gallery_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.houseD_btn_photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: #fff;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: #3949AB;
    cursor: pointer;
}
.houseD_btn_photos:hover {
    background: #3949AB;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Stats bar (icon + label + value) ---- */
.houseD_stats { padding-bottom: 1rem; }
.houseD_stat_icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(56, 82, 164, 0.08);
    color: #3949AB;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s;
    flex-shrink: 0;
}
.houseD_stats .d-flex > .d-flex:hover .houseD_stat_icon {
    background: #3949AB;
    color: #fff;
}

/* ---- Section title with orange accent ---- */
.houseD_section { padding-bottom: 1rem; }
.houseD_section_title {
    font-family: "Oswald", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 10px;
    position: relative;
}
.houseD_section_title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 50px;
    background: linear-gradient(135deg, #FF8058 0%, #FB471F 100%);
    border-radius: 2px;
}

/* ---- Description content ---- */
.houseD_desc_content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
}
.houseD_desc_content p { margin-bottom: 1rem; }

/* ---- Amenity cards (houseInfo) ---- */
.houseD_amenity_card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
.houseD_amenity_card:hover {
    border-color: #526BC0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 82, 164, 0.08);
}
.houseD_amenity_icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(56, 82, 164, 0.08);
    color: #3949AB;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s;
    flex-shrink: 0;
}
.houseD_amenity_card:hover .houseD_amenity_icon {
    background: #3949AB;
    color: #fff;
}
.houseD_amenity_text {
    font-weight: 500;
    font-size: 1.05rem;
}

/* ---- Map container ---- */
.houseD_map_container {
    height: 400px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.houseD_map_container:hover {
    box-shadow: 0 15px 50px -10px rgba(56, 82, 164, 0.15);
    border-color: #526BC0;
}

/* ---- Contact card (sidebar) ---- */
.houseD_contact_card {
    border-radius: 24px;
    border: none;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: #fff;
}
.houseD_contact_card:hover {
    box-shadow: 0 15px 50px -10px rgba(56, 82, 164, 0.15);
}
.houseD_btn_send {
    background: linear-gradient(135deg, #FF8058 0%, #FF5A2A 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 20px -6px rgba(255, 90, 42, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}
.houseD_btn_send:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -6px rgba(255, 90, 42, 0.8);
}
.houseD_btn_call {
    color: #3949AB;
    border: 2px solid #3949AB;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    text-decoration: none;
}
.houseD_btn_call:hover {
    background: #3949AB;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Sticky sidebar ---- */
.houseD_sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* Detail wrapper */
.houseD_detail { padding-bottom: 1rem; }

/* ---- Desktop ---- */
@media (min-width: 992px) {
    .houseD_gallery {
        grid-template-columns: 50% 25% 25%;
        grid-template-rows: 250px 250px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
    .houseD_title { font-size: 1.5rem; }
    .houseD_price { font-size: 1.4rem; }
    .houseD_gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
        border-radius: 12px;
    }
    .houseD_gallery_main {
        grid-column: 1;
        grid-row: 1;
        border-radius: 12px;
        min-height: 250px;
    }
    .houseD_gallery_item { display: none; }
    .houseD_btn_photos {
        bottom: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .houseD_stat_icon { width: 40px; height: 40px; font-size: 1rem; }
    .houseD_sidebar { position: static; }
    .houseD_map_container { height: 280px; }
}
@media (max-width: 575px) {
    .houseD_title { font-size: 1.3rem; }
    .houseD_price { font-size: 1.2rem; }
    .houseD_section_title { font-size: 1.3rem; }
    .houseD_gallery { border-radius: 10px; }
    .houseD_gallery_main { min-height: 200px; }
    .houseD_map_container { height: 220px; }
    .houseD_amenity_card { padding: 10px 12px; }
    .houseD_amenity_icon { width: 38px; height: 38px; margin-right: 10px; }
    .houseD_contact_card { border-radius: 16px; }
}
