/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - LA LIBÉLULA DE GREDOS
   Inspirado en la naturaleza virgen, los pinares y las cumbres de Gredos.
   Paleta: Verde Pino, Verde Musgo, Salvia y Crema Silvestre.
   ========================================================================== */

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

:root {
  /* Premium Nature Green Palette */
  --bg-color: #f6f8f5;       /* Soft fresh pine-cream */
  --text-primary: #122620;   /* Deep forest pine / dark spruce */
  --text-secondary: #4a635a; /* Muted sage spruce */
  --accent-primary: #2d6a4f;  /* Vibrant moss/forest green */
  --accent-secondary: #95d5b2;/* Soft silver sage / fresh leaf */
  --white: #ffffff;
  --border-color: #d8e2dc;
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

button, .btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: var(--white);
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px; /* Elegant pill shape */
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.25);
  text-decoration: none;
}

button:hover, .btn:hover {
  background-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 38, 32, 0.35);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--accent-secondary);
  color: var(--white);
}

/* Premium Booking Button Gradient Effect */
.btn-highlight {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--text-primary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: 0.5s;
}

.btn-highlight:hover::after {
  left: 100%;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* Helper Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* ==========================================================================
   ANIMATIONS & SCROLL STATES
   ========================================================================== */

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

.fade-in {
  animation: fadeIn var(--transition-slow) forwards;
}

/* ==========================================================================
   HEADER NAVIGATION (WITH SCROLLED & MOBILE DRAWER STATES)
   ========================================================================== */

.site-header {
  padding: 1.5rem 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

/* Scrolled Fixed State */
.site-header.scrolled {
  position: fixed;
  background-color: rgba(246, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(18, 38, 32, 0.08);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 101;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  flex-shrink: 0; /* Previene que el logotipo desaparezca en móviles */
}

.site-header.scrolled .logo-img {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.15);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-header.scrolled .logo-text {
  color: var(--text-primary);
}

/* Desktop Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.4rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.site-header.scrolled .nav-link {
  color: var(--text-secondary);
}

.site-header.scrolled .nav-link:hover {
  color: var(--text-primary);
}

/* Reservar Button on Desktop Header */
.nav-link-reservas {
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-link-reservas:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 38, 32, 0.3);
}

.site-header.scrolled .nav-link-reservas {
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

/* Mobile Controls - Menu Trigger & Reservar Header Button */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 101;
}

.mobile-reservar-btn {
  color: var(--white) !important;
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.2);
  transition: all 0.2s ease;
}

.mobile-reservar-btn:active {
  transform: scale(0.95);
}

/* Mobile Hamburger Menu Trigger */
.menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.menu-trigger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  margin: 2.5px 0;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform-origin: center;
}

.site-header.scrolled .menu-trigger span {
  background-color: var(--text-primary);
}

/* Open menu state for hamburger morph animation */
.menu-trigger.open span:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
  background-color: var(--text-primary);
}

.menu-trigger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-trigger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
  background-color: var(--text-primary);
}

/* Mobile Drawer Side Navigation Panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: -10px 0 40px rgba(18, 38, 32, 0.15);
  display: flex;
  flex-direction: column;
  padding: 6.5rem 2rem 2rem;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 99;
  box-sizing: border-box;
}

.mobile-nav-panel.open {
  transform: translateX(0);
}

.mobile-nav-link {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(216, 226, 220, 0.6);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:active {
  color: var(--accent-primary);
  padding-left: 0.25rem;
}

.mobile-nav-link-reservas {
  color: var(--white) !important;
  background-color: var(--accent-primary);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 50px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
  transition: all 0.2s ease;
}

.mobile-nav-link-reservas:active {
  background-color: var(--text-primary);
  transform: translateY(1px);
}

/* Glassy Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 38, 32, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 98;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Prevent any horizontal layout leakage */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==========================================================================
   GRID COMPONENT ARCHITECTURES
   ========================================================================== */

/* Key Facts Ficha Técnica */
.ficha-tecnica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
  background-color: rgba(149, 213, 178, 0.08);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(149, 213, 178, 0.25);
  text-align: center;
}

.ficha-tecnica-item span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.ficha-tecnica-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.ficha-tecnica-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Environment Section Grid */
.environment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.environment-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(18, 38, 32, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
  border: 1px solid var(--border-color);
}

.environment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(18, 38, 32, 0.08);
  border-color: var(--accent-secondary);
}

