/* ============================================================
   Vidzemes apkārtne — matkailukohteiden linkkisivu
   Sama latvialainen teema kuin vieraskirjassa / Vitrupessa.
   Ladataan manala.css:n JÄLKEEN.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

:root {
  --lv-red:         #9E1B32;
  --lv-red-dark:    #6E1223;
  --lv-amber:       #C08A2E;
  --lv-amber-light: #E4C77A;
  --lv-ink:         #2B211C;
  --lv-linen:       #F5EEE2;
  --lv-cream:       #FBF7F0;
  --lv-line:        #E6DCCB;
}

* { box-sizing: border-box; }

.vz-body {
  margin: 0;
  background: var(--lv-cream);
  color: var(--lv-ink);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
}
/* Älä näytä etusivun (manala.css) taustakuvaa täällä — yhtenäinen tausta. */
.vz-body::before,
.vz-body::after { content: none !important; background: none !important; }

/* ---------- Hero (Latvija-banneri + otsikko oikealla linnan päällä) ---------- */
.vz-hero {
  position: relative; overflow: hidden; line-height: 0;
  background: var(--lv-red-dark);
  border-bottom: 4px solid var(--lv-amber);
}
.vz-hero__img { display: block; width: 100%; height: auto; }
/* Tummennus oikealle, jotta valkoinen otsikko erottuu linnan päällä */
.vz-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(20,10,8,0) 38%, rgba(20,10,8,.5) 54%, rgba(20,10,8,.84) 100%);
}
.vz-hero__inner {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 3;
  width: 50%; max-width: 620px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem clamp(1rem, 3vw, 2.2rem);
  color: #fff;
}
.vz-back {
  position: absolute; top: 18px; left: max(18px, calc((100vw - min(1120px,92vw))/2));
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(20, 10, 8, .4); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .9rem;
  padding: .5rem 1.1rem; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px); transition: background .2s;
}
.vz-back:hover { background: rgba(0,0,0,.35); }

.vz-lang {
  position: absolute; top: 18px; right: max(18px, calc((100vw - min(1120px,92vw))/2)); z-index: 5;
  display: flex; gap: .15rem;
  background: rgba(20, 10, 8, .4);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 30px; padding: .2rem; backdrop-filter: blur(4px);
}
.vz-lang a {
  color: #fff; text-decoration: none; font-weight: 700;
  font-size: .78rem; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 20px; opacity: .72;
  transition: background .2s, opacity .2s;
}
.vz-lang a:hover { opacity: 1; }
.vz-lang a.active { background: #fff; color: var(--lv-red); opacity: 1; }

/* Kullattu, kohokuvioitu otsikko (referenssin tyyli) */
.vz-hero__title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .015em; line-height: 1.02;
  font-size: clamp(1.7rem, 3.8vw, 3.2rem); margin: 0;
  background: linear-gradient(180deg, #FBEFC4 0%, #EACE82 36%, #C9962F 70%, #9A6A1C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #C9962F;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)) drop-shadow(0 3px 9px rgba(0,0,0,.55));
}
.vz-hero__sub {
  margin: .75rem 0 0; color: #fff;
  font-family: 'Nunito Sans', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: clamp(.66rem, 1.05vw, .9rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

/* Lead-teksti bannerin alle (leipätekstinä) */
.vz-intro { width: min(820px, 92vw); margin: clamp(2rem, 4.5vw, 3rem) auto 0; text-align: center; }
.vz-intro::before {
  content: ''; display: block; width: 54px; height: 3px; margin: 0 auto 1.15rem;
  background: var(--lv-amber); border-radius: 2px;
}
.vz-intro__text {
  margin: 0; font-size: clamp(1.12rem, 1.9vw, 1.32rem); line-height: 1.6;
  color: #3f342c; font-weight: 500;
}

/* ---------- Viralliset oppaat (chip-rivi) ---------- */
.vz-guides { width: min(1120px, 92vw); margin: clamp(1.3rem,3vw,1.9rem) auto 0; }
.vz-guides__head {
  font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--lv-amber);
  margin: 0 0 .8rem;
}
.vz-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.vz-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--lv-line); border-radius: 30px;
  padding: .5rem 1.1rem; color: var(--lv-ink); text-decoration: none;
  font-weight: 700; font-size: .9rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.vz-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-amber); }
