/* =========================================
   HOME REFRESH - BẤT ĐỘNG SẢN TUẤN NGUYÊN
   Chỉ áp dụng cho trang chủ: body#home
========================================= */

#home {
    --tn-green: #124f3a;
    --tn-green-dark: #0b3b2b;
    --tn-gold: #d79b16;
    --tn-cream: #faf8f3;
    --tn-text: #26332e;
    --tn-muted: #69756f;

    background: var(--tn-cream);
    color: var(--tn-text);
}


/* HEADER */

#home header {
    background: white;
    color: var(--tn-text);

    border-bottom: 1px solid rgba(18,79,58,.08);

    box-shadow:
        0 2px 14px rgba(24,45,37,.05);
}

#home .header-container {
    max-width: 1460px;

    min-height: 82px;

    padding: 10px 30px;

    gap: 28px;
}

#home .logo {
    color: #124f3a;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.05;

    /* Bỏ hoàn toàn hiệu ứng 3D */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    filter: none;
}

#home .logo span {
    color: #d79b16;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    filter: none;
}


/* NAV */

#home nav {
    margin-left: auto;

    gap: 30px;
}

#home nav > a,
#home .nav-dropdown > a {
    color: #1f2c27;

    font-size: 15px;
    font-weight: 650;

    padding: 28px 0 25px;

    position: relative;
}

#home nav > a:hover,
#home .nav-dropdown:hover > a {
    color: var(--tn-gold);
}

#home nav > a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 16px;

    height: 2px;

    background: var(--tn-gold);
}


/* DROPDOWN */

#home .nav-dropdown {
    position: relative;
}

#home .nav-dropdown > a {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}

#home .dropdown-menu {
    position: absolute;

    top: calc(100% - 7px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(8px);

    width: 205px;

    padding: 9px;

    background: white;

    border:
        1px solid #e8e4dc;

    border-radius: 12px;

    box-shadow:
        0 16px 40px
        rgba(22,48,38,.16);

    opacity: 0;
    visibility: hidden;

    transition: .2s;
}

#home .nav-dropdown:hover
.dropdown-menu,

#home .nav-dropdown:focus-within
.dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

#home .dropdown-menu a {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border-radius: 8px;

    color: #284039;

    font-size: 14px;

    font-weight: 600;
}

#home .dropdown-menu a:hover {
    background: #f4f7f3;

    color: var(--tn-green);
}


/* PHONE HEADER */

#home .header-phone {
    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 150px;

    color: var(--tn-green);

    line-height: 1.25;
}

#home .header-phone-icon {
    color: var(--tn-gold);

    font-size: 20px;
}

#home .header-phone strong {
    display: block;

    font-size: 15px;
}

#home .header-phone span {
    display: block;

    color: var(--tn-muted);

    font-size: 12px;
}


/* HERO */

#home .hero {
    max-width: none;

    min-height: 470px;

    padding:
        65px
        20px
        105px;

    background:
        linear-gradient(
            rgba(255,255,255,.06),
            rgba(9,50,37,.10)
        ),
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1800&q=85")
        center / cover;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--tn-green);
}

#home .hero-content {
    width: min(930px, 100%);
}

#home .hero h1 {
    margin: 0;

    color: var(--tn-green);

    font-size: clamp(
        42px,
        5vw,
        70px
    );

    font-weight: 850;

    letter-spacing: -1.6px;

    line-height: 1.04;

    text-shadow:
        0 2px 22px
        rgba(255,255,255,.78);
}

#home .hero h1 span {
    display: block;

    color: var(--tn-gold);
}


/* SEARCH */

#home .search-section {
    max-width: 1320px;

    padding:
        0 24px;

    margin:
        -66px auto 0;

    position: relative;

    z-index: 20;
}

#home .search-box {
    background:
        rgba(255,255,255,.98);

    border:
        1px solid
        rgba(18,79,58,.08);

    border-radius: 18px;

    box-shadow:
        0 16px 40px
        rgba(31,48,41,.12);

    padding:
        23px 26px;
}

#home .search-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.25fr
        64px;

    gap: 18px;

    align-items: end;
}

#home .search-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

