/* ==========================================================================
   Jawai Leopard Point - Responsive Stylesheet
   Ensures seamless adaptability on Desktop, iPad/Tablet, and Mobile phones
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop & Large Screens (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .booking-form {
    grid-template-columns: repeat(2, 1fr) repeat(2, 1fr);
  }
  
  .booking-form .btn {
    grid-column: span 2;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Medium Screens & Tablets (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .top-bar {
    display: none; /* Hide top bar on mobile/tablet to save vertical space */
  }

  .floating-whatsapp {
    display: none !important; /* Hide right-corner floating WhatsApp button on mobile & tablet */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(310px, 85vw);
    height: 100vh;
    background-color: #180d08;
    border-left: 1px solid rgba(212, 136, 42, 0.25);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.75rem 2.5rem;
    gap: 1.15rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    box-shadow: -8px 0 30px rgba(15, 7, 3, 0.75);
    z-index: 1050;
  }
  
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    font-size: 1.1rem;
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  .nav-actions .btn {
    display: none; /* Mobile navigation uses menu drawer CTA and bottom sticky bar */
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .about-preview-grid.reverse-on-desktop > :first-child,
  .about-preview-grid.reverse-on-desktop > :last-child {
    order: unset;
  }
  
  .about-img-overlap {
    right: 0;
    bottom: -1rem;
    width: 50%;
    height: 220px;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .room-deep-dive {
    padding: 2rem;
    margin-bottom: 2.75rem;
  }
  
  .room-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .safari-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .package-card.featured {
    transform: none;
    grid-column: span 2;
  }
  
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .connectivity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-playlist-bar {
    grid-template-columns: 1fr;
  }

  .video-playlist-tab {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .video-playlist-tab:last-child {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Small Screens & Mobile Phones (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container,
  .container-wide {
    padding: 0 1rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .btn-lg {
    padding: 0.9rem 1.35rem;
    font-size: 0.98rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-subtitle::before,
  .section-subtitle::after {
    width: 18px;
  }

  .amenities-compare-table th {
    padding: 0.75rem 0.45rem;
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .amenities-compare-table td {
    padding: 0.65rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }
  
  .section-title {
    font-size: 2.1rem;
  }

  .section-desc {
    font-size: 0.98rem;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }
  
  .hero-content {
    padding: 2.5rem 1rem 2.5rem;
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.1em;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }

  .booking-bar {
    padding: 1.15rem;
  }
  
  .booking-form {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  
  .booking-form .btn {
    grid-column: span 1;
    width: 100%;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  
  .about-img-main {
    height: 290px;
  }
  
  .about-img-overlap {
    position: static;
    width: 100%;
    height: 190px;
    margin-top: 0.85rem;
    border: none;
  }
  
  .about-exp-badge {
    position: static;
    display: inline-block;
    margin-top: 0.85rem;
    margin-bottom: 0.5rem;
    min-width: auto;
    width: 100%;
  }
  
  .feature-checklist {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .room-deep-dive {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2.25rem;
  }

  .room-deep-title {
    font-size: 1.95rem;
  }

  .room-deep-subtitle {
    font-size: 0.98rem;
  }

  .room-deep-price {
    font-size: 1.65rem;
  }

  .room-book-btn {
    width: 100%;
  }
  
  .room-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .safari-packages-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card.featured {
    grid-column: span 1;
  }

  .safari-timing-bar {
    margin-top: 2.5rem;
    padding: 1.35rem;
  }
  
  .timing-cards-flex {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timing-card {
    align-items: flex-start;
    gap: 1rem;
  }

  .timing-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .amenity-card {
    padding: 1.65rem 1.35rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .gallery-item {
    height: 180px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .cta-banner {
    padding: 2.25rem 1.25rem;
  }
  
  .cta-banner h2 {
    font-size: 1.95rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.85rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }
  
  .page-hero-title {
    font-size: 2.25rem;
  }

  .page-hero-subtitle {
    font-size: 1rem;
  }
  
  .page-hero {
    padding: 4rem 0 3.25rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-card {
    padding: 1.65rem 1.25rem;
  }

  .contact-info-card {
    padding: 1.85rem 1.35rem;
  }

  .distance-guide-card {
    padding: 1.5rem 1.25rem;
    margin-top: 2.5rem;
  }

  .distance-guide-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .connectivity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.25rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-header {
    padding: 1.25rem 1.35rem;
  }

  .modal-title {
    font-size: 1.4rem;
    padding-right: 1.5rem;
  }

  .modal-body {
    padding: 1.35rem 1.25rem;
    max-height: 82vh;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  
  .footer-col:last-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 60px; /* space for sticky bottom bar */
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Extra Small Mobile Phones (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  
  .brand-logo img {
    height: 44px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .room-mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .room-card-footer .btn {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
}
