/* The Annexe
   Minimal: warm ivory, near-black like the ironwork,
   walnut brown only for small accents. Change a value here and it updates everywhere. */
:root {
  --bg: #F8F2E4;           /* page background: ivory */
  --bg-soft: #F1E9D6;      /* the occasional soft section */
  --iron: #2B2520;         /* text, buttons */
  --walnut: #4A3728;       /* small accents, links */
  --muted: #6A5D51;
  --line: #E0D5BE;
  --white: #FDFAF3;        /* cards: a lighter ivory, so they lift off the page without glaring */

  --display: "Marcellus", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section: clamp(4rem, 9vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--iron);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--walnut); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .strip:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; color: var(--iron); }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.lede { max-width: 62ch; color: var(--muted); margin-bottom: 2.5rem; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--iron); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  background: var(--iron); color: var(--bg);
  border: 1.5px solid var(--iron); border-radius: 2px;
  font: 700 .98rem/1.2 var(--sans); text-decoration: none;
}
.btn:hover { background: var(--walnut); border-color: var(--walnut); }
.btn--small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .92rem; }
.btn--outline { background: transparent; color: var(--iron); }
.btn--outline:hover { background: var(--white); color: var(--iron); border-color: var(--iron); }

/* Image wrapper: shows the expected file name until the real photo is added */
.img { position: relative; overflow: hidden; background: var(--bg-soft); }
.img img { width: 100%; height: 100%; object-fit: cover; }
.img.missing img { visibility: hidden; }
.img.missing::after {
  content: attr(data-file);
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 1rem; text-align: center;
  font: 700 .85rem/1.3 var(--sans); color: #8A7E70;
  background: repeating-linear-gradient(135deg, #EFE8DA 0 14px, #E8E0CF 14px 28px);
}

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.75rem;
  padding: .75rem var(--gap);
  background: rgba(248, 242, 228, .96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--iron);
}
.bar__name { font: 400 1.4rem/1 var(--display); color: var(--iron); text-decoration: none; }
.bar__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.bar__nav a { color: var(--iron); text-decoration: none; font-size: .95rem; }
.bar__nav a:hover { color: var(--walnut); text-decoration: underline; }
@media (max-width: 800px) {
  .bar__nav { display: none; }
  .bar .btn { margin-left: auto; }
}

/* Hero: name and text on the left, one photo in an arched frame on the right */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gap) clamp(4rem, 9vw, 6.5rem);
}
.hero__name { font-size: clamp(3rem, 6.4vw, 5rem); line-height: 1; margin-bottom: 1.5rem; white-space: nowrap; }
.hero__lead { font-size: 1.2rem; max-width: 30ch; margin-bottom: .4rem; }
.hero__price { color: var(--muted); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; /* semicircular top, like the gate arches */
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero__text { text-align: center; }
  .hero__lead, .hero__price { text-wrap: balance; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__photo { max-width: 420px; width: 100%; justify-self: center; }
}

/* About */
.about__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.about__text p { max-width: 54ch; }
.about__rating { color: var(--walnut); }
.about__photo { aspect-ratio: 4 / 5; border-radius: 2px; }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; }
}

