/* טודירה — design system. Royal/premium real-estate aesthetic: wine + gold on warm cream,
   Frank Ruhl Libre for display headings (Hebrew serif, matches the crown/royal bot branding),
   Rubik for UI text. */

:root {
  --wine: #7a1f2b;
  --wine-dark: #5c1620;
  --wine-tint: #fdf1f2;
  --gold: #b8860b;
  --gold-light: #e8c25a;
  --bg: #faf6ee;
  --card: #ffffff;
  --text: #241417;
  --text-muted: #7a6f6a;
  --border: #ece3d6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(90, 30, 20, .08);
  --shadow-md: 0 8px 24px rgba(90, 30, 20, .10);
  --shadow-lg: 0 16px 40px rgba(90, 30, 20, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-weight: 700;
  color: var(--wine-dark);
  line-height: 1.2;
  margin: 0 0 .4em;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff;
  font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 1.35rem;
  letter-spacing: .3px;
}
.brand .crown { font-size: 1.15rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); display: inline-block; animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-4deg); } }
nav.site-nav { display: flex; gap: 4px; }
nav.site-nav a {
  text-decoration: none; color: rgba(255,255,255,.88);
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
nav.site-nav a:hover, nav.site-nav a.active {
  background: rgba(255,255,255,.14); color: #fff;
}

main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wine); color: #fff !important;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--wine-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--wine-dark) !important; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.outline { background: transparent; color: var(--wine) !important; border: 1.5px solid var(--wine); box-shadow: none; }
.btn.outline:hover { background: var(--wine-tint); }
.btn.block { width: 100%; justify-content: center; }

/* ---------- hero (home page) ----------
   Headline/CTA live in the plain hero, on the page's own background - no
   image behind them, so nothing ever needs to fight the image for
   legibility. The brand portrait gets its own section right after,
   completely unobstructed: full width, no border/shadow/rounded frame (so
   it doesn't read as "a photo in a box"), full-bleed edge-to-edge past
   main's own side padding, and sized at its natural aspect ratio so
   NOTHING is ever cropped - the image's own baked-in caption at the
   bottom stays 100% visible. */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(184,134,11,.14), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(122,31,43,.10), transparent 40%);
  border-radius: var(--radius-lg);
  padding: 48px 28px 36px; text-align: center; margin-bottom: 0;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: .3em; }
.hero .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 26px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 16px; font-size: .82rem; font-weight: 700; color: var(--wine);
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}

.hero-image-full {
  margin: 18px calc(50% - 50vw) 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  background: var(--bg);
}
.hero-image-full img { width: auto; max-width: 100%; height: auto; max-height: 66vh; display: block; }
@media (min-width: 700px) {
  .hero-image-full img { height: 560px; max-height: none; }
}

/* ---------- floating stat cards, right under the hero image ---------- */
.hero-float-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 720px; margin: 26px auto 60px; padding: 0 18px;
}
.float-stat {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  flex: 1 1 140px; min-width: 140px;
}
.float-stat .fs-icon { font-size: 1.3rem; }
.float-stat b { display: block; font-family: 'Frank Ruhl Libre', serif; color: var(--wine); font-size: 1.05rem; line-height: 1.2; }
.float-stat .label-sm { font-size: .72rem; color: var(--text-muted); }
@media (max-width: 480px) {
  .hero-float-stats { gap: 8px; }
  .float-stat { padding: 10px 12px; min-width: 42%; }
}

