/* ============================================================
   The Insect Hotel – Storybook redesign
   Honey / amber + soft brown design system
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --ih-cream:  #FAF3E3;
  --ih-card:   #FFFCF4;
  --ih-ink:    #34261A;
  --ih-muted:  #5A4631;
  --ih-honey:  #D99A2B;
  --ih-amber:  #B5701A;
  --ih-pale:   #FBEEC9;
  --ih-tan:    #9A7434;
  --ih-dark:   #2C1E10;
  --ih-footer: #221810;

  --ih-line:   rgba(52, 38, 26, 0.10);
  --ih-line-strong: rgba(52, 38, 26, 0.12);

  /* Wire the palette into Material's variables */
  --md-default-bg-color:           var(--ih-cream);
  --md-default-fg-color:           var(--ih-ink);
  --md-default-fg-color--light:    var(--ih-muted);
  --md-default-fg-color--lighter:  var(--ih-tan);
  --md-default-fg-color--lightest: rgba(52, 38, 26, 0.07);

  --md-primary-fg-color:    var(--ih-dark);
  --md-primary-fg-color--light: var(--ih-amber);
  --md-primary-fg-color--dark:  var(--ih-footer);
  --md-primary-bg-color:    var(--ih-cream);

  --md-accent-fg-color:     var(--ih-amber);
  --md-typeset-a-color:     var(--ih-amber);

  --md-code-bg-color:       #F3E8CC;
  --md-code-fg-color:       var(--ih-ink);
}

/* ---------- 2. Base typography & canvas ---------- */
body,
.md-main,
.md-content,
.md-container {
  background-color: var(--ih-cream);
}

.md-typeset {
  font-size: 0.9rem;        /* ~18px */
  line-height: 1.7;
  color: var(--ih-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.ih-font-serif,
.ih-hero h1,
.ih-card h2,
.ih-card h3 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ih-ink);
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.md-typeset h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  margin-top: 0.2em;
}
.md-typeset h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-top: 2.2em;
}
.md-typeset h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.md-typeset a {
  color: var(--ih-amber);
  text-decoration-color: rgba(181, 112, 26, 0.4);
}
.md-typeset a:hover {
  color: var(--ih-honey);
}

.md-typeset hr {
  border-bottom: 1px solid var(--ih-line);
  margin: 2.4em 0;
}

::selection {
  background: #E7B24A;
  color: #2C1E10;
}

html {
  scroll-padding-top: 5.5rem;
}

/* ---------- 3. Layout: hide Material chrome, centre content ---------- */
.md-header { display: none !important; }
.md-tabs   { display: none !important; }

/* No left nav / TOC sidebars – our custom top nav covers everything */
.md-sidebar--primary,
.md-sidebar--secondary { display: none !important; }

.md-container { overflow-x: clip; }

.md-main__inner.md-grid {
  max-width: 1060px;
  margin: 0 auto;
}
.md-content { max-width: 100%; }
.md-content__inner {
  padding: 1.2rem 1.1rem 3rem;
}
.md-content__inner::before { display: none; } /* remove Material's spacer */

/* Page images get the soft storybook frame by default */
.md-typeset img {
  border-radius: 16px;
}

/* ---------- 4. Header / nav ---------- */
.ih-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 243, 227, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(52, 38, 26, 0.12);
}
.ih-topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo lockup: hexagon + wordmark */
.ih-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.ih-logo__hex {
  width: 26px;
  height: 30px;
  background: var(--ih-honey);
  display: inline-block;
}
.ih-logo__word {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ih-ink);
  white-space: nowrap;
  line-height: 1;
}

.custom-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}
.custom-nav__list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.custom-nav__item { position: relative; }

.custom-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  color: var(--ih-muted);
  text-decoration: none;
  font-family: "Spectral", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
}
.custom-nav__link:hover { color: var(--ih-amber); }
.custom-nav__link--active {
  color: var(--ih-amber);
  font-weight: 600;
}

.custom-nav__arrow { transition: transform 0.2s; }
.custom-nav__item--dropdown.open .custom-nav__arrow { transform: rotate(180deg); }

