/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ===== THE EMERALD GRAND - BĐS LUXURY STYLING ===== */
html {
    scroll-behavior: smooth;
}
:root {
    --bds-gold: #c5a880;
    --bds-emerald: #0f3b38;
}
.text-gold {
    color: #c5a880 !important;
}
#header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-nav li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #0f3b38 !important;
}
.header-nav li a:hover {
    color: #c5a880 !important;
}
.lead-form-box input:focus, .lead-form-box select:focus {
    border-color: #c5a880 !important;
    outline: none;
    box-shadow: 0 0 5px rgba(197, 168, 128, 0.4);
}
.bds-floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bds-btn-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4af37;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.bds-btn-pulse:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Ẩn topbar mặc định và footer widgets rỗng */
.header-top, .top-bar {
    display: none !important;
}
.footer-widgets, #footer-widgets {
    display: none !important;
}

/* ===== FIX LỖI TEXT DÍNH VÀO KẺ & ẢNH CAO ĐỀU NHAU ===== */

/* 1. Thẻ vị trí kết nối - Tạo khoảng đệm cách mép kẻ */
.bds-location-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bds-location-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    padding: 18px 22px 18px 24px !important; /* Đệm cách đường kẻ 24px */
    border-left: 5px solid #c5a880 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bds-location-card.accent {
    border-left-color: #0f3b38 !important;
}
.bds-location-card:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}
.bds-location-card h4 {
    color: #0f3b38;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.bds-location-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 2. Thẻ tiện ích - Khống chế chiều cao ảnh 100% bằng nhau */
.bds-amenity-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ebebeb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bds-amenity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.bds-amenity-img-wrap {
    width: 100%;
    height: 220px !important; /* Chiều cao cố định chuẩn cho mọi ảnh */
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}
.bds-amenity-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Tự động crop vừa khít, không méo, không lệch */
    display: block;
    transition: transform 0.4s ease;
}
.bds-amenity-card:hover .bds-amenity-img-wrap img {
    transform: scale(1.06);
}
.bds-amenity-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.bds-amenity-body h4 {
    color: #0f3b38;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}
.bds-amenity-body p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* 3. Thẻ tiện ích phụ bên dưới */
.bds-sub-amenity {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}
.bds-sub-amenity:hover {
    transform: translateY(-4px);
    border-color: #c5a880;
}
.bds-sub-amenity h4 {
    color: #0f3b38;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}
.bds-sub-amenity p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 4. Mặt bằng căn hộ - Chuẩn hóa khung ảnh */
.bds-plan-img-wrap {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.bds-plan-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Bo góc cho ảnh toàn cảnh & vị trí */
.bds-rounded-img img {
    border-radius: 8px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* ===== STYLING CHUYÊN NGHIỆP CHO FORM ĐĂNG KÝ BẤT ĐỘNG SẢN [bds_lead_form] ===== */
.bds-form-wrapper {
    background: #ffffff !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 35px 30px !important;
    position: relative;
    z-index: 10;
}

.bds-form-title {
    color: #0f3b38 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.5px !important;
}

.bds-form-subtitle {
    color: #64748b !important;
    font-size: 13.5px !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

.bds-field-group {
    margin-bottom: 18px !important;
}

.bds-field-group label {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: none !important;
}

.bds-input-icon-wrap input,
.bds-select-wrap select {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    height: 48px !important;
    font-size: 14.5px !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: normal !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bds-input-icon-wrap input:focus,
.bds-select-wrap select:focus {
    border-color: #c5a880 !important;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.bds-input-icon-wrap input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.bds-select-wrap {
    position: relative;
}

.bds-select-wrap select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer;
}

.bds-select-wrap select option {
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 14.5px !important;
    padding: 10px !important;
}

.bds-submit-group {
    margin-top: 24px !important;
}

.bds-btn-submit {
    width: 100% !important;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    display: block !important;
    text-align: center !important;
}

.bds-btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
    filter: brightness(1.05) !important;
    color: #ffffff !important;
}

/* ===== STYLING CAO CẤP CHO HEADER BẤT ĐỘNG SẢN ===== */
#header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(197, 168, 128, 0.22) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

#masthead .header-inner {
    height: 80px !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
}

/* Kiểu dáng Logo thương hiệu */
#logo {
    display: flex !important;
    align-items: center !important;
}

#logo a {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

#logo img {
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease !important;
}

#logo a:hover img {
    transform: scale(1.02);
}

/* Căn chỉnh các mục menu */
.header-nav {
    display: flex !important;
    align-items: center !important;
}

.header-nav > li > a {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    color: #0c332f !important;
    padding: 12px 14px !important;
    position: relative !important;
    transition: color 0.25s ease !important;
}

.header-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dfba76, #c5a880);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.header-nav > li:hover > a,
.header-nav > li.active > a {
    color: #c5a880 !important;
}

