/* ==========================================================================
   Travel Tips & Destination Guides — main stylesheet
   Editorial, calm, travel-restrained. No suitcase/plane/pin iconography —
   identity comes from color, type, and spacing.
   ========================================================================== */

:root {
  --color-bg: #F7F3EA;
  --color-bg-alt: #EFE7D6;
  --color-text: #22282E;
  --color-text-muted: #5C6570;
  --color-card: #FFFFFF;
  --color-border: #E1D9C5;
  --color-primary: #2E6B6E;
  --color-primary-dark: #235255;
  --color-secondary: #BD8A4E;
  --color-secondary-dark: #9C6F3B;
  --color-focus: #22282E;

  --font-heading: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --max-content-width: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.6rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2.2rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.25rem; margin-top: 1.6rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; }

a { color: var(--color-primary-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary); }

.container { max-width: 1140px; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-secondary-dark);
  outline-offset: 2px;
}

/* ---------------------------------
   Header / Navigation
   --------------------------------- */
.site-header {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-text);
}
.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}
.site-logo__sub {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list > li > a,
.dropdown-toggle {
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.primary-nav__list > li > a:hover,
.primary-nav__list > li > a.active,
.dropdown-toggle:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.has-dropdown { position: relative; }
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(34, 40, 46, 0.09);
  z-index: 10;
}
.dropdown-menu-custom li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}
.dropdown-menu-custom li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}
.has-dropdown.is-open .dropdown-menu-custom { display: block; }
.has-dropdown.is-open .dropdown-toggle { color: var(--color-primary-dark); }

/* ---------------------------------
   Buttons
   --------------------------------- */
.btn-brand {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  transition: background-color 0.15s ease;
}
.btn-brand:hover { background-color: var(--color-primary-dark); color: #fff; border-color: var(--color-primary-dark); }

.btn-outline-brand {
  display: inline-block;
  background-color: transparent;
  color: var(--color-text);
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-outline-brand:hover { border-color: var(--color-secondary-dark); color: var(--color-secondary-dark); }

/* ---------------------------------
   Hero
   --------------------------------- */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-secondary-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.hero h1 { max-width: 16ch; }
.hero p.lead {
  max-width: 54ch;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------------------------------
   Featured guide (editorial feature block)
   --------------------------------- */
.featured-guide {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.featured-guide__inner { padding: 2.2rem; }
.featured-guide__kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-secondary-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.featured-guide h2 { margin-top: 0; }

/* ---------------------------------
   Cards
   --------------------------------- */
.card-guide {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.card-guide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(34, 40, 46, 0.10);
  color: var(--color-text);
}
.card-guide__tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-guide h3 { margin-top: 0; font-size: 1.1rem; }
.card-guide p { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 0; }

.card-guide--teal { border-top: 3px solid var(--color-primary); }
.card-guide--amber { border-top: 3px solid var(--color-secondary); }

/* Compact guide list row */
.guide-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  align-items: flex-start;
}
.guide-row:last-child { border-bottom: none; }
.guide-row:hover { color: var(--color-primary-dark); }
.guide-row__num {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-secondary-dark);
  font-size: 1.1rem;
  min-width: 2.2rem;
}
.guide-row h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.guide-row p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------------------------------
   Sections
   --------------------------------- */
.section { padding: 3rem 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section__header { margin-bottom: 1.6rem; }
.section__kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-secondary-dark);
  font-weight: 700;
}

/* Checklist block */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-primary);
  border-radius: 3px;
}

/* Page header banner */
.page-header {
  padding: 2.4rem 0 1.8rem;
  border-bottom: 1px solid var(--color-border);
}
.page-header .breadcrumb-trail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}
.page-header .breadcrumb-trail a { color: var(--color-text-muted); }
.page-header .breadcrumb-trail a:hover { color: var(--color-primary-dark); }
.page-header p.lead { color: var(--color-text-muted); max-width: 62ch; font-size: 1.05rem; }
.page-header .editorial-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

/* Article content */
.article-content { max-width: var(--max-content-width); }
.article-content h2:first-of-type { margin-top: 0.4rem; }

/* Tip / note / verify boxes */
.tip-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--color-primary-dark); }

.note-box {
  background: #F2E7D6;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.note-box strong { color: var(--color-secondary-dark); }

.verify-box {
  background: #EAF1EF;
  border-left: 4px solid var(--color-primary-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.verify-box strong { color: var(--color-primary-dark); }

/* Tables */
.table-guide {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.table-guide th, .table-guide td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.table-guide th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
}
.table-guide tr:nth-child(even) td { background: rgba(239, 231, 214, 0.4); }
.table-responsive-wrap { overflow-x: auto; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--color-text-muted); }

/* Destination entry blocks */
.destination-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  background: var(--color-card);
}
.destination-item h3 { margin-top: 0; }
.destination-item__meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Related links */
.related-links {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border);
}
.related-links h2 { margin-top: 0; font-size: 1.2rem; }
.related-links ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-logo--footer { margin-bottom: 0.8rem; }
.site-footer__desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 40ch;
}
.site-footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--color-text-muted);
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 0.55rem; }
.site-footer__list a { color: var(--color-text); text-decoration: none; font-size: 0.92rem; }
.site-footer__list a:hover { color: var(--color-primary-dark); }
.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.site-footer__disclaimer {
  margin-top: 0.6rem;
  max-width: 70ch;
  font-size: 0.82rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(34, 40, 46, 0.14);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
}
.back-to-top.is-visible { display: flex; }
.back-to-top:hover { border-color: var(--color-secondary-dark); }

/* ---------------------------------
   Responsive
   --------------------------------- */
@media (max-width: 991.98px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .primary-nav__list { gap: 1rem; }
}

@media (max-width: 767.98px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(34, 40, 46, 0.08);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0 1rem;
  }
  .primary-nav__list > li { width: 100%; }
  .primary-nav__list > li > a,
  .dropdown-toggle {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-bottom: none;
  }
  .dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
  .dropdown-toggle::after { content: "+"; font-size: 1rem; color: var(--color-text-muted); }
  .has-dropdown.is-open .dropdown-toggle::after { content: "\2013"; }

  .dropdown-menu-custom {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0.4rem 1.4rem;
    margin: 0;
    min-width: 0;
  }

  .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn-brand, .hero__actions .btn-outline-brand { text-align: center; }
  .featured-guide__inner { padding: 1.6rem; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
}
