/* ==========================================================================
   Design System & Global Styles for LessonMap (Airbnb Aesthetic)
   --------------------------------------------------------------------------
   Aesthetics: Clean white, soft shadows, solid #FF385C primary, minimal borders
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --clr-background: #FFFFFF;
  --clr-surface: #FFFFFF;
  --clr-surface-glass: rgba(255, 255, 255, 0.9);

  --clr-text-main: #222222;
  --clr-text-muted: #717171;

  --clr-primary: #C92A2A;
  /* 洗練された深みのある赤 (ガーネット/クリムゾン系) */
  --clr-primary-light: #FA5252;
  --clr-primary-dark: #A61E1E;

  --clr-secondary: #222222;

  --clr-gradient-brand: #C92A2A;
  /* Solid replacement */
  --clr-gradient-surface: #FFFFFF;

  --clr-border: #DDDDDD;
  --clr-border-glass: #DDDDDD;

  --clr-success: #008A05;
  --clr-warning: #FFB400;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 5rem;
  /* 80px */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.25);
  --shadow-glow: none;
  --shadow-focus: 0 0 0 2px #222222;

  --backdrop-blur: blur(20px);

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-background);
  color: var(--clr-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at top left, rgba(201, 42, 42, 0.08), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #ffffff 24%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.studio-card a,
.comparison-table a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */
.text-gradient {
  color: var(--clr-primary);
}

h1,
.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h3,
.h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 2px;
}

p {
  color: var(--clr-text-muted);
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--clr-surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--clr-border);
  z-index: 1000;
  transition: transform var(--transition-normal);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: -0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--clr-primary-dark);
}

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

.btn-outline:hover {
  background: #F7F7F7;
}

.btn-text {
  background: transparent;
  color: var(--clr-text-main);
  padding-inline: 0.75rem;
}

.btn-text:hover {
  background: rgba(34, 34, 34, 0.04);
}

.header-link-btn,
.header-outline-btn {
  min-height: 42px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.header-outline-btn {
  padding: 0.55rem 1rem;
}

/* Cards (Airbnb Style) */
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 34, 34, 0.08);
  padding: 0.9rem;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(34, 34, 34, 0.06);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(34, 34, 34, 0.1);
  border-color: rgba(201, 42, 42, 0.18);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-img {
  /* No obvious scale, just clean */
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0.25rem 0.25rem;
}

.card-heading-block {
  margin-bottom: 0.9rem;
}

.card-eyebrow {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--clr-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-location {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tag {
  color: var(--clr-primary-dark);
  background: rgba(201, 42, 42, 0.09);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl) var(--space-lg);
}

/* Hero Section */
.hero {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 2rem auto auto 50%;
  width: min(80vw, 720px);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 42, 42, 0.12), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--clr-primary-dark);
}

.hero p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: var(--space-sm) 0 var(--space-lg);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.hero-main {
  text-align: left;
}

.hero-emphasis {
  color: var(--clr-primary);
}

.hero-main .hero-quick-links {
  justify-content: flex-start;
  margin: 0 0 var(--space-xl);
}

.hero-side {
  display: flex;
}

.hero-side-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 18px 38px rgba(34, 34, 34, 0.06);
}

.hero-side-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.hero-side-steps {
  display: grid;
  gap: 0.85rem;
}

.hero-side-step {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(34, 34, 34, 0.03);
}

.hero-side-step strong {
  font-size: 0.96rem;
}

.hero-side-step span {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 0 1.25rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  text-align: left;
  box-shadow: 0 12px 24px rgba(34, 34, 34, 0.05);
}

.hero-stat-label {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.hero-stat strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto var(--space-xl);
}

.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(34, 34, 34, 0.08);
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.hero-quick-links a:hover {
  color: var(--clr-primary-dark);
  border-color: rgba(201, 42, 42, 0.2);
}

.featured-strip {
  margin-top: calc(var(--space-lg) * -0.25);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid rgba(201, 42, 42, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.06), rgba(255, 255, 255, 0.96));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: var(--space-md);
  align-items: center;
}

.featured-strip-copy strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.featured-strip-copy p {
  margin: 0;
}

