:root {
  --ink: #17221f;
  --muted: #68736f;
  --green: #173f38;
  --green-2: #28685d;
  --mist: #e8f0ec;
  --paper: #f7f6f2;
  --white: #fff;
  --line: #dfe3de;
  --shadow: 0 18px 50px rgba(19, 35, 31, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
.app-shell { min-height: 100vh; padding-bottom: 88px; }

.hero { position: relative; min-height: 290px; padding: max(22px, env(safe-area-inset-top)) 20px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: url("assets/header-beach.jpg") center 58% / cover no-repeat; isolation: isolate; }
.hero[data-view="sights"] { background-image: url("assets/header-volcano.jpg"); background-position: center 52%; }
.hero[data-view="restaurants"] { background-image: url("assets/header-food.jpg"); background-position: center 56%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 21, 18, .48) 0%, rgba(8, 21, 18, .06) 45%, rgba(8, 21, 18, .8) 100%); }
.hero-topline { display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.hero-copy { max-width: 660px; }
.hero-copy p, .sheet-header p { margin-bottom: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hero-copy p { color: rgba(255,255,255,.78); }
.hero-copy h1 { max-width: 560px; margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 11vw, 4.5rem); font-weight: 500; line-height: .98; }
.hero-lock { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(8,21,18,.58); backdrop-filter: blur(10px); }
.hero-lock[hidden] { display: none; }
.hero-lock svg { width: 19px; height: 19px; }

.content { width: min(100%, 760px); margin: 0 auto; padding: 18px 16px 34px; }
.document-row small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .68rem; font-style: normal; font-weight: 800; text-transform: uppercase; }

