/* 1. Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 2. Container */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
  text-align: left;
}

/* 3. Reset & Base Typography */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 1em;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background: #fdfdfd;
}

/* 4. Sections */
section {
  margin-bottom: 2em;
}

/* 5. Headings */
h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* 6. Text */
p {
  margin: 0 0 1.25em;
}
/* reverted: keep bullets by default */
ul, ol {
  margin: 0 0 1.25em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}

/* 7. Page Header */
.page-header {
  position: relative;
  margin: 2em 0 3em;
  padding-top: 1em;
  text-align: center;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1em 0;
  margin-bottom: 1.5em;
}
.site-logo {
  width: 80px;
  height: auto;
}
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.lang-switcher {
  font-size: 0.9rem;
  white-space: nowrap;
}
.lang-switcher a {
  color: #555;
  text-decoration: none;
  margin: 0 0.25em;
}
.lang-switcher a:hover {
  text-decoration: underline;
}
.page-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

/* 8. Navigation */
nav ul {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  text-align: center;
}
nav ul li {
  display: inline-block;
}
nav ul li + li::before {
  content: "|";
  margin: 0 0.5em;
  color: #888;
}
nav ul li a {
  font-size: 1.1rem;
  display: inline;
  padding: 0;
}

/* 9. Subscribe Boxes */
#subscribe-top,
#subscribe-bottom {
  text-align: center;
  margin: 0 auto 2em;
}
.subscribe-box.side-button {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  max-width: 400px;
  margin: 0 auto;
}
.subscribe-box input {
  flex: 1;
  padding: 8px;
  font-size: 1rem;
}
.subscribe-box button {
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #f1c40f;
  color: #333;
  border: none;
  border-radius: 4px;
}

/* 10. Status Messages */
.status {
  display: none;
  font-size: 0.9rem;
  font-style: italic;
  margin-left: 0.5em;
  white-space: nowrap;
}
.sending { color: #888; }
.confirmation {
  color: green;
  font-weight: bold;
  animation: fadeScale 0.6s ease forwards;
  opacity: 0;
  transform: scale(0.95);
}
@keyframes fadeScale {
  to { opacity: 1; transform: scale(1); }
}

/* 11. Safety Section */
.safety-container {
  padding: 1em 0;
  line-height: 1.6;
}
.safety-container h2,
.safety-container h3 {
  margin: 2em 0 0.5em;
}
.safety-container p {
  margin-bottom: 1em;
}
.safety-container ul {
  margin: 0.5em 0 1em 1.5em;
}

/* 12. Back-to-Top Arrow */
.back-to-top {
  float: right;
  font-size: 1.25rem;
  text-decoration: none;
  margin-top: -0.5em;
}

/* 13. General Links */
a {
  font-size: 1.1rem;
}

/* 14. Hide arrows in subscribe sections */
#subscribe-top .back-to-top,
#subscribe-bottom .back-to-top {
  display: none;
}

/* 15. MOBILE OVERRIDES */
@media (max-width: 600px) {
  nav ul li a {
    font-size: 1.6rem;
    padding: 0;
  }
  .back-to-top {
    font-size: 2.4rem;
    display: block;
    text-align: right;
    margin-top: 1em;
  }
  .container {
    max-width: 100%;
    padding: 0 1em;
    text-align: left;
  }
  .page-header,
  #subscribe-top,
  #subscribe-bottom {
    text-align: left;
  }
  .page-description {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* 16. Ensure the title link matches the H1 size */
.page-title .title-link {
  font-size: 2.5rem !important;
  line-height: 1.2 !important;
  font-weight: inherit !important;
}
.page-title,
.page-description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  /* 1. Slightly smaller nav links */
  nav ul li a {
    font-size: 1rem;       /* down from 1.6rem → 1rem */
  }

  /* 2. Bump up content text to match .page-description (1.1rem) */
  .container p,
  .container li,
  .subscribe-box input,
  .subscribe-box button,
  .restaurant-controls,
  .price-options label {
    font-size: 1.1rem;     /* same size as your subtitle text */
    line-height: 1.5;      /* preserve good readability */
  }
}

/* 17. Restaurant Controls & Filters */
.restaurant-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
  font-size: 1rem;
}
.restaurant-controls select {
  padding: 0.25em 0.5em;
  font-size: 1rem;
}