/* ---------- "why todira" comparison ---------- */
.compare { margin: 60px 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 780px; margin: 0 auto; }
@media (max-width: 620px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  border-radius: var(--radius-md); padding: 24px 22px; border: 1px solid var(--border);
}
.compare-col h3 { font-size: 1.05rem; margin-bottom: 14px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-col li { font-size: .88rem; color: var(--text-muted); padding-inline-start: 24px; position: relative; }
.compare-col.without { background: #f6f2ea; }
.compare-col.without li::before { content: '✕'; position: absolute; inset-inline-start: 0; color: #b06a6a; font-weight: 700; }
.compare-col.with { background: linear-gradient(160deg, var(--wine-tint), #fff); border-color: #eeded1; box-shadow: var(--shadow-sm); }
.compare-col.with h3 { color: var(--wine-dark); }
.compare-col.with li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }

.section-title { text-align: center; margin-bottom: 8px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-sub { text-align: center; color: var(--text-muted); max-width: 520px; margin: 0 auto 36px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--wine-tint); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.steps {
  counter-reset: step; position: relative;
  max-width: 480px; margin: 44px auto; display: flex; flex-direction: column; gap: 32px;
}
.steps::before {
  content: ''; position: absolute; top: 22px; bottom: 22px; inset-inline-start: 18px;
  width: 2px; background: linear-gradient(var(--gold-light), var(--wine)); opacity: .45;
}
.step { position: relative; padding-inline-start: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--wine-dark); font-weight: 700; font-family: 'Frank Ruhl Libre', serif;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { margin: 60px 0; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-weight: 700; font-size: .96rem; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { color: var(--gold); font-size: 1.2rem; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-item p { color: var(--text-muted); font-size: .89rem; margin: 0 0 16px; }

.footer-cta {
  text-align: center; background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 48px 24px; margin-top: 60px;
}
.footer-cta h2 { color: #fff; }
.footer-cta p { color: rgba(255,255,255,.82); max-width: 460px; margin: 0 auto 24px; }

/* ---------- filter summary bar ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.filter-bar .label { font-weight: 600; color: var(--text-muted); font-size: .85rem; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--wine-tint); color: var(--wine); border-radius: 999px;
  padding: 5px 13px; font-size: .82rem; font-weight: 600;
}
.filter-bar .btn.outline { padding: 8px 16px; font-size: .85rem; margin-inline-start: auto; }

/* ---------- listing grid & cards ---------- */
/* ---------- page banner (apartments / liked / filter headers) ---------- */
.page-banner {
  background: radial-gradient(circle at 15% 20%, rgba(184,134,11,.14), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(122,31,43,.10), transparent 40%);
  border-radius: var(--radius-lg);
  padding: 26px 24px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.page-banner .pb-text h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.page-banner .pb-text p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.page-banner .pb-count {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 20px; text-align: center; box-shadow: var(--shadow-sm); min-width: 92px;
}
.page-banner .pb-count b { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 1.5rem; color: var(--wine); }
.page-banner .pb-count span { font-size: .72rem; color: var(--text-muted); }

.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px;
}
.listing-card {
  background: var(--card); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.listing-cover {
  position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background: linear-gradient(135deg, #f1e2c8, #e7c9a8);
  display: flex; align-items: center; justify-content: center;
}
.listing-cover.no-image { color: rgba(122,31,43,.28); font-size: 2.6rem; }
.listing-cover .price-badge {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: rgba(36, 20, 23, .82); color: #fff; backdrop-filter: blur(3px);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  font-family: 'Frank Ruhl Libre', serif;
}
.listing-cover .price-badge .gold-text { color: var(--gold-light); }
.listing-cover .source-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.9); color: var(--wine); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}

.listing-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-loc { font-weight: 700; font-size: 1.02rem; }
.listing-loc .muted { color: var(--text-muted); font-weight: 400; font-size: .9rem; }

.meta-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: .87rem; color: var(--text-muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 4px; }

.amenity-row { display: flex; gap: 6px; flex-wrap: wrap; }
.amenity {
  font-size: .74rem; background: #f4efe4; color: var(--text-muted);
  border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px;
}

.listing-desc { color: var(--text-muted); font-size: .87rem; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.listing-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.listing-footer .posted { font-size: .78rem; color: var(--text-muted); }
.listing-footer a.view-btn {
  color: var(--wine); font-weight: 700; font-size: .88rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.listing-footer a.view-btn:hover { text-decoration: underline; }

/* ---------- empty states ---------- */
.empty-state {
  text-align: center; padding: 70px 24px; background: var(--card);
  border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted);
}
.empty-state .glyph { font-size: 2.6rem; margin-bottom: 14px; opacity: .7; }
.empty-state p { max-width: 420px; margin: 0 auto 22px; }
.empty-state .hint { font-size: .82rem; opacity: .75; }

.notice {
  background: #fff3cd; border: 1px solid #ffe69c; color: #6b5200;
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: .86rem; margin-bottom: 20px;
}

/* ---------- settings / filter form ---------- */
.settings-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem;
  margin-bottom: 6px; color: var(--text);
}
.field .field-icon { font-size: 1rem; }
.field input:not([type="checkbox"]), .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .96rem; font-family: inherit; background: var(--bg);
  transition: border-color .15s;
}
.field input:not([type="checkbox"]):focus, .field select:focus { outline: none; border-color: var(--gold); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

/* toggle-chip checkboxes (amenities, property types, etc) */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: .88rem; transition: border-color .15s, background .15s, color .15s;
}
.check-chip input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--wine); margin: 0; }
.check-chip:has(input:checked) {
  background: var(--wine-tint); border-color: var(--wine); color: var(--wine); font-weight: 600;
}
.field-section-title {
  font-weight: 700; font-size: .82rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .04em; margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--border);
}
.field-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* ---------- scroll-reveal & tactile feedback ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand .crown, .hero .crown-badge { animation: none; }
}

.btn:active { transform: scale(.96); }
.listing-card:active { transform: translateY(-1px) scale(.99); }
nav.site-nav a:active { transform: scale(.95); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--card); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 32px 20px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-inner .brand { color: var(--wine-dark); font-size: 1.1rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { text-decoration: none; color: var(--text-muted); font-size: .88rem; }
.footer-nav a:hover { color: var(--wine); }
.footer-note { font-size: .78rem; color: var(--text-muted); margin: 0; }

@media (max-width: 620px) {
  .header-inner { padding: 12px 16px; }
  .brand { font-size: 1.15rem; }
  nav.site-nav a { padding: 7px 10px; font-size: .84rem; }
  main { padding: 24px 14px 60px; }
}
