/* ============================================================
   Cyclades Island Page — design system (pilot)
   ============================================================ */
/* Full-bleed breakout: render edge-to-edge even inside a constrained
   theme content container. overflow-x:clip clips the scrollbar-induced
   overflow WITHOUT creating a scroll container (so the sticky sub-nav
   still works — clip + visible is not coerced to a scroll container). */
.cip-root { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; overflow-x: clip; }

.cip-page,
.cip-hero,
.cip-subnav,
.cip-final {
  --sea:   #123a6b;
  --sea-2: #0f2d57;
  --teal:  #0e86c8;
  --teal-d:#0a6aa6;
  --sand:  #e7f3fc;
  --ink:   #16304f;
  --muted: #5a708a;
  --line:  #d8e6f2;
  --gold:  #2ca6e0;
  --bg:    #ffffff;
  --bg-tint:#e7f3fc;
  --radius:18px;
  --shadow:0 18px 40px -24px rgba(11,58,86,.45);
  font-family: inherit;
  color: var(--ink);
  box-sizing: border-box;
}
.cip-page *,
.cip-hero *,
.cip-subnav *,
.cip-final * { box-sizing: border-box; }

.cip-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cip-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* ---------- HERO ---------- */
.cip-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Keep the photo bright; add contrast only where text/widgets sit
   (bottom-left title, bottom-right weather) plus a light top band for the header. */