.featured-strip-kicker {
  display: inline-block;
  color: var(--clr-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.featured-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-strip-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid rgba(34, 34, 34, 0.08);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.featured-strip-links a:hover {
  color: var(--clr-primary-dark);
  transform: translateY(-2px);
}

.finder-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 28px;
  padding: var(--space-lg);
  box-shadow: 0 22px 46px rgba(34, 34, 34, 0.07);
}

.finder-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.finder-title {
  margin-bottom: 0.4rem;
}

.finder-tip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.finder-tip-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(34, 34, 34, 0.05);
  color: var(--clr-text-main);
  font-size: 0.78rem;
  font-weight: 700;
}

.finder-section {
  padding: 1.2rem 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 22px;
  background: rgba(34, 34, 34, 0.02);
}

.finder-section-primary {
  padding: 1.2rem 1.25rem 1.25rem;
  margin-top: 0;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
}

.finder-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.finder-section-head strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.finder-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(201, 42, 42, 0.1);
  color: var(--clr-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Search Bar */
.search-container {
  max-width: 650px;
  margin: 0;
  background: var(--clr-surface);
  padding: 10px;
  border-radius: 22px;
  box-shadow: none;
  display: flex;
  align-items: center;
  border: 1px solid rgba(34, 34, 34, 0.08);
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-container:hover {
  border-color: rgba(34, 34, 34, 0.18);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  outline: none;
  min-height: 48px;
}

.search-input::placeholder {
  color: #8b8b8b;
}

/* visually-hidden helper for screen reader text */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.search-btn {
  background: var(--clr-primary);
  color: white;
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-left: 10px;
  min-height: 48px;
}

.voice-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
  margin-left: 0.5rem;
  padding: 0.5rem;
}
.voice-btn:hover {
  color: var(--clr-text-main);
}

.search-btn:hover {
  background: var(--clr-primary-dark);
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: var(--space-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.results-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.results-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--clr-primary-dark);
  margin-bottom: 0.35rem;
}

.results-summary {
  margin: 0;
}

.results-clear-btn {
  border-radius: var(--radius-full);
}

.sort-control {
  display: grid;
  gap: 0.35rem;
  min-width: 180px;
}

.sort-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
}

.sort-select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: #fff;
  color: var(--clr-text-main);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.95rem;
  outline: none;
}

.sort-select:focus {
  border-color: var(--clr-text-main);
  box-shadow: var(--shadow-focus);
}

.section-title-tight {
  margin-bottom: 0.25rem;
}

.active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 18px;
}

.cta-panel {
  background: var(--clr-gradient-surface);
  border: 1px solid var(--clr-border-glass);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--backdrop-blur);
}

.cta-section {
  text-align: center;
  margin-top: var(--space-xl);
}

.cta-copy {
  margin-bottom: var(--space-md);
}

.cta-links {
  justify-content: center;
  margin: 0 0 var(--space-lg);
}

.active-filter-label {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-weight: 700;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-chip {
  background: rgba(201, 42, 42, 0.08);
  color: var(--clr-primary-dark);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Filters */
.filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 34, 34, 0.1);
  padding: 0.72rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text-main);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.45rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(34, 34, 34, 0.06);
  color: var(--clr-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.filter-btn::after {
  display: none;
}

.filter-btn:hover {
  border-color: rgba(34, 34, 34, 0.22);
  background: #fff;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #fff;
  color: var(--clr-text-main);
  box-shadow: 0 8px 18px rgba(34, 34, 34, 0.08);
  border-color: var(--clr-text-main);
}

.filter-btn.active .filter-count {
  background: rgba(201, 42, 42, 0.12);
  color: var(--clr-primary-dark);
}

.category-filter-row {
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.category-btn {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  color: var(--clr-text-muted);
  box-shadow: none;
}

.category-btn:hover {
  background: transparent;
  color: var(--clr-text-main);
  border-color: transparent;
  transform: none;
}

.category-btn.active {
  background: transparent;
  color: var(--clr-text-main);
  border-bottom-color: var(--clr-text-main);
  box-shadow: none;
}

.sub-filter-row,
.city-filter-row {
  gap: 0.65rem;
  margin-bottom: 0.3rem;
}

.sub-btn,
.city-btn {
  border-radius: var(--radius-full);
  padding: 0.58rem 1rem;
  background: rgba(255, 255, 255, 0.94);
}

.sub-btn.active,
.city-btn.active {
  background: #f7f7f7;
  box-shadow: none;
}


/* Table (For Pillar Page) */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  margin-bottom: var(--space-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--clr-border);
}

.comparison-table th {
  background: #f7f7f7;
  font-weight: 600;
  color: var(--clr-text-main);
}

.comparison-table tr:hover td {
  background: #fcfcfc;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(34, 34, 34, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.empty-state p {
  margin-top: 0.5rem;
}

.card-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.card-meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.28rem 0.6rem;
  background: rgba(34, 34, 34, 0.05);
  color: var(--clr-text-main);
  font-size: 0.73rem;
  font-weight: 700;
}

