/* =========================================================
   DESTINACIJA – page styles (scoped, bez izmene header/footer)
   Radi sa venecija.html i svim ostalim destinacijama.
   Koristi varijable iz styles.css (sa fallbackovima).
   ========================================================= */

/* ---------- Uži layout za destinacije (bolja čitljivost) ---------- */
.hero.hero--dest .hero__content.container,
.facts .container,
.tabs .container,
.cta .container {
  max-width: 980px;     /* lepo na sredini i uže od indexa */
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 20px);
}

/* ---------- HERO ---------- */
.hero.hero--dest {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.hero.hero--dest .hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(.62);
  transform: scale(1.03);
}
.hero.hero--dest .hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0;
}
.hero.hero--dest h1 {
  font-family: Sora, Inter, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.08;
  margin: 0 0 10px;
}
.hero.hero--dest p {
  margin: 0 0 16px;
  opacity: .96;
  font-size: clamp(14px, 2.2vw, 18px);
}
.hero.hero--dest .hero__cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Ghost dugme samo u okviru hero/CTA (da ne utiče drugde) */
.hero.hero--dest .btn--ghost,
.cta .btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.78);
  color: #fff;
}
.hero.hero--dest .btn--ghost:hover,
.cta .btn--ghost:hover {
  border-color: #fff;
}

/* ---------- ČINJENICE (facts) ---------- */
.facts {
  background: linear-gradient(180deg, #fff, #fbfcff);
  padding: 26px 0 14px;
}
.facts__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.08));
  padding: 14px 16px;
}
.fact i {
  font-size: 20px;
  color: var(--blue-900, #0e2954);
}
.fact__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #6b7280);
  font-weight: 800;
}
.fact__value {
  font-size: 15px;
  color: var(--blue-900, #0e2954);
  font-weight: 700;
}

/* ---------- TABOVI ---------- */
.tabs { padding: 30px 0 36px; }
.tabs__nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;        /* centrirano */
  border-bottom: 1px solid #e9eef7;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.tabs__btn {
  appearance: none;
  border: 1px solid #d8e2f1;
  background: #fff;
  color: var(--blue-900, #0e2954);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tabs__btn:hover { background: #f5f8fe; transform: translateY(-1px); }
.tabs__btn.is-active {
  background: var(--blue-900, #0e2954);
  border-color: var(--blue-900, #0e2954);
  color: #fff;
}
.tabs__btn:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .35);
  outline-offset: 2px;
}
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* Naslovi/lead unutar tabova */
.section-title {
  font-family: Sora, Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--blue-900, #0e2954);
  margin: 0 0 6px;
  text-align: center;             /* lep centar */
}
.section-lead {
  margin: 0 0 6px;
  color: var(--muted, #6b7280);
  text-align: center;
}

/* ---------- PROGRAM ---------- */
.program { display: grid; gap: 18px; margin-top: 8px; }

/* Meta kartice (noćenja/hotel) */
.program__meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.program__meta > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 14px;
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.06));
  padding: 10px 12px;
  color: #334155;
  font-weight: 600;
}
.program__meta i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3f6ff, #eef3ff);
  color: var(--blue-900, #0e2954);
}

/* Tabela termina */
.program-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden; /* da radi radius na tabeli */
  box-shadow: var(--shadow, 0 12px 34px rgba(2,12,27,.08));
  background: #fff;
}
.program-table thead th {
  background: var(--blue-900, #0e2954);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
}
.program-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid #edf2fb;
  font-size: 14px;
  color: #183153;
}
.program-table tbody tr:nth-child(even) td { background: #f9fbff; }

/* Kartice za svaki dan */
.daily { display: grid; gap: 14px; margin-top: 6px; }
.daily__title {
  font-family: Sora, Inter, system-ui, -apple-system, sans-serif;
  font-size: 19px;
  margin: 6px 0 2px;
  color: var(--blue-900, #0e2954);
  text-align: center;
}

/* Jedna "day" kartica */
.day {
  position: relative;
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.06));
  transition: transform .15s ease, box-shadow .2s ease;
}
.day:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(2,12,27,.10);
}

/* akcentna traka sa leve strane */
.day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--burgundy, #7b1e3a), var(--blue-900, #0e2954));
  opacity: .9;
}
.day h4 {
  margin: 0 0 6px 0;
  color: var(--blue-900, #0e2954);
  font-weight: 800;
  font-size: 16px;
}
.day p, .day ul {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}
.day ul { padding-left: 18px; }

/* separator */
.sep {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, #e6ecf7, transparent);
  margin: 8px 0;
}

/* ---------- GALERIJA ---------- */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin: 12px 0 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.08));
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 38px rgba(2,12,27,.12);
}

/* ---------- HOTEL ---------- */
.hotel { padding: 12px 0 0; }
.hotel__subtitle {
  margin: 6px 0 6px;
  color: var(--blue-900, #0e2954);
  text-align: center;
}
.hotel__desc {
  margin: 0 0 12px;
  color: #334155;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

/* Mali kvadratići – thumbnaili hotela */
.hotel-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}
.hotel-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* uvek kvadrat */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.08));
}

/* ---------- NAPOMENE panel ---------- */
.notes {
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow, 0 10px 30px rgba(2,12,27,.06));
  color: #334155;
}
.notes p { margin: 0 0 8px; }
.notes p:last-child { margin-bottom: 0; }

/* ---------- CTA traka ---------- */
.cta {
  background: linear-gradient(90deg, var(--burgundy, #7b1e3a), var(--blue-900, #0e2954));
  color: #fff;
  padding: 30px 0;
  margin: 16px 0 0;
}
.cta__wrap {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr auto;
  align-items: center;
}
.cta__text h3 {
  margin: 0 0 6px;
  font-family: Sora, Inter, system-ui, -apple-system, sans-serif;
  text-align: left;
}
.cta__text p { margin: 0; opacity: .95; }
.cta__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* Primary dugme samo u CTA (da ne dira footer) */
.cta .btn--primary {
  background: #fff;
  color: var(--blue-900, #0e2954);
  border: 2px solid #fff;
}
.cta .btn--primary:hover {
  background: transparent;
  color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .program__meta { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .hero.hero--dest { min-height: 38vh; }

  .section-title, .section-lead { text-align: center; }

  .program-table { display: block; overflow-x: auto; white-space: nowrap; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { aspect-ratio: 16 / 10; }

  .hotel__desc { padding-inline: 4px; }
  .hotel-thumbs { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }

  .cta__wrap { grid-template-columns: 1fr; text-align: center; }
  .cta__text h3 { text-align: center; }
  .cta__actions { justify-content: center; }
}

/* ---------- A11y: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero.hero--dest .hero__bg { transform: none; }
  .tabs__btn { transition: none; }
  .gallery img { transition: none; }
  .day { transition: none; }
}