.vz-chip:hover { border-color: var(--lv-amber); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,33,28,.1); }

/* ---------- Pääsisältö ---------- */
.vz-main { width: min(1120px, 92vw); margin: clamp(2.4rem, 5vw, 3.6rem) auto; }

/* Novads-osio */
.vz-novads { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.vz-novads__title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  color: var(--lv-red); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 1.4rem; display: flex; align-items: center; gap: .7rem;
}
.vz-novads__title::before { content: ''; width: 34px; height: 4px; background: var(--lv-amber); border-radius: 2px; }

/* Kaupunkien ruudukko */
.vz-cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.vz-city {
  background: #fff; border: 1px solid var(--lv-line);
  border-radius: 18px; padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: 0 10px 26px rgba(43, 33, 28, .07);
}
.vz-city__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem;
  border-bottom: 2px solid var(--lv-linen); padding-bottom: .7rem;
}
.vz-city__name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--lv-ink); font-size: 1.35rem; margin: 0;
}
.vz-city__hub { font-size: .82rem; font-weight: 700; color: var(--lv-red); text-decoration: none; white-space: nowrap; }
.vz-city__hub:hover { text-decoration: underline; }

/* Kategoriaryhmä */
.vz-cat { margin-top: 1.1rem; }
.vz-cat:first-of-type { margin-top: 0; }
.vz-cat__label {
  font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lv-amber);
  margin: 0 0 .45rem; display: flex; align-items: center; gap: .5rem;
}
.vz-cat__label::before { content: ''; width: 18px; height: 2px; background: var(--lv-amber); border-radius: 2px; }
.vz-links { list-style: none; margin: 0; padding: 0; }
.vz-links li { margin: 0 0 .35rem; }
.vz-links a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--lv-ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.vz-links a::after { content: '↗'; font-size: .78em; color: var(--lv-amber); opacity: .7; }
.vz-links a:hover { color: var(--lv-red); border-color: var(--lv-amber-light); }

/* ---------- Footer ---------- */
.vz-footer {
  background: var(--lv-ink); color: rgba(245,238,226,.85);
  text-align: center; padding: clamp(2.4rem, 5vw, 3.6rem) 1.2rem;
  border-top: 4px solid var(--lv-amber);
}
.vz-footer__note {
  width: min(680px, 92vw); margin: 0 auto 1.4rem;
  font-size: .9rem; color: rgba(245,238,226,.7);
}
.vz-footer-link {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, var(--lv-red) 0%, var(--lv-red-dark) 100%);
  color: #fff; text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.1rem;
  padding: .8rem 2rem; border-radius: 40px; border: 2px solid var(--lv-amber);
  box-shadow: 0 8px 22px rgba(158, 27, 50, .3);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vz-footer-link:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(158, 27, 50, .42); border-color: var(--lv-amber-light); }
.vz-footer-link .vz-arrow { font-size: 1.25em; line-height: 1; transition: transform .2s; }
.vz-footer-link:hover .vz-arrow { transform: translateX(4px); }
.vz-footer__copy { margin: 1.4rem 0 0; font-size: .84rem; color: rgba(245,238,226,.6); }
.vz-footer__copy a { color: var(--lv-amber-light); text-decoration: none; font-weight: 600; }
.vz-footer__copy a:hover { text-decoration: underline; }

/* Kapeilla näytöillä otsikko kuvan ALLE palkkina (ei mahtuisi linnan päälle) */
@media (max-width: 768px) {
  .vz-hero { line-height: normal; }
  .vz-hero::after { display: none; }
  .vz-hero__inner {
    position: static; width: auto; max-width: none;
    background: linear-gradient(135deg, var(--lv-red) 0%, var(--lv-red-dark) 100%);
    text-shadow: none;
    padding: clamp(1.4rem, 5vw, 2rem) 1.2rem;
  }
}
@media (max-width: 560px) {
  .vz-back  { top: 10px; left: 10px; padding: .4rem .8rem; font-size: .8rem; }
  .vz-lang  { top: 10px; right: 10px; }
  .vz-lang a { padding: .25rem .5rem; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
