/* Loaded only on the Hotel Malhar Empire room, hall and gallery overviews. */
:root[data-theme="heritage"] {
  --paper: #faf8f3;
  --surface: #f1ede5;
  --ink: #27251f;
  --muted: #5e594f;
  --line: #d8d2c6;
  --accent: #854721;
  --saffron: #f1b982;
  --serif: Georgia, serif;
}
body { font-family: system-ui, sans-serif; }
[data-theme="heritage"] .mast { position: sticky; top: 0; z-index: 4; border-color: var(--line); background: var(--paper); }
@supports (backdrop-filter: blur(12px)) {
  [data-theme="heritage"] .mast { background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
}
.page-intro, .page-intro.travel-intro { padding-block: clamp(1.5rem, 3.4vw, 3rem) 1.15rem; }
.page-intro h1 { color: var(--ink); font: 500 clamp(2rem, 1.4rem + 2.2vw, 3.6rem)/1.12 var(--serif); letter-spacing: -.035em; margin-block: 0 .45em; overflow-wrap: anywhere; }
.page-intro .lead { color: var(--muted); margin-block-start: 0; }
.option-stack { gap: 0; }
.section.content-start { padding-top: 0; }
.option-tile {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "photos";
  align-items: center; gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3.5rem) 0;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
[data-theme="heritage"] .option-tile:hover { box-shadow: none; }
.option-copy.room-aside { grid-area: copy; background: transparent; padding: 0; border: 0; }
.option-copy h2 { color: var(--ink); font: 500 clamp(1.65rem, 3vw, 2.7rem)/1.15 var(--serif); }
.option-copy p { max-width: 53ch; }
.option-photos {
  grid-area: photos; width: min(100%, 26rem); align-self: start;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
.option-photos > *, .option-photos > :first-child { grid-column: auto; aspect-ratio: 16/10; border-radius: .6rem; overflow: hidden; }
.option-photos .photo img { width: 100%; height: 100%; object-fit: cover; }
.option-photos .photo a { display: block; height: 100%; }
.room-amenities { border-block: 1px solid var(--line); margin-bottom: 1rem; }
.room-amenities summary { cursor: pointer; padding-block: .65rem; color: var(--accent); font-weight: 650; }
.room-amenities[open] .option-lists { margin: 0 0 1rem; }
.actions .button, .mast-action { border-radius: 2rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:where(a, button, summary) { scroll-margin-block: 7rem; }
@media (min-width: 48rem) {
  .option-tile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy photos"; }
  .option-tile:nth-child(even) { grid-template-areas: "photos copy"; }
  .option-photos { align-self: center; justify-self: center; }
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="heritage"] { color-scheme: dark; --paper: #201f1c; --surface: #292722; --ink: #faf6ee; --muted: #d3c8b9; --accent: #efb986; --line: #61594d; }
  .mast nav { background: var(--paper); }
  .skip { color: #27251f; }
}
@media (prefers-reduced-motion: no-preference) {
  .actions .button:active { transform: translateY(1px); }
  [data-theme="heritage"] :is(.option-tile, .button, .text-link, .mast-action) { transition-property: opacity, transform; }
}

/* Photo gallery index and its continuation pages. */
.property-gallery { padding-block: .5rem clamp(3rem, 6vw, 6rem); }
.gallery-range { margin: 0 0 1rem; color: var(--muted); font-size: .94rem; font-variant-numeric: tabular-nums; }
.property-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1.25vw, 1.2rem); }
.property-gallery-grid .photo { margin: 0; aspect-ratio: 4/3; background: var(--surface); border-radius: .7rem; }
.property-gallery-grid a { display: block; height: 100%; overflow: hidden; border-radius: inherit; }
.property-gallery-grid .photo:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.property-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery .gallery-pagination { justify-content: center; gap: .4rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.property-gallery .gallery-pagination :is(a, span) { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 2rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.property-gallery .gallery-pagination :is(a:hover, [aria-current="page"]) { color: var(--paper); background: var(--ink); }
@media (min-width: 48rem) {
  .property-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Jejuri destination index */
.jejuri-guide { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.25rem); }
.jejuri-guide article {
  display: flex; flex-direction: column; align-items: start; min-width: 0;
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  padding: 1rem 0 0; background: transparent;
}
.jejuri-guide .photo { aspect-ratio: 16/10; overflow: hidden; border-radius: .7rem; }
.jejuri-guide h2 { color: var(--ink); font: 500 clamp(1.55rem, 2.6vw, 2.25rem)/1.12 var(--serif); letter-spacing: -.025em; }
.jejuri-guide .eyebrow { color: var(--muted); }
.jejuri-guide .destination-distance { color: var(--accent); font-weight: 650; }
.jejuri-guide .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.jejuri-guide + .travel-overview { padding-block: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
@media (min-width: 44rem) {
  .jejuri-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jejuri-guide article:first-child {
    display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-content: center; align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem);
  }
  .jejuri-guide article:first-child > .photo { grid-column: 1; grid-row: 1 / span 5; margin: 0; }
  .jejuri-guide article:first-child > :not(.photo) { grid-column: 2; }
}
@media (min-width: 70rem) {
  .jejuri-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Jejuri travel blog index */
.blog-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.blog-grid article {
  min-width: 0; border: 0; border-top: 1px solid var(--line);
  background: transparent; padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}
.blog-grid .photo { aspect-ratio: 16/9; border-radius: .7rem; overflow: hidden; }
.blog-grid h2 { margin: 0; color: var(--ink); font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.13 var(--serif); letter-spacing: -.025em; }
.blog-grid article > p { max-width: 58ch; margin-block: .65rem .75rem; color: var(--muted); }
.blog-grid .text-link { color: var(--accent); }
@media (min-width: 44rem) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .blog-grid article { display: grid; grid-template-columns: minmax(7.5rem, .62fr) minmax(0, 1.38fr); column-gap: 1.25rem; align-content: start; }
  .blog-grid article > .photo { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 4/5; margin: 0; }
  .blog-grid article > :not(.photo) { grid-column: 2; }
}

/* Contact and enquiries */
.contact-shortcuts { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.contact-shortcuts a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); }
.contact-layout.hotel-contact-layout { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.hotel-contact-layout > .contact-details { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.hotel-contact-layout > .form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.1rem, 3vw, 2.5rem); }
.hotel-contact-layout h2 { margin-top: 0; font: 500 clamp(1.7rem, 3vw, 2.6rem)/1.15 var(--serif); color: var(--ink); scroll-margin-top: 8rem; }
.hotel-contact-layout .hotel-contact-map iframe { border-radius: .65rem; }
.hotel-contact-layout :is(input, select, textarea) { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: .45rem; min-height: 2.75rem; }
.hotel-contact-layout .enquiry-phone-input input { border-start-start-radius: 0; border-end-start-radius: 0; }
.hotel-contact-layout .enquiry-phone-input > span { background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: .45rem 0 0 .45rem; }
.hotel-contact-layout .button { border-radius: 2rem; }
.hotel-contact-layout .form-note, .hotel-contact-layout .optional { color: var(--muted); }
@media (min-width: 54rem) {
  .contact-layout.hotel-contact-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* Executive room detail */
.option-detail { grid-template-columns: minmax(0, 1fr); align-items: start; }
.option-detail .option-detail-gallery { min-width: 0; }
.option-detail .option-detail-gallery .photo { border-radius: .65rem; overflow: hidden; }
.option-detail .option-detail-gallery .photo:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.option-detail .room-aside { width: 100%; padding: clamp(1.1rem, 2vw, 1.75rem); background: var(--surface); border-radius: 1rem; }
.option-detail h2 { color: var(--ink); font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.15 var(--serif); }
.option-detail .detail-list { gap: .5rem 1.75rem; }
.option-detail .detail-list li { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 1rem 0; }
.option-detail .option-photo-expander summary { border-radius: 2rem; color: var(--accent); background: var(--paper); }
@media (min-width: 54rem) {
  .option-detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .option-detail > section { grid-column: 1 / -1; }
  .option-detail .option-detail-gallery .option-photos > :is(.photo, .option-photo-slot) {
    flex-basis: calc((100% - .625rem) / 2);
  }
}

/* Attraction guides, travel articles, photo credits and privacy information. */
.destination .destination-route { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.destination-route .button { border-radius: 2rem; }
.destination-gallery .photo, .blog-cover .photo { overflow: hidden; border-radius: .8rem; }
.destination-gallery .photo:focus-within, .blog-cover .photo:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.destination .destination-caption, .blog-article .destination-caption { line-height: 1.5; margin-top: .65rem; }
.destination-copy, .reading { width: min(100%, 68ch); margin-inline: auto; }
.shell.reading { width: min(87.5%, 68ch); }
.destination-copy section, .reading > section { padding-block: clamp(.85rem, 2vw, 1.6rem); }
.destination-copy section + section, .reading > section + section { border-top: 1px solid var(--line); }
.destination-copy h2, .reading h2 { color: var(--ink); font: 500 clamp(1.55rem, 3vw, 2.35rem)/1.16 var(--serif); letter-spacing: -.025em; }
.destination-copy p, .reading p { line-height: 1.75; }
.sources { overflow-wrap: anywhere; }
.option-detail .room-aside .button { border-radius: 2rem; }
