﻿/* ============================
   GLOBAL VARIABLES & TYPO
   ============================ */
:root {
    --brand-teal: #0ea08f;
    --brand-green: #1aa059;
    --muted: #6c757d;
    --hero-bg: #eef9f7;
    --auth-bg: #f4fbf9;
    --card-bg: #ffffff;
    --max-hero-width: 1100px;
    --accent: var(--brand-teal);
}

/* General body font (single source of truth) */
body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
}

/* ============================
   HERO (kept concise)
   ============================ */
.hero-section {
    background: var(--hero-bg);
    padding: 70px 0 80px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}

.hero-container {
    max-width: var(--max-hero-width);
}

.hero-text h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.03;
    margin: 0 0 18px;
    font-weight: 700;
    color: #0b2b2a;
}

    .hero-text h1 .accent {
        color: var(--accent);
        font-weight: 800;
    }

.hero-text .lead {
    font-size: 18px;
    color: #6e7a7a;
    margin-bottom: 26px;
    max-width: 520px;
}

/* ============================
   AUTH / LOGIN (consolidated)
   ============================ */
.auth-page-tight {
    background: var(--auth-bg);
    padding-top: 28px;
    padding-bottom: 28px;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Card combo: image + form */
.auth-card-combo {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,255,254,1));
    box-shadow: 0 22px 48px rgba(3,20,14,0.07);
    border: 1px solid rgba(6,60,53,0.04);
    min-height: 320px;
}

