/* =========================================================
   CasaMunicipal España — Design System
   Palette: azul institucional, blanco, gris claro
   Tipografía: Playfair Display (títulos) + DM Sans (texto)
   ========================================================= */

:root {
  --primary: #1f5f8b;        /* azul oscuro - botones, acentos */
  --primary-light: #4a90c2;  /* azul claro - identidad */
  --primary-lighter: #eaf6ff;/* fondo azul muy claro */
  --accent-gold: #6da9d6;    /* acento azul */
  --gray-light: #f7f9fc;
  --gray-mid: #e3e8ef;
  --text-dark: #16202a;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --radius: 14px;
  --shadow-soft: 0 10px 40px rgba(10, 61, 98, 0.08);
  --shadow-hover: 0 16px 50px rgba(10, 61, 98, 0.14);
  --transition: all .3s ease;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
}

a { text-decoration: none; }

.text-muted-soft { color: var(--text-muted); }
.bg-light-blue { background: var(--primary-lighter); }
.bg-gray-soft { background: var(--gray-light); }

/* ---------- Buttons ---------- */
.btn-primary-cme {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary-cme:hover { background: #082c47; color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary-cme:disabled { background: #a0b8cb; color:#fff; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-primary-cme.btn-ready { animation: fadeInUp .3s ease; }

.btn-outline-cme {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-cme:hover { background: #fff; color: var(--primary); }

.btn-outline-primary-cme {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-primary-cme:hover { background: var(--primary); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-cme {
  padding: 10px 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(10,61,98,.06);
  z-index: 1050;
  transition: var(--transition);
}
.navbar-cme.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(10,61,98,.1);
}
.navbar-cme .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 0;
  line-height: 1.1;
  transition: var(--transition);
}
.navbar-cme .navbar-brand span { color: var(--accent-gold); }
.navbar-cme .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-cme .nav-link.active { color: var(--primary); background: var(--primary-lighter); }
.navbar-cme .nav-link:hover { color: var(--primary); background: var(--primary-lighter); }

/* ---------- Hamburger toggler ---------- */
.nav-toggler-cme {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--primary-lighter);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  z-index: 1100;
}
.nav-toggler-cme:hover { background: #ddeefa; }
.nav-toggler-cme .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .35s cubic-bezier(.68,-.55,.27,1.55);
  transform-origin: center;
}
.nav-toggler-cme.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #fff;
}
.nav-toggler-cme.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggler-cme.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #fff;
}
.nav-toggler-cme.active {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(31,95,139,.3);
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
  .nav-toggler-cme { display: none; }
}

/* ---------- Mobile overlay ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,30,50,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Mobile panel ---------- */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(175deg, #fff 0%, var(--primary-lighter) 100%);
  z-index: 1070;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.23,1,.32,1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(10,30,50,.15);
  overflow-y: auto;
}
.mobile-nav-panel.active {
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-mid);
}
.mobile-nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}
.mobile-nav-brand span { color: var(--accent-gold); }
.nav-close-cme {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-lighter);
  border: none;
  border-radius: 10px;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-close-cme:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

