/* ==================================================================
   Coliving Casita Linda — design system
   Palette: deep teal #065B58 · teal #11778B · orange #FDA948 · sand #FDD187
   Lots of white. Minimal, rounded, airy.
   ================================================================== */

:root {
  --teal-900: #044a47;
  --teal-800: #065B58;   /* R6  G91  B88  */
  --teal-600: #11778B;   /* R17 G119 B139 */
  --teal-500: #2a91a4;
  --teal-050: #eef6f6;
  --orange:   #FDA948;   /* R253 G169 B72  */
  --orange-d: #f2923f;
  --sand:     #FDD187;   /* R253 G209 B135 */
  --sand-050: #fff8ec;

  --ink:      #12312f;
  --body:     #3a5250;
  --muted:    #7d938f;
  --line:     #e7eeed;
  --white:    #ffffff;
  --bg:       #ffffff;
  --bg-soft:  #f7fbfa;

  --ok:       #1f9d6b;
  --ok-bg:    #e9f7f0;
  --danger:   #d4503f;
  --danger-bg:#fcecea;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 10px 30px rgba(6, 91, 88, 0.08);
  --shadow-lg:0 20px 50px rgba(6, 91, 88, 0.14);
  --maxw:     1140px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.2; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #4a2e05; box-shadow: 0 8px 18px rgba(253,169,72,.35); }
.btn-primary:hover { background: var(--orange-d); box-shadow: 0 10px 22px rgba(253,169,72,.45); }
.btn-teal { background: var(--teal-800); color: #fff; }
.btn-teal:hover { background: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 19px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.brand small { display:block; font-weight:500; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--teal-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* language toggle */
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle a { padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-toggle a.active { background: var(--teal-050); color: var(--teal-800); }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--sand-050), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 0 88px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.02em; }
.hero p.lead { font-size: 18px; margin: 20px 0 30px; max-width: 40ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges div { font-size: 13px; color: var(--muted); }
.hero-badges b { display: block; color: var(--teal-800); font-size: 22px; }
.hero-art {
  aspect-ratio: 1/1; border-radius: 28px;
  background: linear-gradient(140deg, var(--teal-600), var(--teal-800));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-art::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(360px 360px at 80% 20%, rgba(253,209,135,.45), transparent 60%);
}
.hero-art .casita {
  position:absolute; left:50%; top:52%; transform:translate(-50%,-50%);
  width: 62%; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2));
}

/* ─── Section heading ─────────────────────────────────────────── */
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sec-head .eyebrow { color: var(--orange-d); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }

/* ─── Room grid / cards ───────────────────────────────────────── */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.room-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.room-card.clickable:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room-media { aspect-ratio: 4/3; position: relative; background: linear-gradient(135deg, var(--teal-050), var(--sand-050)); }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-media .noimg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--teal-500); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok);
}
.badge.price { left:auto; right:12px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.badge.off { background: #eef1f1; color: var(--muted); }
.room-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-body h3 { font-size: 19px; }
.room-loc { display:flex; align-items:center; gap:6px; color: var(--muted); font-size: 14px; }
.room-specs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.room-specs span { font-size: 13px; color: var(--body); display:flex; align-items:center; gap:6px; }
.room-price { font-size: 22px; font-weight: 700; color: var(--teal-800); }
.room-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.room-foot { margin-top: auto; padding-top: 4px; }
.room-card.off { opacity: .72; }
.room-card.off .room-media { filter: grayscale(.5); }

/* ─── Features ────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-050); color: var(--teal-700, var(--teal-800)); margin-bottom: 14px;
}
.feature h4 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--teal-900); color: #cfe4e2; padding: 56px 0 30px; margin-top: 20px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--sand); }
.site-footer a { color: #cfe4e2; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 13px; display:flex; justify-content: space-between; gap:16px; flex-wrap: wrap; }
.admin-link { font-size: 12px; color: rgba(207,228,226,.6); }
.admin-link:hover { color: var(--sand); }

/* ─── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(900px 500px at 50% -10%, var(--teal-050), var(--bg)); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 38px 34px; }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 23px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 6px 0 26px; font-size: 15px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); }

/* alerts */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .room-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-teal span.hide-sm { display:none; }
  .brand small { display:none; }
}
