/* ============================================================
   public.css — Aprending Language School Public App
   Mobile-first, no dependencies, professional & modern
   ============================================================ */

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --primary:        #008D07;
  --primary-dark:   #007306;
  --primary-light:  #d5f0e0;
  --primary-xlight: #f0faf4;
  --accent:         #f39c12;
  --text:           #1a1a2e;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --bg:             #f8fafc;
  --surface:        #ffffff;
  --border:         #e5e7eb;
  --border-focus:   #27ae60;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --transition:     0.2s ease;
  --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w:          1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font); }

/* ── Beta Disclaimer ────────────────────────────────────────── */
.beta-disclaimer {
  background: #fff3e0;
  border-bottom: 2px solid #ff9800;
  padding: .75rem 0;
  font-size: 13px;
  color: #e65100;
}
.beta-disclaimer strong {
  color: #ff9800;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h1, h2 {
  font-family: 'Raleway', var(--font);
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 {
  font-size: var(--h2-font-size, clamp(1.6rem, 4vw, 2.3rem));
  margin-top: var(--h2-margin-top, 2.5rem);
  margin-bottom: var(--h2-margin-bottom, 1.8rem);
}
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-muted); }
small { font-size: .85em; color: var(--text-muted); }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  overflow-wrap: break-word;
  box-sizing: border-box;
}
@media (min-width: 768px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4rem 0; }
.section-sm { padding: 3.5rem 0 2.5rem; }
@media (max-width: 768px) {
  .section-sm { padding: 2.5rem 0 1.5rem; }
}
.section-title { margin-bottom: 2.5rem; text-align: center; }
.section-title p { margin-top: .5rem; font-size: 1.05rem; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: relative;
  z-index: 100;
  background: var(--primary);
  padding: .75rem 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.navbar-brand img {
  max-height: 42px;
  width: auto;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.navbar-nav li { list-style: none; }
.navbar-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.navbar-nav a:hover { color: #fff; }
.navbar-cta {
  background: #fff;
  color: var(--primary) !important;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.navbar-cta:hover { background: rgba(255,255,255,.9) !important; }
.navbar-auth-btn,
.navbar-profile-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.navbar-auth-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
  padding: .42rem .9rem;
  font-size: .88rem;
  cursor: pointer;
  font-weight: 700;
}
.navbar-profile-link {
  font-size: .88rem;
  color: rgba(255,255,255,.85);
}

/* ── Navbar responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: nowrap;
    gap: .55rem;
  }
  .navbar-nav {
    gap: 0.45rem;
  }
  .navbar-cta {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
  .navbar-brand {
    font-size: 1.05rem;
    min-width: 0;
  }
  .navbar-brand img { max-height: 34px; }
  .navbar-cta-label,
  .navbar-auth-text,
  .navbar-profile-name { display: none; }
  .navbar-auth-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,.35); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-xlight); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a5c35 0%, #27ae60 50%, #2ecc71 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  /*max-width: 700px;*/
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero p {
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2.5rem;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
}

/* ── Hero buttons ──────────────────────────────────────────── */
.hero-btns {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-btn {
  display: inline-block;
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--primary, #27ae60);
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.hero-btn:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.85);
}

/* ── Search form (in hero) ─────────────────────────────────── */
.search-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.search-form {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .search-form { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .search-form { grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr auto; align-items: end; }
  .search-form .form-group { margin-bottom: 0; }
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input,
.form-group select {
  height: 44px;
  padding: 0 .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(39,174,96,.15);
}
.form-group input::placeholder { color: var(--text-light); }

/* ── Quick city cards ──────────────────────────────────────── */
.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.city-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.city-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.city-card-emoji { font-size: 2.25rem; margin-bottom: .5rem; }
.city-card h3 { font-size: 1.05rem; color: var(--text); }
.city-card small { color: var(--text-muted); }

/* ── How it works ──────────────────────────────────────────── */
.how-it-works { background: var(--primary-xlight); }
.steps-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-card h3 { margin-bottom: .5rem; }

/* ── Filter sidebar ────────────────────────────────────────── */
.results-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.results-layout > aside { margin-top: 0; }
.results-layout > main  { margin-top: 0; }
@media (min-width: 1024px) {
  .results-layout { grid-template-columns: 280px 1fr; }
}

.filter-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  height: fit-content;
}
.filter-panel h3 {
  font-size: 1rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--border);
}
.filter-group { margin-bottom: .6rem; }
.filter-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="date"] {
  width: 100%;
  height: 36px;
  padding: 0 .6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 2rem;
}
.filter-group input[type="number"],
.filter-group input[type="date"] {
  background-image: none;
  padding-right: .75rem;
}
.filter-group select:focus,
.filter-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39,174,96,.12); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}
.filter-chip-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* ── Mobile filter toggle ──────────────────────────────────── */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(39,174,96,.3);
  transition: background .15s;
}
.filter-toggle-btn:hover { background: var(--primary-dark); }
.filter-toggle-btn svg { flex-shrink: 0; }