.environment-badge {
  background-color: var(--accent-primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.environment-btn {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  margin-top: auto;
  align-self: flex-start;
  box-shadow: none;
}

.environment-btn:hover {
  background-color: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   PREMIUM TABLE STYLES (SERVICES)
   ========================================================================== */

.services-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(18, 38, 32, 0.03);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.services-table th {
  background-color: var(--text-primary);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent-secondary);
}

.services-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: middle;
}

.services-table tr:last-child td {
  border-bottom: none;
}

.services-table tr:nth-child(even) {
  background-color: #f6f8f5;
}

.services-table tr:hover {
  background-color: #e8efe9;
  transition: background-color 0.25s ease;
}

.services-table td strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   PHOTO GALLERY GRID & LIGHTBOX STYLES
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(18, 38, 32, 0.04);
  border: 1px solid var(--border-color);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 38, 32, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 1.8rem;
  background: rgba(45, 106, 79, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay span {
  transform: scale(1);
}

/* Lightbox Premium Modal UI */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 38, 32, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45, 106, 79, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-arrow:hover {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow-left {
  left: -4rem;
}

.lightbox-arrow-right {
  right: -4rem;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 1px;
}

/* ==========================================================================
   BOOKING IFRAME WRAPPER STYLES
   ========================================================================== */

.booking-iframe {
  width: 100%;
  height: 1450px;
  border: none;
  display: block;
  background-color: var(--white);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991px) {
  .logo-text {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
  }
  .desktop-nav {
    gap: 1.25rem;
  }
  .lightbox-arrow-left { left: 1rem; }
  .lightbox-arrow-right { right: 1rem; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .desktop-nav {
    display: none;
  }
  
  .mobile-controls {
    display: flex;
  }
  
  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .logo-text-suffix {
    display: none; /* Hide 'de Gredos' to guarantee perfect fit on narrow screens */
  }

  /* Table transformations into highly-readable mobile card blocks */
  .services-table-wrapper {
    background-color: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
  }
  
  .services-table, 
  .services-table tbody, 
  .services-table tr, 
  .services-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .services-table thead {
    display: none;
  }
  
  .services-table tr {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(18, 38, 32, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  
  .services-table tr:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
  }
  
  .services-table td {
    padding: 0 0 0.75rem 0;
    border-bottom: none;
    text-align: left;
  }
  
  .services-table td:nth-child(1) {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  
  .services-table td:nth-child(2) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 0.25rem;
  }
  
  .services-table td:nth-child(3) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-bottom: 0;
  }

  #reservas .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  #booking-engine-container {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .logo-text {
    font-size: 1.05rem;
  }

  .mobile-controls {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   PRECISE ABSOLUTE CENTERING AND SCALING FOR BOOKING IFRAME (MOBILE VIEWPORTS)
   Fits the viewport at a highly readable ~98% width with robust cross-browser safety
   ========================================================================== */

@media (max-width: 580px) {
  #booking-engine-container {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    border-radius: 12px !important;
  }
  
  .booking-iframe {
    width: 580px !important;
    min-width: 580px !important;
    max-width: 580px !important;
    height: 1550px !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    transform-origin: top center !important;
    border: none !important;
    display: block !important;
  }
}

/* 1. Small screens (up to 340px) */
@media (max-width: 340px) {
  #booking-engine-container { height: 855px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.55) !important; }
}

/* 2. Small standard screens (341px - 365px) */
@media (min-width: 341px) and (max-width: 365px) {
  #booking-engine-container { height: 935px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.60) !important; }
}

/* 3. iPhone standard screens (366px - 385px) */
@media (min-width: 366px) and (max-width: 385px) {
  #booking-engine-container { height: 995px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.64) !important; }
}

/* 4. iPhone Pro / Pixel screens (386px - 410px) */
@media (min-width: 386px) and (max-width: 410px) {
  #booking-engine-container { height: 1040px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.67) !important; }
}

/* 5. iPhone Pro Max / Large Android (411px - 435px) */
@media (min-width: 411px) and (max-width: 435px) {
  #booking-engine-container { height: 1120px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.72) !important; }
}

/* 6. XL mobile screens (436px - 470px) */
@media (min-width: 436px) and (max-width: 470px) {
  #booking-engine-container { height: 1195px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.77) !important; }
}

/* 7. Phablets / Foldables (471px - 510px) */
@media (min-width: 471px) and (max-width: 510px) {
  #booking-engine-container { height: 1290px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.83) !important; }
}

/* 8. Medium width screens (511px - 550px) */
@media (min-width: 511px) and (max-width: 550px) {
  #booking-engine-container { height: 1400px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.90) !important; }
}

/* 9. High end mobile limit (551px - 580px) */
@media (min-width: 551px) and (max-width: 580px) {
  #booking-engine-container { height: 1495px !important; }
  .booking-iframe { transform: translateX(-50%) scale(0.96) !important; }
}

/* Tablet Viewports between 581px and 768px */
@media (min-width: 581px) and (max-width: 768px) {
  #booking-engine-container {
    height: 1550px !important;
    display: block !important;
  }
  
  .booking-iframe {
    width: 100% !important;
    height: 1550px !important;
    transform: none !important;
    position: relative !important;
  }
}
