/* Hotel Margit, site styles */
@font-face { font-family: "Antonio"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/antonio-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Antonio"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/antonio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }
/* Layout: full-bleed courtyard hero with an HOTEL / MARGIT wordmark from the logo and booking bar, then alternating
   photo/text bands that walk the guest from the front gate to the room, the breakfast table, the courtyard and the street. */
:root {
  --paper: #f6f4f0;      /* limewash walls */
  --stone: #e9e4dd;      /* stair stone */
  --iron: #262321;       /* wrought-iron gate */
  --iron-soft: #5f5852;
  --facade: #669c9e;     /* Margit teal, from the logo */
  --copper: #3f7477;     /* deeper Margit teal for small text */
  --brand-btn: #4a7f82;  /* teal for buttons and bands, readable with white text */
  --garden: #4c5843;     /* courtyard green */
  --line: rgba(38,35,33,.16);
  --on-photo: #fbf9f6;
  --font-display: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;  /* condensed, like MARGIT in the logo */
  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.375rem; --step-2: 2rem; --step-3: 3rem; --step-4: clamp(5.5rem, 17vw, 13rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1d1b19; --stone: #262320; --iron: #ece6de; --iron-soft: #b3aba2; --facade: #84b9bb; --copper: #9ccbcd; --garden: #9aab8c; --line: rgba(236,230,222,.16); color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #1d1b19; --stone: #262320; --iron: #ece6de; --iron-soft: #b3aba2; --facade: #84b9bb; --copper: #9ccbcd; --garden: #9aab8c; --line: rgba(236,230,222,.16); color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { animation: none !important; transition: none !important } }
html { -webkit-text-size-adjust: 100% }
body { -webkit-font-smoothing: antialiased; background: var(--paper); color: var(--iron); font-family: var(--font-body); font-weight: 300; font-size: var(--step-0); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r) }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.05; letter-spacing: .01em; text-wrap: balance; margin: 0 }
h2 { font-size: clamp(2.6rem, 6vw, 4rem) }
h3 { font-size: var(--step-2); font-weight: 300 }
p { margin: 0; max-width: 62ch }
.lede { font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.5; font-weight: 300 }
.muted { color: var(--iron-soft) }
.btn { display: inline-flex; align-items: center; gap: .6em; font: 400 var(--step--1)/1 var(--font-body); letter-spacing: .14em; text-decoration: none; padding: 1.05em 1.8em; border-radius: 999px; border: 1px solid currentColor; transition: background .25s, color .25s }
.btn-solid { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff }
.btn-solid:hover { background: var(--iron); border-color: var(--iron); color: var(--paper) }


/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 16; background: var(--paper) }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: var(--paper); color: var(--iron); border-bottom: 1px solid var(--line) }
.mainbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-block: 1.1rem; max-width: none }
.logo { display: inline-grid; justify-items: center; justify-self: start; text-decoration: none; color: var(--facade); line-height: 1; margin: 0 }
.logo .l-hotel { font: 300 .62em/1 var(--font-body); letter-spacing: .5em; margin-right: -.5em; margin-bottom: .2em }
.logo .l-margit { font: 300 2.3em/.9 var(--font-display); letter-spacing: .05em; margin-right: -.05em }
.site-head .logo { font-size: 1.1rem }
.nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.8rem); align-items: center; font-size: 1.02rem; font-weight: 300 }
.nav a { text-decoration: none; padding-block: .3rem; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s }
.nav a:hover, .nav a.here { border-bottom-color: currentColor }
.nav a.here { color: var(--copper) }
.lang { display: flex; gap: .35rem; font-size: 13px }
.lang button { background: none; border: 0; color: inherit; font: inherit; letter-spacing: .08em; padding: .2em .1em; cursor: pointer; opacity: .75 }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 500; color: var(--iron); text-decoration: underline; text-underline-offset: 4px }
.head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem }
.btn-reserve { display: inline-flex; align-items: center; background: var(--brand-btn); color: #fff; text-decoration: none; font: 400 13px/1 var(--font-body); letter-spacing: .22em; padding: 1.25em 2.2em; border-radius: 0; transition: background .2s }
.btn-reserve:hover { background: var(--iron); color: var(--paper) }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 0; font: 400 13px var(--font-body); letter-spacing: .12em; padding: .9em 1.2em; cursor: pointer }
.menu-panel { position: fixed; inset: 0; z-index: 30; background: var(--paper); color: var(--iron); display: grid; align-content: start; gap: 2rem; padding: calc(env(safe-area-inset-top, 0px) + 1.4rem) max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)) }
.menu-panel .top { display: flex; justify-content: space-between; align-items: center }
.menu-panel nav { display: grid; gap: .3rem }
.menu-panel nav a { font: 300 2.8rem/1.2 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line); padding-block: .5rem }
.menu-panel .btn-reserve { justify-self: start }
@media (max-width: 1100px) { .mainbar { grid-template-columns: auto 1fr auto } .nav { justify-content: center; gap: 1.3rem; font-size: .95rem } .btn-reserve { padding: 1.1em 1.4em; letter-spacing: .14em } }
@media (max-width: 860px) { .nav { display: none } .menu-btn { display: inline-flex } .mainbar { grid-template-columns: 1fr auto } }
@media (max-width: 560px) { .head-lang { display: none } .mainbar { gap: .8rem; padding-block: .8rem } .head-actions { gap: .5rem } .btn-reserve { padding: 1.05em 1.1em; letter-spacing: .12em; font-size: 12px } .menu-btn { padding: .95em 1em; font-size: 12px } .site-head .logo { font-size: .95rem } }

