/* exoticcottages.com - one stylesheet, no JavaScript anywhere on the site. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c2a2e;
  --muted: #5d6b6f;
  --line: #e6dfd3;
  --accent: #b9532c;
  --accent-ink: #ffffff;
  --accent-hover: #9c4321;
  --deep: #0f2a2e;
  --deep-ink: #f3efe7;
  --chip: #efe8dc;
  --shadow: 0 1px 2px rgba(20, 30, 32, .06), 0 8px 28px rgba(20, 30, 32, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111719;
    --surface: #1a2225;
    --ink: #e9e5dd;
    --muted: #a3aeb0;
    --line: #2b3639;
    --accent: #e07a52;
    --accent-ink: #1a1109;
    --accent-hover: #ec916d;
    --deep: #0b1d20;
    --chip: #233033;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .85em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin: 0 0 .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.4em; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .75); color: #fff; backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .25); }
.btn.small { padding: .5em 1em; font-size: .9rem; }
.btn.big { padding: 1em 1.8em; font-size: 1.1rem; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px max(16px, calc((100% - 1180px) / 2)); background: var(--deep); color: var(--deep-ink);
}
.site-header.overlay { position: absolute; inset: 0 0 auto 0; z-index: 10; background: linear-gradient(rgba(5, 15, 17, .55), transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand:hover { color: inherit; }
.mark { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-header nav a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .92; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; color: inherit; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.dest-hero { min-height: min(78vh, 720px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 17, .15) 30%, rgba(5, 15, 17, .72) 100%); }
.hero-text { position: relative; padding: 140px 0 72px; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); margin: 0 0 .8rem; max-width: 16ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 em { font-style: italic; color: #ffd9b8; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 60ch; margin: 0 0 1.6rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hero .eyebrow a { color: inherit; text-decoration: none; }
.hero .eyebrow a:hover { text-decoration: underline; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .78); max-width: calc(100% - 24px); text-align: right; }
.hero-credit a { color: inherit; }

/* Destinations grid */
.destinations { padding: 72px 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.filters label { padding: .45em 1em; border-radius: 999px; background: var(--chip); cursor: pointer; font-size: .92rem; font-weight: 500; transition: background .2s; }
.filters input:checked + label { background: var(--ink); color: var(--bg); }
.filters input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
body:has(#r-islands:checked) .card:not([data-region="islands"]),
body:has(#r-mountains:checked) .card:not([data-region="mountains"]),
body:has(#r-coast:checked) .card:not([data-region="coast"]),
body:has(#r-culture:checked) .card:not([data-region="culture"]) { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); color: inherit; }
.card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; }
.card-body .eyebrow { color: var(--accent); }
.card-body h3 { font-size: 1.45rem; }
.card-body p:last-child { margin: 0; color: var(--muted); }

/* How it works */
.how { padding: 40px 0 72px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* Search band */
.find { background: var(--deep); color: var(--deep-ink); padding: 64px 0; }
.find-inner { text-align: center; }
.find h2 { color: #fff; }
.find p { opacity: .9; margin: 0 0 1.4rem; }
.search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; flex-wrap: wrap; }
.search input { flex: 1 1 260px; min-width: 0; padding: .9em 1.2em; border-radius: 999px; border: 2px solid transparent; font: inherit; background: #fff; color: #1c2a2e; }
.search input:focus { border-color: var(--accent); outline: none; }
.search button { flex: 0 0 auto; padding: .9em 1.6em; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--accent-hover); }

/* Destination page */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 2; }
.facts div { padding: 20px 24px; border-left: 1px solid var(--line); font-weight: 500; }
.facts div:first-child { border-left: 0; }
.facts span { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 760px) { .facts div { border-left: 0; border-top: 1px solid var(--line); } .facts div:first-child { border-top: 0; } }

.guide { padding: 48px 0 24px; }
.guide > section { margin: 56px 0 0; scroll-margin-top: 20px; }
.intro { font-size: 1.15rem; max-width: 70ch; }
.intro p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: .06em .1em 0 0; color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { padding: .4em .95em; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: .9rem; }
.toc a:hover { background: var(--ink); color: var(--bg); }
section:target > h2 { color: var(--accent); }

.legs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.legs li { border-top: 3px solid var(--accent); padding-top: 14px; }
.legs p { margin: 0; color: var(--muted); }

.stays { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.stay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.stay p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.stay .btn { align-self: flex-start; }

.todo { list-style: none; padding: 0; margin: 0; counter-reset: todo; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 6px 36px; }
.todo li { counter-increment: todo; position: relative; padding: 14px 0 14px 54px; border-bottom: 1px solid var(--line); }
.todo li::before { content: counter(todo, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-size: 1.7rem; color: var(--accent); line-height: 1.1; }
.todo p { margin: 0; color: var(--muted); }

.tips ul { margin: 0; padding: 22px 26px 22px 46px; background: var(--chip); border-radius: var(--radius); }
.tips li + li { margin-top: .5em; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 18px; padding: 48px 0; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.gallery .g2 { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery .g2 img { aspect-ratio: auto; min-height: 100%; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-weight: 500; }
.gallery figcaption small { display: block; font-weight: 400; font-size: .72rem; opacity: .85; margin-top: 2px; }
.gallery figcaption a { color: inherit; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery .g2 { grid-row: auto; } .gallery .g2 img { aspect-ratio: 3 / 2; } }

.book-band { background: var(--deep); color: var(--deep-ink); text-align: center; padding: 64px 0; }
.book-band h2 { color: #fff; }
.book-band p { opacity: .9; margin: 0 auto 1.6rem; max-width: 56ch; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 56px 0 72px; align-items: start; }
.more ul { padding-left: 1.2em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 760px) { .more { grid-template-columns: 1fr; } }

/* Plain pages */
.plain { padding: 56px 0 64px; }
.plain h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 0; }
.plain h2 { margin-top: 2rem; font-size: 1.5rem; }
.credit-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.credit-list li { display: flex; gap: 16px; align-items: flex-start; font-size: .95rem; }
.credit-list img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.credit-list div { min-width: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: #0a1c1f; color: #c9cfcc; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: #f0b392; }
.site-footer .brand { color: #fff; margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 8px; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-text { padding: 120px 0 56px; }
  .site-header nav { gap: 4px 16px; }
  .hero-credit { font-size: .65rem; }
}