#home .search-field label {
    color: #56645e;

    font-size: 13px;

    font-weight: 600;
}

#home .search-grid select,
#home .search-grid input {

    width: 100%;

    height: 48px;

    padding:
        0 14px;

    background: white;

    color: #25342e;

    border:
        1px solid #dfe4e1;

    border-radius: 8px;

    font-size: 14px;

    outline: none;
}

#home .search-grid select:focus,
#home .search-grid input:focus {

    border-color:
        var(--tn-green);

    box-shadow:
        0 0 0 3px
        rgba(18,79,58,.08);
}

#home .search-button {
    width: 64px;

    height: 48px;

    border: none;

    border-radius: 8px;

    background:
        var(--tn-green);

    color: white;

    font-size: 0;

    cursor: pointer;

    transition: .2s;
}

#home .search-button::before {
    content: "⌕";

    font-size: 28px;

    line-height: 1;
}

#home .search-button:hover {
    background:
        var(--tn-green-dark);

    transform:
        translateY(-1px);
}


/* SECTIONS */

#home section {
    max-width: 1320px;
}


/* CATEGORY */

#home #danh-muc {
    padding:
        24px
        24px
        22px;
}

#home .categories {
    grid-template-columns:
        repeat(6, 1fr);

    gap: 16px;

    margin: 0;
}

#home .category {
    min-height: 88px;

    padding:
        15px 18px;

    display: grid;

    grid-template-columns:
        48px
        1fr;

    grid-template-rows:
        auto auto;

    column-gap: 12px;

    align-items: center;

    text-align: left;

    border:
        1px solid
        rgba(18,79,58,.06);

    border-radius: 13px;

    box-shadow:
        0 6px 22px
        rgba(38,52,46,.07);
}

#home .category:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(215,155,22,.35);

    box-shadow:
        0 12px 28px
        rgba(38,52,46,.11);
}

#home .category-icon {
    grid-row:
        1 / span 2;

    width: 46px;

    height: 46px;

    margin: 0;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #f0f4ee;

    font-size: 25px;
}

#home .category h3 {
    margin: 0;

    color: #202c27;

    font-size: 16px;
}

#home .category p {
    margin: 0;

    color: var(--tn-muted);

    font-size: 12px;
}


/* FEATURED */

#home #bat-dong-san {
    padding:
        20px
        24px
        28px;
}

#home #bat-dong-san
.section-title {

    text-align: left;

    margin-bottom: 17px;
}

#home #bat-dong-san
.section-label {

    color: var(--tn-gold);

    letter-spacing: .8px;

    margin-bottom: 2px;
}

#home #bat-dong-san
.section-title h2 {

    margin: 0;

    color: var(--tn-green);

    font-size: 29px;
}


/* PRODUCT GRID */

#home .products {
    max-width: none;

    padding: 0;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

#home .product {
    position: relative;

    border:
        1px solid
        rgba(18,79,58,.07);

    border-radius: 13px;

    box-shadow:
        0 7px 22px
        rgba(31,48,41,.08);
}

#home .product > img {
    width: 100%;

    height: 185px;

    display: block;

    object-fit: cover;
}

#home .product-content {
    padding:
        14px 16px 16px;
}

#home .product-tag {
    position: absolute;

    top: 12px;
    left: 12px;

    margin: 0;

    padding:
        5px 10px;

    background:
        var(--tn-green);

    color: white;

    border-radius: 7px;

    font-size: 11px;

    letter-spacing: .3px;

    text-transform: uppercase;
}

#home .product h3 {
    margin:
        0 0 7px;

    font-size: 17px;

    line-height: 1.3;

    color: #202a26;
}

#home .price {
    margin:
        0 0 6px;

    color:
        var(--tn-green);

    font-size: 18px;
}

#home .location {
    margin: 0;

    color: #6c7772;

    font-size: 13px;
}

#home .product p,
#home .product-button {
    display: none;
}


/* TRUST */

#home .why-us {
    max-width: 1272px;

    margin:
        0 auto 32px;

    padding:
        18px 24px;

    background: #fffdf9;

    border:
        1px solid
        #eee8dc;

    border-radius: 14px;
}

#home .why-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;
}