/* Hero */
.hero { position: relative; color: var(--on-photo); min-height: min(82vh, 820px); min-height: min(82svh, 820px); display: grid; align-items: center; overflow: hidden; background: #2b2a26 }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none }
.slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease }
.slides li.on { opacity: 1 }
.slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear }
.slides li.on img { transform: scale(1) }
.slide-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: .6rem }
.slide-ctrl .dot { width: 34px; height: 22px; background: none; border: 0; padding: 0; cursor: pointer; position: relative }
.slide-ctrl .dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.45) }
.slide-ctrl .dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 0; background: #fff }
.slide-ctrl .dot[aria-current="true"]::after { width: 100%; transition: width var(--slide-ms, 6500ms) linear }
.hero.paused .slide-ctrl .dot[aria-current="true"]::after { transition: none }
.slide-ctrl .pause { margin-left: .6rem; background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 999px; font: 400 12px var(--font-body); letter-spacing: .06em; padding: .35em .9em; cursor: pointer }
.slide-caption { position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); font-size: 13px; opacity: .85; margin-right: 1rem }
@media (max-width: 760px) { .slide-ctrl { gap: .35rem } .slide-ctrl .dot { width: 24px } .slide-caption { display: none } .hero-inner { padding-bottom: 4.5rem } }
@media (prefers-reduced-motion: reduce) { .slides img, .slides li.on img { transform: none } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.32) 35%, rgba(20,18,16,.38) 60%, rgba(20,18,16,.7) 100%) }
.hero-inner { position: relative; z-index: 2; text-align: center; padding-top: 3.5rem; padding-bottom: 4.5rem; display: grid; gap: 2.4rem; justify-items: center; width: 100% }
.wordmark { display: grid; justify-items: center; gap: .1em; font-weight: 300; line-height: .9 }
.wordmark .w-hotel { font: 300 clamp(1.1rem, 2.6vw, 2rem)/1 var(--font-body); letter-spacing: .5em; margin-right: -.5em }
.wordmark .w-margit { font-size: var(--step-4); letter-spacing: .04em; margin-right: -.04em }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 300; letter-spacing: .06em }
.booking { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.6rem; align-items: end; width: min(860px, 100%) }
.booking label { min-width: 0; display: grid; gap: .25rem; text-align: left; font-size: var(--step--1); letter-spacing: .06em }
.booking input, .booking select { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; min-height: 2.4rem; text-align: left; font: 300 var(--step-0) var(--font-body); color: var(--on-photo); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.7); padding: .35rem 0; width: 100%; color-scheme: dark; border-radius: 0 }
.booking select option { color: #262321 }
.booking select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .2rem center; padding-right: 1.4rem }
.booking .btn { color: var(--on-photo); border-color: rgba(255,255,255,.85); white-space: nowrap }
.booking .btn:hover { background: var(--on-photo); color: #262321 }
.booking-note { font-size: var(--step--1); opacity: .9 }
@media (max-width: 760px) { .booking { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.2rem 1rem } .booking label:nth-child(3) { grid-column: 1 / -1 } .booking .btn { grid-column: 1 / -1; justify-content: center } }

/* Bands */
section { padding-block: clamp(4.5rem, 9vw, 8rem); scroll-margin-top: 5.5rem }
.foot { scroll-margin-top: 5.5rem }
.band-stone { background: var(--stone) }
.kicker { font-size: var(--step--1); letter-spacing: .08em; color: var(--copper); margin-bottom: 1.2rem }

/* Welcome */
.welcome { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center }
.welcome-text { display: grid; gap: 1.5rem; min-width: 0 }
.welcome-photos { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: end }
.welcome-photos img { width: 100%; object-fit: cover }
.welcome-photos .tall { aspect-ratio: 2/3 }
.welcome-photos .small { aspect-ratio: 3/4; margin-bottom: 3rem }
.facts { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); margin-top: .6rem }
.facts div { display: grid; gap: .1rem }
.facts strong { font: 300 3rem/1 var(--font-display); color: var(--facade); font-variant-numeric: lining-nums }
.facts span { font-size: var(--step--1); color: var(--iron-soft) }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr } }

/* Offer */
.offer { background: var(--brand-btn); color: #fff; padding-block: 2.2rem }
.offer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem }
.offer p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; max-width: none }
.offer .btn { color: #fff }
.offer .btn:hover { background: #fff; color: var(--brand-btn) }

/* Rooms */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem) }
.sec-head p { max-width: 46ch }
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem }
.room { display: grid; gap: .9rem; align-content: start }
.room img { aspect-ratio: 4/5; object-fit: cover; width: 100% }
.room h3 { font-size: 1.65rem }
.room p { font-size: var(--step--1); color: var(--iron-soft) }
@media (max-width: 1000px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) {
  .rooms, .court-detail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)) }
  .rooms::-webkit-scrollbar, .court-detail::-webkit-scrollbar { display: none }
  .room, .court-detail figure { scroll-snap-align: start }
  .room img { aspect-ratio: 4/5 }
  .swipe-hint { display: block }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
  .facts strong { font-size: 2.3rem }
}
.swipe-hint { display: none; font-size: var(--step--1); color: var(--iron-soft); margin-top: .9rem }
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 3.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line) }
.amenities li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .9rem; align-items: baseline }
.amenities li::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-2px); border: 1px solid var(--copper) }
@media (max-width: 760px) { .amenities { grid-template-columns: 1fr } }

.renovated { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(4rem, 8vw, 7rem) }
.renovated-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
.renovated-photos img { aspect-ratio: 3/5; object-fit: cover; width: 100% }
.renovated-photos img:last-child { margin-top: 3rem }
.renovated-text { display: grid; gap: 1.3rem; min-width: 0 }
@media (max-width: 860px) { .renovated { grid-template-columns: 1fr } }

/* Breakfast */
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center }
.split > img { width: 100%; aspect-ratio: 3/2; object-fit: cover }
.split-text { display: grid; gap: 1.3rem; min-width: 0 }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: .4rem 0 0; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); padding-top: 1.2rem }
.hours dt { color: var(--iron-soft) }
.hours dd { margin: 0 }
@media (max-width: 860px) { .split { grid-template-columns: 1fr } }

/* Courtyard */
.courtyard { position: relative; color: var(--on-photo); padding: 0; background: #2f3329 }
.courtyard > img { width: 100%; height: clamp(420px, 70vh, 720px); object-fit: cover }
.courtyard .caption { position: absolute; inset: auto 0 0 0; padding-block: 3rem 2.6rem; background: linear-gradient(0deg, rgba(20,22,18,.78), rgba(20,22,18,0)) }
.courtyard .caption .wrap { display: grid; gap: 1rem }
.courtyard p { max-width: 54ch }
.court-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem }
.court-detail figure { margin: 0; display: grid; gap: .6rem }
.court-detail img { aspect-ratio: 3/2; object-fit: cover; width: 100% }
.court-detail figcaption { font-size: var(--step--1); color: var(--iron-soft) }


/* Location */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start }
.location-text { display: grid; gap: 1.4rem; min-width: 0 }
.distances { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line) }
.distances li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line) }
.distances .t { font: 300 2.6rem/1 var(--font-display); color: var(--facade); font-variant-numeric: lining-nums }
.distances .t small { font: 400 var(--step--1) var(--font-body); color: var(--iron-soft); margin-left: .2rem }
.distances .what { display: grid }
.distances .how { font-size: var(--step--1); color: var(--iron-soft) }
@media (max-width: 860px) { .location { grid-template-columns: 1fr } }
.late-note { display: grid; gap: .6rem; border-left: 2px solid var(--facade); padding: .3rem 0 .3rem 1.2rem }
.late-note h3 { font-size: 1.65rem }

/* Footer */
.foot { background: #262321; color: #e9e3da; padding-block: 4.5rem 2.5rem }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem }
.foot h4 { font: 400 var(--step--1) var(--font-body); letter-spacing: .08em; color: #c99b74; margin: 0 0 1rem }
.foot address { font-style: normal }
.foot a { text-decoration: none }
.foot a:hover { text-decoration: underline }
.foot .logo { color: #8fc0c2; font-size: 1.15rem }
.foot .fine { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(233,227,218,.15); display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: var(--step--1); color: #a59d93 }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr } }

/* Standalone page basics (the preview host supplied these) */
html, body { margin: 0 }
body { min-height: 100vh }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px) }
.lang a { text-decoration: none; letter-spacing: .08em; padding: .2em .1em; opacity: .75 }
.lang a[aria-current="true"] { opacity: 1; font-weight: 500; color: var(--iron); text-decoration: underline; text-underline-offset: 4px }
.foot a[href^="tel:"], .foot a[href^="mailto:"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(233,227,218,.35) }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--iron); color: var(--paper); padding: .8rem 1.2rem }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px) }

/* Legal pages */
.legal { padding-block: clamp(3rem, 7vw, 6rem) }
.legal .wrap { max-width: 820px }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); margin-bottom: 2rem }
.legal h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.6rem 0 .8rem }
.legal h3 { font-size: 1.35rem; margin: 1.6rem 0 .5rem }
.legal p, .legal ul { margin: 0 0 1rem; max-width: 68ch }
.legal ul { padding-left: 1.2rem }
.legal li { margin-bottom: .35rem }
.legal address { font-style: normal; margin-bottom: 1rem }
.legal .stand { color: var(--iron-soft); font-size: var(--step--1); margin-top: 3rem }
.todo { background: #fbe7a1; color: #3a2e00; padding: .05em .3em; border-radius: 3px }
