:root {
  --bg: #000;
  --surface: #0d0b07;
  --surface-2: #17140c;
  --brown: #362e17;
  --sand: #cfc4a4;
  --cream: #f7f3e9;
  --red: #bc1212;
  --text: #fff;
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .45);
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .55);
  --gutter: 20px;
  --max: 640px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Montserrat, "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.6; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Boot */
.boot { min-height: 100vh; display: grid; place-items: center; }
.ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.92); } }

/* Wordmark */
.wordmark {
  display: inline-flex; align-items: center; font-weight: 300; text-transform: uppercase;
  letter-spacing: .32em; font-size: clamp(26px, 8.4vw, 46px); line-height: 1; white-space: nowrap;
  margin-right: -.32em; /* optical: cancel trailing tracking */
}
.wordmark .o {
  display: inline-block; width: .82em; height: .82em; border-radius: 50%;
  border: .085em solid var(--red); margin: 0 .32em 0 0; transform: translateY(-.01em);
  background: none;
}
.wordmark.small { font-size: 15px; letter-spacing: .28em; margin-right: -.28em; }
.wordmark.small .o { margin-right: .28em; border-width: 1.6px; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 64vh; min-height: 64svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; padding: calc(var(--safe-top) + 70px) var(--gutter) 64px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 35%, rgba(0,0,0,.25) 70%, #000 100%); }
.hero .logo-ring { position: absolute; top: calc(var(--safe-top) + 18px); left: var(--gutter); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--red); }
.hero .tagline { margin-top: 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.88); max-width: 30ch; line-height: 1.8; }
.hero .greet { margin-top: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }

/* Notice */
.notice { margin: 0 auto 8px; max-width: var(--max); padding: 0 var(--gutter); }
.notice div { border: 1px solid var(--sand); color: var(--cream); padding: 14px 16px; font-size: 14px; line-height: 1.5; }

/* Quick actions */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px auto 0; }
.action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; transition: background .2s, border-color .2s; }
.action:active, .action:hover { background: rgba(255,255,255,.07); border-color: #fff; }
.action svg { width: 22px; height: 22px; }

/* Wi-Fi card */
.wifi { margin-top: 22px; border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; display: grid; gap: 10px; }
.wifi h3 { margin: 0 0 2px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.kv .v { font-weight: 500; word-break: break-all; }
.copy { flex: none; border: 1px solid var(--line-strong); background: none; padding: 6px 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.copy:active { background: #fff; color: #000; }

/* Headings */
h2.label, h3 { font-weight: 500; text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--sand); margin: 0; }
.section-head { margin: 40px 0 14px; display: flex; align-items: baseline; justify-content: space-between; }

/* Search */
.search { position: relative; margin-top: 26px; }
.search input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong); color: #fff; font: inherit; font-size: 16px; padding: 12px 4px 12px 32px; border-radius: 0; outline: none; letter-spacing: .03em; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-bottom-color: #fff; }
.search svg { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }

/* Tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 112px; padding: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s; }
.tile:hover, .tile:active { border-color: var(--line-strong); background: var(--surface-2); }
.tile svg { width: 26px; height: 26px; color: var(--sand); stroke-width: 1.3; }
.tile span { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; }
.tile.wide { grid-column: span 2; min-height: 88px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
.tile.alert svg { color: #e2554f; }

/* Topbar (section view) */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); padding-top: var(--safe-top); }
.topbar .wrap { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; height: 56px; }
.back { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; margin-left: -12px; text-decoration: none; }
.back svg { width: 22px; height: 22px; }
.topbar .center { text-align: center; }

/* Section view */
.section-hero { height: 220px; position: relative; overflow: hidden; }
.section-hero img { width: 100%; height: 100%; object-fit: cover; }
.section-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000); }
.page-title { font-weight: 300; text-transform: uppercase; letter-spacing: .26em; font-size: 24px; line-height: 1.3; margin: 28px 0 0; }
.intro { color: var(--muted); margin: 14px 0 0; font-size: 15px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 22px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: none; padding: 8px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--cream); color: #000; border-color: var(--cream); }

