/* At Sea Hosts. One stylesheet, no framework, system fonts. */
:root {
  --navy: #0a2540;
  --deep: #0b3a5c;
  --sea: #0e7c86;
  --sea-dark: #0a626a;
  --foam: #e6f3f3;
  --sand: #faf6ef;
  --coral: #d9552f;
  --coral-dark: #b9431f;
  --ink: #14222e;
  --muted: #566775;
  --line: #dde5ea;
  --white: #fff;
  --ok: #17694a;
  --ok-bg: #e4f4ec;
  --warn: #8a5a00;
  --warn-bg: #fdf1d7;
  --bad: #a3271d;
  --bad-bg: #fbe9e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .08);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }   /* clear of the sticky header */
body { margin: 0; font: 1rem/1.6 var(--body); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: var(--sea-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
/* focus ring: navy on light surfaces, amber on the dark ones; both are at least 3:1 against what is behind them */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: #f2a65a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-dark); margin: 0 0 .9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--body); padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
/* white on --coral is 3.96:1, too faint for button text; --coral-dark is 5.4:1 */
.btn-primary { background: var(--coral-dark); color: #fff; }
.btn-primary:hover { background: #9c3718; color: #fff; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--foam); }
.btn-danger { background: transparent; color: var(--bad); border-color: #e7b9b4; }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-small { padding: .65rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font: 400 1.3rem/1 var(--display); white-space: nowrap; }
.brand b { font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { border-bottom-color: var(--coral); }
.menu-toggle { display: none; font: 600 .95rem var(--body); background: none; border: 2px solid var(--line); border-radius: 999px; padding: .5rem 1rem; color: var(--navy); cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current] { border-bottom-color: var(--coral); }
  .site-nav .btn { margin-top: 1rem; }
}

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #0a2540 0%, #0d4a6b 46%, #17808a 78%, #49b3b0 100%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(7rem, 14vw, 11rem); max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: 1.2rem; color: #d9eef0; max-width: 36rem; }
.search { margin-top: 1.8rem; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: .5rem; background: #fff; padding: .5rem; border-radius: 20px; box-shadow: 0 16px 40px rgba(4, 20, 36, .35); }
.search label { display: block; padding: .45rem .9rem; border-radius: 14px; }
.search label:focus-within { background: var(--foam); box-shadow: inset 0 0 0 3px var(--navy); }   /* the field's own outline is off below */
.search label span { display: block; font: 700 .7rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search label input, .search label select, .search label input:focus, .search label select:focus { width: 100%; border: 0; border-radius: 0; background: transparent; font: 500 1rem/1.5 var(--body); color: var(--ink); padding: 0; outline: 0; appearance: none; }
.search .btn { border-radius: 14px; }
@media (max-width: 700px) { .search { grid-template-columns: 1fr; } }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: -4.5rem; position: relative; z-index: 2; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; text-decoration: none; color: var(--ink); display: block; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 37, 64, .08), 0 16px 36px rgba(10, 37, 64, .14); color: var(--ink); }
.tile svg { width: 44px; height: 44px; margin-bottom: .9rem; }
.tile h2, .tile h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile .count { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--sea-dark); font-size: .92rem; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--foam); overflow: hidden; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-flag { position: absolute; left: .7rem; top: .7rem; background: rgba(255, 255, 255, .94); color: var(--navy); font: 700 .7rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 999px; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-place { font-size: .86rem; color: var(--muted); margin: 0; }
.card-title { font: 700 1.12rem/1.25 var(--display); color: var(--navy); margin: 0; }
.card-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-price { font-weight: 700; color: var(--navy); }
.card-price small { font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-block; font: 600 .74rem/1 var(--body); padding: .38rem .6rem; border-radius: 999px; background: var(--foam); color: var(--sea-dark); white-space: nowrap; }
.chip-stay { background: #efe9f8; color: #54399a; }
.chip-cruise { background: #fdeee7; color: #a8401f; }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, #eef3f5 30%, #f8fafb 50%, #eef3f5 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; min-height: 320px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h1, .empty h2, .empty h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* host band */
.band { background: var(--navy); color: #dbe7ef; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.band h2 { color: #fff; }
.band ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.band li { padding-left: 1.7rem; position: relative; }
.band li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .5rem; border-left: 3px solid #5fc3c9; border-bottom: 3px solid #5fc3c9; transform: rotate(-45deg); }
.band-art { justify-self: end; width: min(340px, 100%); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } .band-art { display: none; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; padding: 0; margin: 2rem 0 0; list-style: none; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--foam); color: var(--sea-dark); font-weight: 700; margin-bottom: .8rem; }
.steps h2, .steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* page heads and prose */
.page-head { background: var(--sand); padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-head p { margin: 0; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.note { background: var(--foam); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }

/* browse */
.filters { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0 1rem; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.type-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.type-tabs button { font: 600 .95rem var(--body); padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.type-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.links a { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.links a:hover { border-color: var(--navy); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--sea-dark); text-decoration: underline; cursor: pointer; }

/* forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; align-content: end; }
.field > label.check { font-weight: 400; color: var(--ink); }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: .95rem; color: var(--navy); }
.hint { font-size: .86rem; color: var(--muted); margin: 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #768692; border-radius: 10px; padding: .75rem .85rem; }   /* 3.7:1 on white: the edge of a field has to be visible */
::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sea-dark); outline: 2px solid var(--sea-dark); outline-offset: 1px; }
.choice:has(input:focus-visible), .drop:has(#l-photos:focus-visible) label[for="l-photos"] { outline: 3px solid var(--navy); outline-offset: 2px; }
/* inputs in a row share a baseline even when one label wraps; hints for these fields live in the label */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; align-items: end; }
.row .invalid { align-self: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > legend { margin-bottom: .5rem; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem .9rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--sea); flex: none; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 640px) { .choice-cards { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; padding: 1rem 1rem 1rem 2.8rem; cursor: pointer; background: #fff; }
.choice input { position: absolute; left: 1rem; top: 1.1rem; width: 1.15rem; height: 1.15rem; accent-color: var(--sea); }
.choice b { display: block; color: var(--navy); }
.choice span { font-size: .88rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--sea); background: var(--foam); }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); background: #fff; display: grid; gap: 1.1rem; }
.form-section > h2 { font-size: 1.3rem; margin: 0; }
.price-row { display: grid; grid-template-columns: 9rem 1fr 1fr; gap: .8rem; align-items: center; }
.price-row .label { font-weight: 600; color: var(--navy); }
@media (max-width: 560px) { .price-row { grid-template-columns: 1fr 1fr; } .price-row .label { grid-column: 1 / -1; } }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 1.7rem; }
.error { color: var(--bad); font-size: .88rem; font-weight: 600; margin: 0; }
.invalid input, .invalid select, .invalid textarea, .invalid .choice-cards .choice { border-color: var(--bad); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.alert { border-radius: 12px; padding: .9rem 1.1rem; font-weight: 500; }
.alert p:last-child { margin: 0; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--foam); color: var(--sea-dark); }

/* photos in the form */
.drop { border: 2px dashed #b8c7d1; border-radius: 12px; padding: 1.4rem; text-align: center; color: var(--muted); background: #fbfdfe; }
.drop.over { border-color: var(--sea); background: var(--foam); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; margin-top: .8rem; }
.thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--foam); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; right: .3rem; top: .3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 0; background: rgba(10, 37, 64, .8); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.thumb:first-child::after { content: "Cover"; position: absolute; left: .35rem; bottom: .35rem; background: rgba(255, 255, 255, .92); color: var(--navy); font: 700 .66rem/1 var(--body); padding: .3rem .45rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* listing page */
.crumbs { font-size: .9rem; color: var(--muted); padding: 1.2rem 0 0; }
.crumbs a { color: var(--muted); }
.listing-head { padding: .8rem 0 1.2rem; }
.listing-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .25em; }
.gallery { display: grid; gap: .6rem; }
.gallery-main { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--foam); }
.gallery-main img, .gallery-main svg { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.gallery-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; cursor: pointer; background: var(--foam); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--coral); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.listing-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .listing-cols { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; margin: 0 0 1.8rem; padding: 0; }
.facts div { background: var(--sand); border-radius: 12px; padding: .8rem .9rem; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }
.description { white-space: pre-line; overflow-wrap: anywhere; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1rem; }
.amenities li { padding-left: 1.6rem; position: relative; }
.amenities li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .9rem; height: .45rem; border-left: 2.5px solid var(--sea); border-bottom: 2.5px solid var(--sea); transform: rotate(-45deg); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); background: #fff; position: sticky; top: 88px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .panel { position: static; } }
.panel h2 { font-size: 1.25rem; margin: 0; }
.prices { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.prices li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.prices b { color: var(--navy); }
.small { font-size: .86rem; }

/* footer */
.site-footer { background: var(--navy); color: #b9cbd8; padding: 3rem 0 1.5rem; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.site-footer a { display: block; color: #b9cbd8; text-decoration: none; padding: .22rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font: 400 1.35rem/1 var(--display); color: #fff; margin-bottom: .6rem; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.2rem; font-size: .86rem; color: #93a9b9; }
.footer-note p { margin: 0 0 .3rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