@media (max-width: 1023px) {
  .filter-toggle-btn { display: inline-flex; }
  .results-layout > aside {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,0);
    opacity: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: background .22s ease, opacity .22s ease;
  }
  body.filters-open { overflow: hidden; }
  body.filters-open .results-layout > aside {
    background: rgba(0,0,0,.55);
    opacity: 1;
    pointer-events: auto;
  }
  .results-layout > aside .filter-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(88vw, 360px);
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  body.filters-open .results-layout > aside .filter-panel {
    transform: translateX(0);
  }
  .filter-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: .75rem; right: .75rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
  }
}
@media (min-width: 1024px) {
  .filter-panel-close { display: none; }
}

/* ── Breadcrumb navigation bar ─────────────────────────────── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.breadcrumb-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary, #27ae60);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-back:hover { color: #1e8449; text-decoration: underline; }
.breadcrumb-sep { color: #cbd5e1; }
.breadcrumb-current { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .breadcrumb-bar-inner { padding: 9px 14px; font-size: .8rem; }
  .breadcrumb-current { display: none; }
}

/* ── Compare bar padding when visible ──────────────────────── */
.compare-bar--visible ~ * .results-grid,
body:has(.compare-bar--visible) .results-grid {
  padding-bottom: 80px;
}

/* ── Result cards ──────────────────────────────────────────── */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.result-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 0;
  position: relative;
}
@media (max-width: 900px) {
  .result-card { grid-template-columns: 160px 1fr auto; }
}
@media (max-width: 640px) {
  .result-card { grid-template-columns: 1fr; }
}
.result-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.result-card--featured {
  background: #fafaf7;
  border-color: #f59e0b;
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(245,158,11,.12), var(--shadow-md);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(245,158,11,.3);
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #27ae60, #1a9c4e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(39,174,96,.3);
}
.price-from--discount {
  color: #27ae60 !important;
}
.badge-program {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .2px;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.badge-program--adult  { background: #e3f0ff; color: #1a5fb4; }
.badge-program--junior { background: #fce4ec; color: #b71c1c; }
.badge-program--ws     { background: #e8f5e9; color: #1b5e20; }
.badge-program--inline {
  position: static;
  display: inline-block;
  box-shadow: none;
  font-size: 11px;
  margin-bottom: 0;
}
.result-card-supertitle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.result-course-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.result-course-select {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  max-width: 280px;
}

.result-course-select:hover {
  border-color: #999;
  background: #f9f9f9;
}

.ct-price-unit {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.result-card-header {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: .5rem;
}
.result-card-header h3 {
  font-size: 1.15rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.city-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.price-from {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.price-from span {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-eur-note {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: .22rem;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: .4rem;
}
.result-meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.result-accom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}
.accom-tag {
  background: #e8f4f0;
  border: 1px solid #b2d9cc;
  border-radius: var(--radius-sm);
  padding: .25rem .7rem;
  font-size: .78rem;
  color: #2a7a5a;
  font-weight: 500;
}
.result-card-body {
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.result-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  min-width: 190px;
  border-left: 1px solid var(--border);
}
@media (max-width: 640px) {
  .result-card-body { padding: .85rem; min-width: 0; overflow: hidden; }
  .result-card-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: .85rem;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .result-card-action > * { min-width: 0; }
  .price-from { font-size: 1.2rem; white-space: normal; word-break: break-word; }
  .result-card-header h3 { font-size: 1rem; flex-wrap: wrap; }
  .city-badge { font-size: .72rem; }
  .result-meta { gap: .3rem .6rem; }
  .result-meta-item { font-size: .78rem; }
  .accom-tag { font-size: .72rem; }
  .result-accom-tags { gap: .3rem; margin-top: .5rem; }
}
/* ── Filter chips (active search summary) ───────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.3rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f4f9 0%, #e8f1f8 100%);
  border: 1.5px solid #d1e0f0;
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.08);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 1.5px solid #c5d9ed;
  border-radius: 10px;
  padding: .5rem .85rem;
  font-size: .85rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 51, 153, 0.12);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #f8fafc;
  border-color: #0066cc;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
}

.filter-chip-icon {
  font-size: 1.1rem;
  margin-right: .45rem;
  flex-shrink: 0;
  line-height: 1;
}

.filter-chip-label {
  font-size: .7rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .4rem;
  min-width: fit-content;
  display: none;
}

.filter-chip-value {
  font-weight: 600;
  color: #1a1a1a;
  font-size: .87rem;
}


.results-count {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.results-count strong { color: var(--text); }

/* ── No results ────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
}
.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results h3 { color: var(--text); margin-bottom: .5rem; }

/* ── Detail page layout ────────────────────────────────────── */
.detail-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr 380px; }
}

.detail-header {
  margin-bottom: 2rem;
}
.detail-header h1 { margin-bottom: .5rem; }

/* Selectable course/accom cards */
.selectable-cards { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.selectable-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.selectable-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.selectable-card.selected {
  border-color: var(--primary);
  background: var(--primary-xlight);
  box-shadow: 0 0 0 3px rgba(39,174,96,.15);
}
.selectable-card-info { flex: 1; }
.selectable-card-info h4 { font-size: .95rem; margin-bottom: .2rem; }
.selectable-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-top: .2rem;
}
.card-meta-pill {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.selectable-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.selectable-card-price small {
  display: block;
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 400;
  text-align: right;
}
.selected-indicator {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.selectable-card.selected .selected-indicator { opacity: 1; }

.no-accommodation {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: .75rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.no-accommodation:hover { border-color: var(--primary); color: var(--primary); }
.no-accommodation.selected { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

.section-block { margin-bottom: 2.5rem; }
.section-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-block-title .icon {
  width: 28px; height: 28px;
  background: var(--primary-xlight);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .85rem;
}

/* ── Sticky calculator ─────────────────────────────────────── */
.calculator {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-md);
}
.calculator-header {
  background: linear-gradient(135deg, #1a5c35, var(--primary));
  color: #fff;
  padding: 1.25rem 1.5rem;
}
.calculator-header h3 { color: #fff; font-size: 1.05rem; margin-bottom: .2rem; }
.calculator-header p { color: rgba(255,255,255,.8); font-size: .82rem; margin: 0; }
.calculator-body { padding: 1.25rem 1.5rem; }

.calc-section { margin-bottom: 1rem; }
.calc-section-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}
.calc-section-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.calc-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
}
.calc-selected-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.calc-selected-detail {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .35rem;
}
.calc-detail-pill {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .15rem .5rem;
  white-space: nowrap;
}
.calc-selected-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}
.calc-selected-price small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
}
.calc-empty {
  font-size: .85rem;
  color: var(--text-light);
  font-style: italic;
  font-weight: 400;
}
.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.calc-control-row {
  margin-bottom: 1rem;
}

.calc-control-input {
  width: 100% !important;
  padding: .6rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 6px !important;
  font-size: .9rem !important;
  color: var(--text) !important;
  background: var(--surface) !important;
  box-sizing: border-box;
}

.calc-control-input:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(39,174,96,.12) !important;
}

.calc-fees { display: flex; flex-direction: column; gap: .35rem; }
.calc-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--text-muted);
}
.calc-fee-row.calc-fee-zero { opacity: .4; }
.calc-fee-row strong { color: var(--text); }

.calc-transfer {
  margin: 1rem 0;
}
.calc-transfer label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: .4rem;
}
.transfer-options {
  display: flex;
  gap: .4rem;
}
.transfer-btn {
  flex: 1;
  padding: .4rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
}
.transfer-btn:hover { border-color: var(--primary); color: var(--primary); }
.transfer-btn.active {
  border-color: var(--primary);
  background: var(--primary-xlight);
  color: var(--primary-dark);
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}
.calc-total-label {
  font-weight: 700;
  font-size: .95rem;
}
.calc-total-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}

.calculator-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1.5px solid var(--border);
  background: var(--bg);
}
.calc-loading {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
  display: none;
}
.calc-loading.visible { display: block; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-form input, .modal-form textarea {
  width: 100%;
  height: 44px;
  padding: 0 .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modal-form textarea {
  height: 90px;
  padding: .6rem .85rem;
  resize: vertical;
}
.modal-form input:focus, .modal-form textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(39,174,96,.15);
}
.modal-form label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: .3rem;
}
.modal-success {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}
.modal-success.visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.modal-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-size: .85rem;
  display: none;
}
.modal-error.visible { display: block; }