/* ---------- Mobile nav links ---------- */
.mobile-nav-links {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  flex: 1;
}
.mobile-nav-links li {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-nav-panel.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav-panel.active .mobile-nav-links li:nth-child(1) { transition-delay: .08s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(2) { transition-delay: .13s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(3) { transition-delay: .18s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(4) { transition-delay: .23s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(5) { transition-delay: .28s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(6) { transition-delay: .33s; }
.mobile-nav-panel.active .mobile-nav-links li:nth-child(7) { transition-delay: .38s; }

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: var(--transition);
  text-decoration: none;
}
.mobile-nav-links a i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--primary-light);
  transition: var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(31,95,139,.08);
  color: var(--primary);
  padding-left: 22px;
}
.mobile-nav-links a:hover i,
.mobile-nav-links a.active i {
  color: var(--primary);
}
.mobile-nav-links a.active {
  font-weight: 600;
  background: rgba(31,95,139,.1);
}

/* ---------- Mobile CTA + footer ---------- */
.mobile-nav-cta {
  padding: 16px 20px;
}
.mobile-nav-cta .btn-primary-cme {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.mobile-nav-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-mid);
  text-align: center;
}
.mobile-nav-footer a {
  color: #25d366;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.mobile-nav-footer a:hover {
  color: #1ebe5b;
}
.mobile-nav-footer a i {
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,50,.55) 0%, rgba(10,61,98,.75) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero p.lead { color: #eaf4fb; font-size: 1.25rem; max-width: 640px; }

.hero-carousel-wrapper {
  position: relative;
  margin-top: 56px;
  height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}
.hero-carousel-wrapper #heroCarousel {
  position: absolute;
  inset: 0;
}
.hero-carousel-wrapper .carousel-inner,
.hero-carousel-wrapper .carousel-item {
  height: 100%;
}
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,50,.45) 0%, rgba(10,61,98,.70) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  width: 100%;
}
.hero-content h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.2; }
.hero-content p.lead { color: #eaf4fb; font-size: 1rem; max-width: 560px; }
.hero-carousel-wrapper .carousel-control-prev,
.hero-carousel-wrapper .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}
.hero-carousel-wrapper:hover .carousel-control-prev,
.hero-carousel-wrapper:hover .carousel-control-next {
  opacity: 1;
}
.hero-carousel-wrapper .carousel-control-prev { left: 24px; }
.hero-carousel-wrapper .carousel-control-next { right: 24px; }
.hero-carousel-wrapper .carousel-control-prev-icon,
.hero-carousel-wrapper .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(1);
}

.hero-page {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #fff 100%);
}
.hero-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.hero-carousel-wrapper { padding: 0; }
.section-title-eyebrow {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Cards ---------- */
.card-cme {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
  padding: 34px 28px;
  height: 100%;
}
.card-cme:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-cme .icon-wrap {
  width: 60px; height: 60px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ---------- Service image cards ---------- */
.service-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
.service-card-with-image:hover .service-img-wrap img {
  transform: scale(1.08);
}
.service-card-with-image {
  overflow: hidden;
}

.partner-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background:#fff; transition: var(--transition); height:100%; }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.partner-card .partner-flag { height: 8px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.partner-card .badge-count { background: var(--primary-lighter); color: var(--primary); font-weight: 600; }

.testimonial-card { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); padding: 30px; height: 100%; }
.testimonial-card .stars { color: var(--accent-gold); }
.testimonial-card .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--primary-lighter); }

/* ---------- Steps (how it works) ---------- */
.step-item { text-align:center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 20px;
}