/* Left image column */
.auth-illustration {
    flex: 0 0 44%;
    background: linear-gradient(180deg, rgba(14,160,143,0.04), rgba(14,160,143,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

    .auth-illustration img {
        width: 100%;
        height: 330px; /* -> tăng/giảm tuỳ ý (320/350/400) */
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(2,20,10,0.06);
        display: block;
    }

/* Right form column */
.auth-form-wrap {
    flex: 1 1 56%;
    padding: 28px 34px;
}

/* Header inside form */
.logo-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

    .logo-inline img {
        height: 28px;
        width: auto;
        border-radius: 6px;
    }

    .logo-inline strong {
        font-size: 16px;
        color: #092f2d;
        font-weight: 700;
    }

.auth-header h2 {
    margin: 0;
    font-size: 28px;
    color: #072a29;
    font-weight: 700;
}

.auth-header .muted {
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

    .input-with-icon .icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        color: #4b5f5b;
        width: 20px;
        text-align: center;
        pointer-events: none;
    }

    .input-with-icon .form-control {
        padding-left: 40px;
        border-radius: 10px;
        height: 44px;
        border: 1px solid #d9e8e4;
        box-shadow: none;
    }

/* Checkbox */
.form-check-input {
    width: 16px;
    height: 16px;
}

.form-check-label, .muted {
    color: var(--muted);
}

/* Primary login button (single authoritative definition) */
.btn-auth-primary {
    background: linear-gradient(135deg, #0ea08f, #0c8b7c);
    border: none;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 8px 26px rgba(14,160,143,0.18);
    transition: transform .14s ease, box-shadow .14s ease;
    letter-spacing: 0.2px;
}

    .btn-auth-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 36px rgba(12,140,124,0.22);
    }

/* Social buttons */
.btn-outline-social {
    border-radius: 8px;
    border: 1px solid rgba(10,120,100,0.08);
    padding: 8px 12px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #344a48;
    background: #fff;
    box-shadow: 0 6px 18px rgba(6,60,50,0.04);
}

    .btn-outline-social i {
        font-size: 14px;
    }

/* Links */
.auth-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot {
    color: #3e7f76;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive: stack card vertically on small screens */
@media (max-width: 991px) {
    .auth-card-combo {
        flex-direction: column;
    }

    .auth-illustration {
        display: none !important;
    }
    /* hide left art on small */
    .auth-form-wrap {
        padding: 22px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .auth-illustration img {
        height: 180px;
        max-height: 180px;
    }
}

/* Small spacing helpers */
.auth-form-wrap {
    padding-bottom: 18px;
}

/* ============================
   BUTTON OVERRIDE (if needed)
   ============================ */
/* If you still see bootstrap overrides, uncomment the block below */
/*
.btn-auth-primary {
  background: linear-gradient(135deg, #0ea08f, #0c8b7c) !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 15px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  width: 100% !important;
  box-shadow: 0 8px 26px rgba(14,160,143,0.18) !important;
}
*/
/* ===========================
   Header / Hero adjustments
   =========================== */

/* Make navbar transparent over hero and reduce height */
.navbar {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background-color .32s ease, box-shadow .32s ease;
}

    /* When scrolled, add subtle backdrop */
    .navbar.scrolled {
        background: #ffffff !important;
        box-shadow: 0 6px 18px rgba(3,20,14,0.06);
    }

/* Brand smaller & aligned */
.navbar-brand img {
    height: 30px;
    width: auto;
    margin-right: 8px;
}

.navbar-brand strong {
    font-size: 1rem;
    color: #0b6b61;
}

/* align menu and right controls nicely */
.navbar .navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    color: #084341;
    font-weight: 600;
    padding: .6rem 1rem;
}

/* CTA button on navbar */
.navbar .btn-navbar-cta {
    background: linear-gradient(135deg, #1aa059, #0ea08f);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 8px 18px rgba(14,160,143,0.12);
    border: none;
    font-weight: 700;
}

/* HERO adjustments: reduce top spacing and center vertically */
.hero-section {
    padding: 48px 0 64px; /* reduce top padding */
    display: flex;
    align-items: center; /* center content vertically */
}

/* Limit hero content width and add vertical centering */
.hero-container {
    max-width: var(--max-hero-width);
    margin: 0 auto;
}

/* Image card: increase shadow and slightly bigger radius */
.hero-image-card {
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(3,20,14,0.08);
}

    .hero-image-card img {
        border-radius: 16px;
    }

/* Small screens: keep hero stacked but less spacing */
@media (max-width: 991px) {
    .hero-section {
        padding: 28px 0 36px;
    }

    .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* ===========================
   Page transition (fade)
   =========================== */

/* wrapper that will be faded in/out */
.page-fade {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .42s ease, transform .42s ease;
}

    /* when ready / visible */
    .page-fade.visible {
        opacity: 1;
        transform: none;
    }

    /* fade-out helper for leaving */
    .page-fade.fade-out {
        opacity: 0 !important;
        transform: translateY(8px);
    }

/* small progress spinner centered (optional) */
.page-loader {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20000;
    display: none;
}

    .page-loader.show {
        display: block;
    }
/* ===== Register view styling (clean + modern) ===== */

.register-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 24px;
    border: 1px solid rgba(6,60,53,0.04);
    box-shadow: 0 20px 40px rgba(3,20,14,0.06);
}

.auth-header h1 {
    font-size: 28px;
    margin: 0;
    color: #072a29;
    font-weight: 800;
}

.register-card .muted {
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 18px;
}

/* inputs */
.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form label {
    font-weight: 600;
    color: #283635;
    margin-bottom: 6px;
}

.auth-form .form-control {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #dceee9;
    height: 44px;
}

    .auth-form .form-control:focus {
        border-color: #0ea08f;
        box-shadow: 0 0 0 0.12rem rgba(14,160,143,0.12);
    }

/* primary button */
.btn-auth-primary {
    background: linear-gradient(135deg, #0ea08f, #0c8b7c);
    border: none;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 10px 28px rgba(14,160,143,0.14);
    transition: transform .14s ease, box-shadow .14s ease;
}

    .btn-auth-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 36px rgba(12,140,124,0.20);
    }

/* footer area inside card */
.auth-footer {
    margin-top: 12px;
}

.auth-link {
    color: #0ea08f;
    font-weight: 700;
    text-decoration: none;
}

/* right-side benefits box */
.register-benefits {
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14,160,143,0.03), rgba(255,255,255,0.02));
    border: 1px solid rgba(14,160,143,0.03);
    width: 100%;
}

    .register-benefits h4 {
        margin: 0 0 10px 0;
        color: #0e6f63;
        font-size: 20px;
        font-weight: 700;
    }

    .register-benefits ul {
        padding-left: 18px;
        color: #5e6e6a;
        margin-top: 6px;
    }

/* responsive: stack nicely on small screens */
@media (max-width: 991px) {
    .register-benefits {
        display: none;
    }

    .register-card {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }
}
/* ===== Fix icon inside input (căn dọc đúng) ===== */
.input-with-icon {
    position: relative;
}

    /* icon container: dùng flex để căn giữa theo chiều dọc */
    .input-with-icon .icon {
        position: absolute;
        left: 12px;
        top: 0; /* đặt top 0 và chiều cao bằng input */
        height: 44px; /* phải khớp với .form-control height */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px; /* kích thước icon nếu cần */
        color: #527a74; /* màu icon */
        pointer-events: none;
        width: 28px;
        line-height: 1;
    }

    /* đảm bảo input có đủ padding-left để không đè icon */
    .input-with-icon .form-control {
        padding-left: 48px; /* tăng chút so với cũ */
        height: 44px; /* đảm bảo cùng chiều cao */
        box-sizing: border-box;
    }

        /* nếu bạn dùng placeholder lớn, có thể nhỏ đi: */
        .input-with-icon .form-control::placeholder {
            color: #9aa9a6;
            opacity: 1;
        }

/* responsive: nếu input nhỏ hơn trên mobile, giảm height & icon size */
@media (max-width: 576px) {
    .input-with-icon .icon {
        height: 40px;
        font-size: 14px;
        left: 10px;
        width: 26px;
    }

    .input-with-icon .form-control {
        padding-left: 44px;
        height: 42px;
    }
}
/* ============================
   Page loader animation
   ============================ */

/* hiển thị khi có class .show */
.page-loader {
    display: none;
}

    .page-loader.show {
        display: block;
    }

    /* quay cả svg */
    .page-loader svg {
        width: 84px; /* chỉnh kích thước theo ý */
        height: 84px;
        animation: loader-rotate 1s linear infinite;
        transform-origin: 50% 50%;
        display: block;
    }

        /* optional: tạo hiệu ứng stroke moving (progress-like) trên path */
        .page-loader svg path {
            stroke-linecap: round;
            stroke-width: 8;
            stroke: #0ea08f;
            fill: none;
            stroke-dasharray: 140;
            stroke-dashoffset: 90;
            animation: loader-dash 1.2s ease-in-out infinite;
            transform-origin: 50% 50%;
        }

/* xoay */
@keyframes loader-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* stroke dash animation */
@keyframes loader-dash {
    0% {
        stroke-dashoffset: 140;
    }

    50% {
        stroke-dashoffset: 30;
    }

    100% {
        stroke-dashoffset: 140;
    }
}
/* Header search */
.navbar .input-group-lg .form-control {
    height: 46px;
    border-radius: 24px 0 0 24px;
}

.navbar .input-group-lg .input-group-append .btn {
    border-radius: 0 24px 24px 0;
    background: #f57c00;
    color: #fff;
    border: none;
}
.chip {
    border-radius: 20px;
    padding: .45rem .8rem;
    margin-right: 6px;
}

    .chip.active, .chip.btn-danger {
        background: #0ea08f;
        color: #fff;
        border-color: transparent;
    }

.filter-bar .card {
    background: #fff;
    box-shadow: 0 6px 18px rgba(3,20,14,0.04);
}
/* Filter dropdown styles */
.filter-dropdown .btn-filter {
    border-radius: 26px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid rgba(6,60,53,0.06);
    color: #1f6b64;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(3,20,14,0.04);
}

.filter-menu {
    width: 320px;
    max-width: calc(100vw - 40px);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(3,20,14,0.09);
    border: 1px solid rgba(6,60,53,0.04);
}

/* search box inside dropdown */
.filter-search .js-filter-search {
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid #e6efee;
}

/* option item */
.filter-options {
    max-height: 240px;
    overflow: auto;
    padding-right: 6px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
}

    .filter-item input {
        width: 18px;
        height: 18px;
    }

    .filter-item span {
        font-weight: 500;
        color: #24312f;
    }

    /* hover & selected */
    .filter-item:hover {
        background: rgba(14,160,143,0.04);
    }

    .filter-item input:checked + span {
        color: var(--accent, #0ea08f);
        font-weight: 700;
    }

/* actions */
.filter-actions .btn-outline-secondary {
    border-radius: 8px;
    padding: 6px 10px;
}

.filter-actions .btn-primary {
    border-radius: 8px;
    padding: 6px 14px;
}

/* small scrollbar styling (optional) */
.filter-options::-webkit-scrollbar {
    width: 8px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.06);
    border-radius: 8px;
}
/* ===== Hover effect cho listing card ===== */
.listing-card {
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms cubic-bezier(.2,.8,.2,1);
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    will-change: transform, box-shadow;
    position: relative;
    z-index: 0;
    overflow: hidden; /* giữ border-radius cho ảnh */
    border-radius: 6px;
}

    /* nâng lên và đổi bóng khi hover/focus (keyboard accessible) */
    .listing-card:hover,
    .listing-card:focus-within {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(11, 46, 40, 0.08), 0 6px 14px rgba(11,46,40,0.06);
        border-color: rgba(10,140,120,0.12);
        z-index: 5;
    }

    /* hiệu ứng cho ảnh trong card */
    .listing-card .card-img-top {
        transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 320ms ease;
        transform-origin: center center;
        display: block;
    }

    /* hơi phóng to ảnh khi hover thẻ */
    .listing-card:hover .card-img-top,
    .listing-card:focus-within .card-img-top {
        transform: scale(1.035);
        filter: saturate(1.03) contrast(1.02);
    }

    /* thêm viền (outline) mảnh khi hover để cảm giác "tách" thẻ */
    .listing-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: inset 0 0 0 0 rgba(10,140,120,0.08);
        transition: box-shadow 220ms cubic-bezier(.2,.8,.2,1);
    }

    /* tăng hiệu ứng outline khi hover */
    .listing-card:hover::after,
    .listing-card:focus-within::after {
        box-shadow: inset 0 0 0 2px rgba(10,140,120,0.06);
    }

    /* tinh chỉnh nút và badge bên trong để không bị che khuất */
    .listing-card .badge {
        transition: transform 220ms ease;
    }

/* responsive: giảm hiệu ứng trên màn hình nhỏ (mobile) để tránh cảm giác lạ */
@media (max-width: 767.98px) {
    .listing-card, .listing-card:hover, .listing-card:focus-within {
        transform: none !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }

        .listing-card .card-img-top {
            transform: none !important;
        }

        .listing-card::after {
            box-shadow: none !important;
        }
}
/* ======== CARD CĂN HỘ ======== */
.listing-card {
    border: 1px solid #e0e0e0; /* Khung viền nhẹ */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

    /* ======== HIỆU ỨNG HOVER ======== */
    .listing-card:hover {
        transform: translateY(-6px); /* nhô lên */
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        border-color: #0db473; /* viền xanh dịu */
    }

    /* Hình căn hộ bo tròn */
    .listing-card img {
        border-radius: 12px 12px 0 0;
    }

/* Badge nội thất */
.badge-info {
    background: #0db473 !important;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}
/* Popup contact */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    width: 380px;
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.16);
    text-align: left;
    font-family: inherit;
}

    .modal-box h4 {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .modal-box p {
        margin: 0 0 8px 0;
        color: #444;
    }

.modal-actions {
    text-align: center;
    margin-top: 12px;
}

    .modal-actions .close-btn {
        background: #0db473;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }

        .modal-actions .close-btn:hover {
            background: #0aa463;
        }

/* small responsive */
@media (max-width:420px) {
    .modal-box {
        width: 92%;
        padding: 16px;
    }
}
/* About page style */
.about-hero {
    background: linear-gradient(180deg,#f6fbf9 0%, #f3faf8 100%);
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15,31,19,0.04);
    height: 100%;
}

.feature-icon {
    font-size: 28px;
}

.stat-box {
    background: linear-gradient(180deg,#fff,#fbfffb);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15,31,19,0.03);
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #0db473;
}
.navbar-custom {
    height: 80px;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 20px;
}

.nav-link {
    font-weight: 600;
    color: #007965 !important;
    padding: 0 16px !important;
}

.search-box {
    flex-grow: 1;
    max-width: 550px;
    display: flex;
    align-items: center;
}

    .search-box input {
        height: 46px;
        border-radius: 999px 0 0 999px;
        padding-left: 20px;
    }

    .search-box button {
        height: 46px;
        width: 60px;
        border-radius: 0 999px 999px 0;
    }

.btn-post {
    background-color: #00A982;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    margin-left: 15px;
    font-weight: 600;
}

.btn-login {
    border: 2px solid #00A982;
    padding: 8px 18px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: 600;
    color: #00A982;
}
/* Làm nền trang hơi xám nhẹ để nổi bật cái Card trắng lên */
body {
    background-color: #f8f9fa;
}

.card {
    /* Hiệu ứng đổ bóng nhẹ */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px; /* Bo tròn góc */
}

.img-thumbnail {
    border-color: #e9ecef;
    padding: 0.25rem;
}

.text-secondary {
    color: #6c757d !important;
    font-size: 0.95rem;
}

/* Tùy chỉnh nút bấm cho đẹp hơn */
.btn-primary {
    background-color: #0d6efd; /* Hoặc đổi thành màu xanh lá của trang bạn: #00a65a */
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px); /* Hiệu ứng nhấc nút lên khi di chuột */
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }
