/* TheMiddleEast.com · the TheMediterranean.com page layout, in Keith's green and gold.
   Loaded after home.css on every page. Part 1: things every page shares (music button, share card, search groups).
   Part 2: the inner pages: full photograph cover, jump bar, white and ivory bands, hotel cards, lists, questions. */

/* ---------- Part 1: shared ---------- */
.glide.paused .glide-track { animation-play-state: paused; }
.group h4 { margin: 0; padding: 12px 16px 4px; font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #E2B566; }

/* Music button: built in, hidden until songs are listed in assets/music.js */
.iconbtn.music { width: auto; border-radius: 22px; padding-inline: 12px 14px; gap: 7px; display: inline-flex; align-items: center; font: inherit; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.iconbtn.music[hidden] { display: none !important; }
.iconbtn.music .mnote { width: 16px; height: 16px; color: #E7A43E; flex: 0 0 auto; }
.iconbtn.music .eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.iconbtn.music .eq i { width: 2px; background: #E7A43E; height: 4px; }
.iconbtn.music.playing .eq { display: inline-flex; }
.iconbtn.music.playing .mnote { display: none; }
.iconbtn.music.playing .eq i { animation: eq 1s ease-in-out infinite; }
.iconbtn.music.playing .eq i:nth-child(2) { animation-delay: .2s; }
.iconbtn.music.playing .eq i:nth-child(3) { animation-delay: .4s; }
.iconbtn.music.playing { animation: musicflash 3s ease-in-out infinite; }
.iconbtn.music.waiting { border-color: #E7A43E; animation: musicpulse 2.4s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@keyframes musicpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231,164,62,.5); } 50% { box-shadow: 0 0 0 7px rgba(231,164,62,0); } }
@keyframes musicflash { 0%, 30%, 100% { border-color: rgba(231,164,62,.55); box-shadow: 0 0 0 0 rgba(231,164,62,0); } 10% { border-color: #F4C561; box-shadow: 0 0 0 3px rgba(244,197,97,.45), 0 0 14px rgba(244,197,97,.55); } }
@media (max-width: 420px) { .iconbtn.music { padding-inline: 10px 12px; font-size: 10.5px; } }
.music-row { display: flex; justify-content: flex-end; margin: 0 0 22px; }
.music-row:not(:has(.music:not([hidden]))) { display: none; }
.music-row .iconbtn.music { background: var(--deep); height: 44px; }

/* Share, as on TheMediterranean.com */
.share-btns { display: flex; flex-wrap: wrap; gap: 12px; }
footer.foot a.sharebtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(231,164,62,.6); color: #F3E6CC; text-decoration: none; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.03); transition: background .25s ease, border-color .25s ease, color .25s ease; }
footer.foot a.sharebtn:hover, footer.foot a.sharebtn:focus-visible { background: rgba(231,164,62,.14); border-color: #E7A43E; color: #fff; }
.sharebtn svg { width: 18px; height: 18px; color: #E7A43E; flex: 0 0 auto; }
@media (max-width: 560px) { .share-btns { width: 100%; } footer.foot a.sharebtn { flex: 1 1 100%; justify-content: center; } }
.invite { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(6,20,10,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.invite[hidden] { display: none; }
.invite-card { position: relative; width: 100%; max-width: 440px; box-sizing: border-box; background: var(--deep); color: #F3EEE4; border: 1px solid rgba(231,164,62,.6); padding: 28px 24px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.invite-card .eyebrow { color: #E7C78E; }
.invite-card h3 { color: #fff; font-size: 26px; margin-top: 6px; }
.invite-msg { margin: 14px 0 0; padding: 14px 16px; background: rgba(255,255,255,.05); border-left: 2px solid var(--gold); font-size: 16px; color: #EAD9B6; word-break: break-word; -webkit-user-select: all; user-select: all; }
.invite-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.invite-btns .btn-gold { margin-top: 0; }
.invite-copy { font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #F3E6CC; background: none; border: 1px solid rgba(231,164,62,.6); padding: 13px 18px; cursor: pointer; }
.invite-copy:hover { background: rgba(231,164,62,.14); }
.invite-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; color: #E7C78E; font-size: 28px; cursor: pointer; }
.invite-note { margin: 12px 0 0; min-height: 1.3em; font-size: 14px; color: #E7C78E; }
@media (max-width: 420px) { .invite-btns > * { flex: 1 1 100%; text-align: center; } }

/* Photographs placed from assets/photos.js */
[data-photo] picture, [data-photo] picture img { display: block; width: 100%; height: 100%; }
[data-photo] picture img { object-fit: cover; max-width: none; }
.resort .thumb[data-photo], .sthumb[data-photo], .evt[data-photo] { overflow: hidden; }

/* ---------- Part 2: inner pages ---------- */
.hero.country { min-height: min(92vh, 760px); }
@media (max-width: 699px) { .hero.country { min-height: 640px; } }
.hero.country .slides .slide .ph { background-position: 0 0, 0 0; }
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #F3EEE4; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.crumbs a { color: #F3EEE4; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .7; padding-inline: 6px; }
.hero.country .hero-body h1 { max-width: 20ch; font-size: clamp(36px, 5.2vw, 64px); }
.hero.country .hero-body h1.place-name { font-size: clamp(56px, 11vw, 120px); max-width: none; line-height: .95; }
.hero.country .hero-body h1 .sub-title { display: block; font-size: .42em; line-height: 1.25; font-style: normal; color: #F2F4EF; margin-top: 14px; max-width: 34ch; -webkit-text-fill-color: #F2F4EF; background: none; filter: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #F2F4EF; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.pills li::before { content: "\25C6"; color: var(--gold); font-size: 9px; margin-right: 8px; vertical-align: 2px; }

.jump { position: sticky; top: 0; z-index: 25; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; -webkit-overflow-scrolling: touch; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: 0 0 auto; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--deep); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.jump a:hover, .jump a.on { border-color: var(--gold); color: var(--gold-dark); }
.stick.show ~ .jump { top: calc(64px + env(safe-area-inset-top, 0px)); }

section.band { padding-block: 64px; }
@media (max-width: 699px) { section.band { padding-block: 48px; } }
.band.mist { background: var(--mist); }
.band .head { display: grid; gap: 8px; margin-bottom: 28px; }
.band .head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
.band .head .sub { margin: 0; color: var(--muted); max-width: 60ch; }
.band .prose { max-width: 72ch; }
.band .prose h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 18px; }
.band .prose p, .band p.prose { margin: 0 0 16px; }
.band h2 { margin-bottom: 18px; }
.band .prose a, .band .cards a, .entries a { color: var(--link); }

/* At a glance (the facts) */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 28px; margin: 0; }
.glance div { border-top: 1px solid var(--line); padding: 12px 0 14px; }
.glance dt { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.glance dd { margin: 0; font-size: 16px; color: var(--ink); }

/* Cards: the resort cards of TheMediterranean.com */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; background: var(--mist); border-top: 2px solid var(--gold); min-width: 0; transition: transform .35s ease, box-shadow .35s ease; }
.band.mist .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,34,19,.12); }
.card > div:empty { display: none; }
.card h3 { font-size: 23px; line-height: 1.15; color: var(--deep); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--link); }
.card .meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .site { font-size: 14px; margin-top: auto; padding-top: 6px; color: var(--link); }
.stars { color: var(--gold-dark); letter-spacing: 2px; font-size: 13px; margin-right: 6px; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; letter-spacing: .08em; color: var(--gold-dark); border: 1px solid rgba(174,139,85,.5); padding: 1px 8px; border-radius: 999px; margin: 0 6px 4px 0; text-transform: none; }
.badge.soon { color: #8A2A22; border-color: rgba(163,38,42,.45); }
.list-num { counter-reset: n; }
.list-num .card h3::before { counter-increment: n; content: counter(n) ". "; color: var(--gold-dark); }
.card .ct { display: none; }
.card.has-thumb .ct { display: block; margin: -22px -20px 6px; aspect-ratio: 3 / 2; }

/* Section index cards (In this section / Keep exploring): the "Everything is First Class" grid */
.related .cards { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related .card { background: var(--paper); border-top: 0; padding: 20px 22px; }
.related .card:hover { transform: none; box-shadow: none; background: #FBFCFA; }
.related .card h3 { font-size: 24px; }

/* Tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 0; }
th, td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
td:first-child { color: var(--deep); font-weight: 600; }
.tablewrap table.wide th, .tablewrap table.wide td { min-width: 10.5rem; }
.tablewrap table.wide th:first-child, .tablewrap table.wide td:first-child { min-width: 7.5rem; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.band.mist .tablewrap table.wide td:first-child, .band.mist .tablewrap table.wide th:first-child { background: var(--mist); }

/* Questions: the TheMediterranean.com question cards */
.band details { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 14px 16px; margin-bottom: 10px; max-width: 860px; }
.band details summary { cursor: pointer; font-family: var(--display); font-size: 20px; color: var(--deep); list-style: none; }
.band details summary::-webkit-details-marker { display: none; }
.band details summary::after { content: " +"; color: var(--gold-dark); }
.band details[open] summary::after { content: " \2013"; }
.band details .ans { margin-top: 10px; font-size: 15.5px; }
.band details .ans p { margin: 0 0 8px; }

/* Notes, calls to action, small print */
.note { background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--gold); padding: 16px 18px; max-width: 860px; }
.band.mist .note { background: var(--paper); }
.note b { color: var(--gold-dark); letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px; display: block; margin-bottom: 4px; }
.cta { background: var(--deep); color: #F3EEE4; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 0; }
.cta p { margin: 0; max-width: 56ch; color: #E6ECE4; }
.cta strong { color: #fff; }
.btn, .btn-gold { display: inline-block; color: var(--deeper); background: linear-gradient(180deg, #E7A43E, #C7882F); text-decoration: none; padding: 13px 20px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer; font-family: var(--body); }
.btn:hover, .btn-gold:hover { color: var(--deeper); filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--deep); border: 1px solid var(--gold); }
.disclaimer, .checked { font-size: 13px; color: var(--muted); margin: 22px 0 0; max-width: 80ch; }
.jdate { margin: 0; font-size: 13px; letter-spacing: .14em; color: #F3EEE4; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.jmeta { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.sources ul { margin: 0; padding-left: 18px; font-size: 14px; }
.sources li { margin: 4px 0; }

/* Feature photograph inside a band (hidden until a photograph is listed) */
figure.photo { margin: 0 0 36px; position: relative; overflow: hidden; background: var(--mist); }
figure.photo img { display: block; width: 100%; height: clamp(220px, 42vw, 460px); object-fit: cover; }
figure.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 10px; font-size: 12.5px; color: #F2F4EF; background: linear-gradient(180deg, rgba(6,20,10,0), rgba(6,20,10,.6)); }

/* Forms on white */
form.enquiry { display: grid; gap: 14px; max-width: 640px; }
form.enquiry label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom: 2px solid var(--gold); }
.letter form.enquiry { display: flex; max-width: none; gap: 0; }
.letter form.enquiry input { border: 0; background: transparent; color: #fff; }
.sent { color: var(--link); }
.planner { display: grid; gap: 16px; }
.planner fieldset { border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 14px 16px; margin: 0; background: var(--paper); }
.planner legend { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); padding: 0 6px; }
.planner .two { display: grid; gap: 14px; }
@media (min-width: 640px) { .planner .two { grid-template-columns: 1fr 1fr; } }
.planner .two label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.planner select, .planner input[type=number] { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 7px 12px; font-size: 15px; cursor: pointer; background: var(--paper); border-radius: 999px; }
.chips input { accent-color: #C7882F; }
.plan-out .card { margin-bottom: 12px; }

/* The cookie notice on white */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin: 0 auto; background: var(--deep); color: #E6ECE4; border: 1px solid rgba(231,164,62,.6); padding: 14px 16px; font-size: 15px; display: none; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie a { color: #E2B566; }
.cookie .btn.ghost { color: #F3EEE4; }

/* Reveal on inner pages */
html.js .rv { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .rv:not(.in) { opacity: .12; transform: translateY(34px); }
@media (prefers-reduced-motion: reduce) { html.js .rv:not(.in) { opacity: 1; transform: none; } .iconbtn.music .eq i, .iconbtn.music.playing, .iconbtn.music.waiting { animation: none !important; } }

/* The homepage feature box never wider than the phone */
.sc-box { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sc-box { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.hero-body a { color: #F3D9A6; }
.hero-body .crumbs a { color: #F3EEE4; }

/* YuliVG music credit and buttons on every page (October 18, 2026) */
.music-row .iconbtn.music{background:#122D1A}.music-row.foot-music{margin:26px 0 0}
.credit-music{margin-top:8px}.credit-music a.gold-name{color:#E2A845;text-decoration:none}.credit-music a.gold-name:hover,.credit-music a.gold-name:focus-visible{color:#F4C561;text-decoration:underline}
header.top .iconbtn.music{width:auto}

/* Helpful-content pass (October 18, 2026): the visible "Updated" date under the opening, and the From the US box */
.hero-body .updated { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #F3EEE4; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero-body .updated time { color: inherit; }
.us-band { border-top: 2px solid var(--gold); }
.us-band .glance dd a { color: var(--link); white-space: nowrap; }
.us-band .glance dd { line-height: 1.5; }

/* Spotlight of the Month (October 18, 2026) */
#spotlight .spot[hidden] { display: none; }
#spotlight .sc-img picture, #spotlight .sc-img img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.spot-next { margin: 16px 0 0 !important; font-size: 14.5px; color: #F3D9A6 !important; }
.spot-next b { color: #fff; font-weight: 600; }
.spot-next a { color: #E2B566; }
.spot-next-static { color: var(--muted) !important; }
.spot-next-static b { color: var(--deep); }
.spot-next-static a { color: var(--link); }
.card .ct picture, .card .ct img { display: block; width: 100%; height: 100%; object-fit: cover; }
