/* ══════════════════════════════════════════════════════════════
   MakanOnRent — Homepage (Phase 1)
   Luxury rental search. Desktop-first, mobile-perfect.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0A1A14;
  --ink-2:      #0F2A20;
  --green:      #0B3D2E;
  --green-lift: #125A44;
  --gold:       #C8A24A;
  --gold-soft:  rgba(200, 162, 74, .14);
  --gold-line:  rgba(200, 162, 74, .38);
  --paper:      #FBFAF7;
  --surface:    #FFFFFF;
  --text:       #16211C;
  --muted:      #6B7A73;
  --line:       #E6E4DD;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(10, 26, 20, .05);
  --shadow:     0 12px 34px rgba(10, 26, 20, .09);
  --shadow-lg:  0 30px 70px rgba(10, 26, 20, .22);
  --ease:       cubic-bezier(.4, 0, .2, 1);

  /* Local/system stacks — no webfont request, no render-blocking, no FOUT. */
  --font-sans:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
                Arial, 'Noto Sans', sans-serif;
  --font-serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino,
                'Book Antiqua', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-head {
  position: absolute; inset: 0 0 auto; z-index: 40;
  padding: 22px 0;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--gold) 0%, #A8842F 100%);
  display: grid; place-items: center; color: #0A1A14;
  box-shadow: 0 6px 18px rgba(200, 162, 74, .34);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b {
  font-size: 17px; font-weight: 800; letter-spacing: -.2px; color: #fff;
}
.brand-text span {
  font-size: 9.5px; font-weight: 700; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--gold);
}

.head-trust {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px; color: #fff;
}
.head-trust svg { width: 15px; height: 15px; color: var(--gold); }

/* Header CTA — reuses .btn-gold, sized for the header row. */
.head-cta { height: 42px; padding: 0 18px; font-size: 13.5px; }
.head-cta svg { width: 14px; height: 14px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 132px 0 84px;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(200, 162, 74, .18), transparent 62%),
    radial-gradient(760px 420px at 88% 12%, rgba(18, 90, 68, .55), transparent 60%),
    linear-gradient(168deg, var(--ink) 0%, var(--green) 52%, #08281E 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 120px; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero-skyline {
  position: absolute; inset: auto 0 0; width: 100%; height: 260px; z-index: 1;
  opacity: .3; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(720px 460px at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 460px at 50% 30%, #000, transparent 78%);
}
.hero-inner { position: relative; z-index: 3; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 22px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: 11.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 600; line-height: 1.08; letter-spacing: -1.4px;
  color: #fff; margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(15px, 1.5vw, 17.5px); color: rgba(255, 255, 255, .74);
  max-width: 580px; margin: 0 auto 40px; font-weight: 400;
}

/* ── SEARCH PANEL ───────────────────────────────────────────── */
.search-panel {
  position: relative; z-index: 3;
  max-width: 1020px; margin: 0 auto; text-align: left;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

.search-row {
  display: grid; grid-template-columns: 1.05fr 1.25fr 1fr auto; gap: 14px;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--muted); padding-left: 2px;
}

.control {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 14px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.control:hover { border-color: #D4D0C4; }
.control:focus-within {
  border-color: var(--gold); background: var(--surface);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.control > svg { width: 18px; height: 18px; color: var(--green-lift); flex-shrink: 0; }

.control select, .control input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.control select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 18px; }
.control select:focus, .control input:focus { outline: none; }
.control input::placeholder { color: #A3ADA7; font-weight: 500; }
.control select:disabled { color: #A3ADA7; cursor: not-allowed; }
.control .chev {
  position: absolute; right: 13px; width: 15px; height: 15px;
  color: var(--muted); pointer-events: none;
}
.control .prefix { font-size: 14px; font-weight: 700; color: var(--muted); flex-shrink: 0; }

.btn-search {
  height: 56px; padding: 0 30px; border: 0; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--green-lift), var(--green));
  color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 26px rgba(11, 61, 46, .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn-search svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 61, 46, .38); filter: brightness(1.06); }
.btn-search:hover svg { transform: translateX(3px); }
.btn-search:active { transform: translateY(0); }

/* ── ADVANCED ───────────────────────────────────────────────── */
.adv-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 15px; border-radius: 100px;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--green); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.adv-toggle:hover { border-color: var(--gold); background: var(--gold-soft); color: #8A6D22; }
.adv-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.adv-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.adv-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease), opacity .28s var(--ease), margin-top .28s var(--ease);
  opacity: 0; margin-top: 0;
}
.adv-panel.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
.adv-inner { overflow: hidden; min-height: 0; }
.adv-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding-top: 20px; border-top: 1px solid var(--line);
}

