/* ========================================
   BEST RESTAURANTS CABO — Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
  --cream: #F5F0E8;
  --black: #0D0D0D;
  --terracotta: #C4703F;
  --sand: #E8DDD0;
  --terracotta-light: #d4885a;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  cursor: none;
}

a:hover {
  color: var(--terracotta-light);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 28px;
  height: 28px;
}

.custom-cursor svg {
  width: 100%;
  height: 100%;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.4);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}

.nav.over-hero .nav__logo,
.nav.over-hero .nav__link,
.nav.over-hero .lang-toggle {
  color: white;
}

.nav.over-hero .lang-toggle {
  border-color: rgba(255, 255, 255, 0.5);
}

.nav.over-hero.scrolled .nav__logo,
.nav.over-hero.scrolled .nav__link,
.nav.over-hero.scrolled .lang-toggle {
  color: var(--black);
}

.nav.over-hero.scrolled .lang-toggle {
  border-color: var(--black);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--terracotta);
}

.lang-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: 1px solid currentColor;
  padding: 0.4rem 0.9rem;
  color: var(--black);
  font-family: var(--font-body);
  cursor: none;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}

/* --- Hero Video Section --- */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
}

.hero-video__media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.65;
}

.hero-video__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 3rem 6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-video__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: white;
  max-width: 750px;
}

.hero-video__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-top: 1.2rem;
}

.hero-video__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  z-index: 3;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Mapbox Overrides --- */
.mapboxgl-popup {
  z-index: 5;
}

.mapboxgl-popup-content {
  background: var(--cream);
  border-radius: 0;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-family: var(--font-body);
  min-width: 220px;
  border: none;
}

.mapboxgl-popup-tip {
  border-top-color: var(--cream);
}

.mapboxgl-popup-close-button {
  display: none;
}

.map-popup__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.map-popup__cuisine {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.map-popup__tagline {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* Custom map marker */
.map-marker {
  width: 18px;
  height: 18px;
  background: var(--terracotta);
  border: 2.5px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(196, 112, 63, 0.4);
  cursor: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-marker:hover {
  transform: scale(1.4);
}

/* --- Sections --- */
.section {
  padding: 6rem 3rem;
}

.section--sand {
  background-color: var(--sand);
}

.section--cream {
  background-color: var(--cream);
}

/* --- Editorial Intro --- */
.editorial-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  padding: 7rem 3rem 5rem;
}

.editorial-intro__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editorial-intro__dash {
  color: var(--terracotta);
  font-size: 1rem;
}

.editorial-intro__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.editorial-intro__text {
  font-size: 1.05rem;
  color: #4a4038;
  line-height: 1.85;
}

/* --- Restaurant Cards --- */
.restaurants {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.restaurant-card {
  background: white;
  border-radius: 2px;
  overflow: hidden;
  cursor: none;
  transition: box-shadow 0.4s ease;
}

.restaurant-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.restaurant-card__header {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 280px;
}

.restaurant-card__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.restaurant-card__slideshow {
  position: absolute;
  inset: 0;
}

.restaurant-card__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.restaurant-card__slide.active {
  opacity: 1;
}

.restaurant-card:hover .restaurant-card__slide.active {
  transform: scale(1.03);
}

.restaurant-card__dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.restaurant-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid white;
  background: transparent;
  padding: 0;
  cursor: none;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.restaurant-card__dot.active {
  background: white;
  opacity: 1;
}

.restaurant-card__dot:hover {
  opacity: 1;
}

/* Slideshow arrows */
.restaurant-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.restaurant-card__image:hover .restaurant-card__arrow {
  opacity: 1;
}

.restaurant-card__arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.restaurant-card__arrow--prev {
  left: 0.6rem;
}

.restaurant-card__arrow--next {
  right: 0.6rem;
}

.restaurant-card__content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.restaurant-card__cuisine {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.restaurant-card__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.restaurant-card__tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.restaurant-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--sand);
  color: #888;
}

.restaurant-card__description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.75;
}

.restaurant-card__expand-hint {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.restaurant-card__expand-hint span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.restaurant-card.expanded .restaurant-card__expand-hint span {
  transform: rotate(180deg);
}

/* --- Card Expanded Details --- */
.restaurant-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  opacity: 0;
}

.restaurant-card.expanded .restaurant-card__details {
  max-height: 500px;
  opacity: 1;
}

.restaurant-card__details-inner {
  padding: 0 3rem 2.5rem 3rem;
  margin-left: 380px;
}

.restaurant-card__info-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  border-top: 1px solid var(--terracotta);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.restaurant-card__info-item {
  flex: 1;
  min-width: 0;
}

.restaurant-card__info-item label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.4rem;
}

