/* ==========================================================================
   Chillingz website styles
   --------------------------------------------------------------------------
   One stylesheet for the whole site. It is written "mobile first": the plain
   rules are for phones, and the @media (min-width: …) blocks further down add
   extra layout for tablets and desktops.

   Sections in this file:
     1. Colours and sizes (design tokens) — light mode, then dark mode
     2. Basic reset and page defaults
     3. Re-usable pieces: buttons, form fields, cards, layout helpers
     4. Header (logo, city switcher, menu, search, login button)
     5. Mobile menu drawer
     6. Footer
     7. Login pop-up (modal)
     8. Cookie banner and small pop-up messages (toasts)
     9. Listing cards and rows
    10. Homepage
    11. Search page
    12. Venue and event pages
    13. My Account, guides and articles
    14. Information pages
    15. Reduced motion
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Colours and sizes
   Every colour on the site comes from these variables, so changing the brand
   colour here changes it everywhere.
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours taken from the Chillingz app */
  --brand: #b277f0;
  --brand-strong: #cfa6ff;          /* light purple for text on the dark background */
  --brand-soft: #3b1560;            /* deep purple for chips and highlights */
  --brand-gradient: linear-gradient(90deg, #9f3af2, #7925c7);
  --accent-gradient: linear-gradient(90deg, #f661f8, #79e8ec);

  /* Page colours: the site always uses the dark purple theme */
  --bg: #1a0829;
  --surface: #2d0d47;                /* cards, header, pop-ups */
  --surface-2: #3a1259;              /* slightly darker panels */
  --text: #f7f0ff;
  --text-muted: #cdbfdc;
  --border: #4a1f6e;
  --focus: #e3c6ff;
  --error: #ff8a80;
  --success: #6ce9a6;
  --star: #f5a623;                   /* rating stars, bright enough to see on dark */
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --overlay: rgba(0, 0, 0, 0.65);  /* dark see-through layer behind pop-ups */

  /* Sizes */
  --radius: 14px;
  --radius-small: 10px;
  --tap: 44px;                       /* minimum size for anything you tap */
  --page-gutter: clamp(16px, 4vw, 40px);
  --page-max: 1280px;
  --header-height: 64px;

  /* Fluid text sizes: they grow smoothly between phone and desktop */
  --text-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Basic reset and page defaults
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Leave room for the sticky header when jumping to #anchors */
  scroll-padding-top: calc(var(--header-height) + 72px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.55;
}

/* Stop the page scrolling behind an open pop-up or menu */
body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 3px;
}

/* A clear outline when someone moves around with the keyboard (Tab key) */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hides text visually but keeps it for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* "Skip to content" link: appears only when a keyboard user presses Tab */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 8px;
}


/* --------------------------------------------------------------------------
   3. Re-usable pieces
   -------------------------------------------------------------------------- */

/* Centres content and keeps it from getting too wide on big screens */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: clamp(32px, 5vw, 64px);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Purple filled button: the main action on a page */
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}

/* Outlined button: secondary actions */
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-block {
  width: 100%;
}

/* Small round icon-only button (menu, close, heart) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Text links that look like buttons but without the box */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-strong);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Form fields ------------------------------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 600;
  font-size: var(--text-sm);
}

.input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.input::placeholder {
  color: var(--text-muted);
}

/* Red border and message when a field has a problem */
.input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: var(--text-sm);
  min-height: 1em;
}

.form-message {
  padding: 10px 14px;
  border-radius: var(--radius-small);
  font-size: var(--text-sm);
}

.form-message[data-type="error"] {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
}

.form-message[data-type="success"] {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}

.form-message:empty {
  display: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--tap);
  font-size: var(--text-sm);
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Grid that fits as many cards per row as the screen allows */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2vw, 24px);
}

/* Chips that are links (e.g. tags on a venue page) are easy to tap */
a.chip {
  min-height: var(--tap);
  padding-inline: 14px;
}

/* Text buttons that stand on their own get a full-size tap area */
.footer-bottom .link-btn,
.auth-footer-row .link-btn,
.newsletter .link-btn {
  min-height: var(--tap);
}