/* Rooms */
.rooms__grid {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.room { border: 1px solid var(--line); background: var(--white); }
.room__photo {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 3 / 2;
}
.room__count {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 2;
  padding: .4rem .75rem;
  background: rgba(248, 242, 228, .92); color: var(--iron);
  font: 700 .85rem/1.2 var(--sans);
}
.room__photo:hover .room__count { background: var(--white); }
.room__body { padding: clamp(1.25rem, 3vw, 1.75rem); }
.room__type { font: 400 1.5rem/1.2 var(--display); color: var(--iron); margin-bottom: .35rem; }
.room__price { margin-bottom: 1rem; color: var(--muted); }
.room__amount { font: 400 1.6rem/1 var(--display); color: var(--walnut); margin-right: .2rem; }
.room__facts { list-style: none; margin: 0 0 1rem; padding: 0; }
.room__facts li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.room__names { margin: 0; font-style: italic; color: var(--muted); font-size: .95rem; }

.amenities { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.amenities h3 { margin-bottom: .9rem; }
.amenities ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.amenities li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* Shared spaces strip */
.spaces { padding-bottom: calc(var(--section) - 1rem); }
.strip {
  --edge: max(var(--gap), calc((100% - var(--wrap)) / 2 + var(--gap)));
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: .5rem var(--edge) 1rem;
  scrollbar-width: thin;
}
.strip__item { flex: 0 0 auto; width: min(72vw, 330px); margin: 0; scroll-snap-align: start; }
.strip__item .img { aspect-ratio: 3 / 4; border-radius: 2px; }
.strip__item figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* Rules */
.rules { background: var(--bg-soft); }
.rules__grid {
  display: grid; gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.times { margin: 1.5rem 0 1rem; }
.times div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--line);
}
.times div:last-child { border-bottom: 1px solid var(--line); }
.times dt { color: var(--muted); }
.times dd { margin: 0; font: 400 1.15rem/1.3 var(--display); }
.times__note { color: var(--muted); font-size: .95rem; }
.rules__list { margin: 0; padding: 0 0 0 1.3rem; }
.rules__list li { padding: 0 0 1rem .3rem; max-width: 62ch; }
.rules__list li::marker { color: var(--walnut); }
@media (max-width: 760px) { .rules__grid { grid-template-columns: 1fr; } }

/* Guest guide */
.guide {
  display: grid; gap: 2.5rem var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.guide__group h3 { padding-bottom: .6rem; border-bottom: 1px solid var(--iron); margin-bottom: .25rem; }
.guide ul, .emergency ul { list-style: none; margin: 0; padding: 0; }
.guide li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.guide li a, .guide__plain { display: block; font-weight: 700; }
.guide li a { text-decoration: none; color: var(--iron); }
.guide li a:hover { color: var(--walnut); text-decoration: underline; }
.guide li span:last-child { display: block; color: var(--muted); font-size: .95rem; }

.emergency {
  margin-top: 3.5rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid #A33A22;
}
.emergency h3 { margin-bottom: 1rem; }
.emergency ul { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.emergency a { display: block; font: 400 1.35rem/1.3 var(--display); color: var(--iron); text-decoration: none; }
.emergency a:hover { color: #A33A22; }
.emergency span { color: var(--muted); font-size: .95rem; }

/* Location */
.location__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1.3fr; align-items: start; }
address { font-style: normal; font-size: 1.1rem; line-height: 1.7; margin-bottom: 1rem; }
.location__hint { color: var(--muted); max-width: 40ch; }
.location__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.map { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .location__grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--iron); padding: 2.5rem 0 3rem; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.foot__name { font: 400 1.5rem/1 var(--display); color: var(--iron); margin: 0; }
.foot p { margin: 0; }
.foot__links a { color: var(--iron); margin-right: 1.25rem; text-decoration: none; white-space: nowrap; }
.foot__links a:hover { text-decoration: underline; }
.foot__small { font-size: .88rem; width: 100%; line-height: 1.7; }

/* Photo viewer */
.viewer {
  width: min(96vw, 1100px); max-height: 94vh; padding: 0;
  border: 0; border-radius: 2px; background: var(--iron); color: var(--bg);
}
.viewer::backdrop { background: rgba(20, 16, 12, .85); }
.viewer__top { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.viewer__title { font: 400 1.25rem/1.2 var(--display); margin: 0; }
.viewer__count { margin: 0 auto 0 0; color: #BDB3A6; font-size: .95rem; }
.viewer__stage { width: 100%; height: min(74vh, 64vw); background: #1E1915; }
.viewer__stage img { object-fit: contain; }
.viewer__stage.missing::after { background: #1E1915; color: #BDB3A6; }
.viewer__nav { display: flex; justify-content: space-between; padding: .75rem 1rem; }
.viewer button {
  min-height: 2.75rem; padding: .5rem 1.1rem; cursor: pointer;
  background: transparent; color: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 2px;
  font: 700 .95rem/1 var(--sans);
}
.viewer button:hover { border-color: var(--bg); }
