/* =========================================================
   Fuerteventura Vistamar — hlavní styly
   Barvy: bazalt (tmavá), písek (pozadí), Atlantik (primární),
          slunce (akcent)
   ========================================================= */

:root {
  --ink: #2b2b2b;
  --ink-soft: #616161;
  --sand: #ffffff;
  --sand-deep: #ece7e0;
  --paper: #faf8f5;
  --sea: #0088cb;
  --sea-dark: #0a4b51;
  --sun: #915223;
  --sun-soft: #e6b48e;
  --line: rgba(43, 43, 43, .12);

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 4px;

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun); }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 700;
  margin-bottom: .8rem;
  display: block;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink h2, .section--ink h3 { color: var(--ink); }
.section--ink .eyebrow { color: var(--sea); }
.section--ink p { color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--sand-deep);
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: var(--sand-deep); text-decoration: none; }
.topbar a:hover { color: var(--sun); }

/* ---------- Header / navigace ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 700;
}

.nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--sun);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav a {
    display: block;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block;
  background: var(--sea);
  color: #fff;
  padding: .85rem 1.6rem;
  border: 1px solid var(--sea);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: #0072ab; border-color: #0072ab; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); border-color: var(--sun); }
.btn--sun:hover { background: #73401a; border-color: #73401a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 26, .25) 0%, rgba(10, 20, 26, .82) 100%);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(4rem, 8vw, 5.5rem);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { max-width: 46ch; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.hero .eyebrow { color: var(--sun-soft); }

/* tečky slideshow — vpravo dole, nad blokem s parametry (.ledger má
   margin-top:-3.5rem a z-index:5, takže by tečky uprostřed překryl) */