/* ---------- Counters ---------- */
.counter-item { text-align: center; }
.counter-number { font-family:'Playfair Display',serif; font-size: 2.6rem; font-weight:700; color: var(--primary); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 60px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #071e30;
  color: #cfe0ee;
  padding: 70px 0 24px;
}
footer.site-footer h5 { color: #fff; font-family:'DM Sans',sans-serif; font-weight:700; }
footer.site-footer a { color: #cfe0ee; }
footer.site-footer a:hover { color: var(--accent-gold); }
footer .social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition: var(--transition);
}
footer .social-icon:hover { background: var(--accent-gold); color:#071e30; }

/* ---------- Reservation multi-step form ---------- */
.progress-steps { display:flex; justify-content:space-between; margin-bottom: 46px; position:relative;}
.progress-steps::before {
  content:''; position:absolute; top:22px; left:0; right:0; height:3px; background: var(--gray-mid); z-index:0;
}
.progress-steps .p-step { position:relative; z-index:1; text-align:center; flex:1; }
.progress-steps .p-circle {
  width:46px; height:46px; border-radius:50%; background:#fff; border:3px solid var(--gray-mid);
  display:flex; align-items:center; justify-content:center; margin:0 auto 10px; font-weight:700; color: var(--text-muted);
  transition: var(--transition);
}
.progress-steps .p-step.active .p-circle,
.progress-steps .p-step.done .p-circle { border-color: var(--primary); background: var(--primary); color:#fff; }
.progress-steps .p-label { font-size:.85rem; color: var(--text-muted); font-weight:600;}
.progress-steps .p-step.active .p-label { color: var(--primary); }

.card-cme:has(.form-step) {
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
  border: 2px solid #c8ddf0;
}
.card-cme:has(.form-step):hover { transform: none; }

/* :has() fallback for browsers without support */
@supports not selector(:has(*)) {
  .card-cme.form-card {
    background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
    border: 2px solid #c8ddf0;
  }
  .card-cme.form-card:hover { transform: none; }
}

.form-control-cme, .form-select-cme {
  border-radius: 10px;
  border: 2px solid #9bb8d1;
  padding: 12px 16px;
  background: #f0f7fc;
  color: var(--text-dark);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease, transform .2s ease;
}
.form-control-cme:focus, .form-select-cme:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 .25rem rgba(31,95,139,.18);
  transform: translateY(-1px);
}
.form-control-cme::placeholder { color: #7e97b0; }

/* ---------- Form animations ---------- */

/* Fields stagger entrance */
.form-card .row.g-3 > [class*="col-"] {
  opacity: 0;
  transform: translateY(16px);
  animation: formFieldIn .4s ease forwards;
}
.form-card .row.g-3 > [class*="col-"]:nth-child(1) { animation-delay: .05s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(2) { animation-delay: .1s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(3) { animation-delay: .15s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(4) { animation-delay: .2s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(5) { animation-delay: .25s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(6) { animation-delay: .3s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(7) { animation-delay: .35s; }
.form-card .row.g-3 > [class*="col-"]:nth-child(8) { animation-delay: .4s; }

@keyframes formFieldIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Focus glow ring */
.form-control-cme:focus, .form-select-cme:focus {
  animation: focusPulse .4s ease;
}
@keyframes focusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,95,139,.3); }
  70%  { box-shadow: 0 0 0 8px rgba(31,95,139,0); }
  100% { box-shadow: 0 0 0 .25rem rgba(31,95,139,.18); }
}

/* Label animation */
.form-label {
  transition: color .3s ease, transform .3s ease;
  display: inline-block;
}
.form-control-cme:focus ~ .form-label,
.form-select-cme:focus ~ .form-label {
  color: var(--primary);
}

/* Textarea grow feel */
textarea.form-control-cme {
  resize: vertical;
  min-height: 100px;
  transition: border-color .3s, box-shadow .3s, background .3s, min-height .3s ease;
}
textarea.form-control-cme:focus {
  min-height: 140px;
}

/* File input custom */
input[type="file"].form-control-cme {
  padding: 10px;
  border-style: dashed;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .2s;
}
input[type="file"].form-control-cme:hover {
  border-color: var(--primary);
  background: #e8f2fb;
}
input[type="file"].form-control-cme:focus {
  border-style: solid;
  transform: scale(1.01);
}

/* Submit button glow */
.btn-primary-cme {
  position: relative;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-primary-cme:hover {
  box-shadow: 0 6px 25px rgba(31,95,139,.35);
}
.btn-primary-cme:active {
  transform: scale(0.97);
}

/* Success/error alerts entrance */
.alert {
  animation: alertSlide .4s ease;
  border-radius: 12px;
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress steps pulse */
.progress-steps .p-step.active .p-circle {
  animation: stepActive 1.5s ease infinite;
}
@keyframes stepActive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,95,139,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(31,95,139,0); }
}

/* Step transition slide */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: stepSlideIn .45s cubic-bezier(.23,1,.32,1);
}
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Checkbox / radio custom glow */
.form-check-input:checked {
  animation: checkPop .3s ease;
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Card form entrance */
.card-cme:has(.form-step) {
  animation: formCardIn .5s ease;
}
@keyframes formCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Prev/Next buttons */
.btn-next, .btn-prev {
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-next:hover { transform: translateX(4px); }
.btn-prev:hover { transform: translateX(-4px); }

/* Search form (appartements.php filter) */
form.stat-card {
  transition: box-shadow .3s ease;
}
form.stat-card:focus-within {
  box-shadow: 0 8px 30px rgba(31,95,139,.12);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp { from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }
.fade-in-up { animation: fadeInUp .6s ease both; }
.reveal { opacity:0; transform: translateY(24px); transition: all .7s ease; }
.reveal.is-visible { opacity:1; transform: translateY(0); }
@keyframes shakeError {
  0%, 100% { transform:translateX(0); }
  20%, 60% { transform:translateX(-6px); }
  40%, 80% { transform:translateX(6px); }
}
.shake-error { animation: shakeError .4s ease; outline: 2px solid #dc3545; border-radius: 6px; padding: 6px; }

/* ---------- FAQ ---------- */
.accordion-cme .accordion-button { font-weight:600; color: var(--primary); background:#fff; }
.accordion-cme .accordion-button:not(.collapsed) { background: var(--primary-lighter); box-shadow:none; }
.accordion-cme .accordion-button:focus { box-shadow:none; }

/* ---------- Utilities ---------- */
.rounded-cme { border-radius: var(--radius); }
.shadow-cme { box-shadow: var(--shadow-soft); }
.divider-gold { width:60px; height:3px; background: var(--accent-gold); margin: 14px 0 24px; }
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover { background: #082c47 !important; border-color: #082c47 !important; color: #fff !important; }

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .progress-steps .p-label { font-size: .7rem; }
  .hero-carousel-wrapper { height: calc(100vh - 56px); }
  body.has-cup-banner .hero-carousel-wrapper { height: calc(100vh - 56px - 32px); margin-top: calc(56px + 32px); }
  .hero-content { padding-top: 20px; }
  .hero-content h1 { font-size: 1.3rem; }
  .hero-content p.lead { font-size: .85rem; }
  .balloon { width: 34px; height: 44px; }
  .balloon::after { height: 22px; bottom: -24px; }
  .cup-badge { font-size: .7rem; padding: 6px 14px; }
  .cup-trophy { font-size: 1.1rem; }
}

/* ---------- Mairie Marquee ---------- */
.mairie-marquee {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.mairie-marquee::before,
.mairie-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.mairie-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}
.mairie-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white) 0%, transparent 100%);
}
.mairie-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.mairie-marquee:hover .mairie-track {
  animation-play-state: paused;
}
.mairie-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-lighter);
  border: 1.5px solid #d4e8f5;
  border-radius: 50px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: all .3s ease;
  cursor: default;
  flex-shrink: 0;
}
.mairie-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(31,95,139,.25);
}
.mairie-pill:hover .mairie-name,
.mairie-pill:hover .mairie-count,
.mairie-pill:hover i {
  color: #fff;
}
.mairie-pill i {
  color: var(--primary);
  font-size: 1.1rem;
  transition: color .3s;
}
.mairie-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dark);
}
.mairie-count {
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
  transition: background .3s, color .3s;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .mairie-track { animation-duration: 25s; }
  .mairie-pill { padding: 8px 14px; font-size: .8rem; }
  .mairie-marquee::before, .mairie-marquee::after { width: 40px; }
}

/* ---------- Apartment Cards ---------- */
.card-cme img { transition: transform .4s ease; }
.card-cme:hover img { transform: scale(1.03); }
.badge { font-weight: 600; }
.form-select, .form-control {
  border-radius: 10px;
  border: 2px solid #9bb8d1;
  background: #f0f7fc;
}
.form-select:focus, .form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 .25rem rgba(31,95,139,.18);
}
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---------- Enhanced animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.card-cme { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }

.fade-in-up { animation: fadeInUp .6s ease both; }
.fade-in-left { animation: fadeInLeft .6s ease both; }
.fade-in-right { animation: fadeInRight .6s ease both; }
.scale-in { animation: scaleIn .5s ease both; }

@keyframes fadeInLeft { from{opacity:0; transform:translateX(-30px);} to{opacity:1; transform:translateX(0);} }
@keyframes fadeInRight { from{opacity:0; transform:translateX(30px);} to{opacity:1; transform:translateX(0);} }
@keyframes scaleIn { from{opacity:0; transform:scale(.9);} to{opacity:1; transform:scale(1);} }

.step-item { transition: transform .3s ease; }
.step-item:hover { transform: translateY(-8px); }

.partner-card { transition: transform .3s ease, box-shadow .3s ease; }
.partner-card:hover { transform: translateY(-8px); }

.counter-number { transition: color .3s ease; }

.cta-band { transition: transform .3s ease; }
.cta-band:hover { transform: translateY(-4px); }

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Accessibility: Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card-cme:hover { transform: none; }
  .partner-card:hover { transform: none; }
  .step-item:hover { transform: none; }
  .cta-band:hover { transform: none; }
  .mobile-nav-panel { transition: none; }
  .mobile-nav-overlay { transition: none; }
  .mobile-nav-panel.active .mobile-nav-links li { transition: none; opacity: 1; transform: none; }
  .nav-toggler-cme .bar { transition: none; }
  .form-card .row.g-3 > [class*="col-"] { animation: none; opacity: 1; transform: none; }
  .form-step.active { animation: none; }
  .alert { animation: none; }
  .card-cme:has(.form-step) { animation: none; }
}

