/* Ramya Ru visual refinement: quieter hierarchy, clearer comparison and
   resilient layouts while retaining the original Garden After Rain identity. */
:root {
  --container-max: 1440px;
  --gutter: clamp(1rem, 3vw, 3rem);
  --section-space: clamp(3.5rem, 6.6vw, 6.5rem);
  --section-space-small: clamp(2.5rem, 4.5vw, 4.5rem);
  --text-xs: clamp(0.79rem, 0.76rem + 0.12vw, 0.86rem);
  --text-sm: clamp(0.88rem, 0.84rem + 0.15vw, 0.96rem);
  --text-base: clamp(1rem, 0.97rem + 0.13vw, 1.08rem);
  --text-hero: clamp(2.65rem, 1.9rem + 3.55vw, 5.8rem);
}

body { line-height: 1.65; }
.btn__arrow { display: none; }
.btn { min-height: 2.9rem; }

/* The image fills its frame even when the adjoining panel is taller. */
.hero { padding-block: clamp(1rem, 2vw, 1.75rem) var(--section-space-small); }
.hero__grid { gap: 0; }
.hero__media { aspect-ratio: 16 / 11; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__panel { padding: clamp(1.25rem, 3.1vw, 2.65rem); }
.hero__title { max-width: 10ch; line-height: 0.98; }
.hero__copy { max-width: 44ch; }
@media (max-width: 859px) {
  .hero__panel { margin: -2rem 0.8rem 0; }
}
@media (min-width: 860px) {
  .hero__media { align-self: stretch; min-height: clamp(27rem, 61vh, 39rem); aspect-ratio: auto; }
  .hero__panel { margin-block: 2rem; }
}
@media (max-width: 400px) {
  .hero__panel { margin-inline: 0.45rem; padding: 1.25rem; }
  .hero__place { line-height: 1.5; }
}

/* Four distinct cards, with shared facts stated once in the introduction. */
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: clamp(1rem, 1.8vw, 1.5rem); }
.room-grid > :nth-child(even) { margin-block-start: 0; }
.room-card {
  display: flex; flex-direction: column; gap: 0; height: 100%; padding: 0;
  overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55); box-shadow: none;
}
.room-card::before { display: none; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 18px 35px -27px rgba(20, 38, 31, 0.55); }
.room-card__media, .room-card:nth-child(even) .room-card__media { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
.room-card__body { display: flex; flex-direction: column; flex: 1; gap: 0.65rem; padding: 1.15rem; }
.room-card__theme { font-size: var(--text-xs); letter-spacing: 0.07em; font-weight: 600; color: var(--moss-deep); }
.room-card__theme::before { width: 7px; height: 7px; }
.room-card__name { font-size: clamp(1.5rem, 1.28rem + 0.55vw, 1.9rem); }
.room-card__desc { font-size: var(--text-sm); line-height: 1.55; }
.room-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.5rem 1rem; margin-block-start: auto; padding-block-start: 0.9rem; border-block-start: 1px solid var(--line-soft); }
.room-card__price { font-size: 1.25rem; line-height: 1.1; }
.room-card__price span { display: block; margin-top: 0.24rem; color: var(--ink-soft); font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 400; }
.room-card__link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 700; color: var(--forest-900); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 0.3em; }
.room-card__link:hover { color: var(--gold-deep); }
@media (min-width: 620px) { .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Let visitors compare the rooms without scrolling past oversized photo stacks. */
.room-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-block-start: 1.25rem; }
.room-jump > span { margin-inline-end: 0.5rem; color: var(--ink-soft); font-size: var(--text-sm); }
.room-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--forest-900); font-size: var(--text-sm); font-weight: 600; }
.room-jump a:hover { background: var(--forest-900); border-color: var(--forest-900); color: var(--cream-50); }
.room-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room-gallery__item, .room-gallery__item:last-child { grid-column: auto; aspect-ratio: 1 / 1; }
.room-gallery__item:first-child { grid-column: span 3; aspect-ratio: 16 / 10; }
.room-section__grid { align-items: start; }
@media (max-width: 400px) {
  .room-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-gallery__item, .room-gallery__item:last-child { grid-column: auto; aspect-ratio: 1 / 1; }
  .room-gallery__item:first-child { grid-column: span 3; aspect-ratio: 4 / 3; }
  .page-hero__pair { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .page-hero__pair .page-hero__media:last-child { aspect-ratio: 3 / 4; }
}

/* Keep editorial sections available even when motion or observation fails. */
.js .reveal { opacity: 1; transform: none; transition: none; }
.reveal .stem path, .reveal .stem line { stroke-dashoffset: 0; }
#booking { scroll-margin-top: calc(var(--header-h) + 1rem); }
.no-script-note { margin: 0 0 1.25rem; }
.no-script-note a { text-decoration: underline; text-underline-offset: 0.15em; }
.filter-btn, .field label, .action-bar .btn { font-size: max(0.82rem, var(--text-xs)); }
@media (max-width: 300px) {
  .action-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep paired photographs and food previews compact on phone screens. */
@media (min-width: 320px) and (max-width: 619px) {
  .split__stack--pair { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* If scripts are unavailable, keep the page navigation available on mobile. */
@media (max-width: 979px) {
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { display: block; flex: 0 0 100%; order: 3; }
  html:not(.js) .site-nav__list { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; }
  html:not(.js) .site-nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); }
  html:not(.js) [data-nav-toggle] { display: none; }
}
