/* ==========================================================================
   CABAÑAS DE LA COMPAÑÍA - CÓRDOBA - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary-forest: #2d5a27;
  --primary-forest-hover: #22451e;
  --primary-forest-light: #eef6ed;
  
  --secondary-wood: #78350f;
  --secondary-wood-hover: #58260b;
  --accent-terra: #d97706;
  --accent-amber: #f59e0b;

  --bg-cream: #faf7f2;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-warm: #e6dfd5;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 25px rgba(45, 90, 39, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-warm);
  transition: var(--transition);
  padding: 1rem 2rem;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-forest);
}

.navbar-brand span.badge-location {
  font-size: 0.75rem;
  background: var(--primary-forest-light);
  color: var(--primary-forest);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.navbar-link:hover {
  color: var(--primary-forest);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-forest) 0%, #1e401b 100%);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 90, 39, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid var(--border-warm);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #f1ebd8;
  border-color: var(--secondary-wood);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-terra) 0%, var(--secondary-wood) 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

/* Hero Carousel / Swiper Slider */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 580px;
  background: #152013;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide-item {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
  color: #ffffff;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 35px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-button-next, .swiper-button-prev {
  color: #ffffff !important;
  background: rgba(0,0,0,0.4);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background: var(--primary-forest) !important;
  width: 25px !important;
  border-radius: var(--radius-full) !important;
}

/* Booking Widget Card */
.booking-widget {
  max-width: 1000px;
  margin: -60px auto 60px auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 25px 35px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  z-index: 10;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 20px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-warm);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.4;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-forest);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
}

/* ---- Select personalizado con wrapper + flecha CSS pura ---- */
.select-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.select-wrapper select.form-control {
  width: 100%;
  padding-right: 44px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #ffffff;
}

/* Flecha creada con CSS puro — cross-browser, sin SVG background-image */
.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary-forest);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

select.form-control option {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #ffffff;
  padding: 8px 14px;
}

/* ---- Input de fecha personalizado ---- */
input[type="date"].form-control {
  padding-right: 16px;
  cursor: pointer;
  color-scheme: light;
  position: relative;
}

/* Estilo del picker indicator nativo — mantenerlo visible pero alineado con el tema */
input[type="date"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(22%) sepia(57%) saturate(538%) hue-rotate(89deg) brightness(95%) contrast(95%);
  opacity: 0.85;
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

input[type="date"].form-control::-webkit-inner-spin-button {
  display: none;
}

input[type="date"].form-control::-moz-focus-inner {
  border: 0;
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--primary-forest);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
}

/* Cabins Grid */
.cabins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.cabin-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-warm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cabin-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.cabin-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.cabin-card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  background: linear-gradient(135deg, var(--secondary-wood) 0%, var(--accent-terra) 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cabin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cabin-card:hover .cabin-img {
  transform: scale(1.06);
}

.cabin-badge-price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
}

.cabin-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cabin-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.cabin-specs-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  background: var(--bg-cream);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cabin-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cabin-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: auto;
}

.amenity-chip {
  background: var(--bg-cream);
  color: var(--primary-forest);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-warm);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 30px;
  background: var(--primary-forest);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-size: 1.3rem;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 30px;
}

