/*
 * page-du-an.css
 * CSS dành riêng cho page-templates/page-du-an.php
 * Copy chính xác từ ftnland-du-an.html để đảm bảo class khớp 100%
 */

/* ── PAGE HERO (override cho trang dự án) ── */
.page-hero {
    position: relative;
    background: var(--color-dark);
    padding: 72px 0 60px;
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: .13;
}
.page-hero__stripe {
    position: absolute;
    right: -50px; top: 0; bottom: 0;
    width: 360px;
    background: linear-gradient(135deg, rgba(196,18,48,.15), rgba(30,125,58,.06));
    transform: skewX(-8deg);
}
.page-hero__stripe2 {
    position: absolute;
    right: 88px; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    opacity: .5;
}
.page-hero__inner { position: relative; z-index: 2; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,.5);
    margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { font-size: 10px; opacity: .4; }
.breadcrumb__current { color: var(--color-secondary-light); font-weight: 600; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--color-secondary-light); margin-bottom: 12px;
}
.hero-eyebrow::before {
    content: ''; width: 24px; height: 2px;
    background: var(--color-secondary-light); border-radius: 2px;
}
.page-hero__title {
    font-size: clamp(26px,4vw,50px); font-weight: 900;
    color: #fff; line-height: 1.12; letter-spacing: -.4px; margin-bottom: 12px;
}
.page-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--color-primary), #ff6b8a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero__desc {
    font-size: 14.5px; color: rgba(255,255,255,.62);
    line-height: 1.72; max-width: 580px; margin-bottom: 24px;
}
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.hero-stat { text-align: left; }
.hero-stat__num { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat__num span {
    background: linear-gradient(90deg, var(--color-secondary-light), var(--color-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat__lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ── FILTER TABS ── */
.filter-tabs-bar {
    background: #fff; border-bottom: 1px solid var(--color-border);
    position: sticky; top: 70px; z-index: 90;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
}
.filter-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.ftab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 15px 18px; font-size: 13.5px; font-weight: 600;
    color: var(--color-gray); white-space: nowrap;
    border-bottom: 2.5px solid transparent; cursor: pointer;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font-body); transition: color .2s, border-color .2s;
    text-decoration: none;
}
.ftab:hover { color: var(--color-primary); }
.ftab.active {
    color: var(--color-primary); border-bottom-color: var(--color-primary);
    font-weight: 700;
}
.ftab .cnt {
    background: var(--color-bg); border-radius: 10px; padding: 1px 7px;
    font-size: 10.5px; font-weight: 700; color: var(--color-gray-light);
    transition: background .2s, color .2s;
}
.ftab.active .cnt { background: var(--color-primary-light); color: var(--color-primary); }

/* ── LAYOUT ── */
.projects-layout {
    display: grid; grid-template-columns: 1fr 290px;
    gap: 44px; align-items: start; padding: 48px 0 80px;
}

/* ── FILTER ROW ── */
.filter-row {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-xl); padding: 20px 22px; margin-bottom: 22px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.fg { flex: 1; min-width: 120px; }
.fg label {
    display: block; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--color-gray); margin-bottom: 7px;
}
.fselect {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font-body);
    color: var(--color-text); background: #fff;
    outline: none; transition: border-color .2s;
}
.fselect:focus { border-color: var(--color-primary); }

/* ── META ROW ── */
.meta-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; flex-wrap: wrap; gap: 8px;
}
.meta-count { font-size: 13.5px; color: var(--color-gray); }
.meta-count strong { color: var(--color-primary); font-size: 15px; }
.view-sort { display: flex; gap: 10px; align-items: center; }
.view-toggles { display: flex; gap: 4px; }
.vtog {
    width: 34px; height: 34px; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; color: var(--color-gray);
    transition: border-color .2s, color .2s, background .2s;
}
.vtog.active, .vtog:hover {
    border-color: var(--color-primary); color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ── PROJECT GRID ── */
.project-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 22px;
}
.project-card {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: transform .3s, box-shadow .3s; position: relative;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card__thumb { position: relative; height: 210px; overflow: hidden; }
.project-card__thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s; display: block;
}
.project-card:hover .project-card__thumb img { transform: scale(1.06); }
.pc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,25,35,.75), rgba(15,25,35,.1));
}
.pc-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap; z-index: 2;
}
.pbadge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 10.5px;
    font-weight: 800; backdrop-filter: blur(4px); letter-spacing: .2px;
}
.pbadge--hot  { background: rgba(196,18,48,.9); color: #fff; }
.pbadge--new  { background: rgba(30,125,58,.9); color: #fff; }
.pbadge--soon { background: rgba(212,168,71,.9); color: #fff; }
.pbadge--sold { background: rgba(100,116,139,.85); color: #fff; }
.pbadge--type { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.pc-wishlist {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s; font-size: 13px;
}
.pc-wishlist:hover, .pc-wishlist.saved { background: var(--color-primary); border-color: var(--color-primary); }
.pc-price {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    background: rgba(15,25,35,.8); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md);
    padding: 7px 12px; text-align: right;
}
.pfrom { font-size: 9.5px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; }
.pval  { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.1; }
.punit { font-size: 10px; color: rgba(255,255,255,.55); }
.project-card__body { padding: 18px 20px; }
.pc-dev {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--color-secondary); margin-bottom: 4px;
}
.pc-name {
    font-size: 16px; font-weight: 900; color: var(--color-dark);
    margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: var(--color-primary); }
.pc-loc {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--color-gray); margin-bottom: 12px;
}
.pc-loc i { color: var(--color-secondary); font-size: 10.5px; }
.pc-specs {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border); margin-bottom: 12px;
}
.pspec { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--color-gray); }
.pspec i { color: var(--color-secondary); font-size: 10px; }
.pspec strong { color: var(--color-text); font-weight: 600; }
.pc-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
}
.pc-progress { flex: 1; }
.prog-lbl {
    display: flex; justify-content: space-between;
    font-size: 10.5px; color: var(--color-gray); margin-bottom: 4px;
}
.prog-bar { height: 4px; background: var(--color-border); border-radius: 3px; overflow: hidden; }
.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-mid));
    border-radius: 3px; transition: width .6s ease;
}
.pc-btn { font-size: 12px; padding: 8px 14px; flex-shrink: 0; }

