:root {
  --gold-50: #FEFAEC;
  --gold-100: #FCF0C8;
  --gold-200: #F9E29C;
  --gold-300: #F8D468;
  --gold-400: #F6C23A;
  --gold-500: #E0A81D;
  --gold-600: #B98712;
  --gold-700: #8A5A0A;
  --gold-800: #5E3D07;
  --gold-900: #3A2504;
  --ink: #1F1A12;
  --ink-2: #2A2018;
  --ink-3: #352B1C;
  --slate: #5C4F3A;
  --muted: #7A6B52;
  --line: #E8DEC8;
  --paper: #FCF9F2;
  --surface: #FFFFFF;
  --warm-2: #F7F1E3;
  --warm-3: #EFE6D0;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --shadow-card: 0 2px 8px rgba(31, 26, 18, .08), 0 8px 32px rgba(31, 26, 18, .07);
  --shadow-hover: 0 8px 32px rgba(31, 26, 18, .14), 0 24px 64px rgba(31, 26, 18, .10);
  --nav-h: 72px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 500
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
  white-space: nowrap
}

.tag-new {
  background: var(--gold-100);
  color: var(--gold-800)
}

.tag-hot {
  background: #FBE0D6;
  color: #9A331A
}

.tag-ok {
  background: #D6F2E5;
  color: #0B6B47
}

.tag-done {
  background: var(--warm-3);
  color: var(--slate)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s
}

.btn-gold {
  background: var(--gold-700);
  color: #fff
}

.btn-gold:hover {
  background: var(--gold-800);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--gold-700);
  border: 1.5px solid var(--gold-400)
}

.btn-outline-dark:hover {
  background: var(--gold-50)
}

/* =========================================
   PAGE HERO (compact)
========================================= */
.page-hero {
  padding-top: var(--nav-h);
  background: linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 55%, #3a2a0e 100%);
  position: relative;
  overflow: hidden
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(246, 194, 58, .14), transparent 55%)
}

.page-hero-wm {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display';
  font-style: italic;
  font-size: 120px;
  font-weight: 700;
  color: rgba(246, 194, 58, .04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1
}

.page-hero .inner {
  padding: var(--s7) 0 var(--s8);
  position: relative;
  z-index: 1
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s4)
}

.breadcrumb a,
.breadcrumb span {
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  letter-spacing: .08em;
  text-decoration: none;
  color: rgba(255, 255, 255, .4);
  transition: .15s
}

.breadcrumb a:hover {
  color: rgba(246, 194, 58, .7)
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, .2)
}

.breadcrumb .cur {
  color: var(--gold-400)
}

.page-hero h1 {
  font-family: 'Playfair Display';
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-bottom: var(--s3)
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold-400)
}

.page-hero .sub,
.header-banner-top p {
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
  max-width: 520px;
  line-height: 1.7
}

.page-hero-stats {
  display: flex;
  gap: var(--s6);
  margin-top: var(--s6);
  flex-wrap: wrap
}

.ph-stat .num {
  font-family: 'JetBrains Mono';
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-300);
  text-shadow: 0 0 18px rgba(246, 194, 58, .3);
  text-align: center;
}

.ph-stat .lab {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'JetBrains Mono';
  margin-top: 2px
}

.breadcrumb a {
  background: #ff000000;
  margin-right: 0;
  padding-left: 0;
}

.breadcrumb a:before,
.breadcrumb a:after {
  display: none;
}

/* =========================================
   FILTER BAR
========================================= */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  box-shadow: 0 2px 12px rgba(31, 26, 18, .07)
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  flex-wrap: wrap
}

.filter-label {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  font-weight: 500
}

.filter-group {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  flex: 1
}

.f-select {
  font-family: 'Inter';
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--warm-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 36px 9px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237A6B52' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: .15s;
  min-width: 150px
}

.f-select:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(246, 194, 58, .18)
}

.f-select:hover {
  border-color: var(--gold-500)
}

.filter-reset {
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0
}

.filter-reset:hover {
  color: var(--gold-700)
}

.filter-count {
  margin-left: auto;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap
}

.filter-count b {
  color: var(--gold-700)
}

/* category tabs */
.cat-tabs {
  background: var(--warm-2);
  border-bottom: 1px solid var(--line)
}

