/* 
  SWITZERLAND TRIPS - PREMIUM DESIGN SYSTEM (OMELHORDAITALIA STYLE)
  Pure CSS | Mobile-First | Clean & Airy
*/

:root {
  /* Colors */
  --color-primary: #D52B1E; /* Swiss Red */
  --color-primary-dark: #A82218;
  --color-secondary: #1F2937; /* Dark Gray / Navy */
  --color-accent: #D4A373; /* Muted Gold / Sand */
  --color-text: #111827;
  --color-text-light: #4B5563;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9FAFB;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Shadow & Radius */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { 
  font-family: var(--font-sans); /* Moving away from serif for a more modern look like the ref site */
  font-weight: 800; 
  line-height: 1.25; 
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
h2 { font-size: 2.25rem; }
p { margin-bottom: 2rem; } /* Generous paragraph spacing */

/* UTILS */
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.section { padding: var(--spacing-xl) 0; }
.bg-light { background-color: var(--color-bg-alt); }
.text-center { text-align: center; }

/* LEGAL TOP BAR */
.legal-bar {
  background: var(--color-primary); /* Red Top Bar like Green in Reference */
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 0.75rem 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* HEADER TOP (LOGO) */
.header-top {
  background: var(--color-white);
  padding: 1.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.header-top img {
  height: 80px;
  width: auto;
  display: block;
}

/* NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-secondary); /* Contrast background */
  transition: var(--transition);
  padding: 0.5rem 0;
}
.nav__inner {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center; /* Center links as requested */
}
.nav__logo { display: none; } /* Logo is now in header-top */

.nav__links { display: none; gap: 3rem; }
.nav__links a { 
  font-weight: 700; 
  font-size: 0.85rem; 
  color: var(--color-white); /* White text on contrast bg */
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
}
.nav__links a:hover { color: var(--color-accent); }

/* MOBILE MENU OVERLAY */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--color-white);
  z-index: 2000;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.nav-mobile.active { right: 0; }
.nav-mobile a { font-size: 1.25rem; font-weight: 700; color: var(--color-text); text-transform: uppercase; }

.nav__toggle { color: var(--color-white); }
.nav__toggle.active { color: var(--color-accent); }

@media (min-width: 992px) { 
  .nav__links { display: flex; } 
  .nav__toggle { display: none; }
  .nav-mobile { display: none; }
}

/* BUTTONS */
.btn-primary {
  background: var(--color-accent); /* Muted Gold for Buttons */
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 0.9; }

/* HERO */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-secondary);
}
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  background: rgba(0,0,0,0.4);
}
.hero__content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero__title { font-size: 4rem; margin-bottom: 1.5rem; }
.hero__subtitle { font-size: 1.5rem; font-weight: 500; opacity: 0.9; margin-bottom: 2.5rem; }

/* CARDS (OMELHORDAITALIA STYLE) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img { 
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__content { padding: 2rem; flex-grow: 1; }
.card__category { 
  font-size: 0.75rem; 
  font-weight: 800; 
  color: var(--color-accent); 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}
.card__title { font-size: 1.5rem; margin-bottom: 1rem; color: var(--color-text); }
.card:hover .card__title { color: var(--color-accent); }
.card__excerpt { font-size: 1rem; color: var(--color-text-light); line-height: 1.6; margin-bottom: 0; }

/* FOOTER */
.footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 3rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
.footer__logo img { height: 60px; width: auto; margin-bottom: 1.5rem; display: block; }
.footer__col h4 { 
  color: var(--color-accent); 
  font-size: 0.9rem; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  margin-bottom: 1.5rem; 
}
.footer__col ul li { margin-bottom: 0.75rem; color: #9CA3AF; font-size: 0.95rem; }
.footer__col a:hover { color: var(--color-accent); }
.footer__disclosure {
  margin-top: 4rem; padding: 2rem; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  font-size: 0.85rem; color: #9CA3AF; line-height: 1.8;
}
.footer__bottom { text-align: center; margin-top: 3rem; font-size: 0.8rem; color: #4B5563; }

@media (max-width: 992px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer__grid { grid-template-columns: 1fr; } }

/* FADE IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAV SPACER */
.nav-spacer { height: 0; }

/* HERO VARIANTS */
.hero--sm { height: 400px; }
.hero--md { height: 600px; }

.hero__label {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* BUTTON LARGE */
.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

/* AFFILIATE BOX */
.affiliate-box {
  background: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}
.affiliate-box__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.affiliate-box__subtitle {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.affiliate-box__trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* INFO BOX */
.info-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.info-box__item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.info-box__item .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.info-box__item .label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); margin-bottom: 0.25rem; }
.info-box__item .value { font-size: 1rem; font-weight: 700; color: var(--color-text); }

/* BREADCRUMB */
.breadcrumb {
  background: var(--color-bg-alt);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb__list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb__list a { color: var(--color-primary); }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__separator { color: var(--color-border); }

/* FAQ */
.faq { margin: 2rem 0; border-top: 1px solid var(--color-border); }
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__question:hover { color: var(--color-primary); }
.faq__icon { font-size: 1.25rem; font-weight: 400; color: var(--color-primary); flex-shrink: 0; transition: var(--transition); }
.faq__answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--color-text-light);
}
.faq__answer.open { display: block; }
.faq__item.active .faq__icon { transform: rotate(45deg); }

/* CONTENT SECTION */
.content-section {
  padding: var(--spacing-xl) 0;
}
.content-section h2 { margin-top: 1rem; }
.content-section p { color: var(--color-text-light); }
.content-section ul { padding-left: 1.5rem; margin-bottom: 2rem; color: var(--color-text-light); }
.content-section ul li { margin-bottom: 0.75rem; }

/* DEST SECTION (legacy) */
.dest-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.dest-section p { color: var(--color-text-light); margin-bottom: 1.5rem; }
.dest-section__img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.dest-section__img img { width: 100%; height: 100%; object-fit: cover; }

/* DESTINATIONS GRID */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 768px) { .dest-grid { grid-template-columns: 1fr; } }