.custom-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ih-card);
  border: 1px solid var(--ih-line-strong);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(44, 30, 16, 0.14);
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0;
  min-width: 11rem;
  z-index: 100;
}
@media (hover: hover) {
  .custom-nav__item--dropdown:hover > .custom-nav__dropdown { display: block; }
  .custom-nav__item--dropdown:hover > .custom-nav__toggle .custom-nav__arrow { transform: rotate(180deg); }
}
.custom-nav__item--dropdown.open > .custom-nav__dropdown { display: block; }

.custom-nav__sub {
  display: block;
  padding: 0.5rem 1.2rem;
  color: var(--ih-muted);
  text-decoration: none;
  font-family: "Spectral", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.custom-nav__sub:hover {
  color: var(--ih-amber);
  background-color: rgba(217, 154, 43, 0.10);
}
.custom-nav__sub--active { color: var(--ih-amber); font-weight: 600; }

.custom-nav__item--book { margin-left: 0.5rem; }

/* Book a stay pill */
.ih-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ih-dark);
  color: var(--ih-cream) !important;
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.15rem;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ih-pill:hover {
  background: var(--ih-amber);
  transform: translateY(-1px);
}

/* Hamburger (mobile only) */
.hamburger { display: none; }

/* ---------- 5. Reusable components ---------- */

/* Hexagon helper */
.ih-hex {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Card */
.ih-card {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(44, 30, 16, 0.05);
}

/* Eyebrow label */
.ih-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 600;
  font-family: "Spectral", Georgia, serif;
  color: var(--ih-amber);
  margin: 0 0 0.6rem;
}

/* Buttons */
.md-typeset .ih-btn,
.ih-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ih-btn--honey { background: var(--ih-honey); color: var(--ih-dark) !important; }
.ih-btn--honey:hover { background: var(--ih-amber); color: #FFF8EA !important; transform: translateY(-2px); }
.ih-btn--dark { background: var(--ih-dark); color: var(--ih-cream) !important; }
.ih-btn--dark:hover { background: var(--ih-amber); color: #FFF8EA !important; transform: translateY(-2px); }
.ih-btn--ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #FFF8EA !important;
  border-color: rgba(255, 248, 234, 0.6);
  backdrop-filter: blur(2px);
}
.ih-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* Generic responsive grid */
.ih-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin: 1.6rem 0;
}

/* ---------- 6. Homepage hero ---------- */
.md-content__inner > .ih-hero:first-child { margin-top: -1.2rem; }
.ih-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ih-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 20, 10, 0.32) 0%,
    rgba(28, 20, 10, 0.04) 38%,
    rgba(28, 20, 10, 0.66) 100%);
}
.ih-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.6rem 4rem;
}
.ih-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 600;
  font-family: "Spectral", Georgia, serif;
  color: #F2D79A;
  margin: 0 0 0.8rem;
  text-shadow: 0 1px 6px rgba(20, 12, 4, 0.6);
}
.md-typeset .ih-hero h1,
.ih-hero h1 {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 1.04;
  color: #FFF8EA;
  max-width: 14ch;
  text-wrap: balance;
  margin: 0 0 0.7rem;
  text-shadow: 0 2px 18px rgba(20, 12, 4, 0.45);
}
.ih-hero__subhead {
  color: #F3E7CE;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  line-height: 1.6;
  margin: 0 0 1.6rem;
  text-shadow: 0 1px 10px rgba(20, 12, 4, 0.55);
}
.ih-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Painting credit line */
.ih-credit {
  max-width: 760px;
  margin: 1.4rem auto 0;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ih-muted);
}

/* ---------- 7. Homepage sections ---------- */
.md-typeset .ih-lead {
  text-align: center;
  max-width: 760px;
  margin: 3rem auto 1rem;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.3;
  color: var(--ih-ink);
}
.md-typeset .ih-lead + p {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--ih-muted);
}