.document-list { display: grid; gap: 10px; }
.document-row { width: 100%; min-height: 76px; padding: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); text-align: left; }
.document-row > svg { width: 15px; color: #9ca5a1; }
.document-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); border-radius: 6px; background: var(--mist); }
.document-row strong { display: block; font-size: 1rem; line-height: 1.25; }
.restaurant-list { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.restaurant-row { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.restaurant-row:last-child { border-bottom: 0; }
.restaurant-meta, .sight-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--green-2); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.restaurant-row h2, .sight-row h3 { margin: 6px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.restaurant-row h2 em { padding: 4px 6px; color: var(--green); border-radius: 4px; background: var(--mist); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .6rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.restaurant-row p, .sight-row p { margin-bottom: 13px; color: var(--muted); font-size: 1.12rem; line-height: 1.45; }
.restaurant-row > a { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--green); border: 1px solid #bfd0ca; border-radius: 5px; background: #f5f9f7; font-size: .76rem; font-weight: 800; text-decoration: none; }
.restaurant-row > a svg:last-child { width: 14px; margin-left: auto; }
.sights-master-link { min-height: 58px; padding: 10px 13px; display: grid; grid-template-columns: 32px 1fr 16px; align-items: center; gap: 10px; color: #fff; border-radius: 7px; background: var(--green); text-decoration: none; }
.sights-master-link > svg:last-child { width: 15px; }
.sights-master-link small, .sights-master-link strong { display: block; }
.sights-master-link small { margin-bottom: 2px; color: rgba(255,255,255,.65); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.sights-master-link strong { font-size: .84rem; }
.sights-master-link + .restaurant-list { margin-top: 14px; }
.sight-group { margin-top: 26px; }
.sight-group > header { margin: 0 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sight-group > header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.sight-group > header span { min-width: 26px; height: 26px; display: grid; place-items: center; color: var(--green); border-radius: 50%; background: var(--mist); font-size: .7rem; font-weight: 800; }
.sight-list { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.sight-row { padding: 17px 15px; border-bottom: 1px solid var(--line); }
.sight-row:last-child { border-bottom: 0; }
.sight-row > a { min-height: 36px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; color: var(--green); border: 1px solid #bfd0ca; border-radius: 5px; background: #f5f9f7; font-size: .74rem; font-weight: 800; text-decoration: none; }
.sight-row > a svg:last-child { width: 13px; margin-left: auto; }

.unlock-card { max-width: 520px; margin: 10px auto 0; padding: 26px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: 0 8px 28px rgba(20,35,31,.07); }
.unlock-icon { width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center; color: var(--green); border-radius: 50%; background: var(--mist); }
.unlock-icon svg { width: 23px; height: 23px; }
.unlock-card .eyebrow { margin-bottom: 5px; color: var(--green-2); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.unlock-card h2 { margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.unlock-card > p:not(.eyebrow) { color: var(--muted); font-size: 1.17rem; line-height: 1.5; }
.unlock-primary, .unlock-secondary { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 6px; font-size: .82rem; font-weight: 800; }
.unlock-primary { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; border: 0; background: var(--green); }
.unlock-secondary { color: var(--green); border: 1px solid #b9cbc5; background: var(--mist); }
.unlock-divider { margin: 14px 0; display: flex; align-items: center; gap: 10px; color: #909a96; font-size: .7rem; }
.unlock-divider::before, .unlock-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.recovery-field { margin: 14px 0 10px; display: grid; gap: 6px; }
.recovery-field span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.recovery-field input { width: 100%; height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; }
.recovery-field input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(40,104,93,.12); }
.unlock-status, .unlock-error { margin: 14px 0 0; padding: 10px 11px; border-radius: 5px; font-size: 1.08rem !important; }
.unlock-status { background: var(--mist); }
.unlock-error { color: #78392f !important; background: #f7e9e6; }

.tab-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; height: calc(72px + env(safe-area-inset-bottom)); padding: 7px max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-top: 1px solid rgba(23,34,31,.12); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.tab-bar button { position: relative; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 800; }
.tab-bar button[aria-current="page"] { color: var(--green); background: var(--mist); box-shadow: inset 0 0 0 1px rgba(40,104,93,.08); }
.tab-bar button[aria-current="page"]::before { content: ""; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--green-2); }
.tab-bar button[aria-current="page"] svg { stroke-width: 2.25; }

.sheet { position: fixed; inset: auto 0 0; width: min(100%, 760px); max-width: none; max-height: min(88vh, 850px); margin: auto auto 0; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 12px 12px 0 0; background: var(--white); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(10, 24, 20, .58); backdrop-filter: blur(2px); }
.sheet-handle { width: 42px; height: 4px; margin: 9px auto 3px; border-radius: 4px; background: #cdd2cf; }
.sheet-header { padding: 12px 18px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.sheet-header p { margin-bottom: 3px; color: var(--green-2); }
.sheet-header h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.icon-button { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.sheet-body { max-height: calc(88vh - 92px); padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.facts { margin: 0 0 18px; }
.facts div { padding: 11px 0; display: grid; grid-template-columns: minmax(100px, .65fr) 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .76rem; font-weight: 800; }
.facts dd { margin: 0; font-size: 1.17rem; }
.detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 10px; font-size: .96rem; }
.detail-section ul { margin: 0; padding-left: 19px; color: #44504c; font-size: 1.17rem; line-height: 1.5; }
.detail-section li + li { margin-top: 7px; }
.wide-button { width: 100%; min-height: 47px; margin-top: 16px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; color: #fff; border: 0; border-radius: 6px; background: var(--green); font-size: .82rem; font-weight: 800; text-decoration: none; }
.app-link-stack { margin: 16px 0; display: grid; gap: 10px; }
.app-link-stack .wide-button { margin-top: 0; }
.secondary-link { min-height: 40px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--green); font-size: .76rem; font-weight: 800; text-decoration: none; }
.secondary-link svg { width: 14px; height: 14px; }
.subtle-button { margin-top: 10px; padding: 9px 0; display: block; border: 0; color: var(--green); background: transparent; font-size: .8rem; font-weight: 800; }
.migration-card { margin-top: 14px; padding: 18px 16px; border: 1px solid #bfd0ca; border-radius: 7px; background: var(--mist); }
.migration-card .eyebrow { margin-bottom: 5px; color: var(--green-2); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.migration-card h2 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.migration-card p:not(.eyebrow) { margin-bottom: 14px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (min-width: 760px) {
  .hero { min-height: 390px; padding: 28px max(32px, calc((100vw - 760px) / 2)) 38px; }
  .content { padding: 24px 0 50px; }
  .tab-bar { top: 20px; right: max(24px, calc((100vw - 760px) / 2)); bottom: auto; left: auto; width: 330px; height: 48px; padding: 4px; border: 1px solid rgba(255,255,255,.26); border-radius: 7px; background: rgba(12,31,26,.46); backdrop-filter: blur(14px); }
  .tab-bar button { flex-direction: row; color: rgba(255,255,255,.75); }
  .tab-bar button[aria-current="page"] { color: var(--green); background: #fff; }
  .tab-bar button[aria-current="page"]::before { display: none; }
  .tab-bar svg { width: 17px; }
  .app-shell { padding-bottom: 0; }
  .sheet { bottom: 24px; border-radius: 12px; }
}
