@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800&display=swap');

/* Rotonto — Fusion Students' custom display face. Self-hosted from /assets/fonts/. */
@font-face {
  font-family: 'Rotonto';
  src: url('/assets/fonts/Rotonto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Hex values lifted directly from fusionstudents.co.uk so brand greens,
     rust buttons, and sage tags match the canonical site exactly. */
  --brand: #37543b;
  --brand-dark: #243a27;
  --button: #a14d3d;
  --button-dark: #813c30;
  --tag-bg: #bdbd89;
  --ink: #37543b;
  --paper: #fdfbf7;
  --line: #d6d3c9;
  --bs-primary: #37543b;
  --bs-primary-rgb: 55, 84, 59;
  /* Square corners across the board — Bootstrap's components inherit these. */
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
}

/* Catch-all for any component with a hard-coded border-radius. */
* { border-radius: 0 !important; }

/* All buttons get the Fusion treatment: uppercase, tight tracking, semibold. */
.btn, button.btn-primary, button[type="submit"] {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Bootstrap 5 buttons use scoped CSS variables. Theming btn-primary requires
 * overriding all the per-state vars explicitly. */
.btn-primary {
  --bs-btn-bg: var(--button);
  --bs-btn-border-color: var(--button);
  --bs-btn-hover-bg: var(--button-dark);
  --bs-btn-hover-border-color: var(--button-dark);
  --bs-btn-active-bg: var(--button-dark);
  --bs-btn-active-border-color: var(--button-dark);
  --bs-btn-disabled-bg: var(--button);
  --bs-btn-disabled-border-color: var(--button);
  --bs-btn-focus-shadow-rgb: 151, 79, 62;
}
.btn-outline-primary {
  --bs-btn-color: var(--button);
  --bs-btn-border-color: var(--button);
  --bs-btn-hover-bg: var(--button);
  --bs-btn-hover-border-color: var(--button);
  --bs-btn-active-bg: var(--button-dark);
  --bs-btn-active-border-color: var(--button-dark);
  --bs-btn-focus-shadow-rgb: 151, 79, 62;
}

/* Form check (checkbox / radio) — checked + focus states. */
.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(161, 77, 61, 0.25);
}

/* Text inputs / selects — pink focus halo instead of Bootstrap's blue. */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(161, 77, 61, 0.25);
}

/* Bootstrap accordion (FAQ) — pink active state instead of default blue. */
.accordion-button:not(.collapsed) {
  color: var(--brand-dark);
  background-color: rgba(161, 77, 61, 0.08);
  box-shadow: inset 0 -1px 0 rgba(161, 77, 61, 0.2);
}
.accordion-button:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(161, 77, 61, 0.20);
}
.wv-faq-icon { margin-right: 0.6rem; color: var(--brand); }
.accordion-button:not(.collapsed) .wv-faq-icon { color: var(--brand-dark); }