.hero-dots {
  position: absolute;
  bottom: 4.5rem;
  right: clamp(1rem, 4vw, 2.2rem);
  left: auto;
  transform: none;
  display: flex;
  gap: .55rem;
  z-index: 6;
}
.hero-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease;
}
.hero-dots button.is-active { background: #fff; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-actions .btn--ghost:hover { background: #fff; color: var(--ink); }

.hero--slim { min-height: 340px; }
.hero--slim h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Signature: faktový pás ---------- */
.ledger {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(43, 43, 43, .35);
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
}
.ledger div:last-child { border-right: 0; }
.ledger dt,
.ledger .k {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.ledger .v {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  margin-top: .3rem;
  color: var(--sea);
}
@media (max-width: 760px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger div:nth-child(2) { border-right: 0; }
  .ledger div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Vybavení / ikony ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.amenity {
  padding: 1.25rem .5rem;
  border-top: 2px solid var(--sun-soft);
}
.amenity img { height: 34px; width: auto; margin: 0 auto .8rem; }
.amenity strong { font-size: .95rem; display: block; }

/* ---------- Rozvržení dvou sloupců ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split--reverse > :first-child { order: 2; }
.split--even { grid-template-columns: 1fr 1fr; }

/* Vítejte — dvousloupcový text roztažený na plnou šířku layoutu */
.welcome-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 1.5rem 0 .5rem;
}
.welcome-cols p { margin-bottom: 0; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .welcome-cols { grid-template-columns: 1fr; gap: 0; }
  .welcome-cols p { margin-bottom: 1rem; }
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: .6rem 0 .6rem 1.9rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  background: var(--sun);
  border-radius: 50%;
}

/* ---------- Karty ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Reference ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.quote {
  border-left: 3px solid var(--sun);
  padding: .25rem 0 .25rem 1.5rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.5;
}
.quote cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  font-weight: 700;
}

/* ---------- Kroky rezervace ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  padding-top: 3.2rem;
  position: relative;
  border-top: 2px solid var(--sun-soft);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sea);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Galerie ---------- */
.gallery {
  columns: 3 260px;
  column-gap: 1rem;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  margin-bottom: 1rem;
  cursor: zoom-in;
  break-inside: avoid;
}
.gallery img { border-radius: var(--radius); transition: opacity .2s ease; }
.gallery button:hover img { opacity: .85; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 24, .93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  max-width: 92vw;
}
.lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  letter-spacing: .02em;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(0,0,0,.55); }
.lightbox-prev { left: clamp(.6rem, 3vw, 2rem); }
.lightbox-next { right: clamp(.6rem, 3vw, 2rem); }
.lightbox-close:hover { background: rgba(255,255,255,.15); }
@media (max-width: 560px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ---------- Info boxy ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.info-grid h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.info-grid ul { padding-left: 1.1rem; margin: 0; }
.info-grid li { margin-bottom: .3rem; font-size: .96rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(43, 43, 43, .4);
}
.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map-note { margin-top: .9rem; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Patička ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 238, 228, .8);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .95rem;
}
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(244, 238, 228, .85); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* reset pro definiční seznam v ledgeru */
.ledger dd { margin: 0; }

/* ---------- Přepínač jazyků ---------- */
.langswitch {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  margin-left: .5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.langswitch a {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(244, 238, 228, .6);
  text-decoration: none;
}
.langswitch a:hover { color: var(--sun); background: rgba(255, 255, 255, .06); }
.langswitch a.is-active {
  color: var(--ink);
  background: var(--sand-deep);
}
.langswitch a.is-active:hover { color: var(--ink); background: var(--sand-deep); }

@media (max-width: 520px) {
  .topbar .wrap { justify-content: space-between; gap: .5rem; }
  .topbar a[href^="mailto"] { display: none; }
}

/* ledger vedle textu (stránka O nás) */
.ledger--inline { margin-top: 0; grid-template-columns: 1fr 1fr; }
.ledger--inline div:nth-child(2) { border-right: 0; }
.ledger--inline div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

/* ---------- Blog ---------- */
.cards--posts .card-media { display: block; overflow: hidden; }
.cards--posts .card-media img { transition: transform .4s ease; }
.cards--posts .card:hover .card-media img { transform: scale(1.04); }
.cards--posts h3 { margin-bottom: .5rem; font-size: 1.3rem; }
.cards--posts h3 a { color: var(--ink); text-decoration: none; }
.cards--posts h3 a:hover { color: var(--sea); }

.post-date {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
  font-weight: 700;
  margin-bottom: .5rem;
}
.readmore {
  display: inline-block;
  margin-top: .9rem;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 2px solid var(--sun);
  padding-bottom: 2px;
}
.readmore:hover { border-color: var(--sea); }

.hero--post { min-height: 420px; }
.hero--post h1 { max-width: 22ch; font-size: clamp(1.9rem, 4.4vw, 3.1rem); }

/* text článku */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.08rem;
}
.prose > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink);
}
.prose h3 {
  margin-top: 2.4rem;
  margin-bottom: .7rem;
  font-size: 1.45rem;
}
.prose p { color: var(--ink-soft); }
.prose a { font-weight: 500; }

/* pruh s výzvou pod článkem */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--ink-soft); }

.prose blockquote {
  margin: 2rem 0;
  padding: .4rem 0 .4rem 1.6rem;
  border-left: 3px solid var(--sun);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.prose ul { padding-left: 1.2rem; margin: 1.2rem 0; }
.prose li { margin-bottom: .6rem; color: var(--ink-soft); }
.prose li strong, .prose p strong { color: var(--ink); }


/* ---------- Smoobu booking tool ---------- */
.smoobu {
  margin-top: 2.5rem;
  /* rezerva na výšku, než se kalendář načte z Smoobu */
  min-height: 340px;
}
.smoobu-booking { min-height: 600px; }
.smoobu-booking > div { max-width: 1000px; margin-inline: auto; }
/* Smoobu si načítá vlastní CSS (data-disable-css="false"); jen zarovnáme */
.smoobu .calendarWidget {
  max-width: 720px;
  margin-inline: auto;
}
.smoobu .calendarContent { width: 100%; }
/* skryté script uzly ať nezabírají místo */
.smoobu > div > script { display: none; }

/* dvousloupcový kontakt: údaje + mapa */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .contact-cols { grid-template-columns: 1fr; }
  .smoobu { min-height: 700px; }
  .map-embed { height: 320px; }
}
