/* =============================================================================
   Illyria Travel — design system
   Palette extracted from the brand: navy #202f59 + warm orange #dc834e/#fe7524
   ========================================================================== */

:root {
  /* Palette derived from the Illyria Travel logo: cyan globe + orange airplane/text */
  --navy:        #0f5a75;   /* deep teal-blue (dark sections, headings) */
  --navy-700:    #0c4a60;
  --navy-900:    #08384a;
  --cyan:        #1fa9d6;   /* logo globe cyan (accent) */
  --orange:      #f26a2e;   /* logo orange (CTA / action) */
  --orange-600:  #ef7d3a;
  --orange-700:  #d2551d;
  --ink:         #17222a;
  --muted:       #5b6270;
  --line:        #e4e8ee;
  --bg:          #ffffff;
  --bg-soft:     #f2f8fb;
  --bg-navy:     #0f5a75;
  --white:       #ffffff;
  --ok:          #1a7f4b;
  --warn:        #b9821b;
  --danger:      #c0392b;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 3px rgba(19,28,54,.08), 0 1px 2px rgba(19,28,54,.06);
  --shadow-md:   0 8px 24px rgba(19,28,54,.12);
  --shadow-lg:   0 20px 50px rgba(19,28,54,.18);
  --container:   1180px;
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display:'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--orange-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink); }
ul, ol { padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange-700); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.section-head { max-width: 720px; margin: 0 auto clamp(28px,4vw,48px); text-align: center; }
.section-head h2 { margin-top: .4rem; }
.section-head p { margin-top: .6rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s var(--ease), background .15s, box-shadow .15s, color .15s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(254,117,36,.32); }
.btn--primary:hover { background: var(--orange-700); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1eb457; color: #fff; }
.btn__icon { flex: none; display: block; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; color: var(--navy); letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--navy), var(--orange)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.brand span { color: var(--orange); }
.brand__logo { height: 58px; width: auto; display: block; }
.footer-logo { height: 84px; width: auto; margin-bottom: 8px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--navy); }
.nav a:hover, .nav a.active { background: var(--bg-soft); color: var(--orange-700); }
.nav .has-sub { position: relative; }
.nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 8px; display: none; flex-direction: column;
}
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu { display: flex; }
.nav .submenu a { white-space: nowrap; }
.header-cta { display: flex; align-items: center; gap: 10px; }

/* Language / currency switchers */
.lang-switch { position: relative; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: .82rem; color: var(--navy); cursor: pointer; font-family: inherit; line-height: 1; }
.lang-switch__btn:hover { border-color: var(--navy); }
.lang-switch__btn .caret { font-size: .7rem; opacity: .7; }
/* Small bridge so the dropdown doesn't close in the gap under the button. */
.lang-switch::after { content: ""; position: absolute; top: 100%; right: 0; height: 10px; width: 100%; }
.lang-switch .submenu { position: absolute; top: calc(100% + 8px); right: 0; left: auto; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; display: none; flex-direction: column; z-index: 120; }
.lang-switch .submenu a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.lang-switch .submenu a:hover, .lang-switch .submenu a.active { background: var(--bg-soft); color: var(--orange-700); }
.lang-switch:hover .submenu, .lang-switch:focus-within .submenu { display: flex; }
.flag { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }

/* Cookie consent banner */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 720px; margin: 0 auto; }
.cookie-consent p { color: rgba(255,255,255,.9); font-size: .9rem; margin: 0; flex: 1 1 300px; }
.cookie-consent a { color: #ffd9a8; text-decoration: underline; }
.cookie-consent .cc-actions { display: flex; gap: 10px; }
.cookie-consent[hidden] { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  /* Photo stays visible; the scrim is strongest on the left where the copy
     sits, so the headline keeps its contrast without flattening the image. */
  background:
    linear-gradient(100deg, rgba(8,56,74,.88) 0%, rgba(8,56,74,.62) 45%, rgba(8,56,74,.30) 100%),
    url('/assets/img/hero.jpg') center 55%/cover no-repeat;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; padding: clamp(56px,9vw,120px) 0 clamp(40px,6vw,72px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.86); margin-top: 1rem; font-size: 1.15rem; max-width: 52ch; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.1rem; font-weight: 600; font-size: .95rem; color: #ffd9a8; }

/* ---------- Search bar ---------- */
.searchbar {
  margin-top: clamp(24px,4vw,40px); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; align-items: end;
}
.searchbar .field { display: flex; flex-direction: column; gap: 5px; padding: 4px 6px; }
.searchbar label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.searchbar input, .searchbar select {
  border: 0; font-size: .98rem; font-family: inherit; color: var(--ink); background: transparent; padding: 4px 0;
}
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar .field + .field { border-left: 1px solid var(--line); }
/* Make the whole date field read as clickable and keep its calendar icon visible. */
.searchbar input[type="date"] { cursor: pointer; }
.searchbar input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .9; margin-left: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff;
  font-size: .74rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__dest { font-size: .8rem; font-weight: 700; color: var(--orange-700); text-transform: uppercase; letter-spacing: .05em; }
.card__title { font-size: 1.08rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.card__meta { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; color: var(--navy); }
.price small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.price b { font-size: 1.2rem; }

/* Car product photos are square with a studio backdrop — show the whole car
   in the card (contain) rather than cropping it. */
.car-card .card__media { background: #eaf4f8; }
.car-card .card__media img { object-fit: contain; }
.car-card:hover .card__media img { transform: none; }

/* ---------- Sections helpers ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,60px); align-items: center; }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.stat b { font-size: 1.8rem; color: var(--orange); display: block; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review__stars { color: var(--orange); letter-spacing: 2px; }
.review__body { margin: 10px 0; color: var(--ink); }
.review__author { font-weight: 700; color: var(--navy); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer p, .site-footer li, .site-footer span { color: rgba(255,255,255,.78); }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange-700); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.input, .select, .textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .85em;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); }
.textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--danger); font-size: .85rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; margin-bottom: 16px; }
.alert--ok { background: #e7f6ee; color: #145c37; border: 1px solid #bfe6cf; }
.alert--err { background: #fdecea; color: #9b2c1f; border: 1px solid #f5c8c1; }
.alert--info { background: #eef2fb; color: var(--navy); border: 1px solid #d5def3; }

/* ---------- Filters (cars) ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 26px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(40px,6vw,72px) 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: .6rem; }

/* ---------- Rich content ---------- */
.prose { max-width: 760px; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
/* Imported content sometimes has unsized inline icon SVGs (Font Awesome etc.);
   without this they stretch to full width. Render them at icon size. */
.prose svg { height: 30px; width: auto; vertical-align: middle; display: inline-block; }
.prose a svg { height: 26px; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.hidden { display: none !important; }
.tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none; }
  .nav.open { display: flex; }
  .nav .submenu { position: static; display: flex; box-shadow: none; border: 0; padding: 4px 0 4px 14px; }
  .nav-toggle { display: block; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 640px) {
  .site-header .container { gap: 8px; }
  .brand { font-size: 1.05rem; }
  /* Compact WhatsApp button so the header never overflows on small phones:
     drop the label and keep the icon (never collapse the button to nothing). */
  .header-cta .btn--wa { padding: .6em .7em; gap: 0; }
  .header-cta .btn--wa .btn__label { display: none; }
}