/* Why-choose cards (numbered hexagon badges) */
.ih-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}
.ih-why__card {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(44, 30, 16, 0.05);
}
.ih-why__badge {
  width: 54px;
  height: 60px;
  background: var(--ih-pale);
  color: var(--ih-amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.md-typeset .ih-why__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.md-typeset .ih-why__card p { margin: 0; color: var(--ih-muted); }

/* The Setting: two columns */
.ih-setting {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  margin: 1.6rem 0;
}
.ih-setting__photos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.md-typeset .ih-setting__photos img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0;
}

/* Dark band – Who we're looking for */
.ih-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--ih-dark);
  color: var(--ih-cream);
  padding: 3.2rem 1.2rem;
}
.ih-band__inner { max-width: 900px; margin: 0 auto; }
.md-typeset .ih-band h2 { color: #FFF8EA; margin-top: 0; }
.md-typeset .ih-band p { color: #E9DCC2; }
.ih-ideal {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.ih-ideal li {
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid rgba(250, 243, 227, 0.14);
  color: #EFE4CC;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.ih-ideal li::before {
  content: "\2726"; /* ✦ */
  color: var(--ih-honey);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* Closing CTA */
.ih-cta {
  text-align: center;
  margin: 3rem auto 1rem;
  max-width: 640px;
}
.md-typeset .ih-cta h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}
.md-typeset .ih-cta p { color: var(--ih-muted); }

/* ---------- 8. Accommodation room cards ---------- */
.ih-rooms {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 1.8rem 0;
}
.ih-room {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 0;
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 30, 16, 0.05);
}
.ih-room__photo {
  background-size: cover;
  background-position: center;
  min-height: 180px;
}
.ih-room__ph {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  background: repeating-linear-gradient(135deg, #F3E2BC 0 12px, #EFD9AC 12px 24px);
}
.ih-room__ph span {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--ih-tan);
  background: rgba(255, 252, 244, 0.7);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.ih-room__body { padding: 1.4rem 1.6rem; }
.md-typeset .ih-room__body h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.3rem;
}
.md-typeset .ih-room__body p { margin: 0; color: var(--ih-muted); font-size: 0.92rem; }
.ih-tag {
  display: inline-block;
  background: var(--ih-pale);
  color: var(--ih-amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  font-family: "Spectral", Georgia, serif;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.ih-room__rate {
  padding: 1.4rem 1.6rem;
  border-left: 1px solid var(--ih-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 190px;
  background: rgba(251, 238, 201, 0.25);
}
.ih-room__price {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ih-ink);
  line-height: 1.2;
}
.ih-room__price small { display: block; font-family: "Spectral", serif; font-size: 0.75rem; color: var(--ih-tan); }

/* ---------- 9. Guest cards ---------- */
.ih-guests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}
.ih-guest {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(44, 30, 16, 0.05);
  display: flex;
  flex-direction: column;
}
.ih-guest__hex {
  width: 56px;
  height: 62px;
  background: var(--ih-pale);
  color: var(--ih-amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.md-typeset .ih-guest h3 { margin: 0 0 0.1rem; font-size: 1.25rem; }
.ih-guest__species { font-style: italic; color: var(--ih-tan); margin: 0 0 0.7rem; font-size: 0.92rem; }
.md-typeset .ih-guest p.ih-guest__blurb { color: var(--ih-muted); font-size: 0.92rem; margin: 0 0 1rem; flex: 1 1 auto; }
.ih-guest__footer {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ih-amber);
  border-top: 1px solid var(--ih-line);
  padding-top: 0.8rem;
}

/* ---------- 10. Our Story ---------- */
.ih-story {
  max-width: 740px;
  margin: 0 auto;
}
.md-typeset .ih-story p { color: var(--ih-muted); }
.ih-figure { margin: 2rem auto 0; }
.md-typeset .ih-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0;
}
.ih-figure figcaption {
  margin-top: 0.8rem;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ih-muted);
  text-align: center;
}

/* ---------- 11. Booking form ---------- */
.ih-form { max-width: 640px; margin: 1.8rem auto; }
.ih-form .ih-field { margin-bottom: 1.3rem; }
.ih-form label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--ih-tan);
  margin-bottom: 0.45rem;
  font-family: "Spectral", Georgia, serif;
}
.ih-form input,
.ih-form select,
.ih-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ih-line-strong);
  border-radius: 12px;
  background: var(--ih-cream);
  font-family: "Spectral", Georgia, serif;
  font-size: 1rem;
  color: var(--ih-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ih-form textarea { min-height: 120px; resize: vertical; }
.ih-form input:focus,
.ih-form select:focus,
.ih-form textarea:focus {
  outline: none;
  border-color: var(--ih-honey);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.18);
}
.ih-form .ih-btn { width: 100%; margin-top: 0.4rem; }

/* Review cards */
.ih-review { margin: 1.4rem 0; }
.md-typeset .ih-review > h3:first-child { margin-top: 0; }
.md-typeset .ih-review .admonition { margin-bottom: 0; }