.restaurant-card__info-item p {
  font-size: 0.88rem;
  color: var(--black);
  line-height: 1.5;
  margin: 0;
}

.restaurant-card__info-divider {
  width: 1px;
  align-self: stretch;
  background: var(--terracotta);
  opacity: 0.35;
  flex-shrink: 0;
}

.restaurant-card__directions-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-body);
  transition: opacity 0.2s ease;
}

.restaurant-card__directions-link:hover {
  opacity: 0.7;
}

.restaurant-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: none;
  cursor: none;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--terracotta);
  color: white;
}

.btn--primary:hover {
  background: var(--terracotta-light);
  color: white;
}

.btn--outline {
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
}

.btn--outline:hover {
  background: var(--terracotta);
  color: white;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* --- This Week's Picks --- */
.this-week {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  text-align: center;
}

.this-week__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.this-week__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0;
}

.this-week__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.this-week-card {
  background: white;
  padding: 2.5rem;
  position: relative;
  transition: box-shadow 0.4s ease;
  cursor: none;
}

.this-week-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.this-week-card__badge {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
  display: inline-block;
  border: 1px solid var(--terracotta);
  padding: 0.2rem 0.6rem;
}

.this-week-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.this-week-card__cuisine {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.this-week-card__note {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  font-style: italic;
}

.this-week-card__image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
}

/* --- Neighborhood Guide --- */
.neighborhoods {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
  text-align: center;
}

.neighborhoods__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.neighborhoods__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}

.neighborhood-card {
  background: white;
  border: 1px solid var(--sand);
  padding: 1.5rem;
  cursor: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  text-align: left;
}

.neighborhood-card:hover {
  border-color: var(--terracotta);
}

.neighborhood-card.active {
  border-color: var(--terracotta);
  background: var(--sand);
}

.neighborhood-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.neighborhood-card__desc {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
}

.neighborhood-card__short {
  display: none;
}

/* --- Visitor Counter --- */
.restaurant-card__views {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Instagram Button --- */
.btn--instagram svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Nominate Section --- */
.nominate {
  background: var(--black);
  padding: 5rem 3rem;
}

.nominate__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.nominate__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
}

.nominate__subheading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.nominate__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.nominate__input,
.nominate__textarea {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s ease;
  cursor: none;
}

.nominate__input::placeholder,
.nominate__textarea::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

.nominate__input:focus,
.nominate__textarea:focus {
  border-color: var(--terracotta);
}

.nominate__textarea {
  resize: vertical;
  min-height: 80px;
}

.nominate__email-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.05em;
  margin-bottom: -0.5rem;
}

.nominate__submit {
  width: 100%;
  padding: 1rem;
  background: var(--terracotta);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.nominate__submit:hover {
  background: var(--terracotta-light);
}

.nominate__confirmation p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  padding: 2rem 0;
}

/* --- Hidden cards for neighborhood filtering --- */
.restaurant-card.hidden-by-filter {
  display: none;
}

/* --- LLM Context (visible to crawlers, hidden visually) --- */
.llm-context {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.5);
  padding: 4rem 3rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}

.footer__text {
  font-size: 0.82rem;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.footer__link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--terracotta);
}

/* --- About Page --- */
.about-hero {
  padding: 10rem 3rem 5rem;
  text-align: center;
  background: var(--sand);
}

.about-hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.3;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.about-content p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 1.8rem;
}

.about-content p:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding-right: 0.8rem;
  padding-top: 0.1rem;
  color: var(--terracotta);
}

