/* Navigation sections (App\Support\SiteSections): home heading, "Plan your trip" guides,
   category header + "Start here", visible breadcrumb, footer explore links.
   Loaded from style.blade.php after main.css. */

/* Home h1 wraps the header logo; it must not change the header layout. */
.logo-h1 {
  display: contents;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Home heading (unused since the h1 moved onto the logo; kept for the admin-editable text) */
.v4-home-intro {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 20px 24px 16px;
}
.v4-home-intro h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
  max-width: 22ch;
}

/* Breadcrumb */
.v4-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary, #b8b8b8);
}
.v4-crumbs li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: #777;
}
.v4-crumbs a {
  color: var(--text-secondary, #b8b8b8);
  text-decoration: none;
}
.v4-crumbs a:hover,
.v4-crumbs a:focus-visible {
  color: var(--accent-gold, #d4af37);
}
.v4-crumbs [aria-current] {
  color: var(--text-primary, #f5f5f5);
}

/* Guides row */
.v4-guides {
  margin: 0 0 48px;
}
.v4-guides__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f5f5f5);
}
.v4-guides__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.v4-guides__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  background: var(--bg-card, #1a1a1a);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-primary, #f5f5f5);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.v4-guides__item:hover,
.v4-guides__item:focus-visible {
  background: var(--bg-card-hover, #202020);
  color: var(--text-primary, #f5f5f5);
  transform: translateY(-2px);
}
.v4-guides__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: #111;
}
.v4-guides__name {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* Category page header (now above the carousel) */
.v4-cat-top {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 20px 24px 8px;
}
.v4-cat-top .category-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
}
.v4-cat-top .category-description {
  max-width: 68ch;
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary, #f5f5f5);
}

/* Category "Start here" */
.v4-start {
  max-width: var(--container-max, 1280px);
  margin: 0 auto 20px;
  padding: 0 24px;
}
.v4-start__title {
  margin: 12px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-gold, #d4af37);
}
.v4-start__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v4-start__item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 10px;
  background: var(--bg-card, #1a1a1a);
  border-radius: 10px;
  color: var(--text-primary, #f5f5f5);
  text-decoration: none;
  transition: background-color .15s ease;
}
.v4-start__item:hover,
.v4-start__item:focus-visible {
  background: var(--bg-card-hover, #202020);
  color: var(--text-primary, #f5f5f5);
}
.v4-start__img {
  flex: 0 0 84px;
  width: 84px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
}
.v4-start__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* Footer explore */
.site-footer {
  flex-wrap: wrap;
}
.v4-footer-nav {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin: 0;
  /* Centre a 1280px column inside the full-width footer bar. */
  padding: 24px max(0px, calc((100% - var(--container-max, 1280px)) / 2)) 16px;
}
.v4-footer-nav h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary, #f5f5f5);
}
.v4-footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.v4-footer-nav li {
  margin: 0 0 8px;
}
.v4-footer-nav a {
  color: var(--text-secondary, #b8b8b8);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.v4-footer-nav a:hover,
.v4-footer-nav a:focus-visible {
  color: var(--accent-gold, #d4af37);
}
.v4-footer-nav__cats ul {
  columns: 2;
  column-gap: 24px;
}
.v4-footer-nav__guides ul {
  columns: 2;
  column-gap: 24px;
}
.v4-footer-nav__guides li {
  break-inside: avoid;
}

@media (max-width: 968px) {
  .v4-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .v4-start__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .v4-footer-nav {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .v4-footer-nav__guides ul {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .v4-home-intro {
    padding: 14px 16px 12px;
  }
  .v4-home-intro h1 {
    font-size: 26px;
  }
  .v4-cat-top {
    padding: 14px 16px 4px;
  }
  .v4-cat-top .category-title {
    font-size: 32px;
  }
  .v4-cat-top .category-description {
    font-size: 16px;
  }
  .v4-start {
    padding: 0 16px;
  }
  .v4-guides__title {
    font-size: 24px;
  }
  .v4-guides__name {
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v4-guides__item {
    transition: none;
  }
  .v4-guides__item:hover {
    transform: none;
  }
}