.items { margin-top: 18px; display: grid; gap: 0; }
.item { padding: 22px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.item .sub { margin-top: 3px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.item p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.item .area { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--faint); }
.item .area svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.item .tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 3px 8px; }
.item .tag.lic { color: var(--sand); border-color: rgba(207,196,164,.45); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; font-weight: 500; background: none; cursor: pointer; }
.btn svg { width: 15px; height: 15px; }
.btn:active, .btn:hover { background: #fff; color: #000; border-color: #fff; }
.btn.solid { background: var(--cream); color: #000; border-color: var(--cream); }

.facts { margin-top: 22px; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fact .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); padding-top: 3px; }
.fact .v { font-size: 15px; }
.fact .v .copy { margin-top: 8px; }

.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row .n { font-size: 26px; font-weight: 300; letter-spacing: .08em; }
.contact-row .t { font-size: 14px; }
.contact-row .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

.empty { color: var(--faint); padding: 30px 0; text-align: center; font-size: 14px; }

/* Footer */
.footer { position: relative; margin-top: 56px; padding: 56px var(--gutter) calc(48px + var(--safe-bottom)); text-align: center; overflow: hidden; background: var(--brown); }
.footer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; }
.footer > * { position: relative; z-index: 1; }
.footer .mail { display: inline-block; margin-top: 26px; border: 1px solid #fff; padding: 12px 22px; text-decoration: none; font-weight: 600; letter-spacing: .03em; }
.footer .lines { margin-top: 18px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.footer .lines a { text-decoration: none; }
.footer .ig { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 8px; margin-top: 18px; }
.footer .ig svg { width: 18px; height: 18px; }
.footer .small { margin-top: 26px; font-size: 12px; color: rgba(255,255,255,.75); }
.footer .small a { text-decoration: underline; text-underline-offset: 3px; }

/* Install sheet */
.sheet { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--cream); color: #000; padding: 18px 18px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.6); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.sheet.show { transform: none; }
.sheet .row { display: flex; gap: 14px; align-items: center; }
.sheet .ico { flex: none; width: 52px; height: 52px; background: #000; display: grid; place-items: center; border-radius: 12px; }
.sheet .ico span { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--red); }
.sheet strong { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.sheet p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.sheet .share { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.sheet .x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: #000; }
.sheet .btn { margin-top: 12px; border-color: #000; color: #000; }
.sheet .btn.solid { background: #000; color: #fff; }

#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px); background: var(--cream); color: #000; padding: 10px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .fade, .ring { animation: none; } .sheet { transition: none; } }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr 1fr; } .tile.wide { grid-column: span 3; } }

/* Language toggle */
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; letter-spacing: .16em; font-weight: 500; justify-self: end; }
.lang span { opacity: .4; }
.lang button { background: none; border: 0; cursor: pointer; padding: 10px 5px; color: rgba(255,255,255,.55); letter-spacing: .16em; font-size: 11px; font-weight: 500; }
.lang button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.hero-lang { position: absolute; top: calc(var(--safe-top) + 10px); right: calc(var(--gutter) - 5px); }

/* Photo cards for places */
.items.cards { gap: 0; }
.items.cards .item.has-photo { padding-top: 26px; }
.item .photo { position: relative; margin: 0 0 16px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.item .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.item .photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.item .area + .area { margin-top: 6px; }

/* Credits */
.credits { margin: 22px 0 0; padding: 0; list-style: none; }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.credits b { color: #fff; font-weight: 500; }

/* Brand ring (brush logo) - top-left mark only */
.hero .logo-ring { border: 0; border-radius: 0; background: url('/icons/logo-ring.png') center / contain no-repeat; width: 34px; height: 34px; }

/* iPhone add-to-home-screen steps */
.sheet .steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.sheet .steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.sheet .steps .n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.sheet .steps .share { margin: 0 1px; }
.sheet .row { align-items: flex-start; }
.ios-arrow { position: fixed; left: 50%; bottom: calc(4px + var(--safe-bottom)); z-index: 41; width: 22px; height: 22px; margin-left: -11px;
  border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg); animation: iosbob 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes iosbob { 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .ios-arrow { animation: none; } }