/* Toggle Buttons for Price Options */
.price-options {
  display: flex;
  gap: 0.5em;
}
.price-options input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  display: inline-block;
  width: auto;
  height: auto;
  margin-right: 6px;
  cursor: pointer;
  accent-color: #0077cc;
}
.price-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* Remove bullets only on the restaurant list */
#restaurant-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 18. Dark/Light Theme */
@media (prefers-color-scheme: light) {
  body {
    background-color: #ffffff;
    color: #000000;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }
  select {
    background-color: #1e1e1e;
    color: #e0e0e0;
    -webkit-appearance: none;
    appearance: none;
  }
  .price-options label {
    border-color: #444;
    background: #1e1e1e;
    color: #ccc;
  }
}

/* Dark theme headings */
@media (prefers-color-scheme: dark) {
  h1, h2, h3 {
    color: #f5f5f5;
  }
}

/* Default/light theme links */
a {
  color: #0077cc;
  text-decoration: underline;
}

/* Dark theme links */
@media (prefers-color-scheme: dark) {
  a {
    color: #66b0ff;
  }
}

/* Hover/focus states */
a:hover, a:focus {
  color: #005fa3;
  outline: none;
  text-decoration: underline;
}

/* 1. Kill the body’s default top padding */
body {
  padding-top: 0 !important;
}

/* 2. Remove the page-header’s top margin & padding */
.page-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3. (Optional) Tweak .header-top spacing */
.header-top {
  padding-top: 0.5em !important;
  margin-bottom: 1em !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Restore default bullets globally
   ───────────────────────────────────────────────────────────────────────────── */
ul, ol {
  list-style: disc outside;       /* restore bullets */
  margin: 0 0 1.25em 1.5em;       /* your original indent */
  padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ONLY the restaurant list: no bullets, flush with surrounding text
   ───────────────────────────────────────────────────────────────────────────── */
#restaurant-list {
  list-style: none;               /* no bullets here */
  margin: 0;                      /* remove the 1.5em indent */
  padding: 0;
}

#restaurant-list li {
  margin: 0.5em 0;                /* vertical spacing between items */
  padding: 0;                     /* no extra left padding */
}
/* ───────────────────────────────────────────────────────────────
   Restaurant meta (Leblon · $$ · Breakfast) — small & grey
   ─────────────────────────────────────────────────────────────── */
#restaurant-list li .restaurant-meta {
  font-size: 0.9rem !important;
  color:     #777    !important;
  margin-top: 0.25em;
  line-height: 1.4;
}
/* ─────────────────────────────────────────────────────────────────────────────
   Reduce vertical space in subscribe sections
   ───────────────────────────────────────────────────────────────────────────── */
#subscribe-top p,
#subscribe-bottom p {
  /* shrink the default paragraph bottom-margin */
  margin-bottom: 0.5em;
}

#subscribe-top .subscribe-box,
#subscribe-bottom .subscribe-box {
  /* pull the box up closer to that label */
  margin-top: 0.25em;
}

/* 1) Constrain the logo back to 80px */
.logo-bubble {
  position: relative;
  width: 80px;
}

.logo-bubble img {
  display: block;
  width: 100%;
  height: auto;
}

/* 2) Base bubble styles—hidden by default */
.bubble-text {
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%);
  width: 240px;
  padding: 0.75em;
  font-size: 0.9rem;
  border-radius: 0.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* 3) Light / Dark backgrounds */
@media (prefers-color-scheme: light) {
  .bubble-text {
    background: #f0f0f0;
    color: #333;
  }
}

@media (prefers-color-scheme: dark) {
  .bubble-text {
    background: #333;
    color: #f0f0f0;
  }
}

/* ─────────────────────────────────────────────
   1) Put .lang-switcher back in the header row
   ───────────────────────────────────────────── */
.header-top {
  display: flex;                   /* switch on flexbox */
  align-items: center;             /* vertically center logo + links */
  justify-content: space-between;  /* logo left, links right */
}

/* if you need to override any text-align: center inherited from .page-header */
.header-top .site-logo,
.header-top .lang-switcher {
  text-align: initial;
}

/* ensure the switcher hugs the right side */
.lang-switcher {
  margin-left: auto;
}

/* ─────────────────────────────────────────────
   2) Shift the bubble fully to the right of the logo
   ───────────────────────────────────────────── */
.logo-bubble {
  position: relative;
  width: 80px;     /* your original logo width */
}

.logo-bubble img {
  display: block;
  width: 100%;
  height: auto;
}

.bubble-text {
  position: absolute;
  top: 100%;       /* right below the logo */
  left: 100%;      /* start at the logo’s right edge */
  margin-left: 10px;  /* a little breathing room */
  width: 240px;    /* your bubble width */
  padding: 0.75em;
  font-size: 0.9rem;
  border-radius: 0.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

@media (prefers-color-scheme: light) {
  .bubble-text {
    background: #f0f0f0;
    color: #333;
  }
}

@media (prefers-color-scheme: dark) {
  .bubble-text {
    background: #333;
    color: #f0f0f0;
  }
}

/* only show on hover (desktop) */
.logo-bubble:hover .bubble-text {
  opacity: 1;
  pointer-events: auto;
}

/* Back-to-Top Button */
#backToTop {
  position: fixed;
  bottom: 1.5em;
  right: 1.5em;
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 119, 204, 0.75); /* link-blue at 75% opacity */
  color: #ffffff;                            /* arrow stays solid white */
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;                        /* larger arrow */
  line-height: 3rem;                         /* centers the arrow vertically */
  text-align: center;                        /* centers the arrow horizontally */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}