/* Small rounded label, e.g. "New" or a category name */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   4. Header
   On phones: menu button, logo, account button, then a search bar under it.
   On desktop (1024px+): logo, city, full menu with dropdowns, search, login.
   -------------------------------------------------------------------------- */
/* Before site.js draws the header, hold its space open so the page doesn't
   jump down when it appears. */
[data-site-header] {
  display: block;
  min-height: calc(var(--header-height) + 55px);
}

@media (min-width: 1024px) {
  [data-site-header] {
    min-height: calc(var(--header-height) + 1px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* The header items sit in one row. On phones the search bar wraps onto its
   own line underneath (see .header-search). */
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-right: auto;            /* pushes everything after it to the right */
}

.logo img {
  height: 36px;
  width: auto;
}

/* City switcher (a drop-down list) */
.city-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.city-switcher select {
  appearance: none;
  min-height: var(--tap);
  padding: 8px 34px 8px 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.city-switcher .icon-pin,
.city-switcher .icon-caret {
  position: absolute;
  pointer-events: none;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.city-switcher .icon-pin { left: 10px; }
.city-switcher .icon-caret { right: 10px; }

/* In the header on phones the city switcher lives in the menu drawer */
.header-bar .city-switcher {
  display: none;
}

/* Desktop menu: hidden on phones */
.main-nav {
  display: none;
}

/* These keep their size; only the search box gets narrower when space is tight */
.logo,
.city-switcher,
.header-account,
.menu-toggle {
  flex-shrink: 0;
}

/* Login button / account button in the header */
.header-account .btn {
  padding-inline: 16px;
}

/* On small phones show only an icon for the login button. The words are
   still there for screen readers, just not drawn on screen. */
.header-account .btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Search bar: sits under the header bar on phones and stays on screen */
.header-search {
  order: 10;                    /* move to the end of the row… */
  flex-basis: 100%;             /* …and take a full line of its own */
  padding-bottom: 10px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form .icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-form input {
  padding-left: 44px;
  border-radius: 999px;
  background: var(--surface-2);
}

/* Little coloured dot on the account button when signed in */
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Account dropdown (shown when signed in) */
.account-menu {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dropdown-panel[hidden] {
  display: none;
}

.dropdown-panel a,
.dropdown-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-panel a:hover,
.dropdown-panel button:hover {
  background: var(--surface-2);
}

.dropdown-greeting {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@media (min-width: 400px) and (max-width: 1199px), (min-width: 1360px) {
  .header-account .btn-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* Tablet: show the city switcher in the header bar */
@media (min-width: 768px) {
  .header-bar .city-switcher {
    display: inline-flex;
  }
}

/* Small laptops and landscape tablets: the search moves up into the main
   row, but the menu stays behind the menu button to leave enough room. */
@media (min-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .header-bar {
    flex-wrap: nowrap;
    column-gap: 12px;
  }

  .header-search {
    order: 0;
    flex: 1 1 200px;
    max-width: 360px;
    padding-bottom: 0;
  }
}

/* Desktop: full menu in the header, menu button hidden */
@media (min-width: 1200px) {
  .header-bar {
    column-gap: 16px;
  }

  .logo {
    margin-right: 0;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    flex-shrink: 0;               /* never squash the menu; the search shrinks instead */
    margin-right: auto;
  }

  .main-nav > ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: var(--tap);
    padding: 8px 10px;
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }

  .nav-link:hover,
  .nav-link[aria-expanded="true"] {
    background: var(--surface-2);
  }

  .nav-link[aria-current="page"] {
    color: var(--brand-strong);
  }

  .nav-link .icon {
    width: 16px;
    height: 16px;
  }

  .nav-item {
    position: relative;
  }

  /* Mega-menu: a wide panel with links in columns */
  .mega-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(640px, 70vw);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .mega-menu[hidden] {
    display: none;
  }

  .mega-menu a {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    color: var(--text);
    text-decoration: none;
  }

  .mega-menu a:hover {
    background: var(--surface-2);
  }

  .mega-menu a strong {
    font-weight: 600;
  }

  .mega-menu a span {
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .header-search {
    flex: 1 1 300px;            /* room for "How do you wanna chill today?" */
    min-width: 160px;
  }
}


/* --------------------------------------------------------------------------
   5. Mobile menu drawer (slides in from the left on phones and tablets)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--overlay);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 51;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.drawer[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-body {
  padding: 16px 20px 32px;
}

.drawer-body .city-switcher {
  display: flex;
  margin-bottom: 16px;
}

.drawer-body .city-switcher select {
  width: 100%;
}

.drawer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.drawer-nav .drawer-heading {
  margin: 20px 0 4px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.drawer-account {
  margin-top: 24px;
}


/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: 40px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}

/* "Sign up for updates & newsletters" box at the top of the footer */
.newsletter {
  display: grid;
  gap: 16px 40px;
  margin-bottom: 32px;
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.newsletter h2 {
  font-size: var(--text-xl);
}

.newsletter-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
}

.newsletter-fields {
  display: grid;
  gap: 0 12px;
}

.newsletter-lists {
  margin: 0;
  padding: 0;
  border: 0;
}

.newsletter-form .btn {
  margin-top: 8px;
}

.newsletter-done:focus {
  outline: none;
}

.newsletter-done p {
  margin: 0 0 6px;
  font-size: var(--text-base);
}

@media (min-width: 600px) {
  .newsletter-fields {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (min-width: 1024px) {
  .newsletter {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
}

/* Trust strip: review score and "as featured in" */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.trust-score {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
}

.press-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-grid h2 {
  font-size: var(--text-base);
  margin-bottom: 8px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 36ch;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-bottom .link-btn {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}


/* --------------------------------------------------------------------------
   7. Login pop-up (modal)
   On phones it fills the screen from the bottom; on bigger screens it is a
   centred box.
   -------------------------------------------------------------------------- */
.modal {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
}

.modal::backdrop {
  background: var(--overlay);
}

.modal-inner {
  position: relative;
  padding: 20px var(--page-gutter) 32px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.modal-title {
  margin: 8px 48px 4px 0;
  font-size: var(--text-xl);
}

.modal-subtitle {
  color: var(--text-muted);
}

/* The two tabs at the top: "Log in" and "Sign up" */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 16px 0 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-panel[hidden] {
  display: none;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 52px;
}

.password-wrap .icon-btn {
  position: absolute;
  right: 0;
  top: 0;
}

.auth-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: var(--text-sm);
}

.small-print {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Interest chips shown after a first sign-up (same choices as the app) */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.interest-grid label {
  position: relative;
}

.interest-grid input {
  position: absolute;
  opacity: 0;
}

.interest-grid span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.interest-grid input:checked + span {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

.interest-grid input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .modal {
    width: min(460px, calc(100% - 32px));
    height: auto;
    max-height: calc(100% - 48px);
    margin: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .modal-inner {
    padding: 28px 32px 32px;
  }
}


/* --------------------------------------------------------------------------
   8. Cookie banner and toasts
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 560px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--text-sm);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: var(--text-base);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  flex: 1 1 140px;
}

/* Small message that pops up at the bottom for a few seconds */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}


/* --------------------------------------------------------------------------
   9. Listing cards and rows (homepage, search results, favourites)
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.section-head > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  white-space: nowrap;
}

.section-intro {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.empty-note {
  color: var(--text-muted);
}

/* One card: photo on top, details underneath. The whole card is clickable
   because the title link stretches over it (see .card-title a::after). */
.listing-card,
.guide-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover,
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media-wrap {
  position: relative;
}

/* Photos keep a 3:2 shape so the page doesn't jump while they load */
.card-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-2);
}

.card-media-empty {
  background: var(--accent-gradient);
  opacity: 0.5;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: var(--text-base);
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-title a:focus-visible {
  outline: none;
}

.card-title a:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.card-details {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.card-rating span[aria-hidden] {
  color: var(--star);
}

/* Little label on the photo, e.g. a date or "New" */
.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 6, 33, 0.8);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Big number for Top 10 lists */
.card-rank {
  position: absolute;
  left: 10px;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.top10 .card-body {
  padding-top: 26px;
}

/* Heart button on the photo (sits above the stretched card link) */
.heart-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: #2d0d47;
}

.heart-btn:hover {
  background: #fff;
}

.heart-btn.is-saved {
  color: #e0245e;
}

.heart-btn.is-saved svg {
  fill: currentColor;
}

/* A row of cards: scrolls sideways on phones... */
.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 300px);
  gap: 14px;
  margin: 0 calc(var(--page-gutter) * -1);
  padding: 4px var(--page-gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-gutter);
  overscroll-behavior-x: contain;
}

.card-row > li {
  scroll-snap-align: start;
}

/* ...and becomes a normal grid on bigger screens */
@media (min-width: 768px) {
  .card-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  /* Keep rows tidy: show two complete rows of 3 */
  .card-row > li:nth-child(n + 7) {
    display: none;
  }

  /* …except the Top 10, which always shows all ten */
  .top10 .card-row > li:nth-child(n + 7) {
    display: block;
  }
}

@media (min-width: 1200px) {
  .card-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-row > li:nth-child(n + 7) {
    display: block;
  }

  .top10 .card-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

.top10 {
  background: var(--surface-2);
}


/* --------------------------------------------------------------------------
   10. Homepage
   -------------------------------------------------------------------------- */

/* Big welcome section: photo behind, dark layer on top so text is readable */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 72vh, 680px);
  padding-block: 48px 56px;
  color: #fff;
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26, 8, 41, 0.25) 0%, rgba(26, 8, 41, 0.6) 45%, rgba(26, 8, 41, 0.92) 100%);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 12px;
}

.hero-text {
  max-width: 52ch;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.92);
}

/* Big search box in the hero */
.hero-search {
  max-width: 620px;
  margin-top: 20px;
}

.hero-search .input {
  min-height: 56px;
  padding-right: 112px;
  border: 0;
  background: #fff;
  color: #1b1025;
}

.hero-search .input::placeholder,
.hero-search .icon {
  color: #6b5d78;
}

.hero-search .btn {
  position: absolute;
  right: 6px;
  min-height: 44px;
}

/* Phones: the Search button goes under the box, so the placeholder
   "How do you wanna chill today?" has room to show in full */
@media (max-width: 479px) {
  .hero-search {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-search .input {
    padding-right: 14px;
  }

  .hero-search .icon {
    top: 18px;                    /* middle of the 56px box, not the whole form */
  }

  .hero-search .btn {
    position: static;
    width: 100%;
  }
}

/* The smallest phones: slightly smaller placeholder so it still fits */
@media (max-width: 359px) {
  .search-form .input::placeholder {
    font-size: 15px;
  }
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.24);
}

.quick-chip.is-recent {
  border-style: dashed;
}

/* The three big buttons: Food & Drink, Find Events, Browse Venues.
   They overlap the bottom of the photo slightly. */
.cta-grid {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: -28px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.cta-card:hover {
  border-color: var(--brand);
}

.cta-card strong {
  display: block;
  font-size: var(--text-lg);
}

.cta-card span span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 1.4rem;
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -40px;
  }
}

/* Category tiles: photo with the name on top */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.category-card .card-media {
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease;
}

.category-card:hover .card-media {
  transform: scale(1.05);
}

.category-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(20, 6, 33, 0.88));
}

.category-label strong {
  font-size: var(--text-lg);
  line-height: 1.2;
}

.category-label span {
  font-size: var(--text-sm);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .category-card .card-media {
    aspect-ratio: 3 / 4;
  }
}

/* Guide cards */
.guide-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card .chip {
  align-self: flex-start;
  margin: 0 0 4px;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Photo gallery: one big photo and smaller ones around it */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  position: relative;
  border-radius: var(--radius-small);
  overflow: hidden;
}

.gallery a {
  display: block;
  height: 100%;
  color: #fff;
}

.gallery .card-media {
  height: 100%;
  aspect-ratio: 1;
}

.gallery-large {
  grid-column: span 2;
}

.gallery-large .card-media {
  aspect-ratio: 16 / 9;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(20, 6, 33, 0.85));
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .gallery-large {
    grid-row: span 2;
  }

  .gallery-large .card-media {
    aspect-ratio: auto;
  }
}

/* Offers, vouchers and rewards tiles */
.promo-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.promo-card h3 {
  font-size: var(--text-lg);
}

.promo-card p {
  flex: 1;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* "Take Chillingz with you" banner */
.app-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: #fff;
}

.app-banner h2 {
  margin-bottom: 6px;
}

.app-banner p {
  max-width: 56ch;
  margin: 0;
  opacity: 0.92;
}

.app-banner .btn {
  background: #fff;
  color: #5f1aa0;
}

/* "Coming soon to Manchester" message */
.notice {
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}


/* --------------------------------------------------------------------------
   11. Search page
   Phones/tablets: results fill the screen; the filters slide up from the
   bottom when "Filters" is tapped.
   Desktop (1024px+): filters are a column on the left, always visible.
   -------------------------------------------------------------------------- */
.search-page {
  padding-top: 24px;
}

.search-head h1 {
  font-size: var(--text-xl);
}

/* Category shortcuts: scroll sideways on small screens */
.category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--page-gutter) * -1) 16px;
  padding: 0 var(--page-gutter) 6px;
  overflow-x: auto;
}

