:root {
  --ink: #171512;
  --muted: #6d6860;
  --line: rgba(23, 21, 18, 0.12);
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --reef: #0d7a7c;
  --lime: #c7d36f;
  --coral: #e45f42;
  --sun: #f4b942;
  --sea: #165e83;
  --shadow: 0 24px 70px rgba(31, 29, 23, 0.14);
  font-family: "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 5%, rgba(244, 185, 66, 0.24), transparent 22rem),
    radial-gradient(ellipse at 92% 38%, rgba(13, 122, 124, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbf8ef 0%, #f2eee5 42%, #ffffff 100%);
}

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

.hero {
  min-height: 92vh;
  padding: 22px clamp(18px, 4vw, 64px) 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 88px clamp(18px, 4vw, 64px) 28px;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.56) 46%, rgba(13, 122, 124, 0.16)),
    url("https://images.unsplash.com/photo-1516483638261-f4dbaf036963?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  opacity: 0.94;
}

.hero-copy::before {
  content: "";
  display: block;
  width: min(360px, 72vw);
  height: 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--lime), var(--reef));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(0deg, var(--paper), transparent);
  pointer-events: none;
}

.topbar,
.hero-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.button,
.chip {
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-weight: 800;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--reef), var(--lime), var(--coral), var(--reef));
}

.nav-links {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
}

.nav-links a {
  min-width: 70px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.hero-grid {
  min-height: calc(92vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  padding: 48px clamp(18px, 5vw, 80px);
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--reef);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #36322c;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
}

.hero-actions,
.card-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.card-actions a,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.primary {
  background: var(--ink);
  color: white;
}

.secondary {
  background: rgba(255, 253, 248, 0.68);
}

.decision-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 45px rgba(23, 21, 18, 0.16);
  backdrop-filter: blur(22px);
}

.panel-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.score-row span,
.score-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.score-row strong {
  font-size: 22px;
}

.muted {
  opacity: 0.72;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.compact {
  margin-bottom: 16px;
}

.logic-grid,
.ranking-section,
.cost-grid,
.map-grid {
  display: grid;
  gap: 14px;
}

.logic-grid {
  grid-template-columns: repeat(3, 1fr);
}

.logic-grid article,
.rank-card,
.cost-note,
.map-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.76);
}

.intro-strip {
  position: relative;
}

.intro-strip::after {
  content: "";
  position: absolute;
  inset: auto 3% 8px 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 21, 18, 0.2), transparent);
}

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

.logic-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.logic-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.logic-grid p,
.rank-card p,
.villa-summary,
.map-card p,
footer p,
.final-call p {
  color: var(--muted);
  line-height: 1.65;
}

.ranking-section {
  grid-template-columns: repeat(4, 1fr);
  padding-top: 18px;
}

.rank-card {
  min-height: 158px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.rank-card:nth-child(even) {
  transform: translateY(18px);
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--reef);
}

.rank-card.winner::before {
  background: var(--coral);
}

.rank-card.caution::before {
  background: var(--sun);
}

.rank-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rank-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 26px;
}

.controls-section {
  padding-bottom: 22px;
}

.toolbar {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.64);
  box-shadow: 0 12px 30px rgba(23, 21, 18, 0.06);
}

.chip {
  min-height: 40px;
  padding: 9px 15px;
  background: white;
  color: var(--muted);
}

.chip.is-active {
  background: var(--ink);
  color: white;
}

.villas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 12px;
}

.villa-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: 0 18px 52px rgba(23, 21, 18, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.villa-card:nth-child(even) {
  transform: translateY(26px);
}

.villa-card:hover {
  transform: translateY(-3px) scale(1.006);
  box-shadow: var(--shadow);
}

.villa-card:nth-child(even):hover {
  transform: translateY(20px) scale(1.006);
}

.villa-visual {
  min-height: 230px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.villa-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%);
  mix-blend-mode: screen;
}

.visual-copy {
  position: relative;
  z-index: 1;
}

.villa-visual.black {
  background-image:
    linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1200&q=80");
}

