/* Main styles */
:root {
  --blue: #1e3a5f;
  --blue-dark: #152942;
  --yellow: #f5a623;
  --orange: #e67e22;
  --price-color: #c2410c;
  --green: #27ae60;
  --olive: #6b8e23;
  --orange-btn: #d35400;
  --max-width: 1200px;
  --gutter: 1rem;
  --search-control-h: 48px;
  --sidebar-width: 320px;
  --detail-gap: 1.5rem;
  --home-hero-bg: linear-gradient(135deg, #fffaf6 0%, #fff3eb 42%, #ffe8dc 100%);
}

@media (min-width: 768px) {
  :root { --gutter: 1.25rem; }
}

@media (min-width: 1024px) {
  :root { --gutter: 1.5rem; }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  background: #fff;
  overflow-x: clip;
  max-width: 100%;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Header */
.header {
  position: relative;
  z-index: 120;
}

.topbar {
  background: var(--blue-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
  min-height: 52px;
}

.topbar__start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.topbar__brand {
  display: none;
  align-items: center;
  min-width: 0;
}

.header-main {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}

.header-main__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue-dark);
  padding: 0.1rem 0;
  flex-shrink: 0;
}

.topbar .logo {
  color: #fff;
}

.logo__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.02));
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.topbar .logo__mark {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo__mark svg {
  width: 28px;
  height: 28px;
  color: var(--yellow);
}

.logo__brand {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1;
}

.logo:hover .logo__mark {
  border-color: var(--yellow);
  background: rgba(245, 166, 35, 0.12);
}

@media (max-width: 767px) {
  .logo {
    gap: 0.55rem;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .logo__mark svg {
    width: 24px;
    height: 24px;
  }

  .logo__brand {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
}

.nav,
.topnav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.nav a,
.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
  border-bottom: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav a:hover,
.topnav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active,
.topnav a.active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-toggle__icon {
  width: 22px;
  height: 22px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-overlay[hidden] {
  display: block;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(88vw, 320px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--blue-dark);
  color: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.mobile-nav-drawer__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mobile-nav-drawer__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-drawer__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-drawer__link {
  display: block;
  padding: 0.85rem 1.15rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.mobile-nav-drawer__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-drawer__link.is-active {
  border-left-color: var(--yellow);
  background: rgba(245, 166, 35, 0.12);
  color: var(--yellow);
}

.mobile-nav-drawer__account {
  padding: 0.75rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.mobile-nav-drawer__link--accent {
  color: var(--yellow);
}

body.mobile-nav-open {
  overflow: hidden;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-utils a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-menu {
  position: relative;
}

.user-menu__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.user-menu__toggle:hover,
.user-menu.is-open .user-menu__toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar .user-menu__toggle {
  padding: 0.28rem 0.5rem;
  font-size: 0.85rem;
}

.user-menu__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__chevron {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s;
}

.user-menu.is-open .user-menu__chevron {
  transform: rotate(180deg);
}

.user-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 160px;
  padding: 0.35rem 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 200;
}

.user-menu.is-open .user-menu__panel {
  display: block;
}

.user-menu__panel a {
  display: block;
  padding: 0.55rem 1rem;
  color: #334155;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.user-menu__panel a:hover {
  background: #f1f5f9;
  color: var(--blue-dark);
}

.user-menu__panel a.is-accent {
  color: #b45309;
  border-top: 1px solid #eef1f5;
  margin-top: 0.2rem;
  padding-top: 0.65rem;
}

.user-menu__panel a.is-accent:hover {
  background: #fff7ed;
  color: #c2410c;
}

/* Search strip (global) */
.search-strip {
  background: #f4f6f8;
  padding-block: 0.65rem;
  border-bottom: 1px solid #e8ecf0;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  box-sizing: border-box;
}

.search-strip--header {
  position: relative;
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  padding-block: 0;
  background: transparent;
  border-bottom: none;
  --search-control-h: 40px;
}

.search-strip--header .search-form {
  position: relative;
}

.search-strip--header .search-advanced-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 130;
}

.search-form {
  width: 100%;
}

.body--home .header-main {
  background: #fff;
}

.body--home .search-strip--header .search-form__row {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.home-stats-wrap {
  background: var(--home-hero-bg);
  padding: 1.25rem 0 1.5rem;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  box-sizing: border-box;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-stats__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  min-width: 0;
  border-right: 1px solid #e2e8f0;
}

.home-stats__item:last-child {
  border-right: 0;
}

.home-stats__item:hover {
  background: #f8fafc;
}

.home-stats__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-stats__icon svg {
  width: 100%;
  height: 100%;
}

.home-stats__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.home-stats__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.home-stats__meta {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats__item {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .home-stats__item:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
  }

  .home-stats__item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .home-stats-wrap {
    padding: 0.75rem 0 1rem;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 10px;
  }

  .home-stats__item {
    gap: 0.5rem;
    padding: 0.6rem 0.65rem;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .home-stats__item:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
  }

  .home-stats__item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .home-stats__icon {
    width: 36px;
    height: 36px;
  }

  .home-stats__text {
    gap: 0.05rem;
  }

  .home-stats__title {
    font-size: 0.8125rem;
  }

  .home-stats__meta {
    font-size: 0.6875rem;
  }
}

.search-form__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.search-advanced-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  height: var(--search-control-h);
  border: none;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.search-advanced-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.search-advanced-btn:hover,
.search-advanced-btn.is-active {
  color: #e63946;
  background: #fff5f5;
}

.search-advanced-panel {
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.search-advanced-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
}

.search-advanced-field--wide {
  grid-column: auto;
}

.search-advanced-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.search-advanced-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.search-advanced-field__select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #334155;
  background: #fff;
}

.search-advanced-field__select:focus {
  outline: none;
  border-color: var(--blue, #1e3a5f);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

@media (min-width: 901px) {
  .search-advanced-panel__grid {
    grid-template-columns: minmax(118px, 145px) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem 0.55rem;
    align-items: start;
  }

  .search-advanced-field--wide {
    grid-column: auto;
  }
}

.range-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.range-slider__value {
  font-size: 0.68rem;
  font-weight: 600;
  color: #e63946;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58%;
  text-align: right;
  line-height: 1.2;
}

.range-slider__track {
  position: relative;
  height: 16px;
  margin-bottom: 0.2rem;
}

.range-slider__numbers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem;
}

.range-slider__number-field {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.22rem 0.38rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.range-slider__number-label {
  display: none;
}

.range-slider__number {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.75rem;
  color: #334155;
  background: transparent;
}

.range-slider__number:focus {
  outline: none;
  box-shadow: none;
}

.range-slider__number-field:focus-within {
  border-color: var(--blue, #1e3a5f);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.range-slider__number-unit {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

.range-slider__number-sep {
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.range-slider__rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: #e5e7eb;
}

.range-slider__fill {
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e63946, #f07178);
  pointer-events: none;
}

.range-slider__input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 14px;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
}

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e63946;
  box-shadow: 0 1px 4px rgba(230, 57, 70, 0.4);
  cursor: grab;
  box-sizing: border-box;
}

.range-slider__input::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e63946;
  box-shadow: 0 1px 4px rgba(230, 57, 70, 0.4);
  cursor: grab;
  box-sizing: border-box;
}

.range-slider__input::-webkit-slider-runnable-track {
  height: 6px;
  margin-top: 6px;
  background: transparent;
  border-radius: 999px;
}

.range-slider__input::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.search-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

.search-bar__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  height: var(--search-control-h);
  border: none;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
}

.search-bar__field--keyword {
  flex: 1.6;
  padding: 0 0.75rem;
}

.search-bar__field--select {
  flex: 1;
  padding: 0 0.5rem 0 0.65rem;
}

.search-bar__icon {
  display: flex;
  flex-shrink: 0;
  color: #94a3b8;
}

.search-bar__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.search-bar__icon--accent {
  color: #e63946;
}

.search-bar__input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.2;
}

.search-bar__input:focus {
  outline: none;
}

.search-bar__input::placeholder {
  color: #94a3b8;
}

.search-bar__select {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 1.5rem 0 0;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  appearance: none;
  line-height: 1.2;
  background-image: url("../images/chevron-down-slate.svg");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.search-bar__select:focus {
  outline: none;
}

.search-bar__submit {
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  padding: 0 1.15rem;
  height: var(--search-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e63946;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.search-bar__submit:hover {
  background: #cf2f3b;
}

@media (min-width: 520px) and (max-width: 900px) {
  .search-advanced-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.55rem;
  }

  .search-advanced-field:not(.search-advanced-field--wide) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .search-form__row {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    border-radius: 10px;
    align-items: stretch;
  }

  .search-advanced-btn {
    width: auto;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    padding: 0 0.65rem;
    border-right: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 0;
  }

  .search-advanced-btn span {
    display: none;
  }

  .search-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    width: 100%;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .search-bar__filters {
    display: none !important;
  }

  .search-bar__field {
    min-height: var(--search-control-h);
    height: var(--search-control-h);
  }

  .search-bar__field--keyword {
    flex: 1;
    min-width: 0;
    border-bottom: none;
    border-right: 1px solid #eef2f6;
    grid-column: unset;
    grid-row: unset;
    padding: 0 0.65rem;
  }

  .search-bar__input {
    font-size: 0.875rem;
  }

  .search-bar__submit {
    flex-shrink: 0;
    grid-column: unset;
    grid-row: unset;
    width: auto;
    min-width: 5rem;
    height: var(--search-control-h);
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border-radius: 0;
  }

  .search-advanced-panel.is-open .search-advanced-panel__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #eef2f6;
  }
}

@media (max-width: 520px) {
  .search-bar__submit {
    min-width: 4.75rem;
    padding: 0 0.65rem;
    font-size: 0.8125rem;
  }

  .search-advanced-panel.is-open .search-advanced-panel__filters {
    grid-template-columns: 1fr;
  }
}

.search-bar__filters {
  display: contents;
}

.search-advanced-panel__filters {
  display: none;
}

/* Sections */
.section {
  width: 100%;
  padding-block: 2rem;
  box-sizing: border-box;
}

main > .container > .section:first-child {
  padding-top: 0.75rem;
}

.section.detail {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.15rem;
}

/* Property cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .card-grid .property-card .property-card__media .lazy-img,
  .card-grid .property-card .property-card__media img {
    height: 115px;
  }

  .card-grid .property-card .card-body {
    padding: 0.6rem 0.65rem;
  }

  .card-grid .property-card .card-title {
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-grid .property-card .card-price {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
  }

  .card-grid .property-card .card-meta {
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  .card-grid .property-badge {
    font-size: 0.5rem;
    padding: 0.06rem 0.22rem;
  }

  .card-grid .property-card__badges {
    top: 0.3rem;
    left: 0.3rem;
    right: 0.3rem;
    gap: 0.2rem;
  }

  .card-grid .media-actions--card {
    left: 0.26rem;
    bottom: 0.26rem;
    gap: 0.2rem;
  }

  .card-grid .media-actions__btn {
    font-size: 0.6rem;
    padding: 0.06rem 0.2rem;
    gap: 0.14rem;
  }

  .card-grid .media-actions__icon {
    width: 1.1em;
    height: 1.1em;
  }

  .card-grid .property-card .card-price-sub,
  .card-grid .property-card .card-extra,
  .card-grid .property-card .card-tags {
    display: none;
  }

  .card-grid .property-card .card-location {
    font-size: 0.72rem;
  }
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.property-card__media {
  position: relative;
  overflow: hidden;
}

.property-card__media .lazy-img,
.property-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.property-card:hover .property-card__media .lazy-img,
.property-card:hover .property-card__media img {
  transform: scale(1.03);
}

.property-card__badges {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  right: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  z-index: 1;
}

.property-badge {
  display: inline-block;
  padding: 0.12rem 0.32rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.property-badge--ads {
  margin-left: auto;
  padding: 0.05rem 0.26rem;
  border-radius: 2px;
  background: rgb(84 84 84 / 78%);
  color: #f9f9f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.property-badge--type {
  margin-right: auto;
  background: rgba(21, 41, 66, 0.82);
  color: #fff;
}

.property-card__photos {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 1;
}

.media-actions--card {
  position: absolute;
  left: 0.32rem;
  right: auto;
  bottom: 0.32rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  z-index: 2;
}

.media-actions--detail {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.media-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.45rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.media-actions--card .media-actions__btn {
  padding: 0.12rem 0.32rem;
  font-size: 0.68rem;
}

.media-actions__btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.88);
}

.media-actions__btn--video:not(:disabled) {
  background: rgba(192, 57, 43, 0.88);
}

.media-actions__btn--video:not(:disabled):hover {
  background: rgba(192, 57, 43, 1);
}

.media-actions__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.media-actions__icon {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.media-actions__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

body.property-media-open {
  overflow: hidden;
}

.property-media-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.72);
}

.property-gallery-popup,
.property-video-popup {
  position: fixed;
  z-index: 9001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.property-media-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.property-media-popup__close:hover {
  background: rgba(15, 23, 42, 0.92);
}

.property-gallery-popup__frame {
  position: relative;
  background: #0f172a;
}

.property-gallery-popup__image {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  margin: 0 auto;
}

.property-gallery-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.property-gallery-popup__nav--prev { left: 0.75rem; }
.property-gallery-popup__nav--next { right: 0.75rem; }

.property-gallery-popup__counter {
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.property-gallery-popup__thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
}

.property-gallery-popup__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
}

.property-gallery-popup__thumb.is-active {
  border-color: var(--blue, #2563eb);
}

.property-gallery-popup__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-video-popup__frame {
  background: #000;
}

.property-video-popup__player {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  background: #000;
}

.property-card .card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.property-card .card-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}

.property-card .card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.property-card .card-price {
  color: var(--price-color);
  font-weight: 700;
  font-size: 0.96rem;
  margin: 0;
}

.property-card .card-price-sub {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.property-card .card-location {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.8rem;
  color: #475569;
}

.property-card .card-location__type {
  color: #64748b;
}

.property-card .card-location__type::before {
  content: '·';
  margin-right: 0.35rem;
  color: #cbd5e1;
}

.property-card .card-meta {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.property-card .card-meta--specs {
  align-items: center;
}

.property-card .card-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.property-card .card-spec__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.property-card .card-spec__icon--area::before { content: '📐'; font-size: 0.85rem; }
.property-card .card-spec__icon--bed::before { content: '🛏'; font-size: 0.85rem; }
.property-card .card-spec__icon--bath::before { content: '🚿'; font-size: 0.85rem; }
.property-card .card-spec__icon--floor::before { content: '▦'; font-size: 0.75rem; }

.property-card .card-meta--specs .card-spec:not(:last-child)::after {
  content: '·';
  margin-left: 0.55rem;
  color: #cbd5e1;
}

.property-card .card-extra {
  font-size: 0.78rem;
  color: var(--olive);
  font-weight: 600;
  line-height: 1.35;
}

.property-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.property-card .card-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid rgba(55, 48, 163, 0.12);
}

.property-card .card-tag[style*="--tag-color"] {
  background: color-mix(in srgb, var(--tag-color) 14%, white);
  color: var(--tag-color);
  border-color: color-mix(in srgb, var(--tag-color) 28%, white);
}

.property-card .card-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.property-card .card-footer__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  min-width: 0;
  flex: 1;
}

.property-card .card-code {
  font-weight: 400;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.property-card .card-date {
  white-space: nowrap;
}
.project-card .card-date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Projects */
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-card .card-body {
  padding: 1rem;
}

.project-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.project-card .card-location {
  font-size: 0.85rem;
  color: #666;
}

.project-card .card-summary {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Homepage — Dự án mở bán (50% desktop/tablet, 100% mobile) */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.project-card--home {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 220px;
  min-width: 0;
  width: 100%;
}

.project-card--home .card-media {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
  overflow: hidden;
  background: #eef1f5;
}

.project-card--home .card-media img,
.project-card--home .card-media .lazy-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.project-card--home .card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-card--home .card-badge--ads {
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.04rem 0.22rem;
  border-radius: 2px;
  background: rgb(84 84 84 / 78%);
  color: #f9f9f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.48rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.project-card--home .card-badge--progress {
  top: auto;
  left: auto;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(15, 23, 42, 0.82);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.project-card--home .card-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.project-card--home .card-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-card--home .card-footer-row {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.project-card--home .card-footer-row .card-date {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

.project-card--home .card-body {
  flex: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.project-card--home .card-title {
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card--home .card-developer {
  font-size: 0.82rem;
  color: #475569;
}

.project-card--home .card-price {
  color: var(--price-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.project-card--home .card-facts {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0 0;
  border-top: 1px solid #f1f5f9;
}

.project-card--home .card-facts li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.25rem 0.65rem;
  align-items: start;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  line-height: 1.45;
  border-bottom: 1px solid #f1f5f9;
}

.project-card--home .card-facts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-card--home .card-facts span {
  color: #94a3b8;
  font-weight: 500;
}

.project-card--home .card-facts strong {
  color: #334155;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.project-card--home .card-summary {
  margin-top: 0.15rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  color: #64748b;
}

.project-card--home .card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  white-space: nowrap;
}

.project-card--home:hover .card-cta {
  color: var(--orange);
}

@media (max-width: 992px) {
  .home-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .project-card--home {
    flex-direction: column;
    min-height: 0;
  }

  .project-card--home .card-media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .project-card--home .card-media img,
  .project-card--home .card-media .lazy-img {
    min-height: 200px;
    height: 200px;
  }

  .project-card--home .card-body {
    padding: 1rem;
  }

  .project-card--home .card-facts li {
    font-size: 0.8rem;
  }
}

.section-lead {
  margin: -0.35rem 0 1.25rem;
  font-size: 0.92rem;
  color: #64748b;
}

.section--projects-list .pagination {
  margin-top: 1.5rem;
}
.lazy-img:not(.loaded) {
  background: linear-gradient(90deg, #eef1f5 25%, #f8f9fb 50%, #eef1f5 75%);
  background-size: 200% 100%;
  animation: lazy-shimmer 1.2s ease-in-out infinite;
}

.lazy-img {
  transition: opacity 0.35s ease;
}

.lazy-img.loaded {
  animation: none;
  background: none;
  opacity: 1;
}

.lazy-img:not(.loaded) {
  opacity: 0.92;
}

@keyframes lazy-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail-content img.lazy-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Area buttons */
.area-grid__lead {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.area-grid--top {
  gap: 0.4rem;
}

.area-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.4rem;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.area-btn__name {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-btn__count,
.area-btn span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.92;
}

.area-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.area-btn.blue { background: var(--blue); }
.area-btn.green { background: var(--green); }
.area-btn.olive { background: var(--olive); }
.area-btn.orange { background: var(--orange-btn); }
.area-btn.teal { background: #0d9488; }
.area-btn.purple { background: #7c3aed; }
.area-btn.rust { background: #b45309; }
.area-btn.slate { background: #475569; }
.area-btn.cyan { background: #0891b2; }
.area-btn.rose { background: #be123c; }
.area-btn.amber { background: #d97706; }
.area-btn.navy { background: #1e40af; }

.area-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.area-more__toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  user-select: none;
  font-family: inherit;
  line-height: 1.3;
}

.area-more__toggle::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.area-tags-wrap.is-expanded .area-more__toggle::after {
  transform: rotate(180deg);
}

.area-more__collapse {
  display: none;
}

.area-tags-wrap.is-expanded .area-more__expand {
  display: none;
}

.area-tags-wrap.is-expanded .area-more__collapse {
  display: inline;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.area-tag span {
  color: #94a3b8;
  font-size: 0.68rem;
}

.area-tag:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--blue-dark);
}

.area-tag.area-tag--more {
  display: none;
}

.area-tags-wrap.is-expanded .area-tag.area-tag--more {
  display: inline-flex;
}

@media (min-width: 768px) {
  .area-grid--top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .area-btn {
    padding: 0.5rem 0.45rem;
    font-size: 0.75rem;
  }

  .area-btn__count,
  .area-btn span {
    font-size: 0.68rem;
  }
}

@media (min-width: 1024px) {
  .area-grid--top {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .area-btn {
    font-size: 0.78rem;
  }
}

/* Mobile nav (bottom bar) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 0.5rem;
  z-index: 100;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
  }

  .bottom-nav a.active {
    color: var(--yellow);
    font-weight: 600;
  }

  .topnav--desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .topbar__inner {
    justify-content: space-between;
    min-height: 2.75rem;
  }

  .header-utils {
    margin-left: auto;
  }

  .topbar__brand {
    display: flex;
  }

  .header-main__brand {
    display: none;
  }

  .header-main__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.5rem;
  }

  .search-strip--header {
    --search-control-h: 38px;
  }

  body {
    padding-bottom: 60px;
  }
}

@media (min-width: 768px) {
  .mobile-nav-drawer,
  .mobile-nav-overlay {
    display: none !important;
  }

  .topbar__inner {
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .topbar__start {
    display: none;
  }

  .topnav--desktop {
    flex: 0 1 auto;
    flex-wrap: nowrap;
  }

  .topnav--desktop a {
    padding-inline: 0.85rem;
  }

  .header-utils {
    margin-left: auto;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .topnav--desktop a {
    padding-inline: 0.65rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .header-main__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }

  .search-strip--header {
    flex: 1;
    min-width: 0;
  }

  .search-advanced-btn span {
    display: none;
  }

  .search-advanced-btn {
    padding-inline: 0.75rem;
  }
}

/* Floating CTA — đã chuyển xuống footer */
.fab {
  display: none !important;
}

/* View more button */
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.85rem;
  background: #fff;
  color: var(--blue-dark);
  border: 2px solid rgba(30, 58, 95, 0.22);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.btn-view-more::after {
  content: '→';
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.22s ease;
}

.btn-view-more:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.18);
  transform: translateY(-2px);
}

.btn-view-more:hover::after {
  transform: translateX(4px);
}

.btn-view-more:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
}

.btn-view-more:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ========== Popup Đăng ký nhận tư vấn (nhỏ gọn) ========== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}
.popup-overlay.is-open { display: flex; }
.popup-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}
.popup-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popup-header h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}
.popup-body { padding: 1rem; }
.popup-body label { display: block; margin-bottom: 0.2rem; font-size: 0.8rem; font-weight: 500; }
.popup-body input,
.popup-body select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.popup-body .btn-submit {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  background: var(--yellow);
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.popup-body a.btn-submit {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.popup-body .btn-submit:hover { background: #e09510; }
.popup-body .form-message { margin-top: 0.5rem; font-size: 0.8rem; }
.popup-body .form-message.success { color: #27ae60; }
.popup-body .form-message.error { color: #d71f32; }

.popup-body .form-message.error { color: #d71f32; }

.consult-modal-desc {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.consult-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.consult-info-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.consult-info-item__value {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.4;
}

.consult-info-item__phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-btn);
  text-decoration: none;
}

.consult-info-item__phone:hover {
  text-decoration: underline;
}

.consult-open-form {
  margin-top: 0.35rem;
}

.consult-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.consult-back:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.consult-fab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-btn) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(211, 84, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.consult-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.consult-widget__menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 220px;
  animation: consult-menu-in 0.22s ease;
}

@keyframes consult-menu-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consult-widget__action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: left;
}

.consult-widget__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

.consult-widget__action-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.1rem;
  line-height: 1;
}

.consult-widget__action--call .consult-widget__action-icon {
  background: #fff3e6;
}

.consult-widget__action--sms .consult-widget__action-icon {
  background: #e0f2fe;
}

.consult-widget__action--zalo .consult-widget__action-icon {
  background: #e8f1ff;
}

.consult-widget__action--messenger .consult-widget__action-icon {
  background: #ede7ff;
}

.consult-widget__action--form .consult-widget__action-icon {
  background: #ecfdf5;
}

.consult-widget__action-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.consult-widget__action-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.consult-widget__action-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consult-widget__toggle {
  animation: consult-pulse 2.5s ease-in-out infinite;
}

.consult-widget.is-open .consult-widget__toggle {
  animation: none;
}

.consult-fab__icon.consult-widget__icon-close {
  display: none;
  font-size: 1.5rem;
  line-height: 1;
}

.consult-widget.is-open .consult-fab__icon.consult-widget__icon-open {
  display: none;
}

.consult-widget.is-open .consult-fab__icon.consult-widget__icon-close {
  display: inline-flex;
}

.consult-widget.is-open .consult-fab__text {
  display: none;
}

@keyframes consult-pulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(211, 84, 0, 0.5);
  }
  50% {
    box-shadow: 0 8px 28px rgba(211, 84, 0, 0.5), 0 0 0 10px rgba(211, 84, 0, 0.15);
  }
}

.consult-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(211, 84, 0, 0.55);
}

.consult-fab__icon {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consult-fab__icon svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

@media (max-width: 767px) {
  .consult-widget {
    right: 1rem;
    bottom: 4.85rem;
  }

  .consult-widget__menu {
    min-width: 200px;
    max-width: calc(100vw - 2rem);
  }

  .consult-fab {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
  }

  .consult-widget.is-open .consult-fab {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
  }

  .consult-widget.is-open .consult-fab__text {
    display: none;
  }

  .consult-fab__text {
    display: none;
  }

  .consult-fab__icon {
    font-size: 1.55rem;
  }
}

/* ========== Footer chi tiết (load API) ========== */
.footer-areas {
  width: 100%;
  padding: 1.35rem 0 1.5rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.footer-areas .section-title {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
}

.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding-block: 2rem 1.5rem;
  margin-top: 0;
  box-sizing: border-box;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand .footer-company-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand__logo {
  margin-bottom: 1rem;
}
.logo--footer {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}
.logo--footer:hover {
  color: #fff;
  text-decoration: none;
}
.logo--footer .logo__mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.logo--footer .logo__mark svg {
  width: 26px;
  height: 26px;
  color: var(--yellow);
}
.logo--footer .logo__brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
}
.logo--footer:hover .logo__mark {
  border-color: var(--yellow);
  background: rgba(245, 166, 35, 0.12);
}
.footer-brand .footer-desc { font-size: 0.9rem; opacity: 0.9; line-height: 1.5; margin-bottom: 1rem; }
.footer-brand .footer-desc p { margin: 0 0 0.5rem; }
.footer-brand .footer-desc p:last-child { margin-bottom: 0; }
.footer-brand .footer-desc a { color: inherit; text-decoration: underline; }
.footer-brand .footer-address,
.footer-brand .footer-email { font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-col h4 { font-size: 0.95rem; margin: 0 0 0.75rem; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
}
.footer-contact-item__icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.footer-contact-item__icon svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.92);
}
.footer-contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.footer-contact-item__label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.35;
}
.footer-contact-item__email {
  color: #2dd4bf;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  word-break: break-word;
}
.footer-contact-item__email:hover {
  color: #5eead4;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copyright { font-size: 0.85rem; opacity: 0.85; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-loading { text-align: center; padding: 2rem; opacity: 0.8; }

/* Trang đăng nhập / đăng ký (trong layout app) */
.auth-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem var(--gutter);
  background: linear-gradient(160deg, #e8eef5 0%, #f0f4f8 50%, #e6ecf2 100%);
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - 50% + var(--gutter)));
  box-sizing: border-box;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 2.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(30, 58, 95, 0.06);
  overflow: hidden;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
.auth-note {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}
.auth-note--compact {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #94a3b8;
}
.auth-message {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
}
.auth-message--success {
  color: #1a6b3a;
  background: #e8f5e9;
}
.auth-message--error {
  color: #b71c1c;
  background: #ffebee;
}
.auth-message--list {
  padding-left: 1.2rem;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}
.form-group input:hover { background: #fff; border-color: #9ca3af; }
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
  background: #fff;
}
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
}
.checkbox-inline input { width: auto; }
.btn-auth,
.btn-form-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-auth:hover,
.btn-form-submit:hover {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0f1f33 100%);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.35);
  transform: translateY(-1px);
}
.btn-auth:active,
.btn-form-submit:active { transform: translateY(0); }
.auth-link {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.95rem;
  color: #6b7280;
}
.auth-link a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.auth-link a:hover {
  background: rgba(30, 58, 95, 0.08);
  color: var(--blue-dark);
}

/* Page hero & listing pages */
.page-hero {
  padding: 0.55rem 0 0.85rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid #e8ecf0;
  background: transparent;
  color: var(--blue-dark);
  text-align: left;
}

.page-hero--compact {
  padding: 0.45rem 0 0.75rem;
}

.page-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-hero .page-lead {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  max-width: 720px;
}

.page-hero h1::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 100%);
}

.page-hero + .section {
  padding-top: 1.25rem;
}

/* 404 page */
.not-found-page {
  padding: 2.5rem 0 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 42%);
}

.not-found-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.not-found-illus {
  width: min(100%, 360px);
  margin: 0 auto 1.5rem;
}

.not-found-illus__svg {
  display: block;
  width: 100%;
  height: auto;
}

.not-found-illus__shadow {
  fill: rgba(30, 58, 95, 0.08);
}

.not-found-illus__ground {
  fill: #e8eef4;
}

.not-found-illus__tower {
  fill: var(--blue, #1e3a5f);
}

.not-found-illus__tower--back {
  fill: #2d4a6f;
  opacity: 0.72;
}

.not-found-illus__tower--main {
  fill: var(--blue, #1e3a5f);
}

.not-found-illus__tower--side {
  fill: var(--blue-dark, #152942);
  opacity: 0.88;
}

.not-found-illus__windows {
  fill: #fbbf24;
}

.not-found-illus__door {
  fill: #f8fafc;
}

.not-found-illus__pin-body {
  fill: #f59e0b;
}

.not-found-illus__pin-dot {
  fill: #fff;
}

.not-found-illus__pin-x {
  stroke: var(--blue-dark, #152942);
}

.not-found-illus__sign-pole {
  fill: #94a3b8;
}

.not-found-illus__sign-board {
  fill: #fff;
  stroke: var(--blue, #1e3a5f);
  stroke-width: 2.5;
}

.not-found-illus__sign-text {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 26px;
  font-weight: 800;
  fill: var(--blue, #1e3a5f);
  letter-spacing: -0.04em;
}

.not-found-illus__path {
  stroke: #94a3b8;
  fill: none;
}

.not-found-illus__pin {
  animation: not-found-pin-float 3.2s ease-in-out infinite;
  transform-origin: 282px 52px;
}

@keyframes not-found-pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-illus__pin {
    animation: none;
  }
}

.not-found-page__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.not-found-page__title::before {
  content: none;
}

.not-found-page__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #64748b;
}

.not-found-page__lead a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.not-found-page__lead a:hover {
  color: var(--blue, #1e3a5f);
}

.not-found-page__content {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.not-found-page__content a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-summary {
  margin: 0 0 1.25rem;
  color: #475569;
  font-size: 0.95rem;
}

.search-results__projects {
  margin-bottom: 2rem;
}

.search-results__listings-title {
  margin-top: 0.5rem;
}
.empty { text-align: center; color: #666; padding: 2rem; }
.pagination { margin-top: 1.5rem; }

/* Detail page */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--detail-gap);
  align-items: start;
  width: 100%;
}

/* Chỉ dùng khi gallery/media nằm ngoài .detail-main — không tràn full grid */
.detail-grid__media {
  grid-column: 1;
  min-width: 0;
  margin-bottom: 1.25rem;
}

.detail-grid--property .detail-main,
.detail-grid--project .detail-main {
  grid-column: 1;
  grid-row: 1;
}

.detail-grid--property .detail-sidebar,
.detail-grid--project .detail-sidebar {
  grid-column: 2;
  grid-row: 1;
}

/* Ảnh dự án full-width, cùng kích thước khung bản đồ */
.detail-feature {
  margin-top: 0;
}

.detail-intro {
  margin-top: 1.25rem;
}

.detail-intro .detail-title {
  margin-top: 0;
}

.detail-intro .detail-summary {
  margin-bottom: 0;
}

.detail-feature__media {
  margin-bottom: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #eef2f7;
}

/* Gallery BĐS: cùng cột với bản đồ, không full viewport */
.detail-feature--gallery .detail-gallery {
  width: 100%;
  max-width: 100%;
}

.detail-feature--gallery .detail-gallery__viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.detail-image--feature {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.detail-feature__specs {
  margin-top: 1.5rem;
}

.detail-feature__specs .property-specs {
  width: 100%;
  margin: 0;
}

.detail-specs-block + .detail-article,
.detail-feature__specs + .detail-article,
.detail-intro + .detail-article,
.detail-grid__media--inline + .detail-article {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.detail-main,
.detail-sidebar {
  min-width: 0;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }

  .detail-grid--property .detail-main,
  .detail-grid--property .detail-sidebar,
  .detail-grid--project .detail-main,
  .detail-grid--project .detail-sidebar {
    grid-column: 1;
    grid-row: auto;
  }
}
.detail-image {
  width: 100%;
  height: clamp(240px, 36vw, 480px);
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 0;
  display: block;
}

.detail-feature__media .detail-image,
.detail-feature__media .detail-image--feature {
  height: 100%;
  min-height: 260px;
  max-height: none;
  border-radius: 0;
}

.detail-gallery {
  width: 100%;
  margin-bottom: 0;
}

.detail-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f7;
  width: 100%;
  height: clamp(240px, 36vw, 480px);
}

.detail-gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.detail-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.detail-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

.detail-gallery__nav:hover {
  background: #fff;
}

.detail-gallery__nav--prev { left: 0.65rem; }
.detail-gallery__nav--next { right: 0.65rem; }

.detail-gallery__counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.detail-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.detail-gallery__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
}

.detail-gallery__thumb.is-active {
  border-color: var(--yellow, #f5a623);
}

.detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-title { font-size: 1.75rem; color: var(--blue-dark); margin: 0 0 0.5rem; }
.detail-price { color: var(--price-color); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.25rem;
}
.detail-summary { font-size: 1rem; line-height: 1.6; color: #444; margin-bottom: 1rem; }
.detail-content { line-height: 1.7; color: #333; }

.detail-article {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.detail-specs-block {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.detail-specs-block .property-specs {
  width: 100%;
}

.detail-article__heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.detail-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.detail-article__grid--with-specs {
  grid-template-columns: minmax(0, 1fr);
}

.detail-article__empty {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.detail-map {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.detail-map__address {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.detail-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #eef2f7;
}

.detail-map__frame iframe,
.detail-map__canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.detail-map__canvas--loading {
  background:
    linear-gradient(90deg, #eef2f7 25%, #e2e8f0 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: detail-map-loading 1.2s ease-in-out infinite;
}

@keyframes detail-map-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail-map__fallback--pending {
  position: absolute;
  inset: 0;
}

.detail-map__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.detail-map__fallback-image {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

.detail-map__fallback-text {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.detail-map__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue, #1e3a5f);
  text-decoration: none;
}

.detail-map__link:hover {
  text-decoration: underline;
}

.property-specs {
  margin: 0;
}

.property-specs--sidebar {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.property-specs--sidebar .property-specs__title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.property-specs--sidebar .property-specs__row {
  padding: 0.75rem 0;
  grid-template-columns: 36px 1fr auto;
  gap: 0.6rem;
}

.property-specs--sidebar .property-specs__label,
.property-specs--sidebar .property-specs__value {
  font-size: 0.875rem;
}

.property-specs__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.property-specs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.property-specs__col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-specs__row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e9ef;
}

.property-specs__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.property-specs__icon--price::before { content: '₫'; }
.property-specs__icon--area::before { content: 'm²'; font-size: 0.65rem; }
.property-specs__icon--bed::before { content: '🛏'; font-size: 0.95rem; }
.property-specs__icon--bath::before { content: '🚿'; font-size: 0.95rem; }
.property-specs__icon--floor::before { content: '▦'; font-size: 0.85rem; }
.property-specs__icon--front::before { content: '⌂'; font-size: 1rem; }
.property-specs__icon--road::before { content: '↔'; font-size: 0.9rem; }
.property-specs__icon--legal::before { content: '📄'; font-size: 0.9rem; }
.property-specs__icon--interior::before { content: '🛋'; font-size: 0.9rem; }
.property-specs__icon--developer::before { content: '🏢'; font-size: 0.9rem; }
.property-specs__icon--scale::before { content: '▣'; font-size: 0.85rem; }
.property-specs__icon--products::before { content: '⌂'; font-size: 0.9rem; }
.property-specs__icon--units::before { content: '#'; font-size: 0.9rem; }
.property-specs__icon--status::before { content: '◷'; font-size: 0.9rem; }
.property-specs__icon--handover::before { content: '🔑'; font-size: 0.85rem; }

.project-content h3,
.project-content strong {
  display: block;
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.project-content__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.project-content__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

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

.project-amenities {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.project-amenities__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.85rem;
}

.project-amenities__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-amenities__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}

.project-amenities__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

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

.property-specs__label {
  font-size: 0.95rem;
  color: #334155;
}

.property-specs__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

@media (max-width: 767px) {
  .property-specs__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.sidebar-box__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.sidebar-box__label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sidebar-hotline {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #f8fafc 0%, #f1f6fb 50%, #fff 100%);
  border-color: rgba(30, 58, 95, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(30, 58, 95, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-hotline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #93c5fd 0%, var(--blue) 100%);
}

.sidebar-hotline .sidebar-box__label {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.sidebar-hotline .sidebar-box__title {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.sidebar-hotline__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.sidebar-hotline__number:hover {
  color: var(--blue-dark);
  text-decoration: none;
}

.sidebar-hotline__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding: 0.35rem 0.65rem;
  background: rgba(39, 174, 96, 0.08);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
}

.sidebar-hotline__time-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: var(--green);
  opacity: 1;
}

.sidebar-hotline__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
}

.sidebar-hotline__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue-dark);
  border: 1px solid #c7d9ed;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-hotline__btn-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-hotline__btn:hover {
  background: #e0ecf8;
  border-color: #a8c4e0;
  color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(30, 58, 95, 0.1);
}

.sidebar-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-info__list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sidebar-info__list li:last-child {
  border-bottom: none;
}

.sidebar-info__list span {
  color: #64748b;
}

.sidebar-info__list strong {
  color: #1e293b;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.sidebar-info__list .listing-code__suffix {
  color: #e63946;
  font-weight: 700;
}

.listing-code__suffix {
  color: #e63946;
  font-weight: 700;
}

.property-card .listing-code__prefix {
  color: #94a3b8;
  font-weight: 400;
}

.property-card .listing-code__suffix {
  color: #e63946;
  font-weight: 400;
}

.sidebar-project__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-project__link img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-related__item {
  display: flex;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-related li:last-child .sidebar-related__item {
  border-bottom: none;
}

.sidebar-related__item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-related__item span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sidebar-related__item strong {
  font-size: 0.8125rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-related__item em {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--price-color);
}

.sidebar-related__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.sidebar-trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-trust li {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  padding: 0.35rem 0;
}

.contact-box {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}
.contact-box h3 { margin: 0 0 0.5rem; color: var(--blue-dark); }
.contact-box p { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--yellow);
  color: #1a1a1a;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info h2 { color: var(--blue-dark); margin-top: 0; }
.contact-info p { line-height: 1.7; }
.contact-info a { color: var(--blue); }
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"] {
  width: 100%;
  display: block;
}
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}
.field-error { display: block; color: #b71c1c; font-size: 0.85rem; margin-top: 0.25rem; }
.page-content { line-height: 1.7; max-width: 800px; }
.page-content h2 { color: var(--blue-dark); margin-top: 1.5rem; }

.careers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.careers-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.careers-item h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-dark);
  font-size: 1.1rem;
}
.careers-item p { margin: 0.35rem 0; }

.faq-page { max-width: 860px; }
.faq-intro {
  color: #64748b;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
}
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.5rem;
  font-weight: 600;
  color: var(--blue-dark);
  position: relative;
  line-height: 1.45;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 1.15rem 1rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}
.faq-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
}
.faq-cta p {
  margin: 0 0 1rem;
  color: #475569;
}
.faq-cta .btn-primary {
  display: inline-block;
  text-decoration: none;
}

/* Public pagination */
.pagination-bar { text-align: center; margin-top: 1rem; }
.pagination-bar .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.35rem;
  max-width: 100%;
}
.pagination-bar .pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  font-size: 0.875rem;
  line-height: 1;
}
.pagination-bar .pagination li a,
.pagination-bar .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  height: 100%;
  padding: 0 0.15rem;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--blue);
  box-sizing: border-box;
}
.pagination-bar .pagination li a:hover {
  color: var(--blue);
}
.pagination-bar .pagination li:not(.disabled):not(.active):has(a):hover {
  background: #f0f4ff;
  border-color: #c7d2fe;
}
.pagination-bar .pagination li.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}
.pagination-bar .pagination li.active span {
  color: #fff;
}
.pagination-bar .pagination li.disabled {
  color: #999;
  background: #f8fafc;
  border-color: #eee;
}
.pagination-bar .pagination li.disabled span {
  color: inherit;
}
.pagination-bar .pagination li.ellipsis {
  min-width: auto;
  padding: 0 0.35rem;
  border-color: transparent;
  background: transparent;
}

/* Project detail visuals */
.project-visuals {
  width: 100%;
  padding-bottom: 2.5rem;
  box-sizing: border-box;
}

.project-visuals__block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.project-visuals__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.35rem;
}

.project-visuals__lead {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.project-visuals__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-visuals__grid .project-visuals__block {
  margin-bottom: 0;
}

.project-visuals__block--half {
  height: 100%;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-stats__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.project-stats__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.project-stats__label {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-stats__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}

.connectivity__row {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.connectivity__row:last-child {
  border-bottom: none;
}

.connectivity__info strong {
  display: block;
  font-size: 0.92rem;
  color: #1e293b;
}

.connectivity__info span {
  font-size: 0.82rem;
  color: #64748b;
}

.connectivity__bar-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.connectivity__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 100%);
  border-radius: 999px;
  min-width: 8%;
}

.progress-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
}

.progress-summary__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) var(--progress), #e2e8f0 var(--progress));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.progress-summary__ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}

.progress-summary__ring span {
  position: relative;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.progress-summary p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.timeline__dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: #cbd5e1;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.timeline__step--done .timeline__dot {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.timeline__step--current .timeline__dot {
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--orange);
}

.timeline__content strong {
  display: block;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.3;
}

.timeline__content span {
  font-size: 0.75rem;
  color: #64748b;
}

.unit-mix {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.unit-mix__chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 12px #fff, 0 2px 12px rgba(0, 0, 0, 0.08);
}

.unit-mix__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 180px;
}

.unit-mix__legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}

.unit-mix__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.unit-mix__pct {
  font-weight: 700;
  color: var(--blue-dark);
}

.master-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.master-plan__zone {
  flex: 1 1 0;
  min-width: min(100%, 7.5rem);
  min-height: 72px;
  background: color-mix(in srgb, var(--zone-color) 18%, #fff);
  border: 2px solid var(--zone-color);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.15s;
}

.master-plan__zone:hover {
  transform: scale(1.02);
}

.master-plan__zone strong {
  display: block;
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.25;
}

.master-plan__zone span {
  font-size: 0.7rem;
  color: #64748b;
}

.master-plan__zone--large {
  flex-grow: 1.35;
}

.master-plan__zone--medium {
  flex-grow: 1;
}

.master-plan__zone--small {
  flex-grow: 0.85;
  min-width: min(100%, 6rem);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.amenity-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.35;
}

.amenity-grid__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.amenity-grid--sidebar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.amenity-grid--sidebar .amenity-grid__item {
  padding: 0.65rem 0.4rem;
  font-size: 0.75rem;
}

.amenity-grid--sidebar .amenity-grid__icon {
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-visuals__grid {
    grid-template-columns: 1fr;
  }

  .connectivity__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }

  .timeline__dot {
    margin: 0;
    flex-shrink: 0;
  }

  .master-plan__zone {
    min-width: min(100%, 100%);
    flex: 1 1 100%;
  }

  .master-plan__zone--large,
  .master-plan__zone--medium,
  .master-plan__zone--small {
    flex-grow: 1;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
