/* 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;
  }
}

/* Home — “Simple steps” block */
.home-process {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-process {
    gap: 1.125rem;
  }
}

.home-process-intro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-process-intro h2 {
  margin-bottom: 0 !important;
}

.home-process-intro p {
  margin: 0;
}

.home-process-grid {
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .home-process-grid {
    gap: 1rem;
  }
}

.home-process-actions {
  margin: 0;
  padding-top: 0.25rem;
}

.home-process-card {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.32);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.04);
  padding: 1.125rem 1rem 1.25rem;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.home-process-card .home-process-step {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.625rem;
  background: #faf6ef;
  color: #8b6b38;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
  .home-process-card .home-process-step {
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 0.75rem;
  }
}

.home-process-card .home-process-title {
  margin-bottom: 0.375rem;
}

.home-process-card .home-process-title {
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.home-process-card .home-process-desc {
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.home-process-card:hover {
  background: #c5a059;
  border-color: #c5a059;
  box-shadow: 0 16px 44px rgba(197, 160, 89, 0.22);
}

.home-process-card:hover .home-process-step {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.home-process-card:hover .home-process-title {
  color: #fff;
}

.home-process-card:hover .home-process-desc {
  color: rgba(255, 255, 255, 0.92);
}

/* Home page — single vertical rhythm (gap between sections, not padding on each) */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0 1.75rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-sections {
    gap: 1.5rem;
    padding: 1.25rem 0 2rem;
  }
}

.home-section {
  padding: 0 1.25rem;
  margin: 0;
}

@media (min-width: 768px) {
  .home-section {
    padding: 0 3rem;
  }
}

.home-section--white {
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.25rem, calc(50vw - 720px + 1.25rem));
  padding-right: max(1.25rem, calc(50vw - 720px + 1.25rem));
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-section--white {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: max(3rem, calc(50vw - 720px + 3rem));
    padding-right: max(3rem, calc(50vw - 720px + 3rem));
  }
}

.home-section--muted {
  background: #f9f9f9;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.25rem, calc(50vw - 720px + 1.25rem));
  padding-right: max(1.25rem, calc(50vw - 720px + 1.25rem));
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .home-section--muted {
    padding-left: max(3rem, calc(50vw - 720px + 3rem));
    padding-right: max(3rem, calc(50vw - 720px + 3rem));
  }
}

/* Legacy home-block: no vertical padding (spacing from .home-sections gap) */
.home-block,
.home-block--lead,
.home-block--gap-after,
.home-block--gap-before,
.home-block--pre-process,
.home-block--process,
.home-block--cta-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home-section__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-section__inner--wide {
  max-width: 1440px;
}

.home-section h2 {
  margin-bottom: 0.75rem;
}

.home-section .home-lead {
  margin-bottom: 0.75rem;
}

.home-section .home-copy {
  margin-bottom: 0.75rem;
}

.home-section .home-copy:last-child,
.home-section .home-list:last-child {
  margin-bottom: 0;
}

.home-block-grid {
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .home-block-grid {
    gap: 1.5rem;
    align-items: center;
  }

  .home-block-grid--wide {
    gap: 1.5rem;
  }

  .home-block-media {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Image grid cell when media classes sit on the column itself (Meals, Recreation, Study) */
  .home-block-grid > .home-section-media,
  .home-block-grid > .group.home-section-media {
    align-self: center;
  }

  /* Why Choose Us — image vertically centered beside full text stack */
  .home-block--lead .home-block-grid.home-block-grid--wide {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .home-block--lead .home-block-media {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    order: 1;
  }

  .home-block--lead .home-block-text {
    flex: 1 1 0;
    min-width: 0;
    order: 2;
  }
}

/* Home featured rooms — stable card height */
.home-featured-aspect {
  aspect-ratio: 3 / 4;
}

/* Home — stacked content blocks on #F9F9F9 (half padding between neighbors) */
.home-block--pad-t {
  padding-top: 3rem;
}

.home-block--pad-b {
  padding-bottom: 3rem;
}

.home-block--pad-t-half {
  padding-top: 1.5rem;
}

.home-block--pad-b-half {
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .home-block--pad-t {
    padding-top: 4rem;
  }

  .home-block--pad-b {
    padding-bottom: 4rem;
  }

  .home-block--pad-t-half {
    padding-top: 2rem;
  }

  .home-block--pad-b-half {
    padding-bottom: 2rem;
  }
}

/* Home section image blocks — 4:3 crop, 506.66 × 380 on desktop */
.home-section-media {
  position: relative;
  display: block;
  width: min(100%, 506.66px);
  max-width: 506.66px;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

/* 75% padding-top = 4:3 (fallback when aspect-ratio unsupported) */
.home-section-media::before {
  content: '';
  display: block;
  width: 100%;
  padding-top: 75%;
}

@supports (aspect-ratio: 4 / 3) {
  .home-section-media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .home-section-media::before {
    display: none;
  }
}

@media (min-width: 768px) {
  .home-section-media {
    width: 506.66px !important;
    height: 380px !important;
    max-width: 506.66px !important;
    max-height: 380px !important;
    aspect-ratio: auto !important;
  }

  .home-section-media::before {
    display: none !important;
    padding-top: 0 !important;
    content: none !important;
  }
}

.home-section-media > img,
.home-section-media > .absolute {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  box-sizing: border-box;
}

.home-section-media > img {
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

/* Home section image hover (works even if Tailwind group-hover is missing) */
.home-section-media.group:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(197, 160, 89, 0.35);
  outline: 2px solid rgba(197, 160, 89, 0.35);
  outline-offset: 0;
}

.home-section-media.group:hover > img {
  transform: scale(1.1);
}

.home-section-media.group > .absolute {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(197, 160, 89, 0.35),
    rgba(197, 160, 89, 0.1),
    transparent
  );
}

.home-section-media.group:hover > .absolute {
  opacity: 1;
}

/* Footer quick links — two columns (fill down column 1, then column 2) */
.footer-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 2rem;
  row-gap: 1rem;
}

@media (min-width: 768px) {
  .footer-quick-links {
    column-gap: 2.5rem;
  }
}

/* Home bottom CTA — drone night photo background */
.home-section--cta {
  padding-bottom: 0.25rem;
}

.home-cta-banner {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2.5rem 1.25rem;
}

.home-cta-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.home-cta-banner-content h2 {
  margin: 0;
}

.home-cta-banner-content p {
  margin: 0;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .home-cta-banner {
    padding: 3rem 2rem;
  }

  .home-cta-banner-content {
    gap: 1rem;
  }
}

.home-cta-banner-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Footer — less air after home CTA (all pages) */
.site-page-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .site-page-footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  .home-featured-rooms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    overflow: visible;
  }

  .home-featured-room-card {
    width: 100%;
    flex-shrink: 1;
  }
}

/* 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;
  }

  .home-featured-rooms {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    scrollbar-width: none;
  }

  .home-featured-rooms::-webkit-scrollbar {
    display: none;
  }

}

/* 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;
  }
}

/* Rooms page final layout fix */
@media (max-width: 767px) {
  .rooms-page-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #room-photos .rooms-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.875rem !important;
  }

  #room-photos .rooms-collection-grid > a {
    min-width: 0;
  }

  #room-photos .rooms-collection-grid .rounded-\[24px\] {
    border-radius: 14px !important;
  }

  #room-photos .rooms-collection-grid .text-\[10px\] {
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
  }

  #room-photos .rooms-collection-grid h4 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }
}