/* ---------- Additional responsive ---------- */
@media (max-width: 576px) {
  .hero-content h1 { font-size: 1.1rem; }
  .hero-content p.lead { font-size: .8rem; }
  .hero-page h1 { font-size: 1.6rem; }
  .cta-band { padding: 30px 16px; }
  .cta-band h2 { font-size: 1.3rem; }
  .counter-number { font-size: 2rem; }
  .step-number { width: 50px; height: 50px; font-size: 1.1rem; }
  .footer-site { padding: 40px 0 20px; }
  .stat-card { padding: 20px 16px !important; }
  .card-cme { padding: 24px 18px; }
  .balloon { width: 28px; height: 38px; }
  .balloon::after { height: 18px; bottom: -20px; }
  .cup-banner { font-size: .65rem; padding: 5px 8px; }
  .cup-badge { font-size: .65rem; padding: 5px 12px; }
  .cup-trophy { font-size: 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-carousel-wrapper { height: calc(100vh - 56px); }
  body.has-cup-banner .hero-carousel-wrapper { height: calc(100vh - 56px - 32px); margin-top: calc(56px + 32px); }
  section { padding: 70px 0; }
}

/* ---------- Hover glow on interactive elements ---------- */
.btn-primary-cme:active { transform: translateY(0); }

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Selection color ---------- */
::selection { background: var(--primary-light); color: #fff; }

/* =========================================================
   HOME PAGE ANIMATIONS
   ========================================================= */

/* --- Hero text entrance --- */
.hero-content > .row > .col-lg-8 > * {
  animation: heroFadeIn .8s ease both;
}
.hero-content > .row > .col-lg-8 > *:nth-child(1) { animation-delay: .1s; }
.hero-content > .row > .col-lg-8 > *:nth-child(2) { animation-delay: .3s; }
.hero-content > .row > .col-lg-8 > *:nth-child(3) { animation-delay: .5s; }
.hero-content > .row > .col-lg-8 > .d-flex { animation-delay: .7s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero image zoom on carousel */
.hero-slide {
  animation: heroZoom 8s ease-in-out infinite alternate;
}
.carousel-item:nth-child(2) .hero-slide { animation-delay: -2s; }
.carousel-item:nth-child(3) .hero-slide { animation-delay: -4s; }
.carousel-item:nth-child(4) .hero-slide { animation-delay: -6s; }

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* --- Section eyebrow entrance --- */
.section-title-eyebrow {
  opacity: 0;
  transform: translateY(12px);
  letter-spacing: 3px;
}
.reveal.is-visible .section-title-eyebrow,
.section-title-eyebrow.animated {
  animation: fadeInUp .5s ease .1s forwards;
}

/* --- Divider gold width animation --- */
.divider-gold {
  width: 0;
  transition: width .6s cubic-bezier(.23,1,.32,1) .3s;
}
.reveal.is-visible .divider-gold,
.divider-gold.animated {
  width: 60px;
}

/* --- Card stagger entrance --- */
.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card:nth-child(1) { transition-delay: .1s; }
.reveal-card:nth-child(2) { transition-delay: .2s; }
.reveal-card:nth-child(3) { transition-delay: .3s; }
.reveal-card:nth-child(4) { transition-delay: .4s; }

/* --- Icon bounce on reveal --- */
.icon-wrap {
  transition: transform .5s cubic-bezier(.68,-.55,.27,1.55), background .3s, color .3s;
}
.reveal.is-visible .icon-wrap,
.icon-wrap.animated {
  animation: iconBounce .6s ease .4s both;
}
@keyframes iconBounce {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}


/* --- Step number pulse on reveal --- */
.step-number {
  transition: transform .5s cubic-bezier(.68,-.55,.27,1.55), box-shadow .5s;
}
.step-item.revealed .step-number {
  animation: stepPulse .6s ease .3s both;
}
@keyframes stepPulse {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Counter number entrance --- */
.counter-number {
  opacity: 0;
  transform: scale(.7);
  transition: opacity .5s ease, transform .5s cubic-bezier(.68,-.55,.27,1.55);
}
.counter-item.counted .counter-number {
  opacity: 1;
  transform: scale(1);
}
.counter-item.counted .counter-number {
  animation: counterPop .5s ease .2s both;
}
@keyframes counterPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Testimonial card hover --- */
.testimonial-card {
  transition: transform .4s ease, box-shadow .4s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}

/* --- Star shimmer --- */
.stars {
  position: relative;
  display: inline-block;
}
.stars.shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 2s ease infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* --- CTA gradient animation --- */
.cta-band {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- FAQ accordion smooth --- */
.accordion-cme .accordion-collapse {
  transition: none;
}
.accordion-cme .accordion-button::after {
  transition: transform .3s ease;
}
.accordion-cme .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* --- Floating glow effect on cards --- */
.card-cme {
  position: relative;
}
.card-cme::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(31,95,139,.08), transparent);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.card-cme:hover::before {
  opacity: 1;
}

/* --- Button ripple on click --- */
.btn-primary-cme, .btn-outline-cme, .btn-outline-primary-cme {
  position: relative;
  overflow: hidden;
}
.btn-primary-cme::after, .btn-outline-cme::after, .btn-outline-primary-cme::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease, opacity .5s ease;
  opacity: 0;
}
.btn-primary-cme:active::after, .btn-outline-cme:active::after, .btn-outline-primary-cme:active::after {
  width: 300px; height: 300px; opacity: 1;
  transition: 0s;
}

/* --- Parallax-like subtle move on sections --- */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* --- Smooth reveal for apartment image overlays --- */
.card-cme .badge, .card-cme span[style*="position:absolute"] {
  transition: transform .3s ease;
}
.card-cme:hover .badge {
  transform: scale(1.05);
}

/* --- Mairie pill entrance on scroll --- */
.mairie-pill {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.mairie-marquee.visible .mairie-pill {
  opacity: 1;
  transform: translateY(0);
}
.mairie-marquee.visible .mairie-pill:nth-child(1) { transition-delay: .05s; }
.mairie-marquee.visible .mairie-pill:nth-child(2) { transition-delay: .1s; }
.mairie-marquee.visible .mairie-pill:nth-child(3) { transition-delay: .15s; }
.mairie-marquee.visible .mairie-pill:nth-child(4) { transition-delay: .2s; }
.mairie-marquee.visible .mairie-pill:nth-child(5) { transition-delay: .25s; }
.mairie-marquee.visible .mairie-pill:nth-child(6) { transition-delay: .3s; }
.mairie-marquee.visible .mairie-pill:nth-child(7) { transition-delay: .35s; }
.mairie-marquee.visible .mairie-pill:nth-child(8) { transition-delay: .4s; }

/* =========================================================
   WORLD CUP CELEBRATION — Spain Champions
   ========================================================= */

/* --- Trophy badge --- */
.cup-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(200,16,46,.85), rgba(252,219,13,.85));
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  animation: cupPulse 2s ease-in-out infinite, cupSlideIn .8s ease both;
  box-shadow: 0 4px 20px rgba(200,16,46,.3);
}
.cup-trophy {
  font-size: 1.4rem;
  display: inline-block;
  animation: cupBounce 1.2s ease-in-out infinite;
}
.cup-text {
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

@keyframes cupSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cupPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(200,16,46,.3); }
  50% { box-shadow: 0 4px 30px rgba(252,219,13,.5), 0 0 60px rgba(200,16,46,.2); }
}
@keyframes cupBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(8deg); }
}