.dest-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.dest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.dest-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-secondary);
}
.dest-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dest-card:hover .dest-card__img img { transform: scale(1.05); }

.dest-card__body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.dest-card__region {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}
.dest-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.dest-card__desc {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.dest-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.dest-card__tag {
  font-size: 0.75rem;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--color-border);
}
.dest-card__cta {
  display: block;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  margin-top: auto;
}
.dest-card__cta:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════
   GDPR CONSENT BANNER & MODAL
═══════════════════════════════════════════════════ */

/* Overlay — blocks page until consent given */
#swt-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#swt-consent-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Banner bar ── */
#swt-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9100;
  background: #fff;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 1.5rem 0;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.consent-banner__inner {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.consent-banner__text { flex: 1; min-width: 280px; }
.consent-banner__title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.consent-banner__desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}
.consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Shared button styles ── */
.consent-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.consent-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.consent-btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.consent-btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.consent-btn--secondary:hover { border-color: var(--color-text); }

/* Inline links inside banner text */
.consent-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.consent-link:hover { color: var(--color-primary-dark); }

/* ── Preferences modal ── */
#swt-consent-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(0.95);
  z-index: 9200;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
#swt-consent-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, 50%) scale(1);
}
.consent-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.consent-modal__title { font-weight: 800; font-size: 1.1rem; color: var(--color-text); }
.consent-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.consent-modal__close:hover { background: var(--color-bg-alt); color: var(--color-text); }

.consent-modal__body { padding: 0 1.75rem; }

.consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.consent-category:last-child { border-bottom: none; }
.consent-category__info { flex: 1; }
.consent-category__info strong { display: block; font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.25rem; }
.consent-category__info p { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.5; margin-bottom: 0; }

/* Always-on badge */
.consent-toggle--locked {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Toggle switch */
.consent-toggle__wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.2rem;
  cursor: pointer;
}
.consent-toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.consent-toggle__slider {
  display: block;
  width: 44px;
  height: 24px;
  background: #D1D5DB;
  border-radius: 999px;
  transition: background 0.2s ease;
  position: relative;
}
.consent-toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.consent-toggle__input:checked + .consent-toggle__slider { background: var(--color-primary); }
.consent-toggle__input:checked + .consent-toggle__slider::after { transform: translateX(20px); }
.consent-toggle__input:focus-visible + .consent-toggle__slider { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.consent-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem 1.5rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
}

/* Footer "Cookie Settings" link */
.consent-footer-link {
  color: #6B7280;
  font-size: 0.8rem;
  text-decoration: underline;
}
.consent-footer-link:hover { color: var(--color-accent); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .consent-banner__inner { flex-direction: column; gap: 1rem; }
  .consent-banner__actions { width: 100%; }
  .consent-btn { flex: 1; text-align: center; }
  #swt-consent-modal { bottom: 0; transform: translate(-50%, 0) scale(0.95); border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 85vh; }
  #swt-consent-modal.active { transform: translate(-50%, 0) scale(1); }
}

/* =====================
   LIGHTBOX
   ===================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  text-align: center;
  max-width: 600px;
  margin: 0;
  padding: 0 1rem;
}

.lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }
