/* ============================================================
   Antalya Korsan — design polish layer
   Additive only: loaded after site.css and after each page's
   inline <style>, so it can refine without touching the source
   stylesheets. Every rule here is defensive (falls back to the
   previous look if a class disappears).
   ============================================================ */

:root {
  --aks-yellow: #ffcc00;
  --aks-ink: #101114;
  --aks-panel: #1b1c20;
  --aks-line: #33353a;
  --aks-muted: #a9a9ac;
  --aks-radius: 16px;
  --aks-header-h: 84px;
}

/* ---------- 1. type ---------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0.002em;
}
h1, h2, h3, h4, .sectiontitle, .hero h1 {
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 em, .hero h1 em { letter-spacing: -0.028em; }
p, li, .lead, .intro { text-wrap: pretty; }
.lead, .hero p { line-height: 1.72; }
.eyebrow {
  letter-spacing: 0.16em;
  font-size: 12px;
}
::selection { background: var(--aks-yellow); color: var(--aks-ink); }

/* ---------- 2. navigation comfort ---------- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--aks-header-h) + 14px); }
header {
  background-color: #0e0f12;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 10px 30px -22px #000;
}

/* ---------- 3. focus visibility (keyboard users) ---------- */
:focus-visible {
  outline: 2px solid var(--aks-yellow);
  outline-offset: 3px;
  border-radius: 8px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
select:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. buttons ---------- */
.btn {
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease,
    border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn.outline:hover { border-color: var(--aks-yellow); color: var(--aks-yellow); }

/* ---------- 5. cards ---------- */
.card {
  border-radius: var(--aks-radius);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #4a4b52;
  box-shadow: 0 24px 48px -24px #000, 0 0 0 1px #ffcc0022;
}
.card img {
  transition: transform .5s ease, filter .3s ease;
}
.card:hover img { transform: scale(1.03); }
.card .inside { padding: 24px 24px 26px; }
.card h3 { margin-top: 0; }
.card .inside a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap .2s ease, color .2s ease;
}
.card:hover .inside a { gap: 10px; }

/* ---------- 6. route tiles: brand pin replaces the emoji ---------- */
.route-pin {
  font-size: 0;               /* hides the 📍 glyph without touching markup */
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #ffcc0014;
  border: 1px solid #ffcc0040;
  position: relative;
}
.route-pin::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aks-yellow);
  box-shadow: 0 0 0 3px #ffcc001f;
}
.route-tile { border-radius: 12px; }
.route-tile:hover .route-pin { background: #ffcc0024; border-color: #ffcc0088; }
.route-tile .rt-name { letter-spacing: -0.01em; }
.route-tile .rt-meta { color: var(--aks-muted); font-weight: 600; }

/* ---------- 7. cookie banner: out of the way, still obvious ---------- */
.cookie-banner {
  left: auto;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid #3a3b42;
  background: rgba(23, 24, 28, .96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 70px -24px #000, 0 0 0 1px #ffffff08 inset;
  animation: aks-rise .32s ease both;
}
.cookie-banner strong { font-size: 15px; letter-spacing: -0.01em; }
.cookie-banner p { font-size: 13px; line-height: 1.6; color: #c9cacf; }
.cookie-banner button {
  border-radius: 10px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner button:active { transform: translateY(0) scale(.985); }
@keyframes aks-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* keep the floating contact buttons clear of the banner */
body:has(.cookie-banner:not([hidden])) .floating-contact { bottom: 246px; }

@media (max-width: 700px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom)); /* above the mobile CTA bar */
    max-width: none;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px 16px;
    max-height: 62vh;
    overflow-y: auto;
  }
  body:has(.cookie-banner:not([hidden])) .floating-contact { display: none; }
}

/* ---------- 8. mobile header: stop the CTA from clipping ---------- */
@media (max-width: 560px) {
  header { --aks-header-h: 72px; }
  header .links .btn[data-wa="header"] { display: none; }
  .brand span { font-size: 15px; }
  .mobile-cta-bar { display: grid; }
  body { padding-bottom: 64px; } /* room for the fixed CTA bar */
}

/* ---------- 9. tables and detail blocks ---------- */
tbody tr:nth-child(even) td { background: #ffffff05; }
td:last-child { font-variant-numeric: tabular-nums; }
table { border-radius: 12px; }

/* ---------- 10. images: never letterbox, never jump ---------- */
img { max-width: 100%; }
.card img, .detail-block img { border-radius: 0; }

/* ---------- 11. motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .card:hover img { transform: none; }
  .cookie-banner { animation: none; }
}
/* ---------- 12. stray elements that must stay hidden ---------- */
/* The cookie preferences <dialog> is styled display:block by the base CSS, so a
   closed dialog leaked its close button into the top-right corner on every page. */
dialog:not([open]) { display: none !important; }
dialog[open] { position: fixed; inset: 0; margin: auto; z-index: 200; }
/* ---------- 13. route page details ---------- */
.breadcrumb { align-items: center; }
#langSwitch {
  appearance: none;
  -webkit-appearance: none;
  background-color: #16171a;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffcc00' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  border: 1px solid #33353a;
  border-radius: 10px;
  color: #e7e8ea;
  font: 700 12px/1 inherit;
  padding: 9px 30px 9px 12px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
#langSwitch:hover { border-color: var(--aks-yellow); color: #fff; }

.detail-block ul, .detail-block ol { padding-left: 22px; }
.detail-block li { margin: 7px 0; }
.detail-block li::marker { color: var(--aks-yellow); }
.detail-block ul li::marker { font-size: .95em; }
/* ---------- 14. floating language bar (route pages) ---------- */
/* It was pinned at top:100px with no horizontal inset, so its right edge was
   clipped by the viewport on every route page. */
.lang-bar {
  top: calc(var(--aks-header-h) + 12px);
  right: 16px;
  z-index: 45;
  background: rgba(20, 21, 25, .92);
  border: 1px solid #2f3137;
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -18px #000;
}
@media (max-width: 560px) {
  .lang-bar { top: calc(var(--aks-header-h) + 8px); right: 10px; }
}

/* ---------- 15. clean bullets in prose blocks ---------- */
.detail-block ul { list-style: none; padding-left: 0; }
.detail-block ul li { position: relative; padding-left: 18px; }
.detail-block ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aks-yellow);
  opacity: .85;
}
/* ---------- 16. hero slideshow was invisible ---------- */
/* .hero-slide sat at z-index -2 and .hero:before at -1 while .hero painted its
   own dark background, so the four photos were rendered *behind* the section
   background and never seen. Rebuild the layer order: photo, gradient, text. */