/* List view */
.project-grid.list-view { grid-template-columns: 1fr; }
.list-view .project-card { display: grid; grid-template-columns: 260px 1fr; }
.list-view .project-card__thumb { height: auto; min-height: 200px; }

/* ── SIDEBAR ── */
.proj-sidebar {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 128px;
}
.sc {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-xl); padding: 22px;
    transition: box-shadow .3s;
}
.sc:hover { box-shadow: var(--shadow-md); }
.sc__head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.sc__hicon {
    width: 38px; height: 38px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.sc__hicon--red   { background: var(--color-primary-light); color: var(--color-primary); }
.sc__hicon--green { background: var(--color-secondary-pale); color: var(--color-secondary); }
.sc__hicon--gold  { background: #fef9ec; color: var(--color-gold); }
.sc__htitle { font-size: 14px; font-weight: 800; color: var(--color-dark); }

.city-list { display: flex; flex-direction: column; gap: 7px; }
.city-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: border-color .2s, background .2s, color .2s;
    text-decoration: none; color: var(--color-text);
}
.city-row:hover, .city-row.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light); color: var(--color-primary);
}
.city-row__cnt {
    font-size: 11px; font-weight: 700; background: var(--color-bg);
    border-radius: 10px; padding: 2px 7px; color: var(--color-gray);
    transition: background .2s, color .2s;
}
.city-row.active .city-row__cnt { background: var(--color-primary); color: #fff; }

.type-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.type-chip {
    padding: 6px 13px; border: 1.5px solid var(--color-border);
    border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: all .2s; text-decoration: none; color: var(--color-text);
}
.type-chip:hover, .type-chip.active {
    border-color: var(--color-secondary);
    background: var(--color-secondary-pale); color: var(--color-secondary);
}

.feat-proj-list { display: flex; flex-direction: column; gap: 12px; }
.feat-proj-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; }
.feat-proj-img  { width: 70px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.feat-proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-proj-name { font-size: 13px; font-weight: 700; color: var(--color-dark); margin-bottom: 3px; line-height: 1.3; }
.feat-proj-name a:hover { color: var(--color-primary); }
.feat-proj-price { font-size: 12px; color: var(--color-primary); font-weight: 700; }
.feat-proj-loc  { font-size: 11px; color: var(--color-gray); }

.sc-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl); padding: 24px; color: #fff;
    text-align: center; position: relative; overflow: hidden;
}
.sc-cta::before {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 110px; height: 110px; border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.sc-cta i.big { font-size: 28px; margin-bottom: 10px; opacity: .85; display: block; }
.sc-cta h3 { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.sc-cta p { font-size: 12.5px; color: rgba(255,255,255,.75); margin-bottom: 16px; line-height: 1.6; }
.sc-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.35);
    color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700; transition: background .2s; text-decoration: none;
}
.sc-cta-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── NEWSLETTER BAND ── */
.newsletter-band {
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark2));
    padding: 60px 0; position: relative; overflow: hidden;
}
.newsletter-band::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(30,125,58,.07);
}
.newsletter-band::after {
    content: ''; position: absolute; left: -40px; bottom: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(196,18,48,.06);
}
.newsletter-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.newsletter-text h2 { font-size: clamp(20px,2.8vw,32px); font-weight: 900; color: #fff; margin-bottom: 8px; }
.newsletter-text p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; max-width: 460px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-input {
    padding: 13px 18px; border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm); background: rgba(255,255,255,.07);
    color: #fff; font-size: 14px; font-family: var(--font-body);
    min-width: 260px; outline: none; transition: border-color .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input:focus { border-color: var(--color-secondary-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .projects-layout { grid-template-columns: 1fr 270px; gap: 30px; }
}
@media (max-width: 960px) {
    .projects-layout { grid-template-columns: 1fr; }
    .proj-sidebar { position: static; }
    .project-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
    .project-grid { grid-template-columns: 1fr; }
    .list-view .project-card { grid-template-columns: 1fr; }
    .filter-row { flex-direction: column; }
    .fg { min-width: 100%; }
}
@media (max-width: 580px) {
    .hero-stats { gap: 20px; }
}