/* --- Responsive: Tablet (max 900px) --- */
@media (max-width: 900px) {
  .restaurant-card__header {
    grid-template-columns: 1fr;
  }

  .restaurant-card__image {
    min-height: 220px;
    max-height: 260px;
  }

  .restaurant-card__details-inner {
    margin-left: 0;
  }

  .this-week__grid {
    grid-template-columns: 1fr;
  }

  .neighborhoods__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Responsive: Neighborhood pills (max 768px) --- */
@media (max-width: 768px) {
  .neighborhood-card {
    all: unset;
    height: 44px;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .neighborhood-card.active {
    background: var(--terracotta);
  }

  .neighborhood-card__name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--terracotta);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .neighborhood-card.active .neighborhood-card__name {
    color: var(--cream);
  }

  /* Show short label, hide full name on cards with a short label */
  .neighborhood-card__short {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--terracotta);
    margin: 0;
    line-height: 1;
  }

  .neighborhood-card.active .neighborhood-card__short {
    color: var(--cream);
  }

  .neighborhood-card:has(.neighborhood-card__short) .neighborhood-card__name {
    display: none;
  }

  .neighborhood-card__desc {
    display: none;
  }

  .neighborhoods__grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* --- Responsive: Mobile (max 640px) --- */
@media (max-width: 640px) {
  /* Base font size for readability */
  body {
    font-size: 16px;
  }

  /* Nav */
  .nav {
    padding: 0.9rem 1rem;
  }

  .nav.scrolled {
    padding: 0.8rem 1rem;
  }

  .nav__logo {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .nav__links {
    gap: 1rem;
  }

  .nav__link {
    font-size: 0.72rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .lang-toggle {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero Video */
  .hero-video {
    height: 100vh;
    min-height: 500px;
  }

  .hero-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-video__overlay {
    padding: 0 1.5rem 4rem;
    text-align: center;
  }

  .hero-video__title {
    font-size: 2.5rem;
    max-width: 100%;
  }

  .hero-video__subtitle {
    font-size: 0.75rem;
  }

  /* This Month's Picks */
  .this-week {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .this-week-card {
    padding: 1.5rem;
  }

  .this-week-card__image {
    height: 150px;
  }

  .this-week-card__name {
    font-size: 1.2rem;
  }

  /* Editorial Intro */
  .editorial-intro {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .editorial-intro__heading {
    font-size: 1.5rem;
  }

  .editorial-intro__text {
    font-size: 1rem;
  }

  /* Neighborhoods */
  .neighborhoods {
    padding: 1rem 1.25rem 2.5rem;
  }

  /* Sections general */
  .section {
    padding: 3rem 1.25rem;
  }

  /* Restaurant cards */
  .restaurants {
    padding: 1rem 1.25rem 3rem;
    gap: 2rem;
  }

  .restaurant-card__content {
    padding: 1.5rem 1.25rem;
  }

  .restaurant-card__name {
    font-size: 1.3rem;
  }

  .restaurant-card__description {
    font-size: 0.9rem;
  }

  .restaurant-card__views {
    font-size: 0.72rem;
  }

  /* Expanded details */
  .restaurant-card__details-inner {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .restaurant-card__info-row {
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .restaurant-card__info-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }

  .restaurant-card.expanded .restaurant-card__details {
    max-height: 700px;
  }

  .restaurant-card__actions {
    flex-direction: column;
  }

  .restaurant-card__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 1.5rem;
  }

  /* Hide arrows on mobile — swipe instead */
  .restaurant-card__arrow {
    display: none;
  }

  /* Slideshow dots - larger tap targets */
  .restaurant-card__dot {
    width: 10px;
    height: 10px;
    padding: 6px;
    box-sizing: content-box;
  }

  /* Nominate */
  .nominate {
    padding: 3rem 1.25rem 3.5rem;
  }

  .nominate__heading {
    font-size: 1.8rem;
  }

  .nominate__input,
  .nominate__textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 0.85rem 1rem;
    min-height: 44px;
  }

  .nominate__submit {
    min-height: 48px;
    font-size: 0.78rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 1.25rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .footer__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Custom cursor off on touch */
  .custom-cursor {
    display: none !important;
  }

  html, body, a, .lang-toggle, .btn, .restaurant-card, .map-marker, .neighborhood-card, .nominate__input, .nominate__textarea, .nominate__submit, .this-week-card {
    cursor: auto;
  }
}

/* --- Responsive: Small phones (max 375px) --- */
@media (max-width: 375px) {
  .nav {
    padding: 0.8rem 0.75rem;
  }

  .nav__logo {
    font-size: 0.65rem;
  }

  .hero-video__title {
    font-size: 2rem;
  }

  .hero-video__overlay {
    padding: 0 1rem 3.5rem;
  }

  .this-week {
    padding: 3rem 1rem 2rem;
  }

  .editorial-intro {
    padding: 3rem 1rem 2rem;
  }

  .neighborhoods {
    padding: 1rem 1rem 2rem;
  }

  .restaurants {
    padding: 0.75rem 1rem 2.5rem;
  }

  .restaurant-card__content {
    padding: 1.25rem 1rem;
  }

  .restaurant-card__details-inner {
    padding: 1rem 1rem 1.25rem;
  }

  .nominate {
    padding: 2.5rem 1rem 3rem;
  }

  .footer {
    padding: 2rem 1rem;
  }
}