.category-tab {
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.category-tab[aria-pressed="true"] {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.search-layout {
  display: block;
}

/* The filter panel — on phones, a sheet that slides up from the bottom */
.filters-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 52;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--page-gutter) 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(100%);
  visibility: hidden;             /* hidden panels can't be reached with Tab */
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.filters-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease;
}

.filters-backdrop {
  position: fixed;
  inset: 0;
  z-index: 51;
  background: var(--overlay);
}

.filters-backdrop[hidden] {
  display: none;
}

.filters-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.filters-head h2 {
  margin: 0;
  font-size: var(--text-lg);
}

.filters-form {
  padding-top: 16px;
}

.filter-group {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.filter-group legend {
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* "All / Places / Events" switch */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

.segmented input,
.chip-options input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.segmented input:checked + span {
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Price and vibe choices shown as tappable chips */
.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-options label {
  position: relative;
}

.chip-options span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.chip-options input:checked + span {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.segmented input:focus-visible + span,
.chip-options input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* "Clear all" and "Show results" stay at the bottom of the phone panel */
.filters-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  margin: 16px calc(var(--page-gutter) * -1) 0;
  padding: 12px var(--page-gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.filters-actions .btn {
  flex: 1;
}

/* Results */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.results-count {
  margin: 0;
  margin-right: auto;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #7925c7;               /* fixed purple so white text is readable in both modes */
  color: #fff;
  font-size: 0.75rem;
}

.filter-count[hidden] {
  display: none;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.sort .input {
  width: auto;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.active-filters:empty {
  display: none;
}

.active-filter {
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.no-results {
  grid-column: 1 / -1;
  padding: 40px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.results-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Desktop: filters become a column on the left */
@media (min-width: 1024px) {
  .search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
  }

  .filters-panel {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    z-index: auto;
    max-height: calc(100vh - var(--header-height) - 32px);
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .filters-backdrop,
  .filters-toggle,
  .filters-close,
  .filters-apply {
    display: none !important;
  }

  .filters-actions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
}


/* --------------------------------------------------------------------------
   12. Venue and event pages
   Phones: everything in one column, with a booking-link bar fixed at the bottom.
   Desktop (1024px+): details on the left, booking card on the right that
   stays in view while scrolling.
   -------------------------------------------------------------------------- */
.detail-page {
  padding-top: 16px;
  padding-bottom: 88px;            /* room for the phone booking-link bar */
}

.detail-loading {
  padding-block: 80px;
  text-align: center;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 4px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb [aria-current] {
  overflow: hidden;
  max-width: 24ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Big photo with the heart and share buttons */
.detail-photo {
  position: relative;
  margin: 0 calc(var(--page-gutter) * -1);
}

.detail-photo .card-media {
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

.detail-photo-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
}

.detail-photo-actions .heart-btn {
  position: static;
}

.detail-header {
  padding-top: 16px;
}

.detail-chips,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.detail-chips .chip,
.detail-tags .chip {
  text-decoration: none;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-section {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  font-size: var(--text-lg);
}

/* "Where / Price / Website" list */
.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.facts dt {
  color: var(--text-muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Map: a button first, the real map only after it's clicked */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.rating-summary p {
  margin: 0;
}

.rating-big {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Booking card */
.booking-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-height) + 72px);
}

.booking-card h2 {
  font-size: var(--text-lg);
}

.booking-price {
  color: var(--text-muted);
}

.booking-price strong {
  color: var(--text);
  font-size: var(--text-lg);
}

.booking-when {
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

textarea.input {
  min-height: 72px;
  resize: vertical;
}

.booking-note {
  margin: 10px 0 0;
  text-align: center;
}

/* Phone bar with the booking link, fixed to the bottom of the screen */
.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--page-gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.book-bar > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .detail-photo {
    margin: 0;
  }

  .detail-photo .card-media {
    border-radius: var(--radius);
  }
}

@media (min-width: 1024px) {
  .detail-page {
    padding-bottom: 0;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
  }


  .book-bar {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   13. My Account, guides and articles
   -------------------------------------------------------------------------- */
.account-page,
.guides-page,
.article-page {
  padding-top: 24px;
}

.account-page h1 {
  font-size: var(--text-xl);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.account-hello {
  color: var(--text-muted);
  font-weight: 600;
}

/* Section menu: tabs that scroll sideways on phones, a column on desktop */
.account-nav ul {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--page-gutter) * -1) 16px;
  padding: 0 var(--page-gutter) 6px;
  overflow-x: auto;
  list-style: none;
}

.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.account-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.account-card {
  margin-bottom: 16px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-card h2 {
  font-size: var(--text-lg);
}

.account-card .input[readonly] {
  background: var(--surface-2);
}

.steps {
  padding-left: 1.4em;
}

.steps li {
  margin-bottom: 6px;
}

@media (min-width: 1024px) {
  .account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
  }

  .account-nav {
    position: sticky;
    top: calc(var(--header-height) + 16px);
  }

  .account-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .account-nav a {
    width: 100%;
    border-color: transparent;
    border-radius: var(--radius-small);
  }

  .account-nav a:hover {
    background: var(--surface-2);
  }
}

/* Guides page */
.page-intro {
  max-width: 64ch;
}

.page-intro p {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.guides-page .section:first-of-type {
  padding-top: 8px;
}

/* Article page */
.article-page > article,
.article-page .breadcrumb {
  max-width: 900px;
  margin-inline: auto;
}

.article-cover {
  margin: 0 calc(var(--page-gutter) * -1) 20px;
}

.article-cover .card-media {
  aspect-ratio: 16 / 8;
}

.article-intro {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.article-body {
  max-width: 68ch;
  font-size: var(--text-lg);
}

.article-body h2,
.article-subhead {
  margin-top: 1.6em;
  font-size: var(--text-xl);
}

/* Numbered places in a list */
.pick-list {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pick {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pick-media {
  position: relative;
}

.pick-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
}

.pick-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--text-lg);
}

.pick-body p {
  margin: 0;
}

.pick-body .btn {
  margin-top: 8px;
}

.pick-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .article-cover {
    margin-inline: 0;
  }

  .article-cover .card-media {
    border-radius: var(--radius);
  }

  .pick {
    grid-template-columns: 280px 1fr;
  }

  .pick-media .card-media {
    height: 100%;
  }
}


/* --------------------------------------------------------------------------
   14. Information pages (offers, vouchers, about, contact, FAQs, legal, 404)
   -------------------------------------------------------------------------- */
.content-page {
  padding-top: 24px;
}

/* Comfortable reading width for long text */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: var(--text-lg);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.legal h1 {
  font-size: var(--text-xl);
}

/* Tables scroll sideways on phones rather than squashing the text */
.table-wrap {
  overflow-x: auto;
  margin-block: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface-2);
}

/* Form on the left, help on the right (stacked on phones) */
.two-column {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .two-column {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
  }
}

.form-subhead {
  margin-top: 8px;
  font-size: var(--text-base);
}

.form-thanks:focus {
  outline: none;
}

/* FAQs: each question opens when tapped */
.faq-list {
  max-width: 800px;
}

.faq {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.how-it-works {
  list-style: none;
}

/* 404 and offline pages */
.not-found {
  max-width: 640px;
  margin: clamp(24px, 8vw, 80px) auto;
}

.not-found-code {
  margin: 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  line-height: 1;
}


/* --------------------------------------------------------------------------
   15. Reduced motion
   If the visitor has asked their device for less animation, switch it off.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