/* ── Accent button ────────────────────────────────────────── */
.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  font-weight: 700;
}
.btn-accent:hover { background: linear-gradient(135deg, #d97706, #b45309); }
.btn-accent:disabled { opacity: .5; cursor: not-allowed; }

/* ── Modal wide (booking) ─────────────────────────────────── */
.modal-wide {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-form-grid fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem .5rem;
  margin-bottom: 1rem;
}
.modal-form-grid fieldset legend {
  font-weight: 700;
  font-size: .9rem;
  padding: 0 .5rem;
  color: var(--text);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Privacy checkbox ─────────────────────────────────────── */
.modal-privacy {
  margin: .5rem 0;
}
.modal-privacy label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.modal-privacy input[type="checkbox"] {
  margin-top: .2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--primary);
}
.modal-privacy a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Booking summary ──────────────────────────────────────── */
.booking-summary {
  background: var(--primary-xlight);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: .5rem 0;
}
.booking-summary-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.booking-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: .2rem 0;
  color: var(--text-muted);
}
.booking-summary-total {
  border-top: 1.5px solid var(--primary);
  margin-top: .4rem;
  padding-top: .5rem;
  font-size: 1rem;
  color: var(--text);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-brand-desc { font-size: .85rem; }
.footer-title {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
}
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #1a5c35, var(--primary));
  color: #fff;
  padding: 2.5rem 0;
}
.page-header h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .3rem; }
.page-header p { color: rgba(255,255,255,.85); margin: 0; }
.page-header-slim { padding: .75rem 0; }