.card-info-block {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
}

.card-stat-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.card-stat {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: rgba(34, 34, 34, 0.035);
  border: 1px solid rgba(34, 34, 34, 0.06);
}

.card-stat-primary {
  background: rgba(201, 42, 42, 0.05);
  border-color: rgba(201, 42, 42, 0.1);
}

.card-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
}

.card-stat strong {
  font-size: 0.86rem;
  line-height: 1.5;
}

.card-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--clr-text-main);
  flex: 1;
  line-height: 1.75;
}

.card-detail-btn {
  width: 100%;
  border-radius: var(--radius-md);
}

.article-shell {
  max-width: 900px;
}

.article-header {
  padding-top: calc(80px + var(--space-lg));
  margin-bottom: var(--space-lg);
}

.article-badge {
  background-color: rgba(250, 82, 82, 0.14);
  color: var(--clr-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  display: inline-flex;
  font-weight: 700;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.article-lead {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  color: var(--clr-text-main);
}

.article-intro {
  margin-bottom: var(--space-xl);
}

.article-heading-accent {
  border-left: 4px solid var(--clr-primary);
  padding-left: 1rem;
}

.article-section-spaced {
  margin-top: var(--space-2xl);
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.recommendation-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(34, 34, 34, 0.06);
  overflow: hidden;
}

.recommendation-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--clr-primary-light), var(--clr-primary));
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  background: var(--clr-primary);
  color: white;
  padding: 0 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  box-shadow: 0 10px 20px rgba(201, 42, 42, 0.22);
}

.recommendation-title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.recommendation-link {
  color: var(--clr-primary);
  text-decoration: underline;
  margin-bottom: 0.6rem;
  display: inline-block;
  font-weight: 600;
}

.recommendation-copy {
  font-size: 0.95em;
  color: var(--clr-text-muted);
  display: block;
  line-height: 1.7;
}