/* --- Celebration banner under navbar --- */
.cup-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: linear-gradient(90deg, #c8102e 0%, #fcdb0d 50%, #c8102e 100%);
  background-size: 200% 100%;
  animation: cupBannerShimmer 3s linear infinite;
  text-align: center;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  letter-spacing: .5px;
}
.cup-banner i { margin: 0 6px; }

@keyframes cupBannerShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Push navbar + hero down when banner is visible */
body.has-cup-banner .navbar-cme { top: 32px; }
body.has-cup-banner .hero-carousel-wrapper { margin-top: calc(56px + 32px); height: calc(100vh - 56px - 32px); }

/* --- Sparkle particles on sections --- */
.sparkle-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fcdb0d;
  animation: sparkleFloat 4s ease-in-out infinite;
  opacity: 0;
}
.sparkle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { left: 25%; top: 60%; animation-delay: .7s; }
.sparkle:nth-child(3) { left: 50%; top: 15%; animation-delay: 1.4s; }
.sparkle:nth-child(4) { left: 70%; top: 45%; animation-delay: 2.1s; }
.sparkle:nth-child(5) { left: 85%; top: 70%; animation-delay: 2.8s; }
.sparkle:nth-child(6) { left: 40%; top: 80%; animation-delay: 3.5s; }

