:root {
  --ink: #0a2633;
  --ink-soft: #2b3838;
  --green: #00704c;
  --green-mid: #3db140;
  --lime: #79f233;
  --mint: #eefbf1;
  --line: rgba(10, 38, 51, 0.12);
  --paper: #ffffff;
  --muted: #687578;
  --surface: #f6f8f5;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(10, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(10, 38, 51, 0.92);
  border-bottom: 1px solid rgba(121, 242, 51, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.rto-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(121, 242, 51, 0.98), rgba(61, 177, 64, 0.9)),
    var(--lime);
  box-shadow: inset 0 0 0 1px rgba(10, 38, 51, 0.12), 0 10px 20px rgba(0, 112, 76, 0.18);
}

.rto-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.45) 43% 48%, transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.45), transparent 28%);
}

.rto-logo-mark {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.rto-logo-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.82;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.top-nav a {
  padding: 8px 0;
}

.top-nav a:hover {
  color: var(--lime);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #082f34;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 38, 51, 0.94), rgba(10, 38, 51, 0.6), rgba(0, 112, 76, 0.2)),
    linear-gradient(0deg, rgba(10, 38, 51, 0.94), rgba(10, 38, 51, 0.04)),
    linear-gradient(180deg, rgba(10, 38, 51, 0.32), rgba(121, 242, 51, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 120px clamp(22px, 6vw, 84px) 96px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-mid);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.matching-shell .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.07;
  font-weight: 800;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  line-height: 1.28;
  font-weight: 700;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 840px;
  margin-top: 30px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(121, 242, 51, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.hero-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--lime);
}

.home-search-section {
  position: relative;
  z-index: 4;
  padding: 0 clamp(20px, 5vw, 72px);
  margin-top: -44px;
}

.search-dock {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr 0.85fr auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(121, 242, 51, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 46px rgba(10, 38, 51, 0.22);
}

.search-dock label {
  color: var(--ink);
  font-size: 14px;
}

.home-listing-section {
  padding: clamp(68px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 88px);
  background: #fff;
}

.listing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.listing-head h2 {
  max-width: 760px;
}

.listing-head a {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.booking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.booking-row {
  display: flex;
  flex-direction: column;
  min-height: 610px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 38, 51, 0.08);
}

.booking-photo {
  position: relative;
  height: 218px;
  overflow: hidden;
  background: var(--ink);
}

.booking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badges {
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  justify-items: start;
  gap: 9px;
}

.available-badge,
.deal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(10, 38, 51, 0.18);
}

.available-badge {
  background: var(--green);
}

.deal-badge {
  color: var(--ink);
  background: var(--lime);
}

.photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 38, 51, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.gallery-dots span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.gallery-dots span:first-child {
  background: var(--lime);
}

.booking-main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.booking-main h3 {
  max-width: calc(100% - 44px);
  min-height: 56px;
  font-size: 20px;
  line-height: 1.25;
}

.booking-price {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.heart-button {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.card-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.25;
}

.listing-facts span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-width: 0;
}

.listing-facts b {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-main .primary-button {
  margin-top: auto;
}

/*
  Kept for older card markup in detail/search pages; home cards override it above.
*/
.booking-price.old {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
  text-align: right;
}

.booking-price span,
.booking-price small {
  color: var(--muted);
}

.booking-price strong {
  color: var(--green);
  font-size: 23px;
  line-height: 1.1;
}

.booking-price .ghost-button {
  margin-top: 8px;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.hero-actions,
.decision-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 12px 28px rgba(10, 38, 51, 0.18);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.ghost-button {
  color: var(--green);
  background: #fff;
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.split-section,
.page-shell,
.application-layout,
.matching-shell {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.statement-section {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 72px);
  text-align: center;
  background: #fff;
}

.statement-section p {
  color: var(--green);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
}

.statement-section h2 {
  max-width: 940px;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.02;
}

.statement-section span {
  display: block;
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.compare-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(10, 38, 51, 0.94), rgba(0, 112, 76, 0.72)),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.compare-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.compare-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-card {
  min-height: 360px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.compare-card h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}

.compare-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.compare-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.bright-card {
  color: var(--ink);
  background: rgba(121, 242, 51, 0.9);
  border-color: rgba(121, 242, 51, 0.96);
}

.bright-card h3,
.bright-card p,
.bright-card li {
  color: var(--ink);
}

.bright-card li::before {
  background: var(--green);
}

.rto-principle-section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 47, 52, 0.98), rgba(0, 112, 76, 0.86)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.rto-principle-head {
  max-width: 860px;
  margin-bottom: 30px;
}

.rto-principle-head p:not(.eyebrow) {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.package-card {
  overflow: hidden;
  border: 1px solid rgba(121, 242, 51, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(2, 24, 30, 0.22);
}

.package-card.featured-package {
  border-color: rgba(121, 242, 51, 0.86);
  transform: translateY(-8px);
}

.package-header {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--green));
}

.featured-package .package-header {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), var(--green-mid));
}

.package-header span {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.package-header strong {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.86;
}

.package-metrics {
  display: grid;
}

.package-metrics p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 22px;
  border-top: 1px solid rgba(10, 38, 51, 0.08);
  color: var(--ink);
}

.package-metrics p:nth-child(odd) {
  background: var(--mint);
}

.package-metrics span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.package-metrics strong {
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.1;
  text-align: right;
}

.package-note {
  max-width: 860px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.plans-section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: var(--surface);
}

.plans-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.plan-card {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 26px rgba(10, 38, 51, 0.06);
}

.plan-card.featured {
  color: #fff;
  background:
    linear-gradient(155deg, rgba(0, 112, 76, 0.92), rgba(10, 38, 51, 0.96)),
    url("https://images.unsplash.com/photo-1600573472592-401b489a3cdc?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.plan-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.plan-card.featured span,
.plan-card.featured a {
  color: var(--lime);
}

.plan-card h3 {
  margin-top: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.plan-card p {
  margin-top: 12px;
}

.plan-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.plan-card a {
  margin-top: 24px;
  color: var(--green);
  font-weight: 700;
}

.investment-section {
  display: grid;
  gap: 30px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(10, 38, 51, 0.98), rgba(0, 112, 76, 0.86)),
    url("https://images.unsplash.com/photo-1560520031-3a4dc4e9de0c?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.investment-intro {
  max-width: 920px;
}

.investment-intro p:not(.eyebrow) {
  max-width: 740px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.investment-graphic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.investment-graphic article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(121, 242, 51, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.investment-graphic article::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(121, 242, 51, 0.42);
  border-radius: 999px;
}

.investment-graphic span {
  color: var(--lime);
  font-size: 36px;
  font-weight: 800;
}

.investment-graphic strong {
  display: block;
  margin-top: 28px;
  font-size: 22px;
}

.investment-graphic p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.investment-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.invest-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invest-compare article,
.credit-estimator {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.invest-compare .cash-card {
  color: var(--ink);
  background: rgba(121, 242, 51, 0.9);
  border-color: rgba(121, 242, 51, 0.9);
}

.invest-compare article > p {
  color: var(--lime);
  font-weight: 800;
}

.invest-compare .cash-card > p {
  color: var(--green);
}

.invest-compare h3,
.credit-estimator h3 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.invest-compare dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.invest-compare dl div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.invest-compare .cash-card dl div {
  background: rgba(10, 38, 51, 0.08);
}

.invest-compare dt {
  color: rgba(255, 255, 255, 0.6);
}

.invest-compare dd {
  color: #fff;
}

.cash-card dt {
  color: rgba(10, 38, 51, 0.58);
}

.cash-card dd {
  color: var(--ink);
}

.credit-estimator {
  display: grid;
  gap: 14px;
  color: #fff;
}

.credit-estimator label {
  color: rgba(255, 255, 255, 0.86);
}

.estimate-output {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(10, 38, 51, 0.42);
}

.estimate-output span,
.estimate-output small {
  color: rgba(255, 255, 255, 0.66);
}

.estimate-output strong {
  color: var(--lime);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.property-card,
.match-panel,
.data-section,
.note-box,
.metric-grid article,
.investor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
}

.feature-grid p,
.property-card p,
.match-panel p {
  margin-top: 8px;
}

.page-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.page-heading p:last-child {
  margin-top: 14px;
  font-size: 17px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-pill {
  min-height: 42px;
  padding: 10px 18px;
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(0, 112, 76, 0.24);
  border-radius: 999px;
  cursor: pointer;
}

.filter-pill.active {
  color: #fff;
  background: var(--green);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.property-card {
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10, 38, 51, 0.06);
}

.property-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-body {
  padding: 18px;
}

.tag-row,
.fact-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 112, 76, 0.1);
  font-size: 12px;
  font-weight: 600;
}

.price {
  margin-top: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.fact-row {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.detail-gallery img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-panel {
  position: sticky;
  top: 96px;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.key-facts div,
.match-panel dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.key-facts span,
dt {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.key-facts strong,
dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 76px);
  align-items: center;
  background: var(--surface);
}

.application-copy p {
  margin-top: 16px;
  font-size: 17px;
}

.note-box {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 18px;
}

.application-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.stepper span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 112, 76, 0.1);
  font-weight: 700;
}

.stepper .active {
  color: var(--ink);
  background: var(--lime);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus {
  outline: 3px solid rgba(121, 242, 51, 0.38);
  border-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.full-width {
  width: 100%;
}

.form-result {
  min-height: 24px;
  color: var(--green);
  font-weight: 600;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(10, 38, 51, 0.95), rgba(0, 112, 76, 0.78)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(121, 242, 51, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.login-card p {
  margin-top: 12px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
  background: var(--surface);
}

.admin-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 32px 24px;
  color: #fff;
  background: var(--ink);
}

.admin-sidebar h1 {
  margin-bottom: 28px;
  font-size: 34px;
}

.admin-sidebar a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-main {
  padding: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 34px;
}

.data-section {
  margin-top: 18px;
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 24px;
}

.section-title a,
.section-title span {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.ready {
  color: var(--green);
  background: rgba(0, 112, 76, 0.1);
}

.status.warn {
  color: #965b00;
  background: #fff2d6;
}

.investor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.priority-star {
  min-height: auto;
  padding: 2px 6px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.priority-star.active {
  color: #d99a00;
}

.priority-star:disabled {
  cursor: default;
  opacity: 0.4;
}

.table-wrap td select,
.table-wrap td input {
  min-height: 36px;
  padding: 6px 10px;
}

.investor-card {
  padding: 16px;
}

.investor-card strong {
  display: block;
  margin-bottom: 8px;
}

.matching-shell {
  min-height: calc(100vh - 76px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 112, 76, 0.82), rgba(10, 38, 51, 0.96)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.matching-shell .page-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.matching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.match-panel {
  padding: 22px;
  color: var(--ink);
}

.match-panel.recommended {
  border-color: rgba(121, 242, 51, 0.8);
  box-shadow: 0 18px 42px rgba(121, 242, 51, 0.22);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-panel dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.decision-board {
  align-items: center;
  padding: 18px 0 0;
}

.decision-board p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.matching-board-shell {
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 4vw, 52px);
  color: #fff;
  background:
    linear-gradient(140deg, rgba(10, 38, 51, 0.98), rgba(0, 112, 76, 0.88)),
    url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.board-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.board-topbar h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.board-topbar p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.trello-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 16px;
}

.trello-column {
  min-height: 620px;
  padding: 14px;
  border: 1px solid rgba(121, 242, 51, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.trello-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 4px 10px;
}

.trello-column-head h2 {
  font-size: 18px;
}

.trello-column-head span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
}

.trello-card-list {
  display: grid;
  gap: 12px;
}

.trello-card {
  padding: 16px;
  border: 1px solid rgba(10, 38, 51, 0.08);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 24px rgba(10, 38, 51, 0.14);
}

.trello-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.trello-card h3 {
  margin-top: 12px;
  font-size: 20px;
}

.trello-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.trello-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trello-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 112, 76, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.trello-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.trello-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
}

.trello-actions button:first-child {
  background: var(--lime);
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 14px 22px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .top-nav.open {
    display: grid;
  }

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

  .split-section,
  .compare-section,
  .search-dock,
  .booking-row,
  .application-layout,
  .detail-grid,
  .admin-layout,
  .investment-tools {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .matching-grid,
  .investor-list,
  .metric-grid,
  .plan-grid,
  .investment-graphic,
  .invest-compare,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-price {
    justify-items: start;
    text-align: left;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand span {
    display: none;
  }

  .brand .rto-logo,
  .brand .rto-logo span {
    display: inline-grid;
  }

  .top-nav {
    top: 68px;
  }

  .hero {
    min-height: calc(100vh - 68px);
  }

  .hero-content {
    padding: 96px 20px 56px;
  }

  .home-search-section {
    margin-top: -26px;
    padding: 0 14px;
  }

  .search-dock {
    gap: 12px;
    padding: 14px;
  }

  .listing-head {
    display: grid;
  }

  .booking-row {
    padding: 10px;
  }

  .booking-row img {
    min-height: 210px;
  }

  .booking-main h3 {
    font-size: 22px;
  }

  .booking-price strong {
    font-size: 25px;
  }

  .hero p {
    font-size: 16px;
  }

  .feature-grid,
  .property-grid,
  .matching-grid,
  .investor-list,
  .metric-grid,
  .compare-board,
  .plan-grid,
  .investment-graphic,
  .invest-compare,
  .package-grid,
  .form-row,
  .key-facts {
    grid-template-columns: 1fr;
  }

  .package-card.featured-package {
    transform: none;
  }

  .package-metrics p {
    align-items: flex-start;
    flex-direction: column;
  }

  .package-metrics strong {
    text-align: left;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .application-form {
    padding: 20px;
  }

  .admin-main {
    padding: 20px;
  }
}
