:root {
  --teal-700: #0f766e; --teal-800: #115e59; --teal-900: #134e4a;
  --teal-600: #0d9488; --teal-50: #f0fdfa; --teal-100: #ccfbf1;
  --amber-500: #f59e0b; --amber-300: #fcd34d;
  --ink-900: #0f172a; --ink-600: #475569; --ink-400: #94a3b8;
  --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink-900); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #99f6e4; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- header ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--teal-800); }
.logo span { color: var(--amber-500); }
.nav { display: flex; gap: 22px; font-size: .95rem; font-weight: 600; color: var(--ink-600); }
.nav a { padding: 6px 2px; border-radius: 8px; transition: color .15s; }
.nav a:hover { color: var(--teal-700); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(13, 148, 136, .42); }
.btn-ghost { background: #fff; color: var(--teal-700); border: 1.5px solid var(--teal-100); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:focus-visible, .field:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(640px 320px at 88% -30%, rgba(251, 191, 36, .28), transparent 62%),
    radial-gradient(820px 420px at -12% 115%, rgba(45, 212, 191, .38), transparent 62%),
    linear-gradient(160deg, var(--teal-900), var(--teal-700) 52%, var(--teal-600));
  color: #fff; padding: 76px 0 128px; overflow: hidden;
}
.hero-pill { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: var(--teal-100); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; max-width: 640px; line-height: 1.15; }
.hero h1 .hl { background: linear-gradient(transparent 58%, rgba(251, 191, 36, .5) 58%); border-radius: 4px; padding: 0 2px; }
.hero p { margin-top: 14px; font-size: 1.12rem; color: var(--teal-100); max-width: 540px; }
.search-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 44px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08); padding: 20px; margin-top: -76px; position: relative; }
.search-card form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field label, label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 5px; }
.field { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; background: #fff; color: var(--ink-900); transition: border-color .15s; }
.field:hover { border-color: #cbd5e1; }

/* ---------- trust strip ---------- */
.trust { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 28px 0 4px; font-size: .9rem; font-weight: 600; color: var(--ink-600); }
.trust span { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.trust span::before { content: "✓ "; color: var(--teal-600); font-weight: 800; }

/* ---------- sections ---------- */
.section { padding: 48px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 1.5rem; font-weight: 800; }
.section-head a { font-size: .92rem; font-weight: 600; color: var(--teal-700); }
.section-head a:hover { text-decoration: underline; }

/* ---------- room cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: block; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.room-card:hover { box-shadow: 0 18px 36px rgba(15, 23, 42, .13); transform: translateY(-3px); }
.room-card-img { position: relative; overflow: hidden; }
.room-card-img img { width: 100%; aspect-ratio: 400 / 260; object-fit: cover; display: block; transition: transform .35s ease; }
.room-card:hover .room-card-img img { transform: scale(1.045); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; backdrop-filter: blur(4px); }
.badge-bills { background: rgba(236, 253, 245, .95); color: #047857; border: 1px solid #a7f3d0; }
.room-card-body { padding: 15px 17px 17px; }
.room-card-price { font-size: 1.3rem; font-weight: 800; color: var(--teal-800); }
.room-card-price small { font-size: .8rem; font-weight: 600; color: var(--ink-400); }
.room-card-title { font-weight: 700; margin-top: 2px; }
.room-card-meta { font-size: .88rem; color: var(--ink-600); margin-top: 2px; }
.room-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.tag-violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
/* placeholder variety: gentle hue shifts so flat illustrations don't repeat */
.grid .room-card:nth-child(3n+2) img[src*="placeholder"],
.results-grid .room-card:nth-child(3n+2) img[src*="placeholder"] { filter: hue-rotate(75deg) saturate(.9); }
.grid .room-card:nth-child(3n) img[src*="placeholder"],
.results-grid .room-card:nth-child(3n) img[src*="placeholder"] { filter: hue-rotate(-55deg) saturate(.9); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 3px 10px rgba(13, 148, 136, .3); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--ink-600); }

/* ---------- landlord band ---------- */
.landlord-band {
  background:
    radial-gradient(520px 240px at 92% -40%, rgba(251, 191, 36, .22), transparent 60%),
    linear-gradient(135deg, var(--teal-900), var(--teal-800));
  color: #fff; border-radius: var(--radius); padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0; box-shadow: 0 16px 36px rgba(19, 78, 74, .25);
}
.landlord-band h2 { font-size: 1.4rem; font-weight: 800; }
.landlord-band p { color: var(--teal-100); margin-top: 6px; font-size: .95rem; }
.btn-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #451a03; box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }
.btn-amber:hover { transform: translateY(-1px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 42px; font-size: .88rem; color: var(--ink-400); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- search page ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: 1.65rem; font-weight: 800; }
.page-head p { color: var(--ink-600); font-size: .95rem; margin-top: 4px; }
.search-layout { display: grid; grid-template-columns: 252px 1fr; gap: 26px; align-items: start; padding: 18px 0 50px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.filters h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 4px 0; color: var(--ink-600); cursor: pointer; margin-bottom: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
.filters input[type=checkbox] { accent-color: var(--teal-700); width: 16px; height: 16px; }
.filters select.field { width: 100%; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-bar strong { font-size: 1.08rem; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- room page ---------- */
.breadcrumb { font-size: .88rem; color: var(--ink-400); padding: 20px 0 10px; }
.breadcrumb a:hover { color: var(--teal-700); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 150px); gap: 10px; }
.gallery .main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(15, 23, 42, .07); }
.room-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin: 22px 0 6px; }
.room-head h1 { font-size: 1.6rem; font-weight: 800; }
.room-head .meta { color: var(--ink-600); font-size: .95rem; margin-top: 4px; }
.price-box { text-align: right; }
.price-box .amount { font-size: 1.75rem; font-weight: 800; color: var(--teal-800); }
.price-box .note { font-size: .85rem; color: var(--ink-600); }
.room-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.room-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding-bottom: 50px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.panel h2 { font-size: 1.12rem; font-weight: 800; margin-bottom: 10px; }
.panel p { font-size: .95rem; color: var(--ink-600); }
.spec-list { list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--ink-600); }
.spec-list .v { font-weight: 700; }
.compliance { list-style: none; }
.compliance li { display: flex; gap: 10px; padding: 8px 0; font-size: .93rem; color: var(--ink-600); align-items: flex-start; }
.compliance .ok { color: #059669; font-weight: 800; background: #ecfdf5; border: 1px solid #a7f3d0; width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; margin-top: 1px; }
.licence-no { font-weight: 800; color: var(--ink-900); }
.enquiry label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin: 13px 0 5px; }
.enquiry label:first-of-type { margin-top: 0; }
.enquiry textarea { min-height: 92px; resize: vertical; }
.privacy-note { font-size: .8rem; color: var(--ink-400); margin-top: 10px; }
.landlord-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(135deg, var(--teal-100), #99f6e4); color: var(--teal-800); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.landlord-row .who { font-weight: 700; }
.landlord-row .sub { font-size: .85rem; color: var(--ink-600); }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: .93rem; }
.errorlist, .field-error { color: #b91c1c; font-size: .82rem; list-style: none; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .results-grid { grid-template-columns: 1fr; }
  .room-layout { grid-template-columns: 1fr; }
  .search-card form { grid-template-columns: 1fr 1fr; }
  .search-card form .btn { grid-column: 1 / -1; }
  .landlord-band { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 116px; }
  .search-card form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .gallery .main { grid-row: auto; }
  .gallery .thumb { display: none; }
  .price-box { text-align: left; }
}