/* ==========================================================
   MASTER RESPONSIVE FIXES FOR ALL DEVICES & SCREENS
   ========================================================== */

/* 1. Global Safety Resets */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

/* Images & Media Fluidity */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Universal Container Fluid Padding */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================
   2. TABLETS & LAPTOPS (Max-width: 992px)
   ========================================================== */
@media (max-width: 992px) {
  /* Navbar & Mobile Menu */
  .nav-links {
    position: fixed;
    top: 0; 
    right: -100%;
    width: 280px; 
    height: 100vh;
    background: var(--obsidian, #07090e);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1000;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
  }

  .nav-links.active {
    right: 0 !important;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gold, #D4AF37);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hamburger 'X' Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  /* Grid Adjustments */
  .booking-grid, 
  .grid-layout,
  div[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
  }
}

/* ==========================================================
   3. MOBILE PHONES (Max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem !important;
  }

  h1 {
    font-size: 2.3rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .hero-header {
    padding: 120px 1rem 4rem 1rem !important;
    min-height: auto !important;
  }

  .booking-grid, 
  .features-grid,
  .rooms-grid,
  .footer-grid,
  section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .booking-card, 
  .card, 
  .dish-card {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================
   4. SMALL & EXTRA SMALL DEVICES / IPHONES (Max-width: 480px)
   ========================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem !important;
  }

  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .hero-header {
    padding: 110px 0.5rem 3rem 0.5rem !important;
    min-height: auto !important;
  }

  .booking-grid, 
  section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .booking-card, 
  .dish-card,
  .card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .form-input, select, textarea {
    padding: 0.7rem 0.9rem !important;
    font-size: 0.9rem !important;
  }

  button, .btn-gold {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }
}

/* ==========================================================
   5. ULTRA-SMALL SCREENS / IPHONE SE (Max-width: 360px)
   ========================================================== */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem !important;
  }

  h1 {
    font-size: 1.7rem !important;
  }
  
  .logo span {
    font-size: 1rem !important;
  }
  
  .booking-card,
  .card {
    padding: 1rem !important;
  }
}