/* Expert Class Travel — site styles */
:root {
  --navy: #044b89;
  --navy-deep: #032f57;
  --navy-ink: #0c2236;
  --green: #60a433;
  --green-dark: #4c8a24;
  --red: #e84545;
  --sky: #eaf2fa;
  --paper: #f6f8fb;
  --line: #dde5ee;
  --text: #1d2b3a;
  --muted: #5b6b7c;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(4, 40, 80, .06), 0 8px 24px rgba(4, 40, 80, .08);
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font-body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
code { background: var(--sky); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin-top: .8em; }
.lead { font-size: 1.2rem; color: var(--navy-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.narrow-lg { max-width: 920px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 800 1rem/1 var(--font-head); color: var(--white); background: var(--green);
  border: 0; border-radius: 999px; padding: .85em 1.5em; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s; box-shadow: 0 2px 0 var(--green-dark);
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(96, 164, 51, .45); outline-offset: 2px;
}
.btn-lg { font-size: 1.15rem; padding: 1em 2.4em; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--sky); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: none; }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-danger-ghost { background: transparent; color: #b42323; box-shadow: inset 0 0 0 2px #f1c4c4; }
.btn-danger-ghost:hover { background: #fdeeee; color: #b42323; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger { color: #b42323; }

/* ---------- Alerts / tags ---------- */
.alert { border-radius: 10px; padding: .8em 1em; margin: 1em 0; border-left: 4px solid; background: var(--sky); border-color: var(--navy); font-size: .97rem; }
.alert-success { background: #eef7e8; border-color: var(--green); }
.alert-error { background: #fdeeee; border-color: var(--red); }
.tag { display: inline-block; font: 700 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; background: var(--sky); color: var(--navy); padding: .45em .7em; border-radius: 999px; }
.tag-warn { background: #fff3d6; color: #8a5a00; }
.status { display: inline-block; font: 700 .78rem/1 var(--font-head); padding: .45em .75em; border-radius: 999px; background: var(--sky); color: var(--navy); white-space: nowrap; }
.status-new { background: #fdeeee; color: #b42323; }
.status-open { background: #fff3d6; color: #8a5a00; }
.status-quoted { background: var(--sky); color: var(--navy); }
.status-booked { background: #eef7e8; color: #3b6e1b; }
.status-closed { background: #eef0f3; color: var(--muted); }
.status-failed { background: #fdeeee; color: #b42323; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--navy-ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form label > input, .form label > select, .form label > textarea { flex: 1 0 100%; }
.form .check > input, .form .toggle > input { flex: 0 0 auto; }
.form .check, .form .toggle { flex-wrap: nowrap; align-items: flex-start; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; }
input[disabled] { background: var(--paper); color: var(--muted); }
textarea { resize: vertical; }
.form .check, .form .toggle { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input, .toggle input { width: auto; margin-top: .3em; accent-color: var(--green); }
.toggle { background: var(--paper); padding: 1rem; border-radius: 10px; }
.toggle input { width: 1.2rem; height: 1.2rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .gap-lg { gap: 1.5rem; } }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; width: auto; }
.hp { position: absolute; left: -9999px; }
fieldset.imgfield { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1rem; display: grid; gap: .8rem; margin: 0; }
fieldset.imgfield legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.thumb { max-height: 160px; width: auto; border-radius: 8px; }

/* ---------- Closed splash / auth ---------- */
body.bare { background: var(--navy-deep); }
.closed, .auth-shell {
  position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(96, 164, 51, .28), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(232, 69, 69, .16), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.closed-arc { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .22); pointer-events: none; }
.closed-card, .auth-card {
  position: relative; width: 100%; max-width: 560px; background: var(--white); border-radius: 22px;
  padding: clamp(28px, 6vw, 52px); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-card { max-width: 440px; text-align: left; }
.closed-logo { width: min(100%, 380px); margin: 0 auto 1.6rem; }
.auth-logo { width: 220px; margin: 0 auto 1.4rem; }
.closed-badge { display: inline-block; font: 800 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); background: #fdeeee; padding: .55em 1em; border-radius: 999px; margin-bottom: 1rem; }
.closed h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.closed-msg { color: var(--muted); margin: 0 auto 1.8rem; max-width: 42ch; }
.closed-contact { margin: 1.6rem 0 0; font-size: .95rem; }
.auth-card h1 { font-size: 1.7rem; }
.auth-links { margin: 1.1rem 0 0; font-size: .95rem; text-align: center; }
.auth-links + .auth-links { margin-top: .4rem; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 200px; }
.site-nav { display: none; }
.site-nav a, .site-nav .linklike { font: 700 .98rem/1 var(--font-head); color: var(--navy-ink); text-decoration: none; padding: .7em .8em; border-radius: 8px; }
.site-nav a:hover, .site-nav .linklike:hover { background: var(--sky); color: var(--navy); }
.site-nav a.active { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav-admin { color: var(--red) !important; }
.nav-muted { color: var(--muted) !important; font-weight: 600 !important; }
.nav-user { display: flex; align-items: center; gap: .2rem; }
.nav-user form { margin: 0; }
.nav-toggle { display: inline-grid; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: .5rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open .nav-user { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem; }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; flex-direction: row; align-items: center; gap: .1rem; position: static; padding: 0; box-shadow: none; border: 0; }
  .site-nav.open .nav-user, .nav-user { border: 0; margin: 0 0 0 .6rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--line); }
  .brand img { width: 230px; }
}
.notice-bar { background: #fff3d6; color: #6a4500; font-size: .92rem; padding: .6rem 0; text-align: center; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(96, 164, 51, .3), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 16ch; }
.hero p { font-size: 1.2rem; color: #cfe0f1; max-width: 46ch; }
.hero-search { display: flex; gap: .5rem; background: var(--white); padding: .4rem; border-radius: 999px; max-width: 520px; margin-top: 1.6rem; }
.hero-search input { border: 0; border-radius: 999px; padding-left: 1.1rem; }
.hero-mark { display: none; width: 260px; justify-self: end; background: var(--white); border-radius: 50%; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr auto; } .hero-mark { display: block; } }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head a { font: 700 .95rem var(--font-head); text-decoration: none; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 48px) 0; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--muted); margin: 0; }

.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(4, 40, 80, .08), 0 16px 36px rgba(4, 40, 80, .14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-img img, .dest-img img, .pkg-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: .55rem 0 .4rem; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-meta { display: flex; gap: .6rem; align-items: center; font-size: .88rem; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.price { font: 900 1.25rem var(--font-head); color: var(--navy); }
.price small { font: 600 .75rem var(--font-body); color: var(--muted); }

/* Branded placeholder when no image is set */
.placeholder { display: grid; place-items: center; position: relative; overflow: hidden; }
.placeholder span { position: relative; font: 900 clamp(1.3rem, 3vw, 2rem) var(--font-head); color: rgba(255, 255, 255, .92); text-align: center; padding: 0 1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.placeholder::before { content: ""; position: absolute; inset: -20%; background: repeating-radial-gradient(circle at 120% 120%, transparent 0 38px, rgba(255, 255, 255, .07) 38px 40px); }
.ph-0 { background: linear-gradient(135deg, #0a5aa3, var(--navy-deep)); }
.ph-1 { background: linear-gradient(135deg, #6db63c, #2f7a4a); }
.ph-2 { background: linear-gradient(135deg, #1679b8, #2f9a6b); }

.dest-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dest-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; display: block; box-shadow: var(--shadow); }
.dest-tile .dest-img { position: absolute; inset: 0; }
.dest-tile .placeholder span { display: none; }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 30, 60, .75), transparent 60%); }
.dest-label { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; display: grid; }
.dest-label strong { font: 900 1.35rem var(--font-head); }
.dest-label small { color: #d6e4f2; }
.dest-tile:hover { color: var(--white); }
.dest-tile:hover .dest-img img { transform: scale(1.04); }
.dest-img img { transition: transform .4s; }

.dest-list { display: grid; gap: 1.2rem; }
.dest-row { display: grid; gap: 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; }
.dest-row > div:last-child { padding: 0 1.2rem 1.2rem; }
.dest-row .dest-img { aspect-ratio: 16 / 9; }
.dest-row h2 { margin: .1em 0 .3em; }
.dest-row:hover { color: inherit; }
.dest-row:hover h2 { color: var(--navy); }
.eyebrow { font: 800 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); }
@media (min-width: 760px) {
  .dest-row { grid-template-columns: 320px 1fr; align-items: center; }
  .dest-row .dest-img { height: 100%; aspect-ratio: auto; min-height: 190px; }
  .dest-row > div:last-child { padding: 1.2rem 1.4rem 1.2rem 0; }
}

.why { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { padding: 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--line); }
.why p { color: var(--muted); margin: 0; }
.why-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.4rem; margin-bottom: .8rem; }
.why > div:nth-child(1) .why-icon { color: var(--red); background: #fdeeee; }
.why > div:nth-child(3) .why-icon { color: var(--green-dark); background: #eef7e8; }

.cta { background: var(--green); color: var(--white); padding: 2.4rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin: 0; }

/* ---------- Filters / pager / empty ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.filters input { flex: 2 1 220px; width: auto; }
.filters select { flex: 1 1 180px; width: auto; }
.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.pager a { min-width: 40px; text-align: center; padding: .5em .8em; border-radius: 8px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Package page ---------- */
.pkg-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: var(--white); }
.pkg-hero-img { position: absolute; inset: 0; }
.pkg-hero-img.placeholder span { display: none; }
.pkg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 30, 60, .8), rgba(3, 30, 60, .1) 70%); }
.pkg-hero-text { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 2rem; }
.pkg-hero h1 { color: var(--white); margin: .2em 0 0; max-width: 22ch; }
.pkg-hero .crumbs a { color: #d6e4f2; }
.crumbs { font-size: .92rem; color: var(--muted); margin: 0 0 .4rem; }
.crumbs a { text-decoration: none; }
.pkg-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .pkg-layout { grid-template-columns: 1fr 320px; align-items: start; } .pkg-side { position: sticky; top: 100px; } }
.pkg-side { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; }
.facts { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.facts small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
.facts strong { font: 800 1.1rem var(--font-head); color: var(--navy-ink); }
.ticks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #eef7e8; color: var(--green-dark); font-weight: 900; font-size: .8rem; display: grid; place-items: center; }

/* ---------- About / contact ---------- */
.about { display: grid; gap: 2rem; align-items: center; }

.prose { max-width: 66ch; font-size: 1.08rem; }
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 300px; } }
.contact-side { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
.contact-side small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .72rem; }

/* ---------- Panels / tables / admin ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.25rem; }
form.panel { margin-top: 1rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table.small { font-size: .85rem; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--paper); }
.row-muted td { color: var(--muted); }
.actions { white-space: nowrap; }
.actions > * { margin-right: .7rem; display: inline; }
.actions form { display: inline; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; }
body.is-admin .site-header { border-bottom: 3px solid var(--navy); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-bottom: 1.5rem; }
.stat { display: grid; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.stat strong { font: 900 2.2rem/1.1 var(--font-head); color: var(--navy); }
.stat:first-child strong { color: var(--red); }
.stat:hover { border-color: var(--navy); color: var(--muted); }
.status-pill { font: 800 .85rem var(--font-head); padding: .6em 1em; border-radius: 999px; text-decoration: none; }
.status-pill.is-closed { background: #fdeeee; color: #b42323; }
.status-pill.is-open { background: #eef7e8; color: #3b6e1b; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips a { padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; word-break: break-word; }
.message { background: var(--paper); border-radius: 10px; padding: 1rem 1.1rem; white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cde2; padding: 2rem 0; font-size: .92rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.footer-inner img { background: var(--white); border-radius: 50%; padding: 4px; }
.footer-inner strong { color: var(--white); font-family: var(--font-head); }
.footer-legal { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; line-height: 1.55; }
.footer-legal p, .bare-legal p { margin: 0 0 .35rem; }
.footer-legal .ack, .bare-legal .ack { color: var(--white); }
.bare-legal { position: relative; background: var(--navy-deep); color: #b9cde2; text-align: center; padding: 1.2rem 16px 1.4rem; font-size: .8rem; line-height: 1.55; }
.bare-legal .copy { max-width: 100ch; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Bare pages: splash fills the screen, legal footer sits at the bottom */
body.bare { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.bare > main { flex: 1; display: flex; flex-direction: column; }
body.bare > main > .closed, body.bare > main > .auth-shell { flex: 1; min-height: 0; }

/* ---------- Settings tabs ---------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 1rem 0 0; -webkit-overflow-scrolling: touch; }
.tab { font: 800 .95rem var(--font-head); color: var(--muted); text-decoration: none; padding: .8em 1.1em; border-radius: 10px 10px 0 0; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--navy); background: var(--sky); }
.tab.active { color: var(--navy); border-bottom-color: var(--green); background: var(--white); }
.tab-panel { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; margin-top: 0; }
#settings-form { margin: 0; }
.tab-panel[hidden] { display: none; }

/* ---------- Rich-text editor ---------- */
.rt-field { display: grid; gap: .35rem; }
.rt-label { font-weight: 600; font-size: .95rem; color: var(--navy-ink); }
.rt-label small { font-weight: 400; color: var(--muted); }
.rt { border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.rt:focus-within { border-color: var(--green); }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: .2rem; padding: .4rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.rt-btn { font: 700 .85rem var(--font-body); color: var(--navy-ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .35em .65em; cursor: pointer; min-width: 34px; }
.rt-btn:hover { background: var(--sky); border-color: var(--navy); }
.rt-sep { width: 1px; background: var(--line); margin: .2rem .25rem; }
.rt-area { min-height: 180px; padding: .9rem 1rem; outline: none; font-size: 1rem; max-width: none; }
.rt-area > :first-child { margin-top: 0; }
.rt-area h2 { font-size: 1.35rem; margin: 1em 0 .4em; }
.rt-area h3 { font-size: 1.1rem; margin: 1em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--green); color: var(--muted); }
.hero-intro { font-size: 1.2rem; color: #cfe0f1; max-width: 46ch; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-intro a { color: var(--white); }
.hero-intro strong { color: var(--white); }

/* ---------- Social links ---------- */
.social-edit { border: 1.5px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0; display: grid; gap: .7rem; }
.social-edit legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.social-edit .fine { margin: 0; }
.social-rows { display: grid; gap: .6rem; }
.social-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; gap: .5rem; align-items: center; }
@media (max-width: 560px) { .social-row { grid-template-columns: 1fr auto; } .social-row input { grid-column: 1 / -1; grid-row: 2; } }
.btn-icon { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; font-size: 1rem; }
.btn-icon:hover { border-color: #f1c4c4; color: #b42323; background: #fdeeee; }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; justify-self: start; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.social a { display: inline-block; font: 700 .82rem/1 var(--font-head); text-decoration: none; padding: .55em .9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: var(--white); }
.social a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.footer-social { margin-left: auto; }

/* ---------- Legal pages ---------- */
.legal-links { margin-bottom: .6rem !important; }
.legal-links a { color: var(--white); }
.bare-legal .legal-links a { color: #d6e4f2; }
.legal-shell { flex: 1; padding: 32px 16px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: 22px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.legal-card .auth-logo { margin: 0 0 1.4rem; }
.legal-doc { max-width: 75ch; }
.legal-doc h2 { margin-top: 1.4em; }

/* ---------- YouTube video blocks (adapt to landscape / portrait / square) ---------- */
.video { width: 100%; margin: 0 auto; }
.video-landscape { max-width: 640px; }
.video-square { max-width: 440px; }
.video-portrait { max-width: 320px; }
.video-frame { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: grid; place-items: center; background: linear-gradient(135deg, #ffffff, var(--sky)); }
.video-ph img { width: 26%; max-width: 130px; opacity: .9; }
.video-ph-play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(4, 75, 137, .85); right: 18px; bottom: 18px; }
.video-ph-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-ph-admin { position: absolute; left: 14px; bottom: 14px; font: 700 .8rem var(--font-head); background: var(--white); color: var(--navy); padding: .5em .8em; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.hero-media { width: 100%; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media .video { margin-right: 0; }
  .hero-media .video-portrait { aspect-ratio: auto; }
}
.about-media { width: 100%; }
@media (min-width: 800px) {
  .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.video-edit { border: 1.5px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0; display: grid; gap: .8rem; }
.video-edit legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.video-edit .fine { margin: 0; }
.video-opts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* ---------- Home hero: text left, large video right, minimal empty space ---------- */
.hero .hero-inner { gap: 1.25rem 2.5rem; align-items: center; padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 36px); }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3em; max-width: none; }
.hero .hero-intro { font-size: 1.05rem; line-height: 1.55; max-width: none; }
.hero .hero-intro p { margin-bottom: .6em; }
.hero .hero-media { width: 100%; }
.hero .video { max-width: none; }
.hero .video-frame { border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .28); }
.hero .video-portrait { max-width: 340px; }
.hero .video-square { max-width: 520px; }
@media (min-width: 900px) {
  .hero .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero .hero-media .video { margin-right: 0; }
  .hero .video-portrait { width: min(360px, 78vh * 9 / 16); max-width: 100%; }
  /* Tall or square videos: the text takes the remaining width so there's no gap in the middle */
  .hero .hero-inner:has(.video-portrait), .hero .hero-inner:has(.video-square) { grid-template-columns: minmax(0, 1fr) auto; }
  .hero .hero-inner:has(.video-square) .hero-media { width: min(460px, 40vw); }
  /* Shorts: text and video each take half the width; app.js sizes the video to the text's height */
  .hero .hero-inner:has(.video-portrait) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .hero .hero-inner:has(.video-portrait) .hero-intro { max-width: none; }
  .hero .hero-inner:has(.video-portrait) .hero-copy { border-left: 4px solid var(--green); padding-left: clamp(16px, 2vw, 28px); }
  .hero .hero-inner:has(.video-portrait) .hero-intro p:last-child { margin-bottom: 0; }
  .hero .hero-media:has(.video-portrait) { width: 100%; display: flex; justify-content: center; }
  .hero .hero-media .video-portrait { margin: 0; max-width: 100%; }
  .hero .video-square { margin-left: auto; }
}
@media (max-width: 899px) {
  .hero .video-portrait { max-width: 260px; }
}

/* ---------- Client Login + ECTAirstream ---------- */
.client-login.btn { text-decoration: none; }
.site-nav a.nav-client { background: var(--green); color: var(--white); border-radius: 999px; padding: .65em 1.1em; margin-left: .3rem; box-shadow: 0 2px 0 var(--green-dark); }
.site-nav a.nav-client:hover { background: var(--green-dark); color: var(--white); }
@media (max-width: 1199px) { .site-nav.open a.nav-client { align-self: flex-start; margin: .4rem 0 0; } }
.staff-link { margin: 1.1rem 0 0; font-size: .9rem; }
.staff-link a { color: var(--muted); }
.api-status { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.api-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.api-actions form { margin: 0; }
.api-card { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.api-card.is-todo { border-left-color: #e0a100; background: #fffaf0; }
.api-card h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.api-card p { margin: 0; }

/* ---------- ECTAirstream: itinerary ---------- */
.itinerary { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 3px solid var(--line); }
.it-day { position: relative; padding: 0 0 1.4rem 1.6rem; }
.it-day::before { content: ""; position: absolute; left: -9px; top: .25rem; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.it-daynum { font: 800 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); margin-bottom: .5rem; }
.it-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.it-item { display: grid; grid-template-columns: 36px 1fr; gap: .7rem; align-items: start; background: var(--paper); border-radius: 10px; padding: .7rem .9rem; }
.it-item strong { display: block; color: var(--navy-ink); font-weight: 600; }
.it-item small { color: var(--muted); }
.it-item p { margin: .35rem 0 0; font-size: .95rem; }
.it-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 1rem; color: var(--navy); border: 1px solid var(--line); }
.it-flight .it-icon { color: var(--red); }
.it-accommodation .it-icon { color: var(--green-dark); }

/* ---------- ECTAirstream: forms ---------- */
.ea-group { border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: .8rem; background: var(--white); }
.ea-group legend { font: 800 1rem var(--font-head); color: var(--navy-ink); padding: 0 .4em; }
.ea-group legend small { font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.ea-group .fine { margin: 0; }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: 1fr 1fr 1.4fr; } }
.traveller-rows { display: grid; gap: .5rem; }
.traveller-row { display: grid; grid-template-columns: 1fr 1fr 170px auto; gap: .5rem; align-items: center; }
@media (max-width: 640px) {
  .traveller-row { grid-template-columns: 1fr 1fr auto; }
  .traveller-row input[type=date] { grid-column: 1 / 3; grid-row: 2; }
}
.ea-thanks { background: #eef7e8; border: 1.5px solid #cfe6bf; border-radius: 14px; padding: 1.4rem 1.5rem; }
.ea-thanks h3 { color: #2f5f15; margin-bottom: .6rem; }
.ea-thanks p:last-child { margin-bottom: 0; }
.ea-ref { font: 900 1.15rem var(--font-head); color: var(--navy); background: var(--white); padding: .1em .5em; border-radius: 6px; letter-spacing: .03em; }
.ea-form button[disabled] { opacity: .7; cursor: progress; }
.cf-turnstile { min-height: 65px; }

/* ---------- Admin: ECTAirstream packages ---------- */
.pk-thumb { width: 72px; height: 48px; border-radius: 6px; object-fit: cover; display: block; background: var(--sky); }
.pk-thumb.placeholder { display: grid; place-items: center; font-size: .7rem; color: var(--muted); }
.sync-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.sync-bar form { margin: 0; }
details.local-pk summary { cursor: pointer; font: 700 1rem var(--font-head); color: var(--navy); }
.it-sub { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .95rem; color: var(--text); }
.it-sub li { margin: .15rem 0; }
.it-label { margin: .55rem 0 0 !important; font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.it-label-inline { font-weight: 600; color: var(--navy-ink); }
.pkg-hero .crumbs, .pkg-hero h1 { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.pkg-hero .crumbs { color: #fff; }
.pkg-hero .crumbs a { color: #fff; }
.raw-api summary { cursor: pointer; font: 700 1rem var(--font-head); color: var(--navy); }
.raw-json { background: #0c2236; color: #d9e6f2; padding: 1rem; border-radius: 10px; overflow: auto; max-height: 520px; font-size: .8rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* ---------- Package photo gallery + viewer ---------- */
.gallery { position: relative; margin: 1.6rem 0 2rem; }
.gal-track { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .4rem; scrollbar-width: thin; }
.gal-item { flex: 0 0 auto; width: clamp(200px, 34%, 300px); aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--sky); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.05); }
.gal-nav { position: absolute; top: calc(50% - .2rem); transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.gal-nav:hover { background: var(--sky); }
.gal-prev { left: -12px; }
.gal-next { right: -12px; }
.gal-nav[hidden] { display: none; }
@media (max-width: 640px) { .gal-item { width: 72%; } .gal-nav { display: none; } }
dialog.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 15, 28, .94); color: #fff; }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: rgba(5, 15, 28, .94); }
.lb-img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-btn { position: fixed; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; font-size: 1.3rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
.lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: .9rem; color: #c9d7e6; }

/* ---------- Admin: package images ---------- */
.img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.img-tile { border: 1px solid var(--line); border-radius: 10px; padding: .5rem; display: grid; gap: .35rem; background: var(--white); }
.img-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.form .img-tile label { font-size: .85rem; font-weight: 400; }
.img-order { display: flex !important; align-items: center; gap: .4rem; flex-wrap: nowrap !important; }
.form .img-order input { width: 64px; flex: 0 0 64px; padding: .3em .5em; }
.danger-check { color: #b42323 !important; }
.dest-pick select { min-width: 170px; max-width: 220px; padding: .4em .6em; font-size: .9rem; }

/* ---------- Consultants ---------- */
.cons-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cons-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.6rem 1rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.cons-card:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 2px 4px rgba(4, 40, 80, .08), 0 16px 36px rgba(4, 40, 80, .14); }
.cons-card .cons-photo { width: 150px; height: 150px; margin-bottom: .6rem; }
.cons-name { font: 800 1.15rem var(--font-head); color: var(--navy-ink); }
.cons-loc { color: var(--muted); font-size: .95rem; }
.cons-photo { display: block; border-radius: 50%; object-fit: cover; background: var(--sky); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--line); }
.cons-initials { display: grid; place-items: center; font: 900 2.4rem var(--font-head); color: var(--navy); background: var(--sky); }
.cons-photo-lg { width: 200px; height: 200px; flex: 0 0 200px; }
.cons-photo-lg.cons-initials { font-size: 3.4rem; }
.cons-photo-sm { width: 96px; height: 96px; flex: 0 0 96px; font-size: 1.6rem; }
.cons-photo-xs { width: 44px; height: 44px; border-width: 2px; font-size: .95rem; }
.cons-head { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center; margin: .6rem 0 2rem; }
.cons-head h1 { margin: 0 0 .2rem; }
.cons-title { font: 700 1.15rem var(--font-head); color: var(--green-dark); margin: 0 0 .3rem; }
.cons-head .cons-loc { margin: 0 0 1rem; }
.cons-bio { max-width: 72ch; margin-bottom: 2.4rem; }
.cons-profile h2 { margin-top: .4rem; }
.badge-carousel { position: relative; margin: .8rem 0 2.6rem; }
.badge-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .4rem .2rem .8rem; scrollbar-width: thin; }
.badge-item { flex: 0 0 auto; width: 150px; height: 150px; display: grid; place-items: center; padding: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; pointer-events: none; user-select: none; }
.badge-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.badge-carousel .gal-nav { top: calc(50% - .4rem); }
@media (max-width: 640px) { .badge-item { width: 120px; height: 120px; } .badge-carousel .gal-nav { display: none; } }
.cons-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-height: 460px; background: var(--sky); }
.cons-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .cons-map { aspect-ratio: 4 / 3; } .cons-head { justify-content: center; text-align: center; } }
.cons-photo-edit { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cons-photo-edit > div { flex: 1 1 260px; display: grid; gap: .6rem; }
.badge-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.badge-thumb { width: 100%; aspect-ratio: 1; object-fit: contain !important; background: var(--paper); }
@media (min-width: 1200px) { .site-nav a, .site-nav .linklike { padding: .7em .65em; } }
.site-nav a, .site-nav .linklike { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1320px) { .brand img { width: 200px; } .site-nav a, .site-nav .linklike { padding: .7em .5em; font-size: .94rem; } }
.cons-contact { max-width: 760px; margin: 0 0 2.6rem; scroll-margin-top: 100px; }
.cons-contact h2 { margin-top: 0; }
#message { scroll-margin-top: 100px; }
.challenge { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .5rem; }
.form .challenge label { display: block; font-weight: 600; }
.challenge-input { max-width: 160px; }
.cons-profile .cons-map + .fine { margin-bottom: 2.2rem; }

/* ---------- Multiple destinations per package ---------- */
.dest-multi { position: relative; }
.dest-multi summary { cursor: pointer; list-style: none; max-width: 220px; padding: .4em 1.8em .4em .7em; border: 1.5px solid var(--line); border-radius: 8px; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; background: var(--white); }
.dest-multi summary::-webkit-details-marker { display: none; }
.dest-multi summary::after { content: "▾"; position: absolute; right: .6em; top: .35em; color: var(--muted); }
.dest-multi[open] summary { border-color: var(--green); }
.dest-menu { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 320px; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .7rem .8rem; display: grid; gap: .35rem; }
.dest-menu .check { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.dest-menu .check input { width: auto; }
.dest-menu .fine { margin: .2rem 0 .3rem; }
.dest-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem 1rem; }

/* ---------- Cruise itineraries: ports of call and days at sea ---------- */
.it-port .it-icon { color: var(--navy); }
.it-sea { background: #eef5fb; }
.it-sea .it-icon { background: #dcebf8; border-color: #c9def2; }
.it-sea strong { font-weight: 500; color: var(--muted); font-style: italic; }
.it-cruise { background: var(--sky); border-left: 3px solid var(--navy); }

/* ---------- Menu: About Us ▾ (Our Consultants) ---------- */
.nav-drop { position: relative; }
.nav-parent .caret { font-size: .7em; margin-left: .15em; color: var(--muted); }
.nav-sub a { display: block; }
.nav-sub a.current { color: var(--green-dark); }
@media (min-width: 1200px) {
  .nav-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; z-index: 30;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* keeps the menu open while the pointer moves down */
  .nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-sub a { padding: .65em .8em !important; border-radius: 8px; }
}
@media (max-width: 1199px) {
  .site-nav.open .nav-drop { display: flex; flex-direction: column; }
  .site-nav.open .nav-parent .caret { display: none; }
  .site-nav.open .nav-sub a { padding-left: 1.8em !important; font-weight: 600 !important; color: var(--muted); }
  .site-nav.open .nav-sub a::before { content: "↳ "; }
}

/* ---------- Flight specials: split-flap departures board ---------- */
.flights { padding-bottom: 0; }
.flights-head { margin-bottom: 1rem; }
.flights-from { margin: .15rem 0 0; font: 800 1.05rem var(--font-head); color: var(--green-dark); letter-spacing: .02em; }
.fboard {
  --tile: clamp(13px, 2.1vw, 22px);
  background: #1b1d21; border-radius: 14px; padding: 14px clamp(10px, 2vw, 22px) 10px;
  box-shadow: inset 0 0 0 1px #2c2f35, 0 10px 28px rgba(4, 30, 60, .25);
  color: #f2f2ee; overflow: hidden;
}
.fb-top { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 10px; border-bottom: 1px solid #2f333a; margin-bottom: 6px; }
.fb-title { font: 900 .95rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #f6c744; }
.fb-clock { font: 700 1rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #f6c744; letter-spacing: .1em; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(130px, 180px) auto auto 1fr auto; column-gap: clamp(10px, 2vw, 26px); }
.fb-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 9px 2px; border-bottom: 1px solid #272a30; }
.fb-list .fb-row:last-child, .fb-labels { border-bottom: 0; }
.fb-labels { padding: 4px 2px 6px; border-bottom: 0; font: 800 .68rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #8d939c; }
.fb-r { justify-self: end; text-align: right; }
.fb-logo { display: block; }
/* Big split-flap tile carrying the airline's logo */
.flap-big {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  height: calc(var(--tile) * 2.5); border-radius: 6px; overflow: hidden;
  background: linear-gradient(#fbfbf8 0 49.6%, #ecece7 50.4% 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .5);
}
.flap-big::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0, 0, 0, .55); z-index: 3; }
.flap-big img, .flap-big-face img, .flap-big-leaf-in img { max-width: 86%; max-height: 74%; width: auto; height: auto; object-fit: contain; }
.flap-big-code { font: 900 calc(var(--tile) * 1.45) / 1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #1b1d21; letter-spacing: .1em; }
.flap-big-name { font: 800 .8rem/1.1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; text-align: center; padding: 0 6px; }
.flap-big.is-blank img, .flap-big.is-blank .flap-big-code { visibility: hidden; }
.flap-big-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: inherit; z-index: 1; }
.flap-big-leaf { position: absolute; left: 0; right: 0; top: 0; height: 50%; overflow: hidden; z-index: 2; background: #fbfbf8;
  transform-origin: 50% 100%; animation: bigfold .13s ease-in forwards; }
.flap-big-leaf-in { position: absolute; left: 0; right: 0; top: 0; height: 200%; display: flex; align-items: center; justify-content: center; }
@keyframes bigfold { 0% { transform: perspective(320px) rotateX(0); } 100% { transform: perspective(320px) rotateX(-90deg); filter: brightness(.6); } }
.flaps { display: inline-flex; gap: 2px; white-space: nowrap; }
.flap {
  position: relative; display: inline-block; width: calc(var(--tile) * .82); height: calc(var(--tile) * 1.3);
  line-height: calc(var(--tile) * 1.3); text-align: center;
  font: 700 var(--tile) ui-monospace, "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace;
  color: #f4f4ef; background: linear-gradient(#2c2f34 0 49%, #222428 51% 100%); border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 1px rgba(0, 0, 0, .4);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .65); }
.flaps-sm .flap { --tile: clamp(12px, 1.8vw, 18px); }
.flaps-price .flap { color: #f6c744; }
.flap::before {
  content: attr(data-prev); position: absolute; left: 0; right: 0; top: 0; height: 50%; overflow: hidden;
  background: #2c2f34; color: inherit; border-radius: 3px 3px 0 0; transform-origin: 50% 100%;
  transform: perspective(160px) rotateX(-90deg); backface-visibility: hidden; z-index: 1;
}
.flap.flip::before { animation: flapdown .1s ease-in forwards; }
.flap.flip { animation: flapsettle .1s ease-out; }
@keyframes flapdown { 0% { transform: perspective(160px) rotateX(0); filter: brightness(1); } 100% { transform: perspective(160px) rotateX(-90deg); filter: brightness(.55); } }
@keyframes flapsettle { 0% { filter: brightness(1.35); } 100% { filter: none; } }
.flap::after { z-index: 2; }
.fb-pill { display: inline-block; font: 800 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .5em .75em; border-radius: 4px; white-space: nowrap; }
.fb-return { background: #60a433; color: #fff; }
.fb-oneway { background: #f6c744; color: #1b1d21; }
.flights-fine { max-width: 860px; margin: .8rem 0 0; font-size: .78rem; }
@media (max-width: 760px) {
  .fboard { --tile: clamp(12px, 4vw, 18px); }
  .fb-labels { display: none; }
  .fb-list { display: block; }
  .fb-row { column-gap: 12px; grid-template-columns: auto 1fr; grid-template-areas: "logo dest" "class price" "class trip"; row-gap: 6px; padding: 12px 0; }
  .fb-logo { grid-area: logo; width: 128px; }
  .fb-dest { grid-area: dest; justify-self: end; }
  .fb-class { grid-area: class; align-self: start; }
  .fb-price { grid-area: price; }
  .fb-trip { grid-area: trip; }
  .flaps-sm .flap { --tile: clamp(11px, 3.4vw, 15px); }
  .fb-dest .flaps { max-width: 100%; overflow: hidden; }
}

/* Admin: flight specials editor */
.fs-rows { display: grid; gap: 1rem; margin: 1rem 0; }
.fs-row { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0; }
.fs-row legend { font-weight: 800; padding: 0 .4em; color: var(--navy-ink); }
.fs-expired { opacity: .65; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem 1rem; }
.fs-grid label { align-content: start; }
.fs-logo { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.fs-logo-label { font-weight: 600; color: var(--navy-ink); }
.fs-logo-now { --tile: 20px; display: block; width: 200px; max-width: 100%; }
.fs-logo-now .flap-big { background: linear-gradient(#fbfbf8 0 49.6%, #ecece7 50.4% 100%); box-shadow: inset 0 0 0 1px var(--line); }
.fs-logo input[type=file] { font-size: .85rem; max-width: 100%; }
.fs-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .8rem; }
.fs-actions .danger { color: var(--red); }

.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: .8rem; }
.al-item { display: grid; gap: .5rem; align-content: start; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }
.al-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .92rem; }
.al-head .tag { margin-left: auto; }
.tag-muted { background: var(--paper); color: var(--muted); }
.al-file { font-size: .85rem !important; }
.al-file input[type=file] { font-size: .82rem; max-width: 100%; }

/* Fixed departure dates (ECTAirstream fixedDepartures) */
.card .card-dates { font: 700 .85rem var(--font-head); color: var(--green-dark); margin: -.2em 0 .6em; }
.facts-dates { grid-column: 1 / -1; }
.dep-dates { list-style: none; margin: .3em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.dep-dates li { font: 700 .9rem var(--font-head); color: var(--navy); background: var(--sky); border-radius: 999px; padding: .35em .8em; }

/* Home page announcement */
.announce { --a-bg: var(--sky); --a-ink: var(--navy-deep); --a-accent: var(--navy); background: var(--a-bg); color: var(--a-ink); border-bottom: 3px solid var(--a-accent); }
.announce[hidden] { display: none; }
.announce-important { --a-bg: #fff3d6; --a-ink: #5c3b00; --a-accent: #e3a100; }
.announce-good { --a-bg: #eaf6e1; --a-ink: #24470f; --a-accent: var(--green); }
.announce-inner { display: flex; align-items: flex-start; gap: .8rem; padding-top: .8rem; padding-bottom: .8rem; }
.announce-icon { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--a-accent); color: #fff; font-weight: 900; font-size: .95rem; margin-top: .05rem; }
.announce-text { flex: 1; min-width: 0; font-size: 1rem; line-height: 1.5; }
.announce-text p { margin: 0 0 .3em; }
.announce-text p:last-child { margin-bottom: 0; }
.announce-text a { color: inherit; font-weight: 700; }
.announce-preview { font-size: .8rem; opacity: .8; font-style: italic; }
.announce-close { flex: none; background: none; border: 0; color: inherit; font-size: 1rem; line-height: 1; padding: .45rem; border-radius: 6px; cursor: pointer; opacity: .7; }
.announce-close:hover, .announce-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, .07); }
.announce-edit { display: grid; gap: .9rem; }