.villa-visual.lasabana {
  background-image:
    linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=80");
}

.villa-visual.fay {
  background-image:
    linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1533105079780-92b9be482077?auto=format&fit=crop&w=1200&q=80");
}

.villa-visual.emerald {
  background-image:
    linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?auto=format&fit=crop&w=1200&q=80");
}

.visual-copy span {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  opacity: 0.8;
}

.visual-copy strong {
  display: block;
  max-width: 420px;
  font-size: 30px;
  line-height: 1.08;
}

.villa-body {
  padding: 22px;
}

.villa-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.villa-title h3 {
  margin: 0;
  font-size: 30px;
}

.tag {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f0d0;
  color: #48511c;
  font-size: 12px;
  font-weight: 900;
}

.tag.best {
  background: #ffe3d9;
  color: #8e2d17;
}

.tag.sea {
  background: #dceff4;
  color: #15506c;
}

.tag.vibe {
  background: #fff0c8;
  color: #795315;
}

.tag.calm {
  background: #e9e4dc;
  color: #4e463d;
}

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

.facts div {
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.facts dd {
  margin: 6px 0 0;
  font-weight: 900;
  line-height: 1.35;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.flags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(228, 95, 66, 0.1);
  color: #7d2a19;
  font-size: 13px;
  font-weight: 800;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  background: var(--ink);
  color: white;
  font-size: 14px;
}

.card-actions a:nth-child(2),
.card-actions a:nth-child(3) {
  background: white;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-strong);
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  background: #eee9dd;
  font-size: 13px;
}

tbody th {
  font-size: 16px;
}

tbody tr:hover {
  background: #fbf3dc;
}

.cost-grid {
  grid-template-columns: 0.46fr 1fr;
  align-items: stretch;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.74), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(135deg, rgba(13, 122, 124, 0.07) 0 1px, transparent 1px 18px);
}

.cost-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.cost-note strong {
  margin-bottom: 8px;
  font-size: 25px;
}

.cost-note span {
  color: var(--muted);
  line-height: 1.6;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bars div {
  display: grid;
  grid-template-columns: 160px 1fr 86px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.mini-bars div::before {
  content: "";
  width: var(--value);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--reef), var(--lime), var(--sun), var(--coral));
}

.mini-bars span,
.mini-bars b {
  font-weight: 900;
}

.map-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-card {
  overflow: hidden;
  transition: transform 180ms ease;
}

.map-card:hover {
  transform: translateY(-3px);
}

.map-card h3,
.map-card p {
  padding-inline: 18px;
}

.map-card h3 {
  margin: 18px 0 6px;
  font-size: 22px;
}

.map-card iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

.final-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 40px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--ink);
  color: white;
}

.final-call .eyebrow,
.final-call p {
  color: rgba(255, 255, 255, 0.72);
}

.final-call h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 54px);
}

.final-call .primary {
  background: white;
  color: var(--ink);
}

footer {
  padding: 32px clamp(18px, 4vw, 64px);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 78px 12px 18px;
    border-radius: 22px;
  }

  .topbar {
    align-items: stretch;
    height: auto;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: start;
  }

  .nav-links a {
    min-width: 82px;
  }

  .hero-grid {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 36px 18px;
  }

  .section-heading,
  .logic-grid,
  .ranking-section,
  .villas-grid,
  .cost-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .rank-card:nth-child(even),
  .villa-card:nth-child(even),
  .villa-card:nth-child(even):hover {
    transform: none;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 40px 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .mini-bars div {
    grid-template-columns: 112px 1fr 76px;
    gap: 8px;
    font-size: 13px;
  }

  .final-call {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions .button,
  .card-actions a,
  .chip {
    width: 100%;
  }

  .villa-title {
    flex-direction: column;
  }

  .visual-copy strong {
    font-size: 25px;
  }

  .mini-bars div {
    grid-template-columns: 1fr 72px;
  }

  .mini-bars div::before {
    grid-column: 1 / -1;
  }
}