.cip-hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(135% 105% at 18% 102%, rgba(5,22,34,.64) 0%, rgba(5,22,34,.30) 38%, rgba(5,22,34,0) 66%),
    radial-gradient(95% 85% at 92% 102%, rgba(5,22,34,.46) 0%, rgba(5,22,34,0) 56%),
    linear-gradient(180deg, rgba(5,22,34,.34) 0%, rgba(5,22,34,0) 26%, rgba(5,22,34,0) 100%);
}
.cip-hero__inner { position: relative; width: 100%; padding-top: 90px; padding-bottom: 54px; }
.cip-hero__region { text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; opacity: .9; margin: 0 0 10px; color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cip-hero__title { font-size: clamp(48px, 8vw, 104px); line-height: .95; margin: 0; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 6px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.42); color: #fff !important; }
.cip-hero__tagline { font-size: clamp(18px, 2.4vw, 26px); font-weight: 400; margin: 14px 0 22px; max-width: 40ch; opacity: .96; color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cip-hero .cip-btn { color: #fff !important; }

.cip-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.cip-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
}
.cip-chips .cip-chip--ghost { background: transparent; border-color: rgba(255,255,255,.4); }

.cip-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cip-btn--primary { background: var(--teal); color: #fff !important; box-shadow: 0 12px 24px -10px rgba(18,58,107,.8); }
.cip-btn--primary:hover { background: var(--teal-d); transform: translateY(-2px); }
/* AI trip-planner button = same colour as the header aiTripPlanner menu button (#FF385C) */
.cip-btn--ai { background: transparent; color: #ff385c; border: 1.6px solid #ff385c; box-shadow: none; }
.cip-btn--ai:hover { background: #ff385c; color: #fff; transform: translateY(-2px); }
.cip-btn--ai .cip-ico { color: currentColor; }
/* aiTripPlanner CTA folded into the bottom of the «Κοντινά νησιά» panel */
.cip-nearby__plan { text-align: center; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(34px, 4vw, 56px); border-top: 1px solid var(--line); }
.cip-nearby__plan .cip-eyebrow { margin-bottom: 12px; }
.cip-nearby__plan .cip-h2 { margin: 0 0 12px; }
.cip-nearby__plan .cip-lead { max-width: 62ch; margin: 0 auto; }
.cip-nearby__planbtns { justify-content: center; margin-top: clamp(20px, 2.4vw, 30px); }
.cip-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cip-btn--ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- HERO WEATHER + LOCATION (top-right, glassy) ---------- */
.cip-hero-wx { position: absolute; bottom: 48px; right: 60px; top: auto; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.cip-locmap { margin: 0 0 22px; text-align: center; }
.cip-locmap__svg { width: 210px; max-width: 100%; height: auto; display: inline-block; overflow: visible; }
.cip-locmap__svg polygon { fill: #0e86c8; }
.cip-locmap__pin { filter: drop-shadow(0 0.5px 0.6px rgba(0,0,0,.28)); }
.cip-locmap__pin path { fill: var(--sea); }
.cip-locmap__pin circle { fill: #fff; }
.cip-wx { min-width: 236px; padding: 4px 2px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cip-wx__now { display: flex; align-items: center; gap: 12px; }
.cip-wx-ico { width: 38px; height: 38px; flex: none; }
.cip-wx__now .cip-wx-ico { width: 46px; height: 46px; }
.cip-wx__temp { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cip-wx__meta { display: flex; flex-direction: column; margin-left: auto; text-align: right; }
.cip-wx__meta span { font-size: 12px; opacity: .8; }
.cip-wx__meta small { font-size: 13px; font-weight: 600; }
.cip-wx__days { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.cip-wx__day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cip-wx__day span { font-size: 11px; opacity: .8; }
.cip-wx__day .cip-wx-ico { width: 24px; height: 24px; }
.cip-wx__day b { font-size: 14px; font-weight: 700; }
@media (max-width: 768px) {
  .cip-hero-wx { bottom: 20px; right: 14px; gap: 8px; }
  .cip-wx { min-width: 0; padding: 4px 2px; }
  .cip-wx__temp { font-size: 32px; }
  .cip-wx__days { display: none; }
  .cip-loc em { display: none; }
}

/* ---------- STICKY SUBNAV ---------- */
.cip-subnav {
  position: sticky; top: 62px; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,58,107,.14);
}
.cip-subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 1600px; }
.cip-subnav__inner::-webkit-scrollbar { display: none; }
.cip-subnav a {
  flex: none; padding: 16px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s;
}
.cip-subnav a:hover { color: var(--ink); }
.cip-subnav a.is-active { color: var(--teal-d); border-bottom-color: var(--teal); }

/* ---------- SECTIONS ---------- */
/* Cycladic patterned canvas behind the content (gentle Aegean waves in galazio);
   each standard section floats as a white rounded panel on top (Visit Greece style).
   Full-bleed sections (hero, history/sights photos, final CTA) stay edge-to-edge. */
/* The base tint + wave-line colour default to Aegean blue but are overridden
   per island by an inline style on .cip-page, derived from the hero photo
   (see CIP_Renderer::page_bg_style) — sandy islands get a warm sand canvas,
   blue ones stay blue, etc. */
.cip-page {
  background-color: var(--page-bg, #e7f1fb);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='30'><g fill='none' stroke='%230e86c8' stroke-opacity='0.14' stroke-width='1.3'><path d='M0 10 Q15 -2 30 10 T60 10'/><path d='M0 25 Q15 13 30 25 T60 25'/></g></svg>");
  background-size: 92px 46px;
}
.cip-section { padding: 74px 0; background: var(--bg); }
.cip-section--tint { background: var(--bg-tint); }
/* Floating white panels for standard (non full-bleed) sections */
.cip-section:not(.cip-splitsec) { background: transparent; padding: 16px 0; }
.cip-section:not(.cip-splitsec) > .cip-wrap {
  max-width: 1600px;
  background: #fff;
  border-radius: clamp(22px, 2.6vw, 38px);
  padding: clamp(26px, 2.6vw, 46px) clamp(34px, 4.4vw, 82px);
  box-shadow: 0 26px 60px -36px rgba(18, 58, 107, .34);
}
/* The full-bleed split photo sections also float as rounded panels on the
   pattern (same column width & shadow as the standard panels). */
.cip-splitsec {
  max-width: 1600px;
  margin: 16px auto;
  border-radius: clamp(22px, 2.6vw, 38px);
  box-shadow: 0 26px 60px -36px rgba(18, 58, 107, .34);
}
/* History → Sights are independent floating panels with the normal gap between
   them; the Cycladic pattern shows through the gap. (No connecting bridge.) */
.cip-section--flush { padding-bottom: 0; }
.cip-section--tighttop { padding-top: 6px; }
.cip-head { max-width: 62ch; margin: 0 0 38px; }
.cip-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 700; color: var(--teal-d); margin-bottom: 12px; }
.cip-h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.02em; color: var(--sea); }
.cip-lead { font-size: 18.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.cip-sub { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; color: var(--sea); margin: 0 0 16px; }

/* ---------- OVERVIEW ---------- */
.cip-overview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.cip-overview__text p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; color: #33454e; }
.cip-why { margin-top: 26px; }
.cip-why h3 { font-size: 19px; color: var(--sea); margin: 0 0 12px; }
.cip-why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cip-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.cip-why li .cip-ico { color: var(--teal); margin-top: 3px; }
.cip-factcard { color: var(--ink); position: sticky; top: 96px; }
.cip-factcard h3 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-d); font-weight: 700; }
.cip-factcard dl { margin: 0; display: grid; gap: 16px; }
.cip-factcard dt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.cip-factcard dt .cip-ico { color: var(--teal); }
.cip-factcard dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--sea); }

/* ---------- CARDS ---------- */
.cip-cards { display: grid; gap: 22px; }
.cip-cards--4 { grid-template-columns: repeat(4, 1fr); }
.cip-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cip-card--photo {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  text-decoration: none; color: #fff; box-shadow: var(--shadow); transition: transform .2s ease;
}
.cip-card--photo:hover { transform: translateY(-4px); }
/* Keep the text white on hover (theme turns links blue otherwise) */
.cip-card--photo, .cip-card--photo:hover, .cip-card--photo:focus,
.cip-card--photo:hover .cip-card__title, .cip-card--photo:hover .cip-card__text { color: #fff !important; }
.cip-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6,30,46,.86) 100%); }
.cip-card__body { position: relative; padding: 20px; }
.cip-card__title { display: block; font-size: 20px; font-weight: 700; }
.cip-card__text { display: block; font-size: 14px; opacity: .9; margin-top: 6px; line-height: 1.4; }
.cip-card--photo .img-attribution { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; }
.cip-card--photo .img-attribution-icon { width: 20px; height: 20px; color: #fff; cursor: pointer; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.cip-card--photo .img-attribution-tooltip { max-width: 0; overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.72); color: #fff; font-size: 11.5px; padding: 0; border-radius: 5px; transition: max-width .3s ease, padding .3s ease; margin-right: 6px; }
.cip-card--photo .img-attribution:hover .img-attribution-tooltip { max-width: 230px; padding: 5px 9px; }

/* ---------- BEACHES / VILLAGES ---------- */
/* Three indicative photos as a strip above the list */
.cip-beaches__album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.cip-beaches__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.cip-beaches__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgba(9,33,49,.62), rgba(9,33,49,0)); }
.cip-beaches__cap { position: absolute; z-index: 1; left: 14px; bottom: 13px; margin: 0; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .1px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.cip-beaches__cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
/* Beach list — two columns, text only (no per-beach photo) */
.cip-beaches { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; padding: 0; margin: 0; width: 100%; }
.cip-beach { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.cip-beach__name { margin: 0 0 10px; font-size: 17.5px; color: var(--sea); }
.cip-beach__desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: #4a5b64; }
.cip-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.cip-tags li { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); }
.cip-tags li.cip-tag--type, .cip-tags .cip-tag--accent { background: rgba(18,58,107,.12); color: var(--teal-d); }
@media (max-width: 760px) { .cip-beaches { grid-template-columns: 1fr; } .cip-beaches__album { gap: 10px; } }
.cip-beaches-wrap { display: flex; flex-direction: column; align-items: center; }
.cip-beaches-wrap .cip-beaches { width: 100%; }
.cip-beaches-wrap[data-collapsed="1"] .cip-beach:nth-child(n+9) { display: none; }
.cip-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--teal-d); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cip-more:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.cip-more .cip-ico { transition: transform .2s ease; transform: rotate(90deg); }
.cip-more__hide { display: none; }
.cip-beaches-wrap:not([data-collapsed="1"]) .cip-more__show { display: none; }
.cip-beaches-wrap:not([data-collapsed="1"]) .cip-more__hide { display: inline; }
.cip-beaches-wrap:not([data-collapsed="1"]) .cip-more .cip-ico { transform: rotate(-90deg); }
/* Sights list: show first 8, rest behind the toggle */
.cip-more--sights { margin-top: 14px; border: 0; background: transparent; padding: 8px 4px; }
.cip-more--sights:hover { border-color: transparent; box-shadow: none; color: var(--teal); }
.cip-sights__list[data-collapsed="1"] .cip-accord__item:nth-child(n+9) { display: none; }
/* "more" scrolls the list within a fixed height instead of growing the section */
.cip-sights__list:not([data-collapsed="1"]) .cip-accord { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; }
.cip-sights__list:not([data-collapsed="1"]) .cip-more__show { display: none; }
.cip-sights__list:not([data-collapsed="1"]) .cip-more__hide { display: inline; }
.cip-sights__list:not([data-collapsed="1"]) .cip-more .cip-ico { transform: rotate(-90deg); }
/* Events: same show-more collapse (first 8, rest behind the toggle) */
.cip-events-wrap { display: flex; flex-direction: column; align-items: center; }
.cip-events-wrap .cip-events { width: 100%; }
.cip-events-wrap[data-collapsed="1"] .cip-events > li:nth-child(n+9) { display: none; }
.cip-events-wrap:not([data-collapsed="1"]) .cip-more__show { display: none; }
.cip-events-wrap:not([data-collapsed="1"]) .cip-more__hide { display: inline; }
.cip-events-wrap:not([data-collapsed="1"]) .cip-more .cip-ico { transform: rotate(-90deg); }

/* ---------- VILLAGES / AREAS (immersive cards) ---------- */
.cip-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cip-area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 38px -28px rgba(11,58,86,.55); }
.cip-area__banner { position: relative; height: 158px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.cip-area--noimg .cip-area__banner { background: linear-gradient(135deg, var(--sea), var(--teal-d)); }
.cip-area__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,46,.1) 20%, rgba(6,30,46,.8) 100%); }
.cip-area__titles { position: relative; padding: 16px 20px; color: #fff; }
.cip-area__title { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.cip-area__sub { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ffd78a; margin-top: 3px; }
.cip-area__body { padding: 16px 18px 12px; }
.cip-area__intro { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cip-area__villages { display: grid; }
.cip-vrow { display: block; padding: 11px 12px; border-radius: 11px; text-decoration: none; color: var(--ink); transition: background .15s; }
.cip-vrow + .cip-vrow { border-top: 1px solid var(--line); border-radius: 0; }
.cip-vrow:hover { background: var(--bg-tint); border-radius: 11px; }
.cip-vrow:hover + .cip-vrow { border-top-color: transparent; }
.cip-vrow__name { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 700; color: var(--sea); }
.cip-vrow__name > span { flex: 1; }
.cip-vrow__name > .cip-ico:first-child { color: var(--teal); width: 15px; height: 15px; flex: none; }
.cip-vrow__name > .cip-ico:last-child { width: 15px; height: 15px; color: var(--teal-d); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; flex: none; }
.cip-vrow:hover .cip-vrow__name > .cip-ico:last-child { opacity: .9; transform: translateX(0); }
.cip-vrow__desc { display: block; margin-top: 3px; padding-left: 22px; font-size: 13px; line-height: 1.5; color: #5a6b74; }
@media (max-width: 760px) { .cip-areas { grid-template-columns: 1fr; } .cip-vrow__name > .cip-ico:last-child { opacity: .8; transform: none; } }

/* ---------- VILLAGES MAGAZINE ---------- */
.cip-mag { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 26px 60px -40px rgba(11,58,86,.6); }
.cip-mag__viewport { overflow: hidden; position: relative; }
.cip-mag__track { display: flex; transition: transform .55s cubic-bezier(.6,.02,.1,1); }
.cip-mag__spread { flex: 0 0 100%; display: grid; grid-template-columns: 1.02fr 1fr; min-height: 480px; }
.cip-mag__photo { position: relative; background-size: cover; background-position: center; min-height: 300px; }
.cip-mag__photo--noimg { background: linear-gradient(135deg, var(--sea), var(--teal-d)); }
.cip-mag__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,30,46,.35), rgba(6,30,46,0) 45%); }
/* Alternate spreads: photo on the right, info on the left (magazine rhythm) */
.cip-mag__spread--flip { grid-template-columns: 1fr 1.02fr; }
.cip-mag__spread--flip .cip-mag__photo { order: 2; }
.cip-mag__spread--flip .cip-mag__info { order: 1; }
.cip-mag__spread--flip .cip-mag__photo::after { background: linear-gradient(240deg, rgba(6,30,46,.35), rgba(6,30,46,0) 45%); }
.cip-mag__num { position: absolute; top: 22px; left: 26px; z-index: 1; font-family: inherit; font-size: 40px; font-weight: 700; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0,0,0,.35); line-height: 1; }
.cip-mag__num-tot { font-size: 20px; opacity: .8; margin-left: 2px; }
.cip-mag__info { padding: 46px 48px; display: flex; flex-direction: column; justify-content: center; }
.cip-mag__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-d); margin-bottom: 14px; }
.cip-mag__kicker .cip-ico { width: 14px; height: 14px; color: var(--teal); }
.cip-mag__title { font-family: inherit; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; font-weight: 700; color: var(--sea); margin: 0; letter-spacing: -.01em; }
.cip-mag__eyebrow { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 8px; }
.cip-mag__intro { margin: 16px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.cip-mag__villages { display: grid; margin-top: 6px; }
.cip-mag__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-tint)); }
.cip-mag__btn { display: inline-flex; align-items: center; gap: 12px; border: none; cursor: pointer; background: none; padding: 8px 14px; border-radius: 14px; transition: background .15s, transform .15s, box-shadow .15s; }
.cip-mag__btn .cip-ico { width: 30px; height: 30px; flex: none; }
.cip-mag__btnlbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.cip-mag__btn--next .cip-mag__btnlbl { text-align: right; }
.cip-mag__btncap { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.cip-mag__btnttl { font-family: inherit; font-size: 18px; font-weight: 700; color: var(--sea); }
.cip-mag__btn--prev { color: var(--muted); }
.cip-mag__btn--prev .cip-ico { transform: rotate(180deg); }
.cip-mag__btn--next { color: var(--teal-d); }
.cip-mag__btn--next .cip-ico { color: var(--teal); }
.cip-mag__btn:hover { background: #fff; box-shadow: 0 12px 26px -18px rgba(11,58,86,.5); }
.cip-mag__btn--next:hover { transform: translateX(3px); }
.cip-mag__btn--prev:hover { transform: translateX(-3px); }
.cip-mag__dots { display: inline-flex; gap: 9px; }
.cip-mag__dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: rgba(11,58,86,.2); cursor: pointer; transition: background .15s, transform .15s; }
.cip-mag__dot.is-on { background: var(--teal); transform: scale(1.25); }
@media (max-width: 820px) {
  /* Stack the spread; drop the desktop 480px min-height that otherwise left
     the vertically-centered info floating with big white gaps on mobile.
     align-items:flex-start stops short slides stretching to the tallest one;
     the viewport height is then set per-slide in JS (see initMag/fit). */
  .cip-mag__track { align-items: flex-start; }
  .cip-mag__viewport { transition: height .45s cubic-bezier(.6,.02,.1,1); }
  .cip-mag__spread, .cip-mag__spread--flip { grid-template-columns: 1fr; min-height: 0; }
  .cip-mag__spread--flip .cip-mag__photo, .cip-mag__spread--flip .cip-mag__info { order: 0; }
  .cip-mag__photo { min-height: 200px; }
  .cip-mag__info { padding: 28px 24px; justify-content: flex-start; }
  .cip-mag__btnttl { font-size: 15px; }
  .cip-mag__btn .cip-ico { width: 24px; height: 24px; }
}
/* Narrow phones: the prev/next region names cram into thin columns — keep just
   the arrow + caption so the nav stays on one tidy line. */
@media (max-width: 560px) {
  .cip-mag__nav { padding: 14px 16px; gap: 10px; }
  .cip-mag__btn { padding: 6px 8px; gap: 8px; }
  .cip-mag__btnttl { display: none; }
  .cip-mag__btncap { font-size: 12px; }
}

/* ---------- SPLIT / LISTS / TRAILS ---------- */
.cip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

/* ---- sights: photo album (left) + accordion (right) ---- */
.cip-sights { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cip-sights__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-tint); }
.cip-sights__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; }
.cip-sights__slide.is-on { opacity: 1; }
.cip-sights__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--sea); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: background .15s; z-index: 2; }
.cip-sights__nav:hover { background: #fff; }
.cip-sights__nav .cip-ico { width: 18px; height: 18px; }
.cip-sights__nav--prev { left: 12px; }
.cip-sights__nav--prev .cip-ico { transform: rotate(180deg); }
.cip-sights__nav--next { right: 12px; }
.cip-sights__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.cip-sights__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; transition: background .15s, width .15s; }
.cip-sights__dot.is-on { background: #fff; width: 22px; border-radius: 5px; }
.cip-sights__list .cip-accord { background: transparent; border-radius: 0; padding: 0; }
@media (max-width: 768px) { .cip-sights { grid-template-columns: 1fr; gap: 26px; } .cip-sights__frame { aspect-ratio: 3 / 2; } }

/* ---------- FULL-BLEED SPLIT SECTIONS (History + Sights): carousel | colour panel ---------- */
.cip-splitsec { display: grid; grid-template-columns: 1.05fr 1fr; padding: 0 !important; align-items: stretch; overflow: hidden; position: relative; }
.cip-splitsec--sea  { background: #ffffff; }   /* Sights — cream (light palette neutral) */
.cip-splitsec--sea2 { background: #ffffff; }   /* History — same cream background */
.cip-splitsec--textleft { grid-template-columns: 1.05fr 1fr; }  /* panel edge lines up with the Sights image edge below */
.cip-splitsec--solo { grid-template-columns: 1fr; }
.cip-splitsec__media { position: relative; min-height: 430px; }
.cip-splitsec__media .cip-sights__album, .cip-splitsec__media .cip-sights__frame { position: absolute; inset: 0; }
.cip-splitsec__media .cip-sights__frame { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #ffffff; }
.cip-splitsec__panel { display: flex; align-items: flex-start; padding: clamp(38px, 3.8vw, 72px) clamp(38px, 5vw, 86px); color: #1c3140; }
.cip-splitsec__inner { width: 100%; max-width: 640px; padding-top: clamp(120px, 17vw, 240px); }
/* dark text on the light panel */
.cip-splitsec .cip-eyebrow { color: #0e86c8; }
/* Split-section titles match the normal section h2 below (bold, same size). */
.cip-splitsec .cip-h2 { color: var(--sea); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
/* Sights: title on the right panel — pulled in from the edge (not all the way right) */
/* Sights: title sits in normal flow ABOVE the text (not floating on the edge) */
.cip-splitsec:not(.cip-splitsec--textleft) .cip-splitsec__panel { align-items: center; }
.cip-splitsec:not(.cip-splitsec--textleft) .cip-splitsec__inner { padding-top: 0; }
.cip-splitsec:not(.cip-splitsec--textleft) .cip-eyebrow { position: static; left: auto; right: auto; transform: none; margin-bottom: 12px; }
.cip-splitsec:not(.cip-splitsec--textleft) .cip-h2 { position: static; left: auto; right: auto; transform: none; text-align: left; white-space: normal; margin: 0 0 18px; text-shadow: none; }
.cip-splitsec .cip-lead { color: #3d5666; margin-bottom: 10px; }
.cip-splitsec .cip-accord { background: transparent; padding: 0; }
.cip-splitsec .cip-accord__item { border-bottom-color: rgba(18,58,107, .2); }
.cip-splitsec .cip-accord__item summary { color: #123a6b; }
.cip-splitsec .cip-accord__item summary:hover { color: #123a6b; }
.cip-splitsec .cip-accord__plus::before, .cip-splitsec .cip-accord__plus::after { background: #0e86c8; }
.cip-splitsec .cip-accord__body p { color: #3d5666; }
.cip-splitsec .cip-more--sights { color: #0e86c8; }
.cip-splitsec .cip-more--sights:hover { color: #123a6b; }
/* history prose on the panel */
.cip-splitsec .cip-history { max-width: none; }
.cip-splitsec .cip-history__text p { color: #3d5666; }
.cip-splitsec .cip-history__text p:first-child { color: #123a6b; }
.cip-splitsec--sea2 .cip-history__fade { background: linear-gradient(rgba(255,255,255,0), #ffffff); }
.cip-splitsec .cip-history__toggle { color: #0e86c8; }
/* subtle scrollbar for the scrollable columns */
.cip-splitsec ::-webkit-scrollbar { width: 6px; }
.cip-splitsec ::-webkit-scrollbar-thumb { background: rgba(18,58,107, .3); border-radius: 3px; }
.cip-splitsec ::-webkit-scrollbar-track { background: transparent; }
.cip-splitsec .cip-history__text, .cip-splitsec .cip-sights__list .cip-accord { scrollbar-width: thin; scrollbar-color: rgba(18,58,107,.4) transparent; }
/* History image: a centred card at ~70% of the column (not edge-to-edge) */
/* BOTH History & Sights media = a centred card of the SAME size (not full-bleed). */
.cip-splitsec__media { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 4vw, 72px); }
.cip-splitsec__media .cip-sights__album { position: relative; inset: auto; width: 55%; }
.cip-splitsec__media .cip-sights__frame { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 30px 66px rgba(0, 0, 0, .32); }
/* History (textleft): title + text on the LEFT, in normal flow (not the floating
   half-and-half straddle); photo enlarged. */
.cip-splitsec--textleft .cip-splitsec__panel { justify-content: flex-start; align-items: center; padding-right: clamp(30px, 4vw, 64px); }
.cip-splitsec--textleft .cip-splitsec__inner { text-align: left; padding-top: 0; }
.cip-splitsec--textleft .cip-eyebrow { position: static; left: auto; transform: none; margin-bottom: 12px; }
.cip-splitsec--textleft .cip-h2 { position: static; left: auto; transform: none; text-align: left; white-space: normal; margin: 0 0 18px; text-shadow: none; }
.cip-splitsec__media .cip-sights__album { width: 82%; }

/* A divider line at the History → Sights seam — INSET (not edge-to-edge). */
.cip-splitsec + .cip-splitsec { border-top: 0; }
.cip-splitsec + .cip-splitsec::before { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px; background: var(--line); z-index: 3; }

/* Lower the first panel so it doesn't touch the sticky island sub-menu. */
.cip-page { padding-top: clamp(20px, 2.2vw, 34px); }
@media (max-width: 820px) {
  /* Keep the panels floating on the Cycladic pattern on mobile too: inset them
     from the screen edges so the wave background frames all four sides. */
  .cip-section:not(.cip-splitsec) { padding: 12px 13px; }
  .cip-splitsec { margin-left: 13px; margin-right: 13px; }
  .cip-splitsec, .cip-splitsec--textleft { grid-template-columns: 1fr; }
  .cip-splitsec__media { min-height: 300px; }
  .cip-splitsec--textleft .cip-splitsec__media { order: -1; }
  .cip-splitsec__panel { padding: 40px 24px; align-items: stretch; }
  .cip-splitsec__inner { padding-top: 0; }
  .cip-splitsec--textleft .cip-splitsec__inner { text-align: left; }
  /* title back in flow on small screens */
  .cip-splitsec .cip-eyebrow, .cip-splitsec .cip-h2 { position: static; left: auto; transform: none; text-align: left; white-space: normal; }
  .cip-splitsec .cip-h2 { font-size: clamp(34px, 9vw, 52px); }
}
.cip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cip-list li { padding: 12px 16px; background: var(--bg-tint); border-radius: 10px; font-size: 16px; }
.cip-trails { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cip-trails li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: #fff; }
.cip-trail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cip-trail__meta { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cip-trail__route { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- SIGHTS ACCORDION (boxed) ---------- */
.cip-accord { background: #eef4fb; border-radius: 18px; padding: 4px 24px; }
.cip-accord__item { border-bottom: 1px solid #d8e5f2; }
.cip-accord__item:last-child { border-bottom: none; }
.cip-accord__item summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 700; color: var(--sea); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cip-accord__item summary::-webkit-details-marker { display: none; }
.cip-accord__item summary:hover { color: var(--teal-d); }
.cip-accord__plus { position: relative; width: 18px; height: 18px; flex: none; }
.cip-accord__plus::before, .cip-accord__plus::after { content: ""; position: absolute; background: var(--teal-d); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.cip-accord__plus::before { top: 8px; left: 2px; width: 14px; height: 2px; }
.cip-accord__plus::after { top: 2px; left: 8px; width: 2px; height: 14px; }
.cip-accord__item[open] .cip-accord__plus::after { transform: rotate(90deg); opacity: 0; }
.cip-accord__body { padding: 0 0 18px; }
.cip-accord__body p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #33454e; }

/* ---------- HISTORY / PROSE ---------- */
.cip-accordion { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; }
.cip-accordion summary { cursor: pointer; font-size: 20px; font-weight: 700; color: var(--sea); padding: 16px 0; list-style: none; }
.cip-accordion summary::-webkit-details-marker { display: none; }
.cip-prose p { font-size: 17px; line-height: 1.75; color: #33454e; margin: 0 0 16px; }

/* ---------- HISTORY (collapsible editorial + photo) ---------- */
.cip-history-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 46px; align-items: start; }
.cip-history-grid--solo { grid-template-columns: 1fr; }
.cip-history-grid .cip-history { max-width: none; }
.cip-history__figure { margin: 0; position: sticky; top: 96px; }
.cip-history__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.cip-history__figure .img-attribution { position: absolute; bottom: 12px; right: 12px; z-index: 10; display: flex; align-items: center; justify-content: flex-end; }
.cip-history__figure .img-attribution-icon { width: 22px; height: 22px; color: #fff; cursor: pointer; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cip-history__figure .img-attribution-tooltip { max-width: 0; overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 0; border-radius: 5px; transition: max-width .3s ease, padding .3s ease; margin-right: 6px; }
.cip-history__figure .img-attribution:hover .img-attribution-tooltip { max-width: 320px; padding: 5px 10px; }
@media (max-width: 900px) {
  .cip-history-grid { grid-template-columns: 1fr; gap: 28px; }
  .cip-history__figure { position: static; order: -1; }
}
.cip-history { max-width: 80ch; }
.cip-history__text { position: relative; overflow: hidden; max-height: 520px; }
/* "read more" scrolls the column instead of growing the section (keeps the photo fixed) */
.cip-history:not([data-collapsed="1"]) .cip-history__text { overflow-y: auto; overscroll-behavior: contain; }
.cip-history__text p { font-size: 17px; line-height: 1.85; color: #33454e; margin: 0 0 20px; }
.cip-history__text p:first-child { font-size: 18.5px; color: var(--sea); }
.cip-history__fade { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(rgba(244,248,249,0), var(--bg-tint)); pointer-events: none; }
.cip-history[data-collapsed="1"] .cip-history__fade { display: block; }
.cip-history__toggle { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--teal-d); font-weight: 700; font-size: 15px; padding: 8px 0; }
.cip-history__toggle .cip-ico { transition: transform .2s ease; }
.cip-history:not([data-collapsed="1"]) .cip-history__toggle .cip-ico { transform: rotate(90deg); }
.cip-history__less { display: none; }
.cip-history:not([data-collapsed="1"]) .cip-history__more { display: none; }
.cip-history:not([data-collapsed="1"]) .cip-history__less { display: inline; }

/* ---------- TASTE ---------- */
.cip-taste__intro { font-size: 19px; color: var(--sea); font-weight: 500; margin: 0 0 20px; }
.cip-taste__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cip-taste__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; line-height: 1.45; padding: 14px 16px; background: var(--bg-tint); border-radius: 12px; }
.cip-taste__list .cip-ico { color: var(--gold); margin-top: 3px; }

/* ---- gastronomy teaser (2 photos + text) ---- */
.cip-section--gastro { background: var(--bg-tint); }
.cip-gastro { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; }
.cip-gastro__media { display: flex; align-items: flex-start; }
.cip-gastro__photo { flex: 0 0 60%; display: block; aspect-ratio: 3 / 4; border-radius: 22px; background-size: cover; background-position: center; box-shadow: 0 24px 55px rgba(11, 30, 45, .22); }
.cip-gastro__photo:nth-child(2) { margin-left: -20%; margin-top: 66px; }
.cip-gastro__text { color: var(--sea); }
.cip-gastro__title { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; color: var(--sea); line-height: 1.08; margin: 0; }
.cip-gastro__rule { display: block; width: 100%; max-width: 340px; height: 1px; background: rgba(11, 58, 86, .22); margin: 26px 0; }
.cip-gastro__intro { font-size: 17px; line-height: 1.75; color: #4a5b64; margin: 0 0 26px; }
.cip-section--gastro .cip-more { margin-top: 8px; border: 0; background: #0b3a56; color: #fbf3e6; }
.cip-section--gastro .cip-more:hover { background: #08293d; box-shadow: 0 10px 26px rgba(11, 41, 61, .4); }
.cip-gastro__arch { position: absolute; right: 4px; bottom: -4px; width: 116px; height: auto; color: rgba(11, 58, 86, .12); pointer-events: none; }
.cip-gastro__extra { margin-top: 46px; }
.cip-gastro-wrap[data-collapsed="1"] .cip-gastro__extra { display: none; }
.cip-gastro-wrap:not([data-collapsed="1"]) .cip-more__show { display: none; }
.cip-gastro-wrap:not([data-collapsed="1"]) .cip-more__hide { display: inline; }
.cip-gastro-wrap:not([data-collapsed="1"]) .cip-more .cip-ico { transform: rotate(-90deg); }
@media (max-width: 768px) { .cip-gastro { grid-template-columns: 1fr; gap: 26px; } .cip-gastro__arch { display: none; } }

/* ===== Asymmetric section sizing (per request) ===== */
/* Τοπική Γαστρονομία: wider than the rest + shorter (album height-capped). */
#taste > .cip-wrap { max-width: 2080px; }
#taste .cip-gastro { align-items: center; }
#taste .cip-gastro .cip-sights__album,
#taste .cip-gastro .cip-sights__frame { height: 480px; aspect-ratio: auto; }
/* Κοντινά νησιά: also wider than the rest. */
#nearby > .cip-wrap { max-width: 2080px; }

/* Ιστορία + Αξιοθέατα = ONE section: join the two split panels (no gap between,
   only the outer corners rounded). */
.cip-splitsec:has(+ .cip-splitsec) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cip-splitsec + .cip-splitsec { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* «Πώς να φτάσεις» + «Μετακίνηση στο νησί» → apricot colour boxes. */
.cip-access__box { background: #f0ab84; border-radius: 18px; padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px); }
.cip-access__box .cip-sub { color: #123a6b; }
.cip-access__box .cip-prose p { color: #5a3018; }
/* separator heading for the folded-in «Καλό να ξέρεις» (phones) block */
.cip-info-sep { margin-top: clamp(30px, 3.4vw, 46px); }

/* ---------- AEGEAN CUISINE PROMO (clean) ---------- */
.cip-aegean { display: flex; align-items: center; gap: 26px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.cip-aegean__logo { width: 100px; height: 100px; object-fit: contain; flex: none; }
.cip-aegean__body { flex: 1; min-width: 0; }
.cip-aegean__title { display: block; font-size: 22px; font-weight: 800; color: var(--sea); letter-spacing: -.01em; }
.cip-aegean__body p { margin: 7px 0 13px; font-size: 16px; line-height: 1.6; color: #33454e; max-width: 62ch; }
.cip-aegean__link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-d); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.cip-aegean__link .cip-ico { transition: transform .2s ease; }
.cip-aegean__link:hover .cip-ico { transform: translateX(4px); }
@media (max-width: 640px) {
  .cip-aegean { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- CATEGORY FILTER PILLS (minimal) ---------- */
.cip-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cip-cat { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--sea); transition: border-color .15s, background .15s; }
.cip-cat:hover { border-color: var(--teal); background: rgba(18,58,107,.07); }
.cip-cat .cip-ico { width: 16px; height: 16px; color: var(--teal); flex: none; }
.cip-cat__label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cip-cat__count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-tint); border-radius: 999px; padding: 2px 8px; }
.cip-cat:hover .cip-cat__count { color: var(--teal-d); }

/* ---------- MAP ---------- */
.cip-map-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cip-map-filter { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; }
.cip-map-filter.is-on { background: var(--cat-color, var(--teal)); color: #fff; border-color: var(--cat-color, var(--teal)); }
.cip-mf__n { background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 3px; }
.cip-map-filter.is-on .cip-mf__n { background: rgba(255,255,255,.28); }
.cip-mf--accommodation.is-on { background:#123a6b; border-color:#123a6b; }
.cip-mf--restaurants.is-on { background:#0e86c8; border-color:#0e86c8; }
.cip-mf--entertainment.is-on { background:#8e5bd0; border-color:#8e5bd0; }
.cip-mf--sportsactivities.is-on { background:#2e9be6; border-color:#2e9be6; }
.cip-mf--localproducts.is-on { background:#4caf6e; border-color:#4caf6e; }
.cip-mf--travelagencies.is-on { background:#e2734e; border-color:#e2734e; }
.cip-map { height: 520px; width: 100%; border-radius: 16px; z-index: 1; }
.cip-map-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- BUSINESSES: category filter → map + listing ---------- */
.cip-biz__cats { margin-bottom: 16px; }
.cip-biz__lists { margin-top: 30px; }
.cip-biz__list[hidden] { display: none; }
.cip-biz__all { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 14px; font-weight: 700;
  color: var(--teal-d); text-decoration: none; padding: 10px 20px; border-radius: 999px; background: rgba(18,58,107,.1); transition: background .15s; }
.cip-biz__all:hover { background: rgba(18,58,107,.18); }
.cip-biz__all .cip-ico { transition: transform .15s; }
.cip-biz__all:hover .cip-ico { transform: translateX(3px); }
/* Business cards inside the explorer → on-brand palette (teal/navy), like the beaches */
/* ===== Visit-Greece-style business cards: photo on top + a coloured POI panel
   that overlaps its bottom with a notch. Panel colour = the SELECTED category's
   POI colour (--cat-color, set by island.js on filter change). ===== */
.cip-biz__list .cyc-business-card { position: relative; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
.cip-biz__list .cyc-business-image { position: relative; overflow: visible; aspect-ratio: 4 / 3; margin: 0 !important; border-radius: 0 !important; }
.cip-biz__list .cyc-business-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 20px; }
/* the coloured info panel */
/* WHITE panel for every category (like Διαμονή); the tag keeps its POI-colour
   pill so the category still reads. */
.cip-biz__list .cyc-business-content { position: relative; z-index: 2; margin: -54px 28px 0 0 !important; padding: 42px 20px 20px !important; background: #fff; color: var(--ink); border-radius: 20px; border-top-left-radius: 4px; box-shadow: 0 16px 34px -26px rgba(18, 58, 107, .4); }
/* category tag, tucked at the top-left of the coloured panel */
.cip-biz__list .cyc-business-type { position: absolute !important; z-index: 3; left: 20px; top: 100%; transform: translateY(-48px); margin: 0 !important; padding: 4px 11px !important; background: color-mix(in srgb, var(--cat-color, var(--teal)) 26%, #fff) !important; color: color-mix(in srgb, var(--cat-color, var(--teal)) 60%, #12304a) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px !important; line-height: 1.5 !important; box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;}
.cip-biz__list .cyc-business-title { color: var(--sea) !important; font-size: 16.5px !important; font-weight: 700 !important; line-height: 1.25 !important; margin: 0 0 8px !important; -webkit-text-stroke: 0 !important; }
.cip-biz__list .cyc-business-info, .cip-biz__list .cyc-info-item { color: var(--muted) !important; font-size: 13.5px !important; border: 0 !important; display: flex; align-items: center; gap: 6px; }
/* keep the description (2-line clamp) */
.cip-biz__list .cyc-business-description { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted) !important; font-size: 13px !important; line-height: 1.5 !important; margin: 10px 0 0 !important; }
/* «Λεπτομέρειες» → plain text link, no background, pushed to the RIGHT */
.cip-biz__list .cyc-business-link, .cip-biz__list .cyc-list-view-more-btn { display: flex !important; width: -moz-fit-content; width: fit-content; margin-left: auto !important; align-items: center; gap: 6px; margin-top: 14px !important; padding: 0 !important; background: none !important; color: var(--sea) !important; border: 0 !important; border-radius: 0 !important; font-weight: 700 !important; font-size: 13px !important; }
.cip-biz__list .cyc-business-link:hover, .cip-biz__list .cyc-list-view-more-btn:hover { color: var(--teal) !important; }
.cip-biz__list .cyc-business-link{ padding: 7px 12px !important; border-radius: 33px !important;}
.cip-biz__all { color: var(--cat-color, var(--teal)); }

/* ---------- BUSINESSES + MAP (2-col) ---------- */
.cip-bizmap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.cip-bizmap__biz { min-width: 0; }
.cip-bizmap__map { position: sticky; top: 96px; }
.cip-bizmap__map .cip-sub { margin-bottom: 14px; }
.cip-bizmap__map .cip-map { height: 440px; }
.cip-bizmap__map .cip-map-tools { margin-bottom: 12px; }
@media (max-width: 900px) {
  .cip-bizmap { grid-template-columns: 1fr; gap: 30px; }
  .cip-bizmap__map { position: static; }
}
.cip-map-popup { font-weight: 600; color: var(--sea); }
.cip-map-popup a { color: var(--teal-d); font-size: 12.5px; display: inline-block; margin-top: 4px; }

/* ---------- FERRY / EVENTS / PHONES ---------- */
.cip-ferry { margin-top: 30px; }
.cip-events { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cip-events li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cip-events__date { flex: none; width: 56px; height: 62px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: 5px; }
.cip-events__date::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--teal); }
.cip-events__day { font-size: 22px; font-weight: 800; color: var(--sea); line-height: 1; }
.cip-events__mon { font-size: 11px; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.cip-events__body { display: flex; flex-direction: column; }
.cip-events__body strong { font-size: 16.5px; color: var(--ink); }
.cip-events__body em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.cip-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cip-phone { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.cip-phone:hover { border-color: var(--teal); }
.cip-phone .cip-ico { color: var(--teal); width: 22px; height: 22px; }
.cip-phone__label { display: block; font-size: 13px; color: var(--muted); }
.cip-phone__num { display: block; font-size: 17px; font-weight: 700; }

/* ---------- NEARBY ---------- */
.cip-nearby { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cip-nearby__item { position: relative; min-height: 190px; border-radius: 16px; overflow: hidden; background: var(--sea); background-size: cover; background-position: center; display: flex; align-items: flex-end; text-decoration: none; color: #fff; box-shadow: var(--shadow); transition: transform .18s ease; }
.cip-nearby__item:hover { transform: translateY(-4px); }
/* Keep the text white on hover (theme turns links blue otherwise) */
.cip-nearby__item, .cip-nearby__item:hover, .cip-nearby__item:focus,
.cip-nearby__item:hover .cip-nearby__name, .cip-nearby__item:hover .cip-nearby__ferry { color: #fff !important; }
.cip-nearby__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,46,.05) 30%, rgba(6,30,46,.82) 100%); }
.cip-nearby__body { position: relative; padding: 18px; }
.cip-nearby__name { display: block; font-size: 21px; font-weight: 700; }
.cip-nearby__ferry { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .95; margin-top: 5px; }

/* ---------- FINAL CTA ---------- */
.cip-final { position: relative; padding: 104px 0; background: var(--sea); background-size: cover; background-position: center; color: #fff; text-align: center; }
.cip-final__scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,42,60,.82), rgba(8,30,46,.92)); }
.cip-final__inner { position: relative; max-width: 660px; }
.cip-final__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; font-weight: 700; color: #8fe0e0; margin-bottom: 16px; }
.cip-final h2 { font-size: clamp(32px, 4.5vw, 48px); margin: 0 0 14px; font-weight: 800; color: #fff !important; text-shadow: 0 3px 24px rgba(0,0,0,.3); }
.cip-final p { font-size: 18px; opacity: .92; margin: 0 0 28px; color: #fff !important; }
.cip-final .cip-hero__cta { justify-content: center; }
.cip-final .cip-btn { color: #fff !important; }

/* ---------- EMBED (existing shortcodes) ---------- */
.cip-embed { min-height: 40px; }

/* ---------- CONTEXTUAL BUSINESS RAIL ---------- */
.cip-rail { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.cip-rail__title { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 18px; font-weight: 700; color: var(--sea); }
.cip-rail__title .cip-ico { color: var(--teal); }
/* Discover-Greece-style tiles (257x349), scoped to the rail only */
.cip-rail .cyc-businesses-grid {
  grid-template-columns: repeat(auto-fill, 257px) !important;
  justify-content: start !important; gap: 20px !important;
}
.cip-rail .cyc-business-card {
  position: relative !important;
  width: 257px !important; height: 349px !important;
  border-radius: 14px !important; overflow: hidden !important;
  box-shadow: 0 10px 26px -20px rgba(11,58,86,.55) !important;
  display: flex !important; flex-direction: column !important;
}
/* No button → give the space to the photo (bigger image) */
.cip-rail .cyc-business-image { height: 258px !important; padding-bottom: 0 !important; flex: 0 0 258px !important; }
.cip-rail .cyc-business-image img { height: 100% !important; }
.cip-rail .cyc-business-content { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; justify-content: center !important; padding: 12px 16px !important; }
/* Location pin+text on the TOP-RIGHT (Discover Greece layout), title below-left */
.cip-rail .cyc-business-info { order: -1 !important; align-self: flex-end !important; margin: 0 0 6px !important; }
.cip-rail .cyc-business-title { align-self: flex-start !important; font-size: 14.5px !important; font-weight: 700 !important; line-height: 1.25 !important; color: var(--sea) !important; margin: 0 !important; -webkit-text-stroke: .6px var(--sea) !important; }
/* Location like Discover Greece: teal map-pin + matching teal text */
.cip-rail .cyc-info-item {
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
  font-size: 13px !important; font-weight: 600 !important; color: var(--teal-d) !important;
}
.cip-rail .cyc-info-item::before {
  content: "" !important; flex: 0 0 auto !important; width: 13px !important; height: 13px !important;
  background-color: var(--teal) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/contain no-repeat !important;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/contain no-repeat !important;
}
/* Hide the description — Discover-Greece tiles keep it clean */
.cip-rail .cyc-business-description { display: none !important; }
/* Filtered rail already has a title telling the category → hide the top-left tag */
.cip-rail .cyc-business-type { display: none !important; }
/* Remove the visible "Λεπτομέρειες" button; stretch the link over the whole
   card so clicking anywhere opens the business (no lost functionality). */
.cip-rail .cyc-business-footer { margin: 0 !important; padding: 0 !important; height: 0 !important; border: none !important; }
.cip-rail .cyc-business-link {
  position: absolute !important; inset: 0 !important; z-index: 4 !important;
  font-size: 0 !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: none !important; box-shadow: none !important;
}
/* >3 items → horizontal rail (scroll) instead of a tall wrapping grid */
.cip-rail--scroll .cyc-businesses-grid {
  display: flex !important; grid-template-columns: none !important;
  overflow-x: auto !important; overflow-y: visible !important;
  gap: 20px !important; padding: 4px 2px 16px !important;
  scroll-snap-type: x proximity !important;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  scrollbar-color: rgba(11,58,86,.22) transparent;
}
.cip-rail--scroll .cyc-business-card { flex: 0 0 257px !important; scroll-snap-align: start !important; }
.cip-rail--scroll .cyc-businesses-grid::-webkit-scrollbar { height: 8px; }
.cip-rail--scroll .cyc-businesses-grid::-webkit-scrollbar-track { background: transparent; }
.cip-rail--scroll .cyc-businesses-grid::-webkit-scrollbar-thumb { background: rgba(11,58,86,.2); border-radius: 999px; }
/* Give every rail room to breathe from the content above it */
.cip-rail { margin-top: 46px; }
/* Featured rail keeps the category tag (top-left) since it mixes categories */
.cip-rail--tags .cyc-business-type {
  display: inline-block !important; position: absolute !important; top: 12px !important; left: 12px !important; z-index: 3 !important;
  padding: 4px 10px !important; font-size: 10.5px !important; font-weight: 700 !important;
  border-radius: 999px !important; letter-spacing: .04em !important;
  background: var(--teal) !important; color: #fff !important; border: none !important;
  box-shadow: 0 4px 12px -4px rgba(11,58,86,.45) !important;
}
/* Rail header: title left, nav (see-all + arrows) right */
.cip-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cip-rail__head .cip-rail__title { margin: 0; }
.cip-rail__nav { display: inline-flex; align-items: center; gap: 8px; }
.cip-rail__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--teal-d); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: rgba(18,58,107,.1); transition: background .15s, color .15s; }
.cip-rail__all:hover { background: var(--teal); color: #fff; }
.cip-rail__all .cip-ico { width: 1em; height: 1em; }
.cip-rail__all-n { opacity: .7; font-weight: 600; }
.cip-rail__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--sea); font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.cip-rail__arrow:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.cip-rail__arrow:disabled { opacity: .35; cursor: default; }
.cip-rail__arrow:disabled:hover { background: #fff; color: var(--sea); border-color: var(--line); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cip-overview, .cip-split { grid-template-columns: 1fr; }
  .cip-factcard { position: static; }
  .cip-cards--4, .cip-cards--3 { grid-template-columns: 1fr 1fr; }
  .cip-cats { grid-template-columns: repeat(3, 1fr); }
  .cip-taste__list, .cip-events { grid-template-columns: 1fr; }
  .cip-phones, .cip-nearby { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cip-cards--4, .cip-cards--3, .cip-cats, .cip-phones, .cip-nearby { grid-template-columns: 1fr; }
  .cip-hero { min-height: 88vh; }
}