.adv-block { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.adv-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--muted);
}

/* segmented control */
.seg {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 100px;
  width: fit-content; max-width: 100%;
}
.seg button {
  padding: 9px 22px; border: 0; border-radius: 100px; background: transparent;
  font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s;
  white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(11, 61, 46, .24);
}
.seg.seg-sm button { padding: 7px 15px; font-size: 12.5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border-radius: 100px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 650; color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .18s var(--ease);
}
.chip:hover { border-color: var(--gold); color: #8A6D22; transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--gold-soft); border-color: var(--gold); color: #8A6D22;
}

.area-row { display: flex; gap: 10px; align-items: center; }
.area-row .control { flex: 1; min-width: 0; }

/* ── QUICK CARDS ────────────────────────────────────────────── */
.quick { padding: 6px 0 88px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.qcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  position: relative; overflow: hidden;
}
.qcard::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .28s;
}
.qcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.qcard:hover::before { opacity: 1; }

.qcard-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.qcard-ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: #8A6D22;
}
.qcard-ic svg { width: 22px; height: 22px; }
.qcard-head h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600; letter-spacing: -.4px; color: var(--ink);
}
.qcard-head p { font-size: 13px; color: var(--muted); font-weight: 500; }

.qgroup + .qgroup { margin-top: 18px; }
.qgroup-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}

/* ── NOTIFY BANNER (reusable — results page) ────────────────── */
.notify-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--green) 100%);
  border: 1px solid var(--gold-line); box-shadow: var(--shadow);
}
.notify-banner .nb-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold);
}
.notify-banner .nb-ic svg { width: 21px; height: 21px; }
.notify-banner .nb-text { flex: 1; min-width: 220px; }
.notify-banner .nb-text b { display: block; font-size: 15.5px; font-weight: 700; color: #fff; }
.notify-banner .nb-text span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

.btn-gold {
  height: 46px; padding: 0 24px; border: 0; border-radius: 100px;
  background: linear-gradient(145deg, var(--gold), #A8842F);
  color: #0A1A14; font-size: 14.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(200, 162, 74, .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 162, 74, .4); filter: brightness(1.05); }
.btn-gold svg { width: 15px; height: 15px; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 26, 20, .62);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px 28px 26px;
  position: relative; text-align: center;
  transform: translateY(16px) scale(.97);
  transition: transform .28s var(--ease);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--gold-soft); color: #8A6D22; }
.modal-ic {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 16px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: #8A6D22;
}
.modal-ic svg { width: 25px; height: 25px; }
.modal-card h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600; letter-spacing: -.4px; color: var(--ink);
  margin-bottom: 8px;
}
.modal-card > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.modal-form .control { height: 52px; }
.modal-form .btn-gold { width: 100%; justify-content: center; height: 50px; }
.form-msg { font-size: 12.5px; font-weight: 650; min-height: 17px; padding-left: 2px; }
.form-msg.is-error { color: #C0392B; }
.form-msg.is-ok { color: #146A4C; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-foot { padding: 26px 0 34px; border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.foot-inner p { font-size: 13px; color: var(--muted); font-weight: 500; }
.foot-inner b { color: var(--green); font-weight: 800; }

/* ── ENTRANCE ANIMATION ─────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(20px); animation: rise .7s var(--ease) forwards; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .14s; }
.rise-3 { animation-delay: .23s; }
.rise-4 { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .field-budget { grid-column: 1 / -1; }
  .btn-search { grid-column: 1 / -1; justify-content: center; }
  .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .hero { padding: 108px 0 62px; }
  .head-trust { display: none; }
  .head-cta { padding: 0 14px; font-size: 13px; }
  .search-panel { padding: 18px; border-radius: 18px; }
  .search-row { grid-template-columns: 1fr; gap: 12px; }
  .adv-body { grid-template-columns: 1fr; gap: 20px; }
  .qcard { padding: 22px 20px; }
  .notify-banner { padding: 18px; }
  .notify-banner .btn-gold { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 1.2px; padding: 7px 14px; }
  .control { height: 54px; }
  .seg button { padding: 9px 16px; font-size: 13px; }
  .chip { padding: 8px 14px; font-size: 13px; }
}
