/* HostelsDirect design tokens + styles. Base copied verbatim from the planning chat's
   /workspace/artifacts/hostelsdirect-search.html and hostelsdirect-example.html (fonts updated to Nunito per chat). */

  :root {
    --navy: #0E2A4A;
    --navy-deep: #081E36;
    --terracotta: #C45C3A;
    --terracotta-hover: #B04E30;
    --sand: #F6F1EA;
    --cream: #FBF8F4;
    --ink: #1A1A1A;
    --muted: #5C6770;
    --white: #FFFFFF;
    --border: #E8E0D6;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
  }
  h1, h2, h3 { font-family: 'Nunito', sans-serif; letter-spacing: -0.02em; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

  /* Nav */
  nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 50;
  }
  nav .container { display: flex; justify-content: space-between; align-items: center; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; }
  .logo img { height: 42px; width: auto; }
  .logo span { color: var(--terracotta); }
  .logo .logo-text { color: var(--navy); } .logo .logo-text span { color: var(--terracotta); }
  .logo img { height: 46px; }
  .nav-right { display: flex; gap: 20px; align-items: center; font-size: 0.95rem; font-weight: 600; }
  .nav-right a { color: var(--navy); text-decoration: none; }
  .btn-sm {
    background: var(--terracotta);
    color: white;
    padding: 8px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
  }

  /* Search hero */
  .search-hero {
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
    padding: 36px 0 28px;
    text-align: center;
  }
  .search-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--navy);
    margin-bottom: 6px;
  }
  .search-hero p { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }

  .search-box {
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 28px rgba(14,42,74,0.08);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
  }
  .search-box input, .search-box select {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
  }
  .search-box input:focus, .search-box select:focus { outline: none; border-color: var(--navy); }
  .search-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
  }
  .search-btn:hover { background: var(--navy-deep); }

  /* Filters */
  .filters {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
  }
  .filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .filter-chip {
    background: var(--sand);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
  }
  .filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

  /* Results */
  .results { padding: 28px 0 60px; }
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
  }
  .results-header h2 { color: var(--navy); font-size: 1.4rem; }
  .results-header span { color: var(--muted); font-size: 0.95rem; }

  .hostel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
  }

  /* ---- verbatim from chat (hostelsdirect-example.html): buttons, hero, sections ---- */
  .btn {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.94rem;
    border: none;
  }
  .btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
  .btn-terracotta { background: var(--terracotta); }
  .btn-terracotta:hover { background: var(--terracotta-hover); }
  .btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
  }
  .btn-outline:hover { background: var(--navy); color: white; }

  /* Hero */
  .hero {
    padding: 64px 0 72px;
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }
  .catchphrase {
    display: inline-block;
    background: rgba(196,92,58,0.12);
    color: var(--terracotta);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 3.7rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
  }
  .hero h1 em { font-style: normal; color: var(--terracotta); }
  .hero p { font-size: 1.15rem; color: var(--muted); margin-bottom: 26px; max-width: 440px; }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-img {
    border-radius: 14px;
    width: 100%;
    box-shadow: 0 12px 36px rgba(14,42,74,0.1);
  }

  /* Sections */
  section { padding: 76px 0; }
  .section-title {
    text-align: center;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
  }
  .section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 44px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }


  /* ---- verbatim from chat (hostelsdirect-search.html) ends; additions below follow the same tokens ---- */
  :root { --sage: #4A7C59; }
  .logo-text { font-family: 'Nunito', sans-serif; }
  .hostel-card {
    background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(14,42,74,0.05); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  }
  .hostel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,42,74,0.1); }
  .hostel-card img { width: 100%; height: 180px; object-fit: cover; background: var(--sand); }
  .card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .card-body h3 { color: var(--navy); font-size: 1.15rem; line-height: 1.25; }
  .card-loc { color: var(--muted); font-size: 0.9rem; }
  .price { text-align: right; white-space: nowrap; color: var(--navy); font-weight: 700; }
  .price small { display: block; color: var(--muted); font-weight: 500; font-size: 0.75rem; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag { background: var(--sand); color: var(--navy); border-radius: 6px; padding: 2px 8px; font-size: 0.78rem; font-weight: 600; }
  .tag.nomad { background: rgba(74,124,89,0.12); color: var(--sage); }
  .perk { color: var(--terracotta); font-weight: 700; font-size: 0.86rem; }
  .verified { background: rgba(74,124,89,0.12); color: var(--sage); border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; }
  .visit-btn { margin-top: auto; display: block; text-align: center; background: var(--terracotta); color: white; padding: 11px; border-radius: 8px; font-weight: 700; text-decoration: none; }
  .visit-btn:hover { background: var(--terracotta-hover); }
  .direct-note { font-size: 0.78rem; color: var(--muted); text-align: center; }
  .empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1/-1; }
  footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 34px 0; font-size: 0.92rem; }
  footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
  footer a { color: white; }
  footer .catch { font-family: 'Nunito', sans-serif; font-weight: 800; color: white; }
  @media (max-width: 700px) { .nav-right .hide-sm { display: none; } }

/* keep anchored sections clear of the sticky header */
html { scroll-padding-top: 84px; }
section[id], [id].reveal { scroll-margin-top: 84px; }
/* footer social icons (set in Admin › Settings) */
footer .social-icons { list-style: none; display: flex; gap: 12px; margin: 14px 0 0; padding: 0; flex-wrap: wrap; }
footer .social-icons a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; transition: background .15s, color .15s; }
footer .social-icons a:hover, footer .social-icons a:focus-visible { background: #C45C3A; color: #fff; outline: none; }
/* Footer city links (<nav class="seo-cities">): the global `nav` header rule made this a white, sticky box with white (invisible) clickable links */
footer nav.seo-cities { position: static; background: transparent; border: 0; padding: 10px 0 0; z-index: auto; color: rgba(255,255,255,.8); font-size: .85rem; line-height: 1.8; }
footer nav.seo-cities a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