.article-cta {
  text-align: center;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.article-related {
  margin-top: var(--space-2xl);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-related-link {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: var(--shadow-sm);
}

.article-related-link strong {
  color: var(--clr-text-main);
  font-size: 0.95rem;
}

.article-related-link span {
  color: var(--clr-text-muted);
  font-size: 0.82rem;
}

.article-cta-panel {
  background: var(--clr-gradient-brand);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.recommendations-shell {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 1040px;
}

.recommendations-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.recommendations-stats {
  max-width: 980px;
}

.recommendations-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.recommendations-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.recommendation-entry .card-img-wrap {
  margin-bottom: 1rem;
}

.recommendation-entry-new {
  position: relative;
  border-color: rgba(201, 42, 42, 0.18);
  box-shadow: 0 14px 28px rgba(201, 42, 42, 0.1);
}

.recommendation-fresh-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.fixed-page {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 880px;
}

.fixed-page-narrow {
  max-width: 680px;
}

.fixed-page-title {
  margin-bottom: var(--space-md);
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-primary);
}

.fixed-page-title.text-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.fixed-page-lead {
  margin-bottom: var(--space-xl);
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.fixed-page-card {
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: 28px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: var(--shadow-md);
}

.fixed-page-body {
  display: grid;
  gap: var(--space-lg);
}

.fixed-page-section {
  display: grid;
  gap: 0.85rem;
}

.fixed-page-section + .fixed-page-section {
  padding-top: 0.25rem;
}

.fixed-page-section h2,
.fixed-page-section h3 {
  margin: 0;
  color: var(--clr-primary);
}

.fixed-page-section p,
.fixed-page-section li {
  line-height: 1.9;
}

.fixed-page-section p {
  margin: 0;
}

.fixed-page-section ul,
.fixed-page-section ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.fixed-page-link {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fixed-page-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  background: rgba(250, 250, 250, 0.9);
}

.fixed-page-table th,
.fixed-page-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  vertical-align: top;
}

.fixed-page-table tr:last-child th,
.fixed-page-table tr:last-child td {
  border-bottom: none;
}

.fixed-page-table th {
  width: 28%;
  text-align: left;
  font-weight: 700;
  color: var(--clr-text-main);
  background: rgba(246, 242, 236, 0.9);
}

.fixed-page-note {
  text-align: right;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.fixed-form {
  display: grid;
  gap: 1rem;
}

.fixed-form-field {
  display: grid;
  gap: 0.5rem;
}

.fixed-form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-text-main);
}

.fixed-form-required {
  color: var(--clr-primary);
}

.fixed-form-control {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fixed-form-control:focus {
  outline: none;
  border-color: rgba(201, 42, 42, 0.35);
  box-shadow: 0 0 0 4px rgba(201, 42, 42, 0.12);
}

.fixed-form textarea.fixed-form-control {
  min-height: 11rem;
  resize: vertical;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 0;
  background: var(--clr-surface);
  border-radius: 0;
}

.faq-question {
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--clr-text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 0 1.5rem;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background: #F7F7F7;
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--clr-border);
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width: min(92%, 640px);
  }

  .header {
    height: 80px;
    min-height: 80px;
  }

  .header .container {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .header-actions {
    gap: 0.3rem;
    width: auto;
  }

  .header .logo {
    font-size: 1.1rem;
  }

  .header .btn-outline {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.72rem !important;
    width: auto;
  }

  .header .btn-text {
    padding: 0.45rem 0.45rem !important;
    font-size: 0.72rem !important;
    width: auto;
  }

  .fixed-page {
    padding-top: 108px;
    padding-bottom: 64px;
  }

  .recommendations-shell {
    padding-top: 120px;
  }

  .fixed-page-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .fixed-page-title {
    margin-bottom: 0.85rem;
  }

  .fixed-page-lead {
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
  }

  .fixed-page-body {
    gap: 1.1rem;
  }

  .fixed-page-table,
  .fixed-page-table tbody,
  .fixed-page-table tr,
  .fixed-page-table th,
  .fixed-page-table td {
    display: block;
    width: 100%;
  }

  .fixed-page-table {
    border-radius: 18px;
  }

  .fixed-page-table tr + tr {
    border-top: 1px solid rgba(34, 34, 34, 0.08);
  }

  .fixed-page-table th,
  .fixed-page-table td {
    padding: 0.85rem 0.95rem;
    border-bottom: none;
  }

  .fixed-page-table th {
    width: 100%;
    padding-bottom: 0.35rem;
    background: rgba(246, 242, 236, 0.75);
  }

  .fixed-page-table td {
    padding-top: 0;
  }

  .hero {
    padding-top: calc(80px + var(--space-lg));
    padding-bottom: 1.25rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .hero-main {
    text-align: center;
  }

  .hero::before {
    width: 100%;
    height: 240px;
    inset: 1.5rem auto auto 50%;
  }

  .hero p {
    font-size: 0.98rem;
    margin: 0.8rem auto 1rem;
  }

  .hero-quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .hero-quick-links a {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    min-height: 48px;
  }

  .featured-strip {
    grid-template-columns: 1fr;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 22px;
  }

  .finder-panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .finder-panel-header {
    display: grid;
    gap: 0.85rem;
    align-items: start;
  }

  .finder-tip-list {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .finder-tip-list span {
    font-size: 0.72rem;
  }

  .finder-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .featured-strip-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .featured-strip-links a {
    min-height: 48px;
    justify-content: center;
  }

  .search-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(34, 34, 34, 0.08);
  }

  .search-input {
    grid-column: 1 / -1;
    width: 100%;
    background: #f8f8f8;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: none;
    padding: 1rem 1rem;
    min-height: 52px;
  }

  .search-btn {
    width: 100%;
    margin-left: 0;
    min-height: 48px;
  }

  .voice-btn {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-left: 0 !important;
    border-radius: 14px;
    background: #f8f8f8;
    border: 1px solid rgba(34, 34, 34, 0.08);
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .card-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-stat:last-child {
    grid-column: 1 / -1;
  }

  .hero-stat {
    padding: 0.9rem 1rem;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .results-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-control {
    width: 100%;
  }

  .results-clear-btn {
    width: 100%;
  }

  .active-filter-bar {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .active-filter-chip {
    font-size: 0.76rem;
  }

  .filters {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0.25rem;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .category-btn,
  .sub-btn,
  .city-btn {
    flex: 0 1 auto;
  }

  .filter-count {
    min-width: 1.4rem;
    height: 1.4rem;
    font-size: 0.68rem;
  }

  .article-header {
    padding-top: calc(80px + var(--space-md));
  }

  .recommendation-card {
    border-radius: 18px;
    padding: 1.2rem 1rem 1.1rem 1.2rem;
  }

  .recommendation-title {
    font-size: 1rem;
  }

  .article-cta-panel {
    padding: 1.4rem 1.1rem;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .recommendations-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .recommendations-hero {
    margin-bottom: 1.25rem;
  }

  .recommendations-hero p {
    max-width: 34rem;
    margin-inline: auto;
  }

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

  .recommendation-entry .card-img-wrap {
    height: 168px !important;
  }

  .recommendation-entry .card-content {
    display: grid;
    gap: 0.65rem;
  }

  .recommendation-entry .card-content p {
    margin-top: 0 !important;
    line-height: 1.7;
  }

  .card-meta-chips {
    margin-bottom: 0;
  }

  .card {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .card-content {
    padding: 0;
  }

  .footer .container > div {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    vertical-align: top;
  }
}

@media (max-width: 480px) {
  .header .container {
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .header .btn-outline,
  .header .btn-text {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.65rem !important;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: 1.78rem;
  }

  .hero {
    padding-top: calc(80px + 1rem);
  }

  .search-container {
    grid-template-columns: 44px 1fr;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .search-input {
    grid-column: 1 / -1;
    font-size: 0.95rem;
  }

  .voice-btn {
    order: 1;
  }

  .search-btn {
    order: 2;
    font-size: 0.95rem;
    padding-inline: 1rem;
  }

  .featured-strip-copy strong {
    font-size: 0.98rem;
  }

  .hero-stat {
    border-radius: 18px;
  }

  .recommendations-shell {
    padding-top: 120px;
  }

  .recommendations-hero .hero-stats {
    grid-template-columns: 1fr;
  }

  .recommendations-hero .hero-stat:last-child {
    grid-column: auto;
  }

  .recommendation-entry .card-img-wrap {
    height: 152px !important;
  }

  .card-meta-chip {
    font-size: 0.7rem;
    padding: 0.24rem 0.52rem;
  }

  .results-summary {
    font-size: 0.92rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--clr-surface);
  width: 100%;
  max-width: 780px;
  height: 100vh;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow-y: auto;
  transform: translateY(100px);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-content {
    border-radius: var(--radius-lg);
  }
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: #F7F7F7;
}

.modal-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.modal-body {
  padding: var(--space-xl);
}

.modal-head {
  margin-bottom: 1.2rem;
}

.modal-genre-tags {
  margin-bottom: 0.65rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.modal-location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.modal-location-badge {
  position: static;
  display: inline-flex;
  margin: 0;
}

.modal-access-text {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.modal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.modal-summary-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(34, 34, 34, 0.035);
  border: 1px solid rgba(34, 34, 34, 0.06);
}

.modal-summary-card-primary {
  background: rgba(201, 42, 42, 0.06);
  border-color: rgba(201, 42, 42, 0.12);
}

.modal-summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
}

.modal-summary-card strong {
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-feature-chips {
  margin-bottom: 1rem;
}

.modal-primary-btn {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.modal-desc {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.modal-info-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.modal-info-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.modal-info-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
}

@media (max-width: 768px) {
  .modal-summary-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 1.2rem 1rem 1.4rem;
  }

  .modal-title {
    font-size: 1.55rem;
  }
}


.modal-desc {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
}

.modal-info-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.modal-info-list li {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
}

.modal-info-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--clr-text-main);
}