/* ---------- 12. Footer ---------- */
.ih-footer {
  background: var(--ih-footer);
  color: #C9B68F;
  padding: 3rem 1.2rem 2.4rem;
}
.ih-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.ih-footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.ih-footer__hex { width: 26px; height: 30px; background: var(--ih-honey); display: inline-block; }
.ih-footer__word { font-family: "Young Serif", Georgia, serif; font-size: 1.3rem; color: #F2E4C4; }
.ih-footer__tagline { max-width: 46ch; margin: 0 auto 1.2rem; font-style: italic; color: #C9B68F; }
.ih-footer__copy { font-size: 0.85rem; color: #9C8A66; letter-spacing: 0.02em; }
.ih-footer a { color: #E2C98C; }

/* Hide Material's default footer (we render our own) */
.md-footer { display: none !important; }

/* ---------- 13. Admonition / table warmth ---------- */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 14px;
  border-left-width: 4px;
  background: var(--ih-card);
}
.md-typeset .admonition.tip,   .md-typeset details.tip   { border-color: var(--ih-honey); }
.md-typeset .admonition.note,  .md-typeset details.note  { border-color: var(--ih-tan); }
.md-typeset .admonition.quote, .md-typeset details.quote { border-color: var(--ih-amber); }
.md-typeset .admonition.info,  .md-typeset details.info  { border-color: var(--ih-amber); }
.md-typeset .admonition-title { background: rgba(217, 154, 43, 0.10); }
.md-typeset .tip > .admonition-title { background: rgba(217, 154, 43, 0.14); }

.md-typeset table:not([class]) {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ih-line);
}
.md-typeset table:not([class]) th {
  background-color: var(--ih-dark);
  color: var(--ih-cream);
  font-family: "Spectral", serif;
}

/* Legacy book-button (used across pages) – restyle to palette */
.book-button-wrapper { text-align: center; margin: 3rem 0 1rem; }
.md-typeset .book-button,
.book-button {
  display: inline-block;
  background-color: var(--ih-honey);
  color: var(--ih-dark) !important;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.15s, color 0.2s;
}
.md-typeset .book-button:hover,
.book-button:hover {
  background-color: var(--ih-amber);
  color: #FFF8EA !important;
  transform: translateY(-2px);
}

.md-typeset .md-button--primary {
  background-color: var(--ih-dark);
  border-color: var(--ih-dark);
  color: var(--ih-cream) !important;
}
.md-typeset .md-button--primary:hover {
  background-color: var(--ih-amber);
  border-color: var(--ih-amber);
}

/* ---------- 14. Responsive ---------- */
@media screen and (max-width: 60em) {
  .ih-setting { grid-template-columns: 1fr; }
  .ih-room { grid-template-columns: 160px 1fr; }
  .ih-room__rate {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--ih-line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media screen and (max-width: 48em) {
  .ih-topbar__inner { flex-wrap: wrap; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--ih-ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .custom-nav {
    display: none !important;
    width: 100%;
    order: 3;
  }
  .custom-nav.menu-open { display: block !important; }
  .custom-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
    gap: 0;
  }
  .custom-nav__item { width: 100%; text-align: center; }
  .custom-nav__link {
    justify-content: center;
    width: 100%;
    font-size: 1.02rem;
    padding: 0.65rem 1rem;
  }
  .custom-nav__dropdown {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .custom-nav__sub { text-align: center; }
  .custom-nav__item--book { margin: 0.6rem 0 0; }
  .custom-nav__item--book .ih-pill { width: 100%; justify-content: center; }

  .ih-room { grid-template-columns: 1fr; }
  .ih-room__photo, .ih-room__ph { min-height: 160px; }
  .ih-room__rate { flex-direction: column; align-items: flex-start; }
  .ih-ideal { grid-template-columns: 1fr; }
  .ih-card { padding: 22px; }
  .ih-hero__inner { padding-bottom: 3rem; }

  /* Keep big serif headings inside the viewport on narrow screens */
  .md-typeset h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .md-typeset h2 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  .md-typeset h3 { font-size: 1.2rem; }
  .md-typeset .ih-hero h1,
  .ih-hero h1 { font-size: clamp(34px, 11vw, 52px); }
  .md-typeset .ih-lead { font-size: clamp(21px, 6vw, 28px); }
}