/* ── Academy title row ───────────────────────────────────────── */
.academy-title-row { margin: 1.5rem 0 1rem; }
.academy-heading {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text);
  margin-bottom: .3rem;
}
.academy-meta {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}
.academy-meta a { color: var(--primary); text-decoration: none; }
.academy-meta a:hover { text-decoration: underline; }

/* ── Gallery + Reviews grid ──────────────────────────────────── */
.gallery-reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
@media (max-width: 1023px) {
  .gallery-reviews-grid { grid-template-columns: 1fr; }
}
.gallery-col .ab-gallery { height: 340px; margin-bottom: 0; }
@media (max-width: 768px) {
  .gallery-col .ab-gallery { height: 220px; }
}

/* ── Reviews panel ───────────────────────────────────────────── */
.reviews-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.rp-score-header {
  background: linear-gradient(135deg, #1a5c35, var(--primary));
  color: #fff;
  padding: 1.1rem 1.1rem .9rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
}
.rp-score-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.rp-score-right { display: flex; flex-direction: column; gap: .15rem; }
.rp-score-label { font-size: 1rem; font-weight: 700; }
.rp-stars-row {
  --pct: calc(var(--rating) / 5 * 100%);
  position: relative;
  display: inline-block;
  font-size: .95rem;
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
}
.rp-stars-row::before {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  color: #f5c518;
  width: var(--pct);
  overflow: hidden;
  white-space: nowrap;
}
.rp-count { font-size: .75rem; color: rgba(255,255,255,.75); }

/* Reviews slider */
.rp-slider { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.rp-track-wrap { flex: 1; overflow: hidden; }
.rp-track {
  display: flex;
  height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.rp-card {
  min-width: 100%;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rp-card-header {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.rp-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.rp-reviewer-info { flex: 1; min-width: 0; }
.rp-reviewer-name { font-weight: 600; font-size: .88rem; }
.rp-reviewer-meta { font-size: .75rem; color: var(--text-muted); }
.rp-card-stars { font-size: .8rem; color: #f5c518; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.rp-card-text {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}
.rp-card-date { font-size: .72rem; color: var(--text-muted); margin-top: auto; padding-top: .25rem; }
.rp-nav {
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: #fafafa;
  flex-shrink: 0;
}
.rp-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background .15s, border-color .15s;
  padding: 0;
}
.rp-btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.rp-indicator { font-size: .78rem; color: var(--text-muted); }
.rp-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-muted); padding: 1.5rem; text-align: center;
}

/* ── Compare tables ────────────────────────────────────────── */
.compare-section {
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-section-title {
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .6rem 1rem;
}
.compare-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.compare-table thead th {
  background: #f4f9f6;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .55rem .9rem;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { filter: brightness(.96); }
.compare-table tbody tr.selected { background: #c9edd9 !important; }
.compare-table tbody tr.selected .ct-select-btn { display: none; }
.compare-table tbody tr.selected .ct-selected-check { display: inline-flex; }

/* Colores de fondo por tipo de alojamiento */
.accom-type-color-0 { background: #eaf4fb; } /* azul suave */
.accom-type-color-1 { background: #fef9ec; } /* ámbar suave */
.accom-type-color-2 { background: #f3edfb; } /* lila suave */
.accom-type-color-3 { background: #fdeef2; } /* rosa suave */
.accom-type-color-4 { background: #edfbf4; } /* verde suave */
.compare-table td {
  padding: .7rem .9rem;
  vertical-align: middle;
  color: var(--text);
}
.compare-table td.col-price {
  text-align: right;
  white-space: nowrap;
}
.compare-table td.col-action {
  text-align: right;
  white-space: nowrap;
}
.ct-name {
  font-weight: 600;
  margin-bottom: .25rem;
}
.ct-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.ct-pill {
  font-size: .72rem;
  background: #f0f7f4;
  color: #27ae60;
  border: 1px solid #c3e6cb;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.ct-pill--ws {
  background: #fff3e0;
  color: #e67e22;
  border-color: #f5c49a;
}
.ct-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.ct-select-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.ct-select-btn:hover { background: var(--primary-dark); }
.ct-selected-check {
  display: none;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
}

/* ── Compare tables — mobile ───────────────────────────────── */
@media (max-width: 640px) {
  .compare-table-wrap { overflow-x: visible; }

  .compare-table thead { display: none; }

  /* Cada fila se convierte en una mini-tarjeta */
  .compare-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: .5rem;
    row-gap: .35rem;
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--border);
  }
  .compare-table tbody tr:last-child { border-bottom: none; }

  /* Primera celda (nombre + pills) ocupa toda la anchura */
  .compare-table td:first-child {
    grid-column: 1 / -1;
    padding: 0;
    border: none;
  }

  /* Precio — columna izquierda, fila inferior */
  .compare-table td.col-price {
    grid-column: 1;
    text-align: left;
    padding: 0;
    border: none;
    align-self: center;
  }

  /* Botón — columna derecha, fila inferior */
  .compare-table td.col-action {
    grid-column: 2;
    text-align: right;
    padding: 0;
    border: none;
    align-self: center;
  }

  .ct-select-btn { padding: .4rem .75rem; font-size: .78rem; }
  .ct-price      { font-size: .95rem; }
  .ct-name       { font-size: .9rem; }
}

/* ── Skeleton loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: .5rem; }
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray  { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }
.badge-orange { background: #fef3cd; color: #92400e; }

/* ── Alert / notice ────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-info { background: #e0f2fe; color: #075985; border-left: 3px solid #0284c7; }
.alert-warning { background: #fef3cd; color: #92400e; border-left: 3px solid #f59e0b; }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .hero { padding: 3.5rem 0 3rem; }
  .search-card { padding: 1.25rem; }
  .section { padding: 2.5rem 0; }
  .result-card { padding: 0; max-width: 100%; overflow: hidden; }
  .results-grid { overflow: hidden; max-width: 100%; }
  .results-count { flex-wrap: wrap; gap: .4rem; }
  .discount-filter-btn { font-size: .78rem; padding: .3rem .6rem; }
  .sort-control { flex-wrap: wrap; }
  .calculator { position: relative; top: auto; }
  .detail-layout { gap: 1.25rem; }

  /* Navbar mobile */
  .navbar-inner { flex-wrap: nowrap; }
  .navbar-nav { gap: .45rem; font-size: .85rem; }
  .navbar-cta { padding: 0; font-size: .8rem; }

  /* Page header */
  .page-header { padding: 1rem 0; }
  .page-header-slim { padding: .55rem 0; }
  .page-header h1 { font-size: 1.3rem; }
  .page-header p { font-size: .85rem; word-break: break-word; }
  .academy-title-row { margin: 1rem 0 .75rem; }
  .academy-heading { font-size: 1.3rem; }
  .breadcrumb { font-size: .78rem; }

  /* Calculator mobile */
  .calculator-body { padding: 1rem; }
  .calculator-header { padding: 1rem; }
  .calculator-footer { padding: 1rem; }
  .calc-total-amount { font-size: 1.4rem; }
  .transfer-options { flex-direction: column; }
  .transfer-btn { font-size: .78rem; padding: .4rem .6rem; }

  /* Modal mobile */
  .modal { padding: 1.25rem; max-width: 100%; }
  .modal-wide { max-width: 100%; }

  /* Lightbox mobile */
  .lightbox-prev, .lightbox-next { width: 36px; height: 50px; font-size: 1.8rem; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-img-wrap { padding: 0 40px; }

  /* Coupon */
  #coupon-section input[type="text"] { min-width: 0 !important; width: 100px !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* ── Academy images: result card ─────────────────────────────────────────── */
.result-card-img {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.result-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.result-card:hover .result-card-img img {
  transform: scale(1.04);
}
.result-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0f4f0 0%, #e8f5e9 100%);
  min-height: 160px;
}
@media (max-width: 900px) { .result-card-img { width: 160px; } }
@media (max-width: 640px) { .result-card-img { width: 100%; height: 180px; border-radius: 0; } }

/* ── Academy images: detail gallery ─────────────────────────────────────── */
.gallery {
  margin-bottom: 1.5rem;
}
.gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f0f0;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .7;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}
@media (max-width: 768px) {
  .gallery-main { height: 220px; }
  .gallery-thumb { width: 60px; height: 45px; }
}

/* ── Airbnb-style gallery ─────────────────────────────────────────────────── */
.ab-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 320px;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.ab-gallery-main {
  cursor: pointer;
  overflow: hidden;
}
.ab-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ab-gallery-main:hover img { transform: scale(1.03); }
.ab-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.ab-gallery-cell {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ab-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ab-gallery-cell:hover img { transform: scale(1.05); }
.ab-gallery-empty { background: #f0f0f0; }
.ab-gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-show-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  z-index: 2;
}
.ab-show-all:hover { background: #f5f5f5; }
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 140px);
  padding: 0 60px;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 50px;
  height: 70px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-counter {
  color: #ccc;
  font-size: .9rem;
  margin-bottom: 4px;
}
.lightbox-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px 10px;
  max-width: 100%;
}
.lb-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity .2s, border-color .2s;
}
.lb-thumb.active,
.lb-thumb:hover {
  opacity: 1;
  border-color: #fff;
}
@media (max-width: 768px) {
  .ab-gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .ab-gallery-grid { display: none; }
  .lightbox-img-wrap { padding: 0 50px; }
}

/* ── Top search bar (Booking/Airbnb style) ───────────────────────────────── */
.topbar-search {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.topbar-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 40px;
  padding: 6px 6px 6px 20px;
  gap: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.topbar-search-form:focus-within {
  box-shadow: 0 3px 16px rgba(0,0,0,.15);
  border-color: #b0b0b0;
}
.tsf-error {
  display: none;
  position: absolute;
  bottom: -26px;
  left: 12px;
  font-size: .72rem;
  color: #fff;
  background: #e74c3c;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.tsf-error::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  border: 5px solid transparent;
  border-bottom-color: #e74c3c;
  border-top: none;
}
.tsf-error.visible { display: block; }
.tsf-field {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px 12px;
  min-width: 0;
}
.tsf-field label {
  font-size: .68rem;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
  white-space: nowrap;
}
.tsf-field input,
.tsf-field select {
  border: none;
  outline: none;
  font-size: .9rem;
  color: #555;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.tsf-field input[type="date"] { color-scheme: light; }
.tsf-sep {
  width: 1px;
  height: 32px;
  background: #ddd;
  flex-shrink: 0;
}
.tsf-btn {
  background: var(--primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
  margin-left: 4px;
}
.tsf-btn:hover { background: var(--primary-dark, #1d4ed8); }
.tsf-btn:active { transform: scale(.97); }

/* Compact hero (no search card inside) */
.hero-compact { padding: 48px 0 36px; }
.hero-compact .hero-content { max-width: 640px; }
.hero-compact h1 { font-size: 2rem; margin-bottom: 10px; }
.hero-compact p { font-size: 1rem; margin-bottom: 16px; }

@media (max-width: 768px) {
  .topbar-search { padding: 10px 0; }
  .topbar-search-form {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 10px 12px;
    gap: 6px;
  }
  .tsf-sep { display: none; }
  .tsf-field { padding: 4px 0; flex: 1 1 calc(50% - 6px); min-width: 0; }
  .tsf-field input, .tsf-field select { max-width: 100%; box-sizing: border-box; }
  .tsf-btn { width: 100%; justify-content: center; margin-left: 0; margin-top: 4px; border-radius: 10px; }
}

/* ── Sort control ─────────────────────────────────────────────────────────── */
.results-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  /* override old single-line style */
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.discount-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.discount-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-compare-topbar {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .9rem;
  border: none;
  border-radius: 20px;
  background: #16a34a;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.btn-compare-topbar:hover { background: #15803d; }
.discount-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.sort-control select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .85rem;
  background: #fff;
  cursor: pointer;
}

/* ── Google rating stars ─────────────────────────────────────────────────── */
.google-rating {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .4rem;
}
.stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  position: relative;
  font-size: 1rem;
  line-height: 1;
  color: #ddd;
  letter-spacing: 1px;
}
.stars::before {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  color: #f5a623;
  width: var(--pct);
  overflow: hidden;
  white-space: nowrap;
}
.rating-score {
  font-size: .88rem;
  font-weight: 700;
  color: #333;
}
.rating-link,
.rating-reviews {
  font-size: .78rem;
  color: var(--text-muted);
}
.rating-link {
  text-decoration: underline;
  color: var(--primary);
}
.rating-link:hover { color: var(--primary-dark); }

/* Google rating in detail page header (dark bg) */
.google-rating .gr-stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  position: relative;
  font-size: 1rem;
  line-height: 1;
  color: rgba(255,255,255,.3);
  letter-spacing: 1px;
}
.google-rating .gr-stars::before {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  color: #f5c518;
  width: var(--pct);
  overflow: hidden;
  white-space: nowrap;
}
.google-rating .gr-score {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
}
.google-rating .gr-count {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
}

/* Required marker in topbar */
.tsf-required { color: #e53e3e; font-size: .7rem; }

/* ── Custom flag dropdown ─────────────────────────────────────────────── */
.flag-dropdown {
  position: relative;
  width: 100%;
}
.flag-dd-selected {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 38px;
  padding: 0 2rem 0 .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  transition: border-color var(--transition);
  white-space: nowrap;
  overflow: hidden;
}
.flag-dd-selected:hover { border-color: var(--primary); }
.flag-dropdown.open .flag-dd-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,141,7,.15);
}
.flag-dd-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}
.flag-dropdown.open .flag-dd-list { display: block; }
.flag-dd-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
}
.flag-dd-item:hover { background: var(--primary-xlight); }
.flag-dd-item.active { background: var(--primary-light); font-weight: 600; }
.flag-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: #f0f0f0;
  line-height: 1;
}

/* ── Hero home (with background image) ────────────────────────────────── */
.hero-home {
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 100%),
              url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1400&h=600&fit=crop&crop=faces') center/cover no-repeat;
  padding: 5rem 0 4rem;
}
.hero-home::before { display: none; }

/* ── Featured academies grid ──────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.featured-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #eee;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ee, #cdd5dc);
}
.featured-card-body {
  padding: 1rem 1.1rem 1.1rem;
}
.featured-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-card-location {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.featured-card-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
}
.rating-stars {
  display: inline-flex;
  gap: 1px;
}
.rating-stars .star { font-size: 1rem; line-height: 1; }
.rating-stars .star.full { color: #f5a623; }
.rating-stars .star.half { color: #f5a623; opacity: .6; }
.rating-stars .star.empty { color: #ddd; }
.rating-number { font-weight: 700; color: #333; }
.rating-count { color: var(--text-muted); font-size: .78rem; }

/* ── Destination cards ────────────────────────────────────────────────── */
.dest-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .dest-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .dest-cards { grid-template-columns: 1fr; }
}
.dest-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  height: 220px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.dest-card:hover img {
  transform: scale(1.06);
}
.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  color: #fff;
}
.dest-card-overlay h3 {
  font-family: 'Raleway', var(--font);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .15rem;
}
.dest-card-overlay small {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}

/* ── Discount cards ───────────────────────────────────────────────────── */
.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.disc-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: box-shadow var(--transition);
}
.disc-card:hover {
  box-shadow: var(--shadow-sm);
}
.disc-badge {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .35rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.3;
}
.disc-info {
  flex: 1;
  min-width: 0;
}
.disc-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.disc-academy {
  font-size: .85rem;
  color: var(--text-muted);
}
.disc-location {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .4rem;
}
.disc-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .3rem;
}
.disc-conditions span {
  font-size: .75rem;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  padding: .15rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Flatpickr overrides ──────────────────────────────────────────────── */
.flatpickr-day {
  color: #bbb;
  font-weight: 400;
}
.flatpickr-day.flatpickr-disabled {
  color: #ccc !important;
  background: transparent !important;
  cursor: default;
}
.flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-xlight);
  border-radius: 50%;
}
.flatpickr-day:not(.flatpickr-disabled):hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.flatpickr-day.today:not(.selected) {
  border-color: var(--primary);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: var(--text);
  font-weight: 600;
}
span.flatpickr-weekday {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .82rem;
}
input.flatpickr-input {
  width: 100% !important;
  padding: .6rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 6px !important;
  font-size: .9rem !important;
  color: var(--text) !important;
  background: var(--surface) !important;
  margin-bottom: 1rem;
}
input.flatpickr-input:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(39,174,96,.12) !important;
}