/* Status Badges */
.badge-status {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status.pending { background: #fef3c7; color: #92400e; }
.badge-status.confirmed { background: #dcfce7; color: #166534; }
.badge-status.rejected { background: #fee2e2; color: #991b1b; }

/* Chat Styling */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.45;
}

.chat-bubble.guest {
  align-self: flex-end;
  background: var(--primary-forest);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.admin {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.chat-meta {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 4px;
  text-align: right;
}

.chat-input-row {
  padding: 15px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #1e293b;
  color: #ffffff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.admin-nav-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-main {
  background: #f1f5f9;
  padding: 35px 40px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin-top: 6px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.data-table th, table.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

table.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Footer */
footer {
  background: #152013;
  color: #e2e8f0;
  padding: 60px 20px 30px 20px;
  text-align: center;
}

/* ==========================================================================
   HOME BOOKING SECTION — Calendario Interactivo Embebido
   ========================================================================== */
.home-booking-section {
  max-width: 860px;
  margin: 60px auto;
  padding: 40px 30px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
}

.home-booking-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Layout: calendario a la izquierda (fijo), sidebar a la derecha */
.home-booking-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
  justify-content: center;
}

.home-calendar-col {
  width: 380px;
}

.home-calendar-col .range-picker-card {
  margin-bottom: 0;
  max-width: 380px;
}

.home-sidebar-col {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.home-price-summary-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #eef6ed;
  border: 1px solid var(--primary-forest);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.home-price-summary-inner span {
  font-size: 0.85rem;
  color: var(--primary-forest);
  font-weight: 600;
}

.home-price-summary-inner strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-forest);
}

.home-price-summary-inner em {
  font-size: 0.8rem;
  color: var(--accent-terra);
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   CALENDARIO COMPACTO (para Modal) — Clase adicional
   ========================================================================== */
.range-picker-card--compact .range-calendar-weekdays {
  font-size: 0.7rem !important;
  margin-bottom: 6px !important;
  padding-bottom: 5px !important;
}

.range-picker-card--compact .range-calendar-days {
  gap: 1px 0 !important;
}

.range-picker-card--compact .range-day-cell {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  padding: 2px 0 !important;
  min-height: 30px !important;
  aspect-ratio: unset !important;
  height: 30px !important;
}

.range-picker-card--compact .range-picker-header {
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
}

.range-picker-card--compact .range-picker-header h4 {
  font-size: 0.9rem !important;
}

.range-picker-card--compact .range-picker-nav-btn {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
}

.range-picker-card--compact {
  padding: 14px !important;
  margin-bottom: 14px !important;
}

.range-picker-card--compact .range-status-badge {
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  margin-top: 10px !important;
}

/* ==========================================================================
   NAVBAR HAMBURGER — Menú Móvil
   ========================================================================== */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-dark);
  font-size: 1.4rem;
}

/* ==========================================================================
   RESPONSIVE — Móviles y Tablets
   ========================================================================== */
@media (max-width: 900px) {
  /* Navbar */
  .navbar { padding: 0.8rem 1.2rem; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    font-size: 1.2rem;
  }
  .navbar-menu.is-open { display: flex; }
  .navbar-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
  }

  /* Hero */
  .hero-slider-wrapper { height: 70vh; min-height: 420px; }
  .hero-title { font-size: 2rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1rem; }
  .hero-tag { font-size: 0.78rem; }

  /* Home Booking Section */
  .home-booking-section { margin: 30px 15px; padding: 24px 18px; }
  .home-booking-grid { grid-template-columns: 1fr; }
  .home-calendar-col { width: 100%; max-width: 100%; }
  .home-calendar-col .range-picker-card { max-width: 100%; }
  .home-sidebar-col { position: static; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }

  /* Sections */
  .section { padding: 50px 15px; }
  .section-title { font-size: 1.8rem; }
  .cabins-grid { grid-template-columns: 1fr; gap: 20px; }
  .cabin-img-wrapper { height: 200px; }

  /* Buttons */
  .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.9rem; }

  /* Tables */
  table.data-table { font-size: 0.85rem; }
  table.data-table th, table.data-table td { padding: 10px 12px; }
}

@media (max-width: 600px) {
  /* Hero */
  .hero-title { font-size: 1.65rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 25px; }
  .hero-content { padding: 0 14px; }

  /* Navbar brand */
  .navbar-brand { font-size: 1.1rem; gap: 8px; }
  .navbar-brand .badge-location { display: none; }

  /* Home booking */
  .home-booking-section { margin: 20px 10px; padding: 20px 14px; border-radius: var(--radius-md); }
  .home-booking-header h2 { font-size: 1.4rem; }

  /* Calendar — reduce even more on small screens */
  .range-day-cell { font-size: 0.82rem; }
  .range-picker-card { padding: 14px; }
  .range-calendar-weekdays { font-size: 0.7rem; }

  /* Sections */
  .section-title { font-size: 1.5rem; }
  .section { padding: 40px 12px; }

  /* Modals */
  .modal-card { margin: 10px; border-radius: var(--radius-md); max-width: calc(100vw - 20px) !important; }
  .modal-body { padding: 18px 15px !important; }
  .modal-header { padding: 16px 18px; }

  /* Forms */
  .form-control { font-size: 0.9rem; padding: 10px 13px; }

  /* Footer */
  footer { padding: 40px 15px 25px 15px; font-size: 0.9rem; }

  /* Swiper arrows — hide on very small */
  .swiper-button-next, .swiper-button-prev { display: none !important; }
}

/* ==========================================================================
   CALENDARIO DE RANGO INTERACTIVO ESTILO AIRBNB / BOOKING.COM
   ========================================================================== */
.range-picker-card {
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.range-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.range-picker-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin: 0;
}

.range-picker-nav-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.range-picker-nav-btn:hover {
  background: var(--primary-forest-light);
  color: var(--primary-forest);
  border-color: var(--primary-forest);
}

.range-calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.range-calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 3px 0;
}

.range-day-cell {
  width: 100%;
  height: 36px;
  aspect-ratio: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 4px;
}

.range-day-cell.empty {
  cursor: default;
  pointer-events: none;
}

/* Días pasados — burbuja rojo/magenta muy suave, casi transparente */
.range-day-cell.disabled {
  background: rgba(244, 63, 94, 0.08);
  color: rgba(244, 63, 94, 0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 63, 94, 0.3);
  cursor: not-allowed;
  border-radius: 50%;
}

/* Días reservados por otro huésped — tono ligeramente más visible */
.range-day-cell.booked {
  background: rgba(244, 63, 94, 0.13);
  color: rgba(204, 30, 60, 0.55);
  text-decoration: line-through;
  text-decoration-color: rgba(204, 30, 60, 0.35);
  cursor: not-allowed;
  border-radius: 50%;
}

.range-day-cell.available:hover {
  background: #dcfce7;
  color: var(--primary-forest);
  border-radius: 50%;
}

.range-day-cell.selected-start {
  background: var(--primary-forest) !important;
  color: #ffffff !important;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  font-weight: 800;
}

.range-day-cell.selected-end {
  background: var(--primary-forest) !important;
  color: #ffffff !important;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  font-weight: 800;
}

.range-day-cell.selected-single {
  background: var(--primary-forest) !important;
  color: #ffffff !important;
  border-radius: 50%;
  font-weight: 800;
}

.range-day-cell.in-range {
  background: #dcfce7 !important;
  color: #14532d !important;
}

.range-day-cell.in-range-hover {
  background: #eef6ed !important;
  color: var(--primary-forest) !important;
}

.range-status-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef6ed;
  border: 1px solid #2d5a27;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.88rem;
  color: #2d5a27;
  font-weight: 600;
}

