/* =====================================================================
   Stay in Spain — warme pleister + azulejo tegelblauw
   Display: Fraunces  ·  Body: Plus Jakarta Sans
   ===================================================================== */

:root {
  --paper:    #f4efe6;   /* warm pleisterwit */
  --card:     #fbf8f2;   /* lichter kaartoppervlak */
  --ink:      #211c17;   /* bijna-zwart, warm */
  --ink-soft: #6b6358;   /* gedempt bruin-grijs */
  --clay:     #c75b2a;   /* klei-amber, primaire CTA */
  --clay-dk:  #a8481f;
  --azulejo:  #2e5e8c;   /* tegelblauw, signatuur */
  --azulejo-dk:#244c72;
  --line:     #e2d8c8;   /* zachte scheidingslijn */
  --ok:       #3f7d52;
  --radius:   14px;
  --shadow:   0 14px 40px -22px rgba(33,28,23,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

a { color: inherit; }

/* azulejo-tegelmotief: klein vierkant met geschilderd-tegel-gevoel */
.brand-tile {
  display: inline-block;
  width: 16px; height: 16px;
  vertical-align: -2px;
  margin-right: 8px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 30%, var(--paper) 0 3px, transparent 3px),
    radial-gradient(circle at 70% 70%, var(--paper) 0 3px, transparent 3px),
    var(--azulejo);
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav > a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-switch { display: inline-flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--ink-soft); }
.lang-switch a.on { background: var(--azulejo); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { margin-bottom: .25em; }
.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
/* azulejo tegelband als ambient achtergrond rechtsboven */
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 360px; height: 360px;
  opacity: .12; z-index: 1; transform: rotate(8deg);
  background-image:
    linear-gradient(45deg, var(--azulejo) 25%, transparent 25%, transparent 75%, var(--azulejo) 75%),
    linear-gradient(45deg, var(--azulejo) 25%, transparent 25%, transparent 75%, var(--azulejo) 75%);
  background-size: 48px 48px; background-position: 0 0, 24px 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dk); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- destination grid ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4/3; background: #ded2c0 center/cover; }
.card-body { padding: 18px 18px 20px; }
.card-city { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azulejo); }
.card-title { font-family: "Fraunces", serif; font-size: 1.25rem; margin: 4px 0 8px; }
.card-meta { font-size: .9rem; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.card-price { margin-top: 12px; font-weight: 700; }
.card-price small { font-weight: 500; color: var(--ink-soft); }

/* ---------- apartment detail ---------- */
.detail { padding: 40px 0 72px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-soft); margin: 18px 0; }
.facts strong { color: var(--ink); }
.license-badge { display: inline-block; font-size: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--ink-soft); }

/* ---------- booking widget ---------- */
.booking {
  position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.booking .from { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.booking .from small { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.field { margin: 14px 0; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--azulejo); outline-offset: 1px; border-color: var(--azulejo); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.summary { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: .95rem; }
.summary .line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); }
.summary .line.total { color: var(--ink); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.notice { font-size: .85rem; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.notice.warn { background: #fbe9df; color: var(--clay-dk); }
.notice.info { background: #e6eef5; color: var(--azulejo-dk); }
.hidden { display: none !important; }

/* ---------- generic page ---------- */
.center-card { max-width: 540px; margin: 80px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.center-card .ref { font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--clay); margin: 10px 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .booking { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .head-nav { gap: 12px; }
  .head-nav > a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