#home .why-item {
    padding:
        5px 24px;

    border-right:
        1px solid
        #ece5d8;
}

#home .why-item:last-child {
    border-right: 0;
}

#home .why-item > div {
    float: left;

    width: 42px;

    height: 42px;

    margin-right: 11px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #f3f5ef;

    color: var(--tn-green);

    font-size: 0;
}

#home .why-item:nth-child(1)
> div::after {

    content: "✓";

    font-size: 20px;
}

#home .why-item:nth-child(2)
> div::after {

    content: "◇";

    font-size: 23px;
}

#home .why-item:nth-child(3)
> div::after {

    content: "⌖";

    font-size: 22px;
}

#home .why-item:nth-child(4)
> div::after {

    content: "☎";

    font-size: 19px;
}

#home .why-item h3 {
    margin:
        0 0 2px;

    color: #26332e;

    font-size: 15px;
}

#home .why-item p {
    margin: 0;

    color: #737d78;

    font-size: 12px;

    line-height: 1.4;
}


/* CONTACT + FOOTER */

#home .contact {
    max-width: none;

    background:
        var(--tn-green-dark);
}

#home footer {
    background: #082f23;
}


/* TABLET */

@media
(max-width: 1180px) {

    #home .header-container {
        flex-wrap: wrap;

        justify-content: center;
    }

    #home .logo {
        width: 100%;

        text-align: center;
    }

    #home nav {
        margin-left: 0;
    }

    #home .categories {
        grid-template-columns:
            repeat(3, 1fr);
    }

    #home .products {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* MOBILE / TABLET */

@media
(max-width: 820px) {

    #home .header-container {
        min-height: 68px;

        padding:
            12px 18px;
    }

    #home .logo {
        width: auto;

        margin-right: auto;

        text-align: left;
    }

    #home nav,
    #home .header-phone {
        display: none;
    }

    #home .hero {
        min-height: 390px;

        padding-bottom: 90px;
    }

    #home .search-grid {
        grid-template-columns:
            1fr 1fr;
    }

    #home .search-button {
        width: 100%;
    }

    #home .why-grid {
        grid-template-columns:
            1fr 1fr;

        gap:
            18px 0;
    }

    #home .why-item:nth-child(2) {
        border-right: 0;
    }

}


/* MOBILE */

@media
(max-width: 600px) {

    #home .logo {
        font-size: 18px;
    }

   #home .hero {
       min-height: 300px;
   
       padding:
           30px
           16px
           70px;
   }

    #home .hero h1 {
        font-size: 38px;
    }

    #home .search-section {
        margin-top: -55px;

        padding:
            0 14px;
    }

    #home .search-box {
        padding: 16px;
    }

    #home .search-grid {
        grid-template-columns:
            1fr;

        gap: 12px;
    }

    #home .categories {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }

    #home .category {
        grid-template-columns:
            40px 1fr;

        padding: 12px;
    }

    #home .category-icon {
        width: 38px;

        height: 38px;

        font-size: 21px;
    }
    #home #danh-muc {
        padding-bottom: 10px;
    }
      
    #home #bat-dong-san {
        padding-top: 8px;
      }
    #home .products {
        grid-template-columns:
            1fr;
      
        gap: 14px;
    }
      
    #home .product > img {
        height: 155px;
    }
      
    #home .product-content {
        padding: 10px 12px 12px;
    }
      
    #home .product h3 {
        margin: 0 0 6px;
      
        font-size: 16px;
        line-height: 1.25;
    }
      
    #home .price {
        margin: 0 0 5px;
      
        font-size: 17px;
    }
      
    #home .location {
        font-size: 12px;
        line-height: 1.3;
    }

    #home .why-grid {
        grid-template-columns:
            1fr;
    }

    #home .why-item {
        border-right: 0;

        border-bottom:
            1px solid
            #ece5d8;

        padding:
            12px 8px;
    }

    #home .why-item:last-child {
        border-bottom: 0;
    }

}
/* ===== LOGO HEADER - FLAT BRAND ===== */

#home header .logo {
    color: #124f3a !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #124f3a !important;

    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

#home header .logo span {
    color: #d79b16 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #d79b16 !important;

    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
