/* The Map House — site styles. Colors and type follow the approved mockups. */
:root {
  --teal: #17424A;
  --navy: #1F2A44;
  --sand: #F5E8B8;
  --sand-pale: #FAF3D9;
  --blue-pale: #DDEEF3;
  --magenta: #8E2460;
  --line: #D5E0E4;
  --grey: #5A6675;
  --open: #E4F2E7;
  --booked: #C3CCD2;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Barlow', 'Helvetica Neue', sans-serif; font-size: 18px; line-height: 1.6; color: var(--navy); background: #FFFFFF; }
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--magenta); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.wrap.narrow { max-width: 900px; }
.wrap.tight { padding-top: 48px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; color: var(--teal); margin: 0; }
h1 { font-size: clamp(44px, 7vw, 64px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-size: clamp(34px, 5vw, 46px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
h3 { font-size: 28px; line-height: 1.1; letter-spacing: 0.05em; text-transform: uppercase; }
.lead { font-size: 19px; }
.measure { max-width: 860px; }
.stack > * + * { margin-top: 16px; }

.btn { display: inline-block; padding: 14px 28px; background: var(--navy); color: #FFFFFF; text-decoration: none; font-family: var(--cond); font-weight: 600; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px; border: 2px solid var(--navy); cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.btn.outline { background: transparent; color: var(--teal); border-color: var(--teal); padding: 12px 24px; font-size: 19px; }
.btn.outline:hover { background: var(--teal); color: #FFFFFF; }

/* Header */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); min-height: 44px; }
.brand span { font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--magenta); border-bottom: 2px solid var(--magenta); padding-bottom: 8px; }
.nav a.icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
.nav a.icon + a.icon { margin-left: -22px; }
.nav-toggle { display: none; min-height: 44px; padding: 8px 16px; background: #FFFFFF; border: 2px solid var(--teal); border-radius: 4px; color: var(--teal); font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-top: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 0; padding-bottom: 12px; }
  .nav a.icon { width: 44px; border-top: 0; display: inline-flex; }
  .nav .social { display: flex; width: 100%; border-top: 1px solid var(--line); }
  .nav a.icon + a.icon { margin-left: 0; }
}
.nav .social { display: flex; align-items: center; }

/* Bands */
.band-blue { background: var(--blue-pale); }
.band-sand { background: var(--sand-pale); }
.band-teal { background: var(--teal); color: #FFFFFF; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; }
.split > .text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.split > .text p { margin: 0; }
.split > .media { flex: 1 1 440px; min-width: 0; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo.whole { aspect-ratio: auto; height: auto; }
figure { margin: 0; }
figcaption { font-size: 16px; color: var(--grey); margin-top: 8px; }

/* Home */
.hero h1 { font-size: clamp(48px, 8vw, 76px); line-height: 0.98; letter-spacing: 0.01em; text-transform: none; }
.hero .wrap { padding-top: 56px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.hero .media { position: relative; padding-bottom: 36px; }
.hero .seal { position: absolute; left: -18px; bottom: 0; width: 148px; height: 148px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .hero .seal { left: 0; width: 112px; height: 112px; } .hero .seal svg { width: 104px; height: 104px; } }
.center { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.center p { max-width: 680px; margin: 0; }
.video { display: block; position: relative; width: 100%; margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy); padding: 0; border: 0; cursor: pointer; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.video:hover .play { background: var(--magenta); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 32px; }
.head-row > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.head-row p { max-width: 640px; margin: 0; }
.trio { display: flex; flex-wrap: wrap; gap: 20px; }
.trio img { flex: 1 1 280px; min-width: 0; }
.quotes { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.quotes figure { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
blockquote { margin: 0; font-family: 'Libre Caslon Text', Georgia, serif; font-style: italic; font-size: clamp(20px, 3vw, 25px); line-height: 1.45; }
.quotes figcaption, .quote-by { font-family: var(--cond); font-weight: 600; font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); margin: 0; }
.cta { background: var(--sand); }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: #FFFFFF; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--cond); font-weight: 600; font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a { color: #FFFFFF; text-decoration: none; padding: 10px 0; }
.site-footer a:hover { color: var(--sand); }
.site-footer a.icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }

/* Inner pages */
.page-head .wrap { padding-top: 48px; padding-bottom: 48px; }
.page-head .wrap > * + * { margin-top: 16px; }
.prose h2 { font-size: 32px; margin-top: 40px; margin-bottom: 12px; }
.prose > h2:first-child { margin-top: 0; }
.pull { font-family: 'Libre Caslon Text', Georgia, serif; font-style: italic; border-left: 4px solid var(--sand); padding-left: 18px; margin: 0 0 12px; }
.rows > section { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.rows > section:first-child { border-top: 0; padding-top: 0; }
.rows > section > figure, .rows > section > .map { flex: 1 1 400px; min-width: 0; }
.rows > section > div { flex: 1 1 400px; min-width: 0; }
.rows > section:nth-child(even) > figure, .rows > section:nth-child(even) > .map { order: 2; }
.rows h3 { margin-bottom: 10px; }
.map iframe, .map #gmap { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; }
.map #gmap { overflow: hidden; background: var(--blue-pale); }
.map #gmap iframe { height: 100%; aspect-ratio: auto; border: 0; }
.faq h2 { font-size: 26px; letter-spacing: 0.03em; text-transform: none; margin: 0 0 8px; }
.faq > div { padding: 28px 0; border-top: 1px solid var(--line); }
.faq > div:first-child { border-top: 0; padding-top: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery figure { display: flex; flex-direction: column; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--blue-pale); border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.2s; }
.gallery button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } html { scroll-behavior: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 22, 38, 0.94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.lightbox.open { display: flex; }
.lightbox img { display: block; max-width: min(94vw, 1400px); max-height: min(calc(100vh - 170px), 933px); width: auto; height: auto; border-radius: 4px; }
.lightbox img.pano { max-width: 96vw; }
.lightbox .cap { color: #FFFFFF; text-align: center; max-width: 900px; margin-top: 14px; min-height: 2.4em; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--magenta); }
.lightbox .x { top: 8px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; margin-top: -26px; }
.lightbox .next { right: 12px; top: 50%; margin-top: -26px; }
@media (max-width: 700px) { .lightbox .prev, .lightbox .next { top: auto; bottom: 12px; margin: 0; } .lightbox { padding-bottom: 76px; } }

/* Contact */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input, .form textarea { font: inherit; color: var(--navy); padding: 12px 14px; border: 1px solid var(--grey); border-radius: 4px; background: #FFFFFF; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.note { padding: 16px 18px; background: var(--open); border-radius: 6px; font-weight: 500; }
.note.bad { background: #F6DDE9; }
.two { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.two > * { flex: 1 1 360px; min-width: 0; }

/* Calendar */
.cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.cal-head h2 { font-size: 34px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 16px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 18px; border-radius: 3px; display: inline-block; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; }
.jump strong { font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.jump label { display: flex; align-items: center; gap: 8px; }
.jump select { min-height: 46px; padding: 8px 12px; font: inherit; color: var(--navy); background: #FFFFFF; border: 1px solid var(--grey); border-radius: 4px; }
.cal-hint { display: inline-block; font-weight: 500; padding: 12px 18px; background: var(--sand-pale); border-radius: 6px; }
.cal-stack > * + * { margin-top: 24px; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 32px; align-items: start; }
.month { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding-bottom: 8px; }
.month h3 { padding: 10px 16px; background: var(--blue-pale); font-size: 24px; letter-spacing: 0.08em; }
.month.picked { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.month.picked h3 { background: var(--teal); color: #fff; }
.wk { display: grid; grid-template-columns: 66px repeat(7, minmax(0, 1fr)); padding: 0 8px; margin-bottom: 2px; }
.wk.dow { padding-top: 8px; padding-bottom: 6px; margin: 0; font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); text-align: center; }
.wk.dow > :first-child { text-align: left; }
.wk .rent { display: flex; align-items: center; font-weight: 600; font-size: 17px; color: var(--teal); }
.day { display: flex; align-items: center; justify-content: center; min-height: 46px; width: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid #FFFFFF; border-radius: 0; font: inherit; font-weight: 500; font-size: 17px; color: var(--navy); background: transparent; }
button.day { cursor: pointer; }
button.day:hover, button.day:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.day.o { background: var(--open); }
.day.b { background: var(--booked); color: #45505C; }
.day.i { background: linear-gradient(135deg, var(--open) 50%, var(--booked) 50%); }
.day.u { background: linear-gradient(135deg, var(--booked) 50%, var(--open) 50%); }
.day.past { color: #A9B3BA; }
.day.out { color: #7C8791; }
.day.out.o { background: #F1F8F3; }
.day.out.b { background: #E3E8EB; }
.day.out.i { background: linear-gradient(135deg, #F1F8F3 50%, #E3E8EB 50%); }
.day.out.u { background: linear-gradient(135deg, #E3E8EB 50%, #F1F8F3 50%); }
.day.sel, .day.out.sel { background: var(--teal); color: #FFFFFF; font-weight: 600; }
.more { display: flex; justify-content: center; }
.pick { position: sticky; bottom: 0; z-index: 5; display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; background: var(--sand-pale); border: 2px solid var(--navy); border-radius: 6px; box-shadow: 0 -6px 18px rgba(31, 42, 68, 0.18); }
.pick.on { display: flex; }
.pick .what { flex: 1 1 300px; min-width: 0; }
.pick .what b { display: block; font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.pick .what span { display: block; font-weight: 600; font-size: 20px; }
.pick .what em { display: block; font-style: normal; color: var(--magenta); font-weight: 500; }
.pick .do { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.pick .do .btn { flex: 1 1 auto; text-align: center; padding: 16px 30px; font-size: 22px; }
.pick .clear { cursor: pointer; padding: 10px 4px; min-height: 44px; background: transparent; border: 0; color: var(--teal); font: inherit; text-decoration: underline; }
.fees { background: var(--sand-pale); border-radius: 6px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 24px 64px; }
.fees > div { flex: 1 1 340px; min-width: 0; }
.fees h3 { font-size: 26px; margin-bottom: 6px; }
.fees dl { margin: 0; }
.fees dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #D9CFA6; }
.fees dl > div:last-child { border-bottom: 0; }
.fees dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 480px) { .wk { grid-template-columns: 56px repeat(7, minmax(0, 1fr)); padding: 0 4px; } .wk .rent { font-size: 15px; } .day { font-size: 15px; } .fees { padding: 20px 16px; } .wrap { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 480px) { .site-header .bar { padding: 12px 16px; } .brand span { font-size: 22px; } .brand svg { width: 44px; height: 44px; } }
@media (max-width: 600px) { .pick { padding: 10px 14px; gap: 8px 16px; } .pick .what span { font-size: 17px; } .pick .do { flex-wrap: nowrap; width: 100%; } .pick .do .btn { padding: 12px 14px; font-size: 19px; } }
a.icon:hover svg { opacity: 0.7; }
.site-footer a.icon { background: #FFFFFF; border-radius: 50%; width: 40px; height: 40px; margin-left: 4px; }
/* Long-form text (The House): room between paragraphs, quotes and headings */
.split > .text.prose p { margin: 0 0 22px; }
.split > .text.prose > * + * { margin-top: 0; }
.split > .text.prose h2 { margin: 56px 0 16px; }
.split > .text.prose > h2:first-child { margin-top: 0; }
.split > .text.prose p.pull { margin: 0 0 14px; padding: 2px 0 2px 20px; }
.split > .text.prose h2 + p + p.pull { margin-top: 28px; }
.split > .text.prose p.pull + p:not(.pull) { margin-top: 36px; }
.faq p { margin-bottom: 18px; }
.faq p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
