/* Site-wide mobile optimizations — works without Tailwind rebuild */

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

/* Decorative blurs: reduce clutter on small screens */
@media (max-width: 767px) {
  .page-decor-blur {
    display: none !important;
  }
}

/* Testimonial: 3 videos per row on tablet+ */
.testimonial-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .testimonial-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.instagram-embed-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.instagram-embed-wrap .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Footer */
@media (max-width: 767px) {
  .site-footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .site-footer-legal > div {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .site-footer-brand-title {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
}

/* Location page */
@media (max-width: 639px) {
  .locations-hero-title {
    font-size: 2rem !important;
    line-height: 1.15;
  }
}

/* Location “coming soon” badge */
@media (max-width: 639px) {
  .location-coming-soon-badge {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.45;
    padding: 0.75rem 1rem !important;
  }
}

/* Rooms hero title */
@media (max-width: 639px) {
  .rooms-hero-title {
    font-size: 2.25rem !important;
    line-height: 1.1;
  }
}

/* Booking page */
@media (max-width: 767px) {
  .booking-hero-title {
    font-size: 2rem !important;
    line-height: 1.15;
  }

  .booking-form-card {
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
  }
}

/* Room detail thumbnails */
@media (max-width: 479px) {
  .room-gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Amenities CTA stack */
@media (max-width: 639px) {
  .amenities-cta-row a {
    width: 100%;
    text-align: center;
  }
}

/* Horizontal scroll areas: padding for edge cards */
@media (max-width: 767px) {
  .scroll-row-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .room-card-mobile {
    width: min(85vw, 300px) !important;
  }
}

/* Safe area for fixed header */
.page-content-top {
  padding-top: 0.5rem;
}

/* Dev credit popup */
@media (max-width: 479px) {
  #dev-credit-popup > div {
    margin: 0 0.5rem;
  }
}

/* Map / video embeds */
@media (max-width: 767px) {
  .embed-map-wrap {
    height: 220px !important;
  }

  .rooms-video-grid {
    height: auto !important;
    grid-template-rows: auto;
  }

  .rooms-video-grid > div {
    min-height: 200px;
  }
}

/* Written testimonial cards */
@media (max-width: 639px) {
  .written-testimonial-card {
    padding: 1.5rem !important;
  }

  .written-testimonial-card blockquote {
    font-size: 1.0625rem !important;
  }
}

/* Why choose us floating card */
@media (max-width: 767px) {
  .why-choose-float-card {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 1rem;
    width: 100%;
  }
}