@keyframes sparkleFloat {
  0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
  20% { opacity: 1; transform: scale(1) translateY(-8px); }
  50% { opacity: .7; transform: scale(1.5) translateY(-20px); }
  80% { opacity: 0; transform: scale(0) translateY(-30px); }
}

/* --- Glowing gold border on featured cards --- */
.counter-item.reveal.is-visible {
  animation: cupGlow 3s ease-in-out infinite;
}
.counter-item:nth-child(2) { animation-delay: .5s; }
.counter-item:nth-child(3) { animation-delay: 1s; }
.counter-item:nth-child(4) { animation-delay: 1.5s; }

@keyframes cupGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 12px rgba(252,219,13,.25)); }
}

/* --- Hero balloons --- */
.hero-balloons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.balloon {
  position: absolute;
  bottom: -120px;
  left: var(--x);
  width: 44px;
  height: 56px;
  background: var(--clr);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: .75;
  animation: balloonRise var(--dur) ease-in var(--delay) infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.15));
}
.balloon::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--clr);
  border-radius: 50%;
  filter: brightness(1.2);
}
.balloon::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.4);
}

@keyframes balloonRise {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  5% { opacity: .75; }
  25% {
    transform: translateY(-30vh) translateX(15px) rotate(4deg);
  }
  50% {
    transform: translateY(-60vh) translateX(-10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-90vh) translateX(20px) rotate(5deg);
    opacity: .5;
  }
  100% {
    transform: translateY(-120vh) translateX(-5px) rotate(-2deg);
    opacity: 0;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .cup-badge, .cup-trophy, .cup-banner, .sparkle, .counter-item, .balloon { animation: none !important; opacity: 0 !important; }
}

/* =========================================================
   FLOATING SEARCH BUTTON (mobile)
   ========================================================= */
.fab-search {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1045;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(31,95,139,.4);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.fab-search:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(31,95,139,.55);
}
.fab-search:active {
  transform: scale(.95);
}
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c8102e;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: fabPop .3s ease;
}
@keyframes fabPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* On desktop: hide FAB, show compact bar */
@media (min-width: 992px) {
  .fab-search { display: none; }
}