.hero { background-color: transparent; }
.hero-slide { z-index: 0; }
.hero:before, .hero::before { z-index: 1; }
.hero > .wrap { position: relative; z-index: 2; }
/* keep the first slide crisp on wide screens without shipping 2x weight */
.hero-slide.active { background-position: center 45%; }
/* the photos are bright, the copy is white: rebuild the overlay so the left
   column stays >=7:1 and the right side still reads as a photograph */
.hero:before, .hero::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .97) 0%, rgba(8, 9, 11, .95) 34%,
      rgba(8, 9, 11, .82) 55%, rgba(8, 9, 11, .45) 78%, rgba(8, 9, 11, .28) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, 0) 28%,
      rgba(8, 9, 11, 0) 72%, rgba(8, 9, 11, .78) 100%);
}
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero-slide { filter: saturate(1.02) contrast(1.02); }
/* The gradient scrim is baked into the hero WebPs by photos-build.py: the site
   paints the photo on .hero-slide::after and its own .hero:before keeps
   z-index:-1, so any CSS overlay is either buried or hides the image. */
.hero h1, .hero p, .hero .eyebrow {
  text-shadow: 0 2px 22px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .85);
}
.hero-slide { filter: saturate(1.04); }
/* the three mobile bar buttons must stay on one row: the site grid is 2-up and
   the third item wrapped onto an extra row that the body padding did not cover */
@media (max-width: 700px) {
  body .mobile-cta-bar {
    box-sizing: border-box;
    left: 0;
    right: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  }
  body .mobile-cta-bar > a {
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    font-size: 12.5px;
    padding: 11px 4px;
    border-radius: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body { padding-bottom: 78px; }
}
/* the OSM tiles are the brightest surface on the page: pull them into the dark
   palette and round the map card so it matches the panels around it */
#routeMap, .leaflet-container { border-radius: 14px; background: #14161a; }
.leaflet-tile { filter: brightness(.72) saturate(.82) contrast(1.06); }
.leaflet-container .leaflet-control-attribution {
  background: rgba(12, 13, 16, .78);
  color: #9a9b9f;
  border-radius: 8px 0 0 0;
}
.leaflet-container .leaflet-control-attribution a { color: #b9babd; }
.leaflet-bar a, .leaflet-bar a:hover {
  background: #1b1c20;
  color: #ffcc00;
  border-color: #33353a;
}
/* ---------- 17. vertical rhythm ---------- */
:root {
  --aks-space: clamp(48px, 5.6vw, 80px);
  --aks-space-sm: clamp(18px, 2.2vw, 28px);
}
main > section,
section.alt,
section.cta { padding-block: var(--aks-space); }
.sectiontitle { margin-top: 10px; margin-bottom: 16px; }
.eyebrow { margin-bottom: 8px; }
.cards { gap: 24px; }
.calc-grid { gap: clamp(18px, 2vw, 28px); }
h3[style*="margin-top: 60px"],
h3[style*="margin-top:60px"] { margin-top: var(--aks-space-sm) !important; }
.site-footer { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- 18. quote form: passenger select ---------- */
.calc-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #14161a;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffcc00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid #33353a;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 15px 42px 15px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.calc-field select:hover { border-color: #4a4c53; }
.calc-field select:focus {
  outline: none;
  border-color: var(--aks-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, .16);
}
.calc-result dl #resVehicle { color: #fff; font-weight: 700; }
/* ---------- 20. starting price on every route page ---------- */
.info-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.info-card.price-card {
  border-color: rgba(255, 204, 0, .38);
  background: linear-gradient(180deg, rgba(255, 204, 0, .07), rgba(255, 204, 0, .02));
}
.info-card.price-card strong { color: var(--aks-yellow); letter-spacing: -.02em; }