.cat-tabs-inner {
  display: flex;
  gap: 0;
  overflow-x: auto
}

.cat-tab {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  padding: 14px var(--s5);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Inter'
}

.cat-tab:hover {
  color: var(--ink)
}

.cat-tab.active {
  color: var(--gold-700);
  border-bottom-color: var(--gold-400);
  font-weight: 600
}

.cat-count {
  font-size: 11px;
  font-family: 'JetBrains Mono';
  background: var(--warm-3);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  margin-left: 6px
}

.cat-tab.active .cat-count {
  background: var(--gold-100);
  color: var(--gold-800)
}

/* =========================================
   MAIN CONTENT AREA
========================================= */
.main-wrap {
  padding: var(--s7) 0 var(--s9)
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6)
}

/* sort row */
.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap
}

.sort-row .result-text {
  font-size: 14px;
  color: var(--slate)
}

.sort-row .result-text b {
  color: var(--ink)
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: var(--s3)
}

.sort-label {
  font-size: 13px;
  color: var(--muted)
}

.sort-select {
  font-family: 'Inter';
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 32px 7px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237A6B52' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px
}

.sort-select:focus {
  outline: none;
  border-color: var(--gold-400)
}

.view-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden
}

.view-btn {
  padding: 7px 12px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: .15s;
  display: grid;
  place-items: center
}

.view-btn.active {
  background: var(--gold-700);
  color: #fff
}

.view-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* =========================================
   PROJECT GRID
========================================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5)
}

.proj-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .3s;
  display: flex;
  flex-direction: column
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover)
}

.proj-card:hover .card-img-inner {
  transform: scale(1.04)
}

.card-img {
  height: 210px;
  overflow: hidden;
  position: relative
}

.card-img-inner {
  width: 100%;
  height: 100%;
  transition: transform .5s ease
}

.card-img .badges {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap
}

.card-img .area-tag {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  background: rgba(31, 26, 18, .75);
  backdrop-filter: blur(6px);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  color: rgba(246, 194, 58, .9);
  letter-spacing: .06em;
  z-index: 2
}

.card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s3)
}

.card-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono'
}

.card-loc svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold-600);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none
}

.card-name {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.25
}

.card-name a {
  color: var(--ink);
}

.card-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-specs {
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
  gap: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.spec-item .sv {
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.spec-item .sk {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.card-price {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-700)
}

.card-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Inter';
  margin-left: 2px
}

.card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1.5px solid var(--gold-300);
  border-radius: var(--r-sm);
  transition: .15s
}

.card-cta:hover {
  background: var(--gold-50);
  color: var(--nau);
  border-color: var(--gold-400)
}

/* featured card (full width first) */
.proj-card.featured {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.4fr 1fr
}

.proj-card.featured .card-img {
  height: 100%;
  min-height: 280px
}

.proj-card.featured .card-body {
  padding: var(--s7) var(--s6)
}

.proj-card.featured .card-name {
  font-size: 26px
}

.proj-card.featured .card-desc {
  font-size: 14px
}

/* =========================================
   PROJECT SCENE BACKGROUNDS (CSS art)
========================================= */
.scene {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden
}