/* =========================================================
   FULL RESPONSIVE FIXES — All Pages
   ========================================================= */

/* --- Appartement detail: main image responsive height --- */
@media (max-width: 768px) {
  .stat-card img[style*="height:420px"] {
    height: 260px !important;
  }
}
@media (max-width: 576px) {
  .stat-card img[style*="height:420px"] {
    height: 200px !important;
  }
}

/* --- Appartement detail: thumbnails responsive --- */
@media (max-width: 768px) {
  .row.g-2 img[style*="height:120px"] {
    height: 90px !important;
  }
}
@media (max-width: 576px) {
  .row.g-2 img[style*="height:120px"] {
    height: 70px !important;
  }
}

/* --- Appartement detail: sticky sidebar → static on mobile --- */
@media (max-width: 991px) {
  .col-lg-4 .stat-card[style*="position:sticky"] {
    position: static !important;
  }
}

/* --- Hero page header: stack on mobile --- */
@media (max-width: 768px) {
  .hero-page .d-flex.flex-wrap {
    flex-direction: column;
    text-align: center;
  }
  .hero-page .text-end {
    text-align: center !important;
  }
}

/* --- Progress steps responsive --- */
@media (max-width: 576px) {
  .progress-steps .p-circle {
    width: 36px;
    height: 36px;
    font-size: .85rem;
    border-width: 2px;
  }
  .progress-steps .p-label {
    font-size: .65rem;
  }
}