.header-nav > li:hover > a::after,
.header-nav > li.active > a::after {
    width: 65%;
}

/* Khu vực nút Hotline và Bảng Giá bên phải Header */
.bds-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin-left: 18px !important;
}

.bds-header-hotline {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.bds-header-hotline .hotline-icon {
    width: 38px;
    height: 38px;
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b58f55;
    transition: all 0.3s ease;
}

.bds-header-hotline:hover .hotline-icon {
    background: #c5a880;
    color: #ffffff;
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.4);
}

.bds-header-hotline .hotline-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bds-header-hotline .hotline-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bds-header-hotline .hotline-number {
    font-size: 15.5px;
    font-weight: 800;
    color: #0c332f;
    letter-spacing: 0.5px;
}

.bds-header-hotline:hover .hotline-number {
    color: #c5a880;
}

.bds-header-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #dfba76 0%, #c5a880 50%, #a27b45 100%) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bds-header-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(197, 168, 128, 0.55) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}

.bds-header-cta svg {
    transition: transform 0.25s ease;
}

.bds-header-cta:hover svg {
    transform: translateX(4px);
}

/* Nút Mobile Menu Toggle */
.mobile-nav .icon-menu {
    font-size: 24px !important;
    color: #0c332f !important;
}

/* ===== STYLING CHO FOOTER BẤT ĐỘNG SẢN ===== */
.footer-wrapper {
    background: #061a18 !important;
    border-top: 3px solid #c5a880 !important;
}

/* Hàng huy hiệu bảo chứng uy tín */
.bds-footer-trust-bar {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: 10px;
    padding: 22px 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 10px;
}

.trust-icon {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    color: #dfba76;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.trust-text span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

/* Đường vạch phân cách sang trọng */
.bds-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.35), transparent);
    margin-bottom: 40px;
}

/* 4 Cột nội dung chính của Footer */
.bds-footer-main-row {
    margin-bottom: 20px;
}

.bds-footer-brand .footer-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.bds-footer-desc {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.bds-corp-meta p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
    line-height: 1.5;
}

.bds-corp-meta strong {
    color: #e2e8f0;
}

/* Tiêu đề các cột Footer */
.bds-footer-heading {
    color: #dfba76 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    position: relative !important;
}

.bds-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #c5a880;
    border-radius: 2px;
}

/* Cột 2: Thông tin liên hệ */
.bds-footer-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bds-footer-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
}

.bds-footer-list .icon-wrap {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bds-footer-list .info-content strong {
    display: block;
    color: #e2e8f0;
    font-size: 12.5px;
    margin-bottom: 2px;
}

.bds-footer-list .hotline-highlight {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s ease !important;
}

.bds-footer-list .hotline-highlight:hover {
    color: #dfba76 !important;
}

/* Cột 3: Liên kết nhanh */
.bds-footer-nav {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bds-footer-nav li {
    margin-bottom: 10px;
}

.bds-footer-nav li a {
    color: #cbd5e1 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.25s ease !important;
}

.bds-footer-nav li a:hover {
    color: #dfba76 !important;
    transform: translateX(6px) !important;
}

/* Cột 4: Form nhận tài liệu */
.download-sub {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bds-quick-phone-form .quick-input-group {
    display: flex;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(197, 168, 128, 0.4);
}

.bds-quick-phone-form input[type="tel"] {
    flex-grow: 1;
    border: none !important;
    padding: 10px 14px !important;
    height: 44px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.bds-quick-phone-form input[type="tel"]::placeholder {
    color: #94a3b8 !important;
}

.quick-submit-btn {
    background: linear-gradient(135deg, #dfba76 0%, #c5a880 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: filter 0.2s ease !important;
}

.quick-submit-btn:hover {
    filter: brightness(1.1) !important;
}

.privacy-guarantee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Chân trang Bản quyền (Absolute Footer) */
.absolute-footer {
    background: #030f0e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px 0 !important;
    color: #64748b !important;
    font-size: 12.5px !important;
    letter-spacing: 0.3px !important;
}

.absolute-footer a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}

.absolute-footer a:hover {
    color: #dfba76 !important;
}

/* ===== RESPONSIVE MOBILE CHO HEADER & FOOTER ===== */
@media (max-width: 849px) {
    #masthead .header-inner {
        height: 65px !important;
        min-height: 65px !important;
    }
    #logo img {
        max-height: 40px !important;
    }
    .bds-header-hotline .hotline-info {
        display: none !important;
    }
    .bds-header-actions {
        gap: 10px !important;
        margin-left: 8px !important;
    }
    .bds-header-cta {
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
    .bds-footer-trust-bar {
        padding: 15px 10px;
    }
    .trust-badge-item {
        padding: 6px 4px;
    }
    .trust-text strong {
        font-size: 12px;
    }
    .trust-text span {
        font-size: 10.5px;
    }
    .bds-footer-heading {
        margin-top: 25px !important;
    }
}