/* The Reeve Guide v39 visual cleanup */
:root {
  --paper: #f6f3ed;
  --muted: #ebe6dc;
  --line: #d8d0c3;
  --accent: #a94f31;
  --accent-dark: #7f351f;
  --surface: #fffdf9;
  --ink-soft: #5f5951;
  --shadow-sm: 0 8px 24px rgba(44, 34, 25, .07);
  --shadow-md: 0 18px 45px rgba(44, 34, 25, .12);
}

body {
  background: var(--paper);
  color: #191816;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(169, 79, 49, .35);
  outline-offset: 3px;
}

.site-header {
  min-height: 72px;
  padding: .85rem max(4vw, calc((100vw - 1320px) / 2));
  background: rgba(246, 243, 237, .94);
  box-shadow: 0 1px 0 rgba(66, 50, 36, .05);
}

.brand-mark {
  background: #201d19;
  box-shadow: 0 4px 14px rgba(32, 29, 25, .16);
}

.main-nav {
  gap: .25rem;
}

.main-nav a {
  padding: .55rem .72rem;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}

.main-nav a:hover {
  background: rgba(169, 79, 49, .09);
}

.hero {
  position: relative;
  min-height: 68vh;
  padding: clamp(5rem, 10vw, 8rem) max(7vw, calc((100vw - 1200px) / 2)) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(125deg, #1c1917 0%, #5f2c21 58%, #bb6a45 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -12%;
  top: -42%;
  border-radius: 50%;
  background: rgba(255, 225, 188, .13);
  filter: blur(4px);
}

.hero-content {
  max-width: 850px;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.25rem;
  letter-spacing: -.025em;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.button {
  padding: .9rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) max(5vw, calc((100vw - 1220px) / 2));
}

.section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}

.section-heading h2,
.destination-page-header h1,
.review-title-card h1 {
  letter-spacing: -.025em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .65rem;
  border-radius: 999px;
}

.text-link:hover {
  background: rgba(169, 79, 49, .08);
}

.review-grid {
  gap: 1.5rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(96, 77, 60, .18);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(169, 79, 49, .25);
  box-shadow: var(--shadow-md);
}

.card-image {
  aspect-ratio: 16 / 10;
}

.venue-photo {
  height: 100%;
  min-height: 230px;
  transition: transform .45s ease;
}

.review-card:hover .venue-photo {
  transform: scale(1.025);
}

.score-badge {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.card-content {
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-content h3 {
  line-height: 1.12;
}

.card-content p,
.destination-intro,
.review-copy p {
  color: var(--ink-soft);
}

.category-grid,
.country-grid,
.country-subcategory-grid {
  gap: 1.35rem;
}

.category-card,
.country-card,
.country-subcategory-card,
.region-card,
.empty-category-card {
  border-color: rgba(96, 77, 60, .18);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.category-card:hover,
.country-card:hover,
.country-subcategory-card:hover,
.region-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 79, 49, .28);
  box-shadow: var(--shadow-md);
}

.category-card {
  min-height: 180px;
  border-radius: 20px;
  background: var(--surface);
}

.category-card > span {
  color: var(--accent);
}

.country-card {
  min-height: 290px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-sm);
}

.country-card small {
  margin-top: .25rem;
  font-weight: 600;
}

.ranking-list {
  overflow: hidden;
  padding: 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-score {
  color: var(--accent-dark);
}

.destination-page-header {
  padding: clamp(3.5rem, 7vw, 6rem) max(5vw, calc((100vw - 1220px) / 2)) 1.5rem;
}

.destination-page-header h1 {
  max-width: 900px;
}

.region-card {
  align-items: center;
  border-radius: 20px;
  background: var(--surface);
}

/* Review pages */
.review-page {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.review-hero {
  padding: 2.5rem max(1rem, 4vw) 1rem;
}

.review-hero-image {
  max-width: 1120px;
  margin: 0 auto;
}

.review-page .review-venue-photo,
.review-page .channels-hero-photo {
  width: 100%;
  height: clamp(360px, 53vw, 610px);
  max-width: 1120px;
  max-height: 610px;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.review-title-card {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: -70px auto 0;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border-radius: 22px;
  background: rgba(255, 253, 249, .97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.review-body {
  grid-template-columns: minmax(220px, 270px) minmax(0, 760px);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding: clamp(2rem, 5vw, 4.5rem) 5vw 0;
}

.score-panel {
  position: sticky;
  top: 92px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.review-copy {
  line-height: 1.7;
}

.review-copy .lead {
  color: #2e2924;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

.review-copy h2 {
  margin-top: 2.6rem;
}

.final-verdict {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(127, 53, 31, .22);
}

.hotel-gallery,
.restaurant-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item,
.gallery-large {
  width: 100%;
  max-width: none;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.gallery-item img,
.gallery-large img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  padding: 2.25rem max(4vw, calc((100vw - 1320px) / 2));
  background: #efebe3;
}

@media (max-width: 1100px) {
  .review-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .menu-button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .main-nav {
    top: calc(100% + 6px);
    padding: .65rem;
    border-radius: 16px;
    background: rgba(246, 243, 237, .98);
  }

  .main-nav a {
    padding: .82rem .9rem;
  }

  .review-body {
    grid-template-columns: 1fr;
  }

  .score-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 540px;
    padding: 5rem 1.15rem 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.65rem);
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .review-grid,
  .review-grid.three {
    grid-template-columns: 1fr;
  }

  .venue-photo {
    min-height: 0;
  }

  .country-card {
    min-height: 210px;
  }

  .ranking-list {
    padding: 0 .9rem;
  }

  .rank-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .destination-page-header {
    padding: 3.5rem 1rem 1rem;
  }

  .review-hero {
    padding: 1rem .75rem 0;
  }

  .review-page .review-venue-photo,
  .review-page .channels-hero-photo {
    width: 100%;
    height: clamp(260px, 72vw, 390px);
    max-width: none;
    max-height: 390px;
    border-radius: 20px;
  }

  .review-title-card {
    margin: -34px .5rem 0;
    border-radius: 18px;
  }

  .review-title-card h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  .review-body {
    padding: 2.25rem 1rem 0;
  }

  .hotel-gallery,
  .restaurant-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-large,
  .gallery-item img,
  .gallery-large img {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* v42 homepage refinement */
.home-review-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-review-grid .review-card {
  grid-column: span 2;
}

.home-review-grid .review-card:nth-child(4),
.home-review-grid .review-card:nth-child(5) {
  grid-column: span 3;
}

.category-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 2rem;
  border: 1px solid rgba(169, 79, 49, .24);
  border-radius: 50%;
  background: rgba(169, 79, 49, .08);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.rank-item {
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
  transition: background-color .2s ease;
}

.rank-item:hover {
  background: rgba(169, 79, 49, .06);
}

.rank-item:hover strong {
  color: var(--accent-dark);
}

@media (max-width: 1100px) {
  .home-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-review-grid .review-card,
  .home-review-grid .review-card:nth-child(4),
  .home-review-grid .review-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .home-review-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    margin-inline: -.9rem;
    padding-inline: .9rem;
  }
}