/* --- Admin stat-card .num font overflow --- */
@media (max-width: 576px) {
  .stat-card .num {
    font-size: 1.3rem !important;
  }
  .stat-card .fs-2 {
    font-size: 1.2rem !important;
  }
}

/* --- Admin topbar mobile --- */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-topbar h5 {
    font-size: 1rem;
  }
}

/* --- Reservation page: apartment preview image responsive --- */
@media (max-width: 576px) {
  .card-cme img[style*="height:200px"] {
    height: 140px !important;
  }
  .card-cme img[style*="height:70px"] {
    height: 50px !important;
  }
}

/* --- Card-cme images: prevent overflow on all pages --- */
.card-cme img {
  max-width: 100%;
}

/* --- CTA band responsive text --- */
@media (max-width: 576px) {
  .cta-band p {
    font-size: .9rem;
  }
  .btn-primary-cme {
    padding: 12px 24px;
    font-size: .9rem;
  }
  .btn-outline-primary-cme {
    padding: 10px 20px;
    font-size: .9rem;
  }
}


/* --- Footer responsive --- */
@media (max-width: 576px) {
  footer.site-footer h5 {
    font-size: 1rem;
    margin-top: 20px;
  }
  footer.site-footer .row > [class*="col-"] {
    margin-bottom: 16px;
  }
}

/* --- Related cards on detail page --- */
@media (max-width: 576px) {
  .col-md-4 img[style*="height:180px"] {
    height: 140px !important;
  }
}

/* --- Reservation form: file input overflow --- */
@media (max-width: 576px) {
  input[type="file"].form-control-cme {
    font-size: .85rem;
  }
  .form-label {
    font-size: .9rem;
  }
}

/* --- Mairie pills: ensure no horizontal overflow --- */
.mairie-pill {
  flex-shrink: 0;
}

/* --- Apartment card images: consistent height on listing --- */
.appartement-card img,
.card-cme .card-img-top {
  object-fit: cover;
}

/* =============================================================
   (removed)
   ============================================================= */