html {
  /* Force scrollbar always visible so layout stays stable across SPA swaps
     AND so the navbar reaches the viewport's right edge. (scrollbar-gutter
     reserves an inset strip that fixed elements still respect on Chromium.) */
  overflow-y: scroll;
}
body {
  font-family: 'Mulish', "Century Gothic", "Calibri", Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: #E3E3D9;
  line-height: 1.5;
  /* Sticky-footer scaffold: body is a flex column, main grows to fill the
     viewport so any appended footer (trust strip) ends up at the bottom on
     short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main { max-width: 1280px; margin: 1rem auto 3rem; padding: 0 clamp(1rem, 3vw, 2.5rem); flex: 1 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
/* When the page has a full-bleed hero, drop main's top margin so the hero
   sits flush under the navbar (no cream strip showing through). */
main:has(> .hero), main:has(> #hero) { margin-top: 0; }
/* On cascade pages (city/building/rooms/tenancy) the hero is full-bleed and
   should sit directly beneath the navbar; the breadcrumb belongs underneath
   it on the cream page background. Pages without a .hero are unaffected
   because only #breadcrumb gets an explicit order. */
main > .hero, main > #hero { order: -2; }
main > #breadcrumb { order: -1; }

/* Headings — Rotonto, uppercase, brand green. Lifted from fusionstudents.co.uk's
   own treatment so this operator's pages read as clearly "Fusion" at a glance. */
h1, h2, h3, h4, h5, h6, .wv-brand {
  font-family: 'Rotonto', 'Mulish', "Century Gothic", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--brand);
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 1.75rem; }
h3 { font-size: 1.15rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* WookiVerse branding — only "Verse" is bold */
.wv-brand b { font-weight: 700; }
.wv-brand {
  color: var(--ink);
  font-weight: normal;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wv-brand:hover { color: var(--ink); text-decoration: none; }
.wv-brand-logo { height: 40px; width: auto; display: block; }

/* Demo-scenario picker on the brand. The logo stays a plain home link;
 * the "WookiVerse Demo" text is the trigger button for the dropdown. */
.wv-brand-wrap { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; }
.wv-brand-home { display: inline-flex; align-items: center; }
.wv-brand-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wv-brand-trigger:hover { background: rgba(0, 0, 0, 0.03); }
.wv-brand-caret { font-size: 0.8rem; color: #999; transition: transform 0.15s; }
.wv-brand-trigger[aria-expanded="true"] .wv-brand-caret { transform: rotate(180deg); }
.wv-scenario-badge {
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 0.7rem;
}
/* Bootstrap dropdown panel — toggled via .show class. */
.wv-scenario-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  min-width: 280px;
  list-style: none;
  padding: 0.4rem 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  z-index: 200;
}
.wv-scenario-menu.show { display: block; }
.wv-scenario-menu .dropdown-header {
  padding: 0.4rem 1rem 0.3rem;
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}
.wv-scenario-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.wv-scenario-item:hover, .wv-scenario-item:focus {
  background: rgba(161, 77, 61, 0.08);
  color: var(--brand-dark);
}
.wv-scenario-item.is-active {
  background: rgba(161, 77, 61, 0.12);
}
.wv-scenario-item.is-active strong::before {
  content: '✓ ';
  color: var(--brand);
}

/* Top chrome (signed-in / signed-out header) */
#wv-chrome {
  background: #3C543A;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 0.9rem 1rem;
}
/* Brand-trigger "DEMO" label — Rotonto, generous size, in white to sit as
   a quiet accent next to the logo. */
#wv-chrome .wv-brand-trigger,
#wv-chrome .wv-brand-trigger > span {
  font-family: 'Rotonto', 'Mulish', "Century Gothic", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  color: #fff;
}
#wv-chrome .wv-brand-caret { color: #fff; font-size: 1rem; }
#wv-chrome .wv-brand,
#wv-chrome .wv-brand-trigger,
#wv-chrome .wv-brand:hover,
#wv-chrome .wv-chrome-right,
#wv-chrome .wv-greeting,
#wv-chrome .wv-signout,
#wv-chrome .wv-search-trigger,
#wv-chrome .wv-user-icon { color: #fff; }
#wv-chrome .wv-search-input { color: #fff; border: 1px solid rgba(255,255,255,0.85); background: transparent; }
#wv-chrome .wv-search-input::placeholder { color: rgba(255,255,255,0.7); }
.wv-chrome-inner { max-width: none; margin: 0; padding: 0 clamp(1rem, 3vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; }
.wv-chrome-right { font-size: 0.95rem; color: #fff; }
.wv-greeting { margin-right: 1rem; color: #fff; }
.wv-signout { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

/* Resume banner dismiss — same pink-circle treatment as the activity-toast
 * close button, perched on the banner's top-right corner. */
.wv-resume-dismiss {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--brand);
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  line-height: 1;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.wv-resume-dismiss:hover { background: var(--brand-dark); transform: scale(1.08); }
.resume-banner { position: relative; }

/* Card grid */
.card { background: #fff; border-color: var(--line); }
.card-img-top { height: 180px; object-fit: cover; }

/* Country flags — circular PNGs from the backend's flag pack.
 *   .wv-flag             inline (e.g. next to country name)
 *   .wv-flag-lg          larger size variant
 *   .wv-country-hero     wraps the country card photo + overlay flag
 *   .wv-flag-overlay     circular flag perched on the photo's bottom-left */
.wv-flag    { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; vertical-align: middle; }
.wv-flag-lg { width: 3rem; height: 3rem; }
/* Country card body — title on the left, circular flag on the right. */
.wv-country-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Country page H1 — flag on the left, country name to the right of it. */
.wv-country-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.wv-country-flag {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex: 0 0 auto;
}

/* Profile page */
.wv-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.wv-profile-avatar { font-size: 2.6rem; color: var(--brand); }
.wv-profile-name { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.wv-section-icon { color: var(--brand); margin-right: 0.4rem; }
.wv-status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: auto;
  align-self: flex-start;
}
.wv-status-current  { background: rgba(161, 77, 61, 0.10); color: var(--brand-dark); }
.wv-status-upcoming { background: #e7f3fe; color: #0a66c2; }
.wv-status-past     { background: #f1f1f1; color: #6b6b6b; }

/* Hero */
/* Full-bleed cinematic hero — image fills, text overlays in white with a
   left-side gradient mask for legibility. Matches the Fusion treatment on
   their property pages. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 36vw, 460px);
  margin: 0 calc(-50vw + 50%) 2rem;
  width: 100vw;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  color: #fff;
  width: 100%;
}
.hero-text h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.75rem); margin-bottom: 0.6rem; }
.hero-text p { color: #fff; max-width: 540px; margin-top: 1rem; opacity: 0.92; }

/* Buttons — operator accent (rust). */
.btn-primary {
  background-color: var(--button);
  border-color: var(--button);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--button-dark);
  border-color: var(--button-dark);
}
.btn-outline-primary {
  color: var(--button);
  border-color: var(--button);
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-check:checked + .btn-outline-primary {
  background-color: var(--button);
  border-color: var(--button);
  color: white;
}

/* Tag chips */
.wv-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.wv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  color: #3C543A;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  font-size: 0.8rem;
}
.wv-tag i { color: var(--brand); }

/* Context bar (step pages) */
.context-bar {
  background: var(--brand);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Resume banner (index.html) */
.resume-banner {
  background: #fbede9;
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Misc */
iframe { border: 1px solid var(--line); border-radius: 6px; }
.muted { color: #888; font-size: 0.9rem; }
.error { color: #c00; }

.fake-card-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; max-width: 500px; margin: 1rem 0;
}
.fake-card-form input { width: 100%; }
.fake-card-form input.full { grid-column: 1 / -1; }

/* Filter form */
.wv-filters .form-label.small { font-size: 0.8rem; color: #555; margin-bottom: 0.15rem; }
.wv-filters .form-control-sm,
.wv-filters .form-select-sm { font-size: 0.875rem; }
/* The filter panel doesn't lift on hover (it's a static utility, not a card-
 * to-click), so it gets a soft pink border on hover instead — different
 * affordance language for a different purpose. */
.wv-filters {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wv-filters:hover {
  border-color: var(--brand);
}

/* Favourite card placeholder — used when a saved fav has no stored image
 * (e.g. room cards that don't carry one). Brand-tinted gradient with a
 * heart so the card still reads as a favourite at a glance. */
.wv-fav-card-placeholder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbede9 0%, #f6d9cd 100%);
  color: var(--brand);
  font-size: 2rem;
}

/* Heart / favourites button overlay on cards. Airbnb-style — just the
 * outlined heart icon (no background button), with a soft drop-shadow halo
 * so it stays visible on both photos and white card surfaces. Clicks are
 * caught by the capture-phase delegated handler in chrome.js. */
.wv-fav-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
  background: transparent;
  border: 0;
  padding: 0.2rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s, color 0.15s, filter 0.15s;
}
.wv-fav-btn:hover { transform: scale(1.1); }
.wv-fav-btn.is-fav {
  color: var(--brand);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}
@media (prefers-reduced-motion: reduce) {
  .wv-fav-btn { transition: none; }
  .wv-fav-btn:hover { transform: none; }
}
/* Stay-kind toggle on the homepage filter card. Sits above the rest of the
 * filter form as a primary product decision (fixed vs flexible dates). */
.wv-stay-kind-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wv-stay-kind-btn { font-size: 0.85rem; padding: 0.3rem 0.9rem; }
.wv-stay-kind-btn.btn-primary {
  background-color: var(--button);
  border-color: var(--button);
}

.wv-feature-chip { font-size: 0.8rem; padding: 0.2rem 0.6rem; }
.wv-feature-chip i { margin-right: 0.3rem; }
.wv-feature-chip-uplift {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-left: 0.15rem;
  font-weight: 600;
}
/* Theme the selected (active) chip with the WookiVerse pink instead of
 * Bootstrap's default blue, so it's recognisable as "this filter is on". */
.wv-feature-chip.btn-primary,
.wv-feature-chip.btn-primary:focus {
  background-color: var(--button);
  border-color: var(--button);
  color: white;
  box-shadow: 0 1px 4px rgba(151, 79, 62, 0.25);
}
.wv-feature-chip.btn-primary:hover {
  background-color: var(--button-dark);
  border-color: var(--button-dark);
}

/* Upsell dimension rows (Size / Floor / etc. on roomType + room cards) —
 * each option becomes a small pill. Included options show in green with a
 * check; options with an uplift price show in soft pink. */
.wv-upsell-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
  font-size: 0.78rem;
}
.wv-upsell-label {
  color: #666;
  font-weight: 500;
  margin-right: 0.2rem;
  min-width: 3.5rem;
}
.wv-upsell-label i { color: var(--brand); margin-right: 0.25rem; }
.wv-upsell-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  background: #f3f3f3;
  color: #555;
  white-space: nowrap;
}
.wv-upsell-option.is-included {
  background: #e8f7ec;
  color: #1a7f37;
}
.wv-upsell-option.is-included::before {
  content: '✓';
  font-weight: 600;
  font-size: 0.75rem;
}
.wv-upsell-option.has-uplift {
  background: rgba(161, 77, 61, 0.10);
  color: var(--brand-dark);
}
.wv-upsell-uplift { font-weight: 600; }

/* Add-on cards (addons.html) — image-led card with checkbox in the corner.
 * The whole card is the label, so clicking anywhere toggles the addon. */
.addon-card {
  display: block;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  /* Same resting glow + hover lift language as the other clickable cards —
   * soft pink drop shadow only, no hard ring on hover. */
  box-shadow: 0 6px 18px rgba(161, 77, 61, 0.10);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.addon-card:hover {
  box-shadow: 0 14px 32px rgba(161, 77, 61, 0.22);
  transform: translateY(-3px);
}
/* Selected state DOES need an edge to communicate "this is checked" — kept. */
.addon-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(161, 77, 61, 0.35);
}
.addon-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.addon-card-body { padding: 0.85rem 1rem; }
.addon-card-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 24px;
  height: 24px;
  z-index: 2;
  background-color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .addon-card { transition: none; }
  .addon-card:hover { transform: none; }
}

/* Hover affordance for clickable cards: soft pink halo + tiny lift. The halo
 * is a translucent ring (no hard border edge) so it reads as "highlighted"
 * without looking like the card grew an extra outline. Scoped to anchor cards
 * (wholesale-clickable) — div cards with internal CTAs keep their button hover. */
/* Cards that act as clickable units get the resting glow + hover lift.
 * Two flavours:
 *   - <a class="card">             — wholesale anchor card (city, building, popular)
 *   - <div class="card"> with .stretched-link inside — div card whose CTA
 *     button extends to cover the whole card (rooms, tenancy)
 * The :has() selector applies the same treatment to the second flavour. */
main a.card,
main .card:has(.stretched-link) {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  /* Rest: neutral, low-key. Hover gets the pink brand tint. */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  /* Airbnb-style rounded corners. overflow: hidden so the card-img-top
   * inherits the rounding cleanly. */
  border-radius: 0.9rem;
  overflow: hidden;
}
main a.card:hover,
main .card:has(.stretched-link):hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}
main a.card .card-img-top,
main .card .card-img-top { border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
  main a.card,
  main .card:has(.stretched-link) { transition: none; }
  main a.card:hover,
  main .card:has(.stretched-link):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  main a.card { transition: none; }
  main a.card:hover { transform: none; }
}

/* "Also available" cards (excluded by filter) — visually softer */
.wv-also-section { margin-top: 2rem; }
.wv-also-section h2 { font-size: 1.1rem; color: #888; }
.wv-also-section .card { opacity: 0.65; border-style: dashed; }
.wv-also-section .card:hover { opacity: 1; border-style: solid; }
.wv-excluded-by {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.wv-excluded-by .wv-tag {
  background: #fbede9;
  color: #813c30;
  border-color: #e8c5b8;
  font-size: 0.75rem;
}

/* User icon in the top-right of the header (replaces sign-in/register text).
 * Sized to match the search trigger so the two icons sit as a balanced pair. */
.wv-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.9rem;
  color: #b3b3b3;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.wv-user-icon:hover {
  color: var(--brand);
  text-decoration: none;
}
.wv-user-icon.wv-user-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* User dropdown — sibling pattern to .wv-scenario-menu but anchored to the
 * right edge of the page chrome instead of the left. */
.wv-user-wrap { position: relative; display: inline-flex; }
.wv-user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  min-width: 180px;
  list-style: none;
  padding: 0.4rem 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  z-index: 200;
}
.wv-user-menu.show { display: block; }
.wv-user-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.wv-user-item:hover, .wv-user-item:focus {
  background: rgba(161, 77, 61, 0.08);
  color: var(--brand-dark);
}
.wv-user-item i { color: var(--brand); width: 1rem; }

/* Collapsible search: one icon-button (the trigger = submit). Default state
 * is just a grey magnifying glass. Hover or focus expands the input to the
 * LEFT of the trigger; the trigger itself morphs from a round grey icon into
 * a pink pill-end attached to the input — single search icon at all times. */
.wv-search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
}
.wv-search-input {
  width: 0;
  height: 2.6rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 1.4rem 0 0 1.4rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  background: white;
  transition:
    width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 0.2s ease,
    opacity 0.2s ease;
}
.wv-search-form:hover .wv-search-input,
.wv-search-form:focus-within .wv-search-input {
  width: 320px;
  padding: 0 0.9rem;
  opacity: 1;
  pointer-events: auto;
}
.wv-search-input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: none;
}
.wv-search-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #b3b3b3;
  font-size: 1.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  /* fa-magnifying-glass sits ~1px higher than fa-circle-user in its glyph
   * box; nudge the whole trigger down so the two icons line up optically. */
  position: relative;
  top: 1px;
}
/* fa-magnifying-glass also has its lens off-centre to the upper-left in
 * its glyph box; nudge the icon 1px left for optical centring within the
 * trigger button. */
.wv-search-trigger > i {
  /* fa-magnifying-glass's lens occupies only ~half of its em-box, so the
     glyph reads as small next to fa-person which fills its box. Scale the
     glyph itself up to optically match the user-icon size. */
  transform: scale(1.9);
  transform-origin: center;
  position: relative;
  top: -1px;
  left: -1px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-radius 0.2s ease,
    height 0.2s ease,
    width 0.2s ease;
}
.wv-search-trigger:hover { color: var(--button); }
/* When form is open: trigger morphs into the pink pill-end of the search bar. */
.wv-search-form:hover .wv-search-trigger,
.wv-search-form:focus-within .wv-search-trigger {
  background: var(--button);
  color: white;
  border-radius: 0 1.4rem 1.4rem 0;
  width: 3rem;
  height: 3rem;
}
.wv-search-form:hover .wv-search-trigger:hover,
.wv-search-form:focus-within .wv-search-trigger:hover {
  background: var(--button-dark);
}

/* Suggestions popover drops below the expanded form on focus. Stretched to
 * match the form's exact width (input + trigger pill) by anchoring left+right
 * to 0 inside the position:relative form parent — keeps the popover edges
 * flush with the search bar above it. */
.wv-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-width: 90vw;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  padding: 0.4rem 0;
  z-index: 100;
}
.wv-search-suggestions[hidden] { display: none; }
.wv-search-suggestions-hint {
  margin: 0;
  padding: 0.35rem 1rem 0.5rem;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wv-search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}
.wv-search-suggestion i { color: #aaa; font-size: 0.8rem; }
.wv-search-suggestion:hover,
.wv-search-suggestion:focus { background: rgba(161, 77, 61, 0.08); color: var(--brand-dark); }
.wv-search-suggestion:hover i,
.wv-search-suggestion:focus i { color: var(--brand); }

.wv-chrome-inner { gap: 1rem; }
.wv-chrome-right { display: inline-flex; align-items: center; gap: 0.6rem; }
@media (max-width: 768px) {
  .wv-search-form { display: none; }
}

/* Price delta badge on Also-available cards */
.wv-also-section .badge { font-size: 0.8rem; }

/* ============================================================
 * A.7.4 — social-proof signals + trust strip
 * ============================================================ */

.wv-signals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.wv-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.wv-signal-live      { background: #e7f3fe; color: #0a66c2; }
.wv-signal-live::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #0a66c2;
  margin-right: 0.2rem;
  animation: wvPulse 1.5s ease-in-out infinite;
}

.wv-signal-velocity  { background: #e8f7ec; color: #1a7f37; }
.wv-signal-scarcity  { background: #fff4d6; color: #9a6700; }
.wv-signal-hot       { background: rgba(161, 77, 61, 0.10); color: var(--brand-dark); }
.wv-signal-hot i     { color: var(--brand); }

@keyframes wvPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .wv-signal-live::before { animation: none; }
}

.wv-reviews-inline {
  font-size: 0.85rem;
  color: #9a6700;
  margin-left: 0.4rem;
  font-weight: 500;
}

.wv-trust-strip {
  background: white;
  border-top: 1px solid var(--line);
  color: #6b6b6b;
  padding: 0.9rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.wv-trust-strip-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wv-trust-strip-copy {
  color: #888;
  font-size: 0.85rem;
}

.wv-trust-strip-badges {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wv-trust-strip-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wv-trust-strip i { color: #9b9b9b; }

/* ============================================================
 * A.7.5 — recent activity toast (bottom-right, WookiVerse-themed)
 * ============================================================ */

.wv-recent-toast {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(161, 77, 61, 0.18);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  z-index: 9999;
  /* Default: hidden off-screen to the right + transparent. The .is-visible
   * class slides it in. Removing the class slides it back out. */
  opacity: 0;
  transform: translateX(120%);
  transition:
    opacity 0.35s ease-out,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.wv-recent-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wv-recent-toast-icon {
  /* Fallback when the event has no image. */
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 10px rgba(161, 77, 61, 0.25);
}

.wv-recent-toast-image {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 10px rgba(161, 77, 61, 0.25);
  display: block;
}

.wv-recent-toast-body {
  flex: 1 1 auto;
  line-height: 1.35;
  min-width: 0;
}
.wv-recent-toast-body strong { color: var(--brand-dark); font-weight: 600; }
.wv-recent-toast-time { color: #999; font-size: 0.78rem; display: block; margin-top: 0.15rem; }

.wv-recent-toast-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--brand);
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: white;
  cursor: pointer;
  /* `&times;` glyph sits low in its box; padding-bottom nudges it up to
   * visual centre. */
  padding: 0 0 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.15s;
}
.wv-recent-toast-close:hover { background: var(--brand-dark); transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .wv-recent-toast { transition: opacity 0.2s linear; }
  .wv-recent-toast,
  .wv-recent-toast.is-visible { transform: none; }
  .wv-recent-toast-close { transition: none; }
}

/* Error toast — same slide-in pattern as the activity toast but with a red
 * accent and an exclamation-mark icon. Stacked above the activity toast
 * when both are visible (chrome.js handles the bottom positioning). */
.wv-error-toast {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  background: white;
  border: 1px solid #f3c1c1;
  border-left: 4px solid #d83f3f;
  border-radius: 0.6rem;
  box-shadow: 0 10px 28px rgba(216, 63, 63, 0.18);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  z-index: 10000;
  opacity: 0;
  transform: translateX(120%);
  transition:
    opacity 0.3s ease-out,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.wv-error-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.wv-error-toast-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fdecec;
  color: #d83f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.wv-error-toast-body { flex: 1 1 auto; line-height: 1.35; }
.wv-error-toast-close {
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 0.3rem;
}
.wv-error-toast-close:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .wv-error-toast { transition: opacity 0.2s linear; }
  .wv-error-toast,
  .wv-error-toast.is-visible { transform: none; }
}

/* Don't crowd the trust strip — chrome.js's scroll handler bumps `bottom`
 * dynamically when the footer enters the viewport. On load, the toast sits
 * at the default 1rem from the bottom edge. */

/* Horizontal room-type cards on /building.html. Larger image, no border or
   shadow, generous padding — closer to fusionstudents.co.uk's room cards. */
.wv-card-h-col { margin-bottom: 1.5rem; }
.wv-card-h-col .card {
  flex-direction: row;
  overflow: hidden;
  background: #fff;
  border: none;
  box-shadow: none;
}
.wv-card-h-col .card-img-top {
  width: 45%;
  min-height: 360px;
  height: auto !important;
  flex-shrink: 0;
  align-self: stretch;
  object-fit: cover;
}
.wv-card-h-col .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
}
.wv-card-h-col .card-title {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}
.wv-card-h-col .card-text { font-size: 1rem; line-height: 1.55; }
@media (max-width: 768px) {
  .wv-card-h-col .card { flex-direction: column; }
  .wv-card-h-col .card-img-top { width: 100%; height: 240px !important; min-height: 0; }
  .wv-card-h-col .card-body { padding: 1.25rem 1.5rem; }
  .wv-card-h-col .card-title { font-size: 1.3rem; }
}

/* ============================================================
 * Bookable mode badges + flip card (rooms.html)
 * ------------------------------------------------------------
 * Fusion theme: badges use brand greens / terracottas instead of
 * the default's pink/blue. Flip rotates on the X axis (horizontal,
 * top-over-bottom) rather than Y, as a brand-differentiation move
 * vs the default operator's vertical-axis flip.
 * ============================================================ */
.wv-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.wv-mode-badge.wv-mode-couple {
  background: rgba(161, 77, 61, 0.12);   /* --button (terracotta) tint */
  color: var(--button-dark, #813c30);
  border: 1px solid rgba(161, 77, 61, 0.25);
}
.wv-mode-badge.wv-mode-group {
  background: rgba(55, 84, 59, 0.12);     /* --brand (green) tint */
  color: var(--brand-dark, #243a27);
  border: 1px solid rgba(55, 84, 59, 0.25);
}

/* "Push up" slide — Fusion variant. Instead of a 3D flip, the front slides
 * up out of view while the back slides up from below into view. Both
 * faces stack in the same grid cell (so the card auto-sizes to the
 * tallest face and the grid isn't disturbed); inner has overflow:hidden
 * so the off-screen back is clipped at rest, and the face transitions
 * use translateY rather than rotate. */
.card.wv-flip-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.18s ease;
}
main .wv-flip-card:hover {
  transform: translateY(-3px);
}
.wv-flip-inner {
  display: grid;
  grid-template-areas: "face";
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.9rem;
}
.wv-flip-face {
  grid-area: face;
  background: var(--bs-body-bg, var(--paper, #fff));
  border: 1px solid var(--bs-border-color, var(--line, #d6d3c9));
  border-radius: 0.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease;
}
main .wv-flip-card:hover .wv-flip-face {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
/* Resting: front in view, back below (hidden by inner overflow).
 * Flipped: front slides up out of view, back slides up into view. */
.wv-flip-front { transform: translateY(0); }
.wv-flip-back  { transform: translateY(100%); }
.wv-flip-card.is-flipped .wv-flip-front { transform: translateY(-100%); }
.wv-flip-card.is-flipped .wv-flip-back  { transform: translateY(0); }

/* "Your group" panel on profile.html — surfaces the master booking's
 * invite slots with claim status + copy-link affordance for pending
 * invites. Uses Fusion's brand green for the claimed icon to match
 * the rest of the operator's palette. */
.wv-group-panel {
  border-top: 1px solid var(--bs-border-color, var(--line, #d6d3c9));
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}
.wv-group-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wv-group-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.875rem;
}
.wv-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.85rem;
}
.wv-group-icon-claimed { color: var(--brand, #37543b); }
.wv-group-icon-pending { color: var(--button, #a14d3d); }
.wv-group-name { font-weight: 600; }
.wv-group-bedroom { color: var(--muted, #6c757d); font-size: 0.85rem; }
.wv-group-status-text { white-space: nowrap; }
.wv-copy-link { font-size: 0.75rem; padding: 0.2rem 0.55rem; }

/* Payment-model selector on invite.html — Fusion brand-themed checked
 * state (green) matching the rest of the operator's palette rather than
 * the default's blue. */
.wv-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wv-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color, var(--line, #d6d3c9));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.wv-payment-option:hover {
  background: rgba(55, 84, 59, 0.04);
}
.wv-payment-option > input[type="radio"] {
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.wv-payment-option:has(input[type="radio"]:checked) {
  background: rgba(55, 84, 59, 0.08);   /* --brand (green) tint */
  border-color: rgba(55, 84, 59, 0.4);
}

/* Bedroom-list row layout (back face). */
.wv-flat-bedroom-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
}
.wv-flat-bedroom-list > li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--bs-border-color, var(--line, #d6d3c9));
}
.wv-flat-bedroom-list > li:first-child {
  border-top: none;
  padding-top: 0;
}
.wv-flat-bedroom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wv-flat-bedroom-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.wv-tag-mini {
  font-size: 0.7rem;
  padding: 0.05em 0.4em;
  margin-left: 0.25em;
}

@media (prefers-reduced-motion: reduce) {
  .card.wv-flip-card { transition: none; }
  main .wv-flip-card:hover { transform: none; }
  .wv-flip-face { transition: none; }
  .wv-flip-inner { transition: none; }
}