/* Scene styles */
.s-night-city {
  background: linear-gradient(180deg, #0a0e18 0%, #0e1420 40%, #1a1008 100%)
}

.s-coastal {
  background: linear-gradient(180deg, #0e1e2a 0%, #142030 40%, #0a1a0e 80%, #0e1208 100%)
}

.s-villa {
  background: linear-gradient(180deg, #0a1408 0%, #101c0c 40%, #182010 80%, #0e1408 100%)
}

.s-shophouse {
  background: linear-gradient(180deg, #1a0e06 0%, #200e06 50%, #1a1208 100%)
}

.s-resort {
  background: linear-gradient(180deg, #06101a 0%, #0a1824 40%, #061412 100%)
}

.s-land {
  background: linear-gradient(180deg, #101408 0%, #181e08 50%, #1a1e08 100%)
}

.gold-win {
  background: rgba(246, 194, 58, .65);
  border-radius: 1px
}

.dim-win {
  background: rgba(246, 194, 58, .22)
}

.off-win {
  background: rgba(20, 14, 6, .7)
}

/* Shared label at bottom of scene */
.scene-label {
  position: absolute;
  bottom: var(--s3);
  left: var(--s3);
  font-family: 'Playfair Display';
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  color: rgba(246, 194, 58, .85)
}

/* =========================================
   PAGINATION
========================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s7)
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
  font-family: 'JetBrains Mono';
  text-decoration: none
}

.page-btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-700)
}

.page-btn.active {
  background: var(--gold-700);
  color: #fff;
  border-color: var(--gold-700)
}

.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 var(--s4);
  gap: 6px;
  font-size: 13px;
  font-family: 'Inter'
}

.page-dots {
  color: var(--muted);
  font-family: 'JetBrains Mono';
  padding: 0 4px
}

/* =========================================
   CTA BOTTOM BAND
========================================= */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 45%, #3a2a0e 100%);
  position: relative;
  overflow: hidden
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(246, 194, 58, .18), transparent 55%)
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  position: relative;
  z-index: 1;
  padding: var(--s8) var(--s5)
}

.cta-inner h2,
.cta-inner h3 {
  font-family: 'Playfair Display';
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  max-width: 480px
}

.cta-inner h2 em,
.cta-inner h3 em {
  color: var(--gold-400);
  font-style: italic
}

.cta-actions {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  flex: none
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(246, 194, 58, .45)
}

.btn-outline:hover {
  background: rgba(246, 194, 58, .1);
  color: #fff;
  border-color: var(--gold-400)
}

.mobile-filter,
.mobile-filter-popup {
  display: none;
}

.desktop-filter {
  display: flex;
}

@media(max-width:960px) {
  .proj-grid {
    grid-template-columns: 1fr 1fr
  }

  .proj-card.featured {
    grid-column: auto;
    display: flex;
    flex-direction: column
  }

  .proj-card.featured .card-img {
    min-height: 220px
  }

  .filter-inner {
    gap: var(--s3)
  }

  .footer-top {
    grid-template-columns: 1fr 1fr
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start
  }
}

@media (max-width: 768px) {
  .filter-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 8px;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */

  }

  .filter-group::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
  }

  .filter-group .f-select {
    flex: 0 0 auto;
    min-width: 170px;
    /* chỉnh theo ý muốn */
  }

  .header-banner-top {
    padding: 0 15px;
    text-align: center;
  }

  .desktop-filter {
    display: flex;
  }

  .mobile-filter,
  .mobile-filter-popup {
    display: none;
  }

  .desktop-filter {
    display: none;
  }

  .mobile-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }

  .mobile-filter-btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4d8b9;
    color: #8A5A0A;
    font-weight: 600;
  }

  .mobile-filter-popup {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: .3s;
  }

  .mobile-filter-popup.active {
    visibility: visible;
    opacity: 1;
  }

  .popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
  }

  .popup-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: .35s;
  }

  .mobile-filter-popup.active .popup-content {
    transform: translateY(-50%);
  }

  .popup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .popup-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid #eee;
  }

  .popup-body select {
    width: 100%;
    height: 50px;
  }

  .popup-footer {
    display: flex;
    gap: 10px;
    margin-top: 25px;
  }

  .popup-footer button {
    flex: 1;
    height: 48px;
  }

  .page-hero-stats {
    padding: 0 15px;
  }

  .mobile-select:nth-child(2) {
    border-top: 2px solid rgb(221, 221, 221);
  }

  .page-hero-stats {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    gap: 16px;
    text-align: center;
  }

  .breadcrumb {
    justify-content: center;
  }

  .cta-inner h2,
  .cta-inner h3 {
    text-align: center;
  }

  .page-hero .inner {
    padding-top: 0;
  }

  .ph-stat .lab {
    font-size: 10px;
  }
}

@media(max-width:640px) {
  .proj-grid {
    grid-template-columns: 1fr
  }

  .footer-top {
    grid-template-columns: 1fr
  }

  .nav-links,
  .nav-cta .btn-gold {
    display: none
  }

  .filter-inner {
    gap: var(--s2)
  }

  .f-select {
    min-width: 120px;
    font-size: 12.5px
  }
}

@media(prefers-reduced-motion:reduce) {}