/* ===========================================================
   Ítalíuferð — elegant ítalskt þema
   Litir: terracotta, ólífugrænt, vínrautt, fílabein
   =========================================================== */

:root {
  --terracotta: #c45c34;
  --terracotta-dark: #a8482a;
  --olive: #6b7d4e;
  --olive-dark: #515f3a;
  --wine: #6e2436;
  --wine-light: #8a3147;
  --cream: #f7f1e6;
  --cream-dark: #efe5d2;
  --ink: #2f2a24;
  --ink-soft: #5c544a;
  --gold: #c9a23f;
  --sand: #e8dcc4;
  --white: #fffdf8;
  --shadow: 0 8px 30px rgba(47, 42, 36, 0.12);
  --shadow-lg: 0 18px 50px rgba(47, 42, 36, 0.18);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

a { color: var(--wine); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { color: var(--terracotta); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 8px; letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a.active { background: var(--sand); color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 14px 24px; border-radius: 0; border-bottom: 1px solid var(--sand); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); text-align: center;
  padding: 120px 0 130px;
  background: linear-gradient(rgba(40,28,22,.55), rgba(40,28,22,.62)),
              url("https://loremflickr.com/1600/900/tuscany,italy,landscape?lock=77") center/cover no-repeat;
}
.hero h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .eyebrow { color: var(--gold); }
.hero p { max-width: 640px; margin: 18px auto 0; font-size: 1.12rem; opacity: .96; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; letter-spacing: .02em;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--cream-dark); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

.divider {
  width: 60px; height: 3px; margin: 16px auto;
  background: linear-gradient(90deg, var(--olive), var(--terracotta), var(--wine));
  border-radius: 3px;
}
.flag-bar { height: 5px; display: flex; }
.flag-bar span { flex: 1; }
.flag-bar .g { background: #4a8c4a; }
.flag-bar .w { background: #f4f1ea; }
.flag-bar .r { background: #c4453a; }

/* ---------- Version cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.vcard {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; border: 1px solid var(--sand);
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vcard-img { height: 190px; background-size: cover; background-position: center; position: relative; }
.vcard-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--wine); font-weight: 700;
  font-size: .72rem; padding: 5px 12px; border-radius: 50px; letter-spacing: .05em;
}
.vcard-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.vcard-body h3 { margin-bottom: 6px; }
.vcard-meta { font-size: .8rem; color: var(--terracotta); font-weight: 600; margin-bottom: 12px; letter-spacing: .03em; }
.vcard-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.vcard-foot { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip { background: var(--sand); color: var(--ink-soft); font-size: .72rem; padding: 4px 10px; border-radius: 50px; font-weight: 500; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--sand); font-size: .92rem; }
table.compare thead th { background: var(--olive); color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
table.compare tbody tr:nth-child(even) { background: var(--cream); }
table.compare td:first-child { font-weight: 600; color: var(--ink); }
table.compare.tight { min-width: 0; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
table.compare.tight th, table.compare.tight td { padding: 11px 14px; font-size: .86rem; }
table.compare.tight td:last-child { white-space: nowrap; color: var(--terracotta); font-weight: 600; }

/* ---------- Map ---------- */
.map { height: 460px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.leaflet-popup-content { font-family: var(--sans); }
.map-popup b { font-family: var(--serif); font-size: 1.05rem; color: var(--wine); }

/* ---------- Day-by-day timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.day {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 26px; overflow: hidden; border: 1px solid var(--sand);
}
.day-head {
  display: flex; gap: 18px; align-items: center; padding: 20px 24px;
  cursor: pointer; background: var(--white); transition: background .2s;
}
.day-head:hover { background: var(--cream); }
.day-num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--wine));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
}
.day-head h3 { font-size: 1.25rem; margin: 0; }
.day-head .route { font-size: .8rem; color: var(--terracotta); font-weight: 600; }
.day-toggle { margin-left: auto; font-size: 1.4rem; color: var(--ink-soft); transition: transform .3s; flex-shrink: 0; }
.day.open .day-toggle { transform: rotate(45deg); }
.day-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.day.open .day-body { max-height: 1600px; }
.day-body-inner { padding: 4px 24px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.day-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.day-info p { margin-bottom: 10px; font-size: .95rem; }
.day-info .lbl { font-weight: 700; color: var(--olive-dark); }
@media (max-width: 680px) { .day-body-inner { grid-template-columns: 1fr; } }

/* ---------- Info callouts ---------- */
.callout {
  background: var(--white); border-left: 4px solid var(--terracotta);
  padding: 18px 22px; border-radius: 0 10px 10px 0; box-shadow: var(--shadow); margin-bottom: 16px;
}
.callout.olive { border-color: var(--olive); }
.callout.wine { border-color: var(--wine); }
.callout.gold { border-color: var(--gold); }
.callout h4 { margin-bottom: 6px; font-size: 1.15rem; }
.callout p { font-size: .92rem; color: var(--ink-soft); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* ---------- Stats ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 30px; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.stat .lab { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
/* Á dökkum hero þarf ljósara letur */
.hero .stat .num { color: var(--gold); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero .stat .lab { color: rgba(255,253,248,.88); }
.hero .stat-row { margin-top: 36px; }

/* ---------- Builder ---------- */
.builder-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
@media (max-width: 940px) { .builder-grid { grid-template-columns: 1fr; } }
.stop-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.stop-card {
  background: var(--white); border: 1px solid var(--sand); border-radius: 12px;
  padding: 14px; box-shadow: var(--shadow); transition: all .2s; position: relative;
}
.stop-card.selected { border-color: var(--terracotta); box-shadow: 0 0 0 2px var(--terracotta); }
.stop-card h4 { font-size: 1.1rem; margin-bottom: 2px; }
.stop-card .region { font-size: .72rem; color: var(--olive-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stop-card p { font-size: .82rem; color: var(--ink-soft); margin: 8px 0; }
.stop-card .add-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.nights-ctrl { display: flex; align-items: center; gap: 8px; }
.nights-ctrl button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--sand);
  background: var(--cream); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nights-ctrl button:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.nights-ctrl .n { min-width: 22px; text-align: center; font-weight: 700; }
.toggle-btn {
  border: none; background: var(--olive); color: #fff; border-radius: 50px;
  padding: 7px 16px; font-weight: 600; font-size: .8rem; cursor: pointer; transition: background .2s;
}
.toggle-btn.added { background: var(--wine); }
.toggle-btn:hover { opacity: .9; }

.panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; position: sticky; top: 84px; border: 1px solid var(--sand);
}
.panel h3 { margin-bottom: 4px; }
.panel .summary-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--sand); font-size: .9rem; }
.panel .summary-line:last-of-type { border-bottom: none; }
.itin-list { margin: 14px 0; max-height: 280px; overflow-y: auto; }
.itin-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: .9rem; }
.itin-item .order { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.itin-item .nm { flex: 1; font-weight: 600; }
.itin-item .ng { color: var(--ink-soft); font-size: .82rem; }
.itin-item .rm { cursor: pointer; color: var(--wine); font-weight: 700; background: none; border: none; font-size: 1rem; }
.itin-empty { color: var(--ink-soft); font-style: italic; text-align: center; padding: 24px 0; font-size: .9rem; }
.totals { background: var(--cream); border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
.totals .big { font-family: var(--serif); font-size: 1.8rem; color: var(--terracotta); font-weight: 700; }

/* Verð & uppl. á stop-korti */
.stop-verd { font-size: .78rem; color: var(--olive-dark); font-weight: 600; margin: 6px 0 2px; }
.stop-plan { margin-top: 12px; border-top: 1px dashed var(--sand); padding-top: 10px; }
.stop-plan strong { font-size: .8rem; color: var(--terracotta); text-transform: uppercase; letter-spacing: .04em; }
.stop-plan ul { margin: 6px 0 0; padding-left: 18px; }
.stop-plan li { font-size: .82rem; color: var(--ink-soft); margin-bottom: 3px; }

/* Bílaval */
.bil-opts { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: 6px 0 14px; }
.bil-opt { font-size: .72rem; padding: 7px 4px; border: 1px solid var(--sand); background: var(--cream); border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.bil-opt.active { background: var(--olive); color: #fff; border-color: var(--olive); }

/* Kostnaðarkassi */
.cost-box { background: var(--cream); border-radius: 10px; padding: 14px 16px; margin: 6px 0 16px; }
.cost-line { display: flex; justify-content: space-between; font-size: .88rem; padding: 5px 0; }
.cost-line.total { border-top: 2px solid var(--sand); margin-top: 6px; padding-top: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--terracotta); }
.cost-note { font-size: .72rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

/* Verðsíða */
.price-card { background: var(--white); border:1px solid var(--sand); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price-card h3 { margin-bottom: 4px; }
.price-list { list-style: none; margin-top: 10px; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: .92rem; }
.price-list li:last-child { border-bottom: none; }
.price-list .p { font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.price-list small { display: block; color: var(--ink-soft); font-size: .8rem; }

/* ---------- Checklist ---------- */
.checklist { max-width: 760px; margin: 0 auto; }
.check-group { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--sand); }
.check-group-head { padding: 16px 22px; background: var(--olive); color: #fff; font-family: var(--serif); font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.check-item { display: flex; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--sand); align-items: flex-start; cursor: pointer; transition: background .15s; }
.check-item:last-child { border-bottom: none; }
.check-item:hover { background: var(--cream); }
.check-item input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--terracotta); cursor: pointer; flex-shrink: 0; }
.check-item .ci-text strong { display: block; }
.check-item .ci-text span { font-size: .85rem; color: var(--ink-soft); }
.check-item.done .ci-text strong { text-decoration: line-through; color: var(--ink-soft); }
.progress-wrap { background: var(--sand); border-radius: 50px; height: 14px; overflow: hidden; margin: 10px 0 30px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--olive), var(--terracotta)); width: 0; transition: width .4s; border-radius: 50px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery figure { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); height: 220px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; color: #fff; font-family: var(--serif); font-size: 1.15rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 50px 0 30px; margin-top: 0; }
.footer .container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer h4 { color: var(--white); margin-bottom: 12px; }
.footer a { color: var(--sand); font-size: .9rem; display: block; padding: 3px 0; }
.footer a:hover { color: var(--terracotta); }
.footer .brand { color: var(--white); }
.footer-bottom { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: var(--sand); }

/* ---------- Prentblað ferðasmiðs ---------- */
.ps-wrap { max-width: 720px; margin: 0 auto; color: var(--ink); }
.ps-top { height: 6px; display: flex; margin-bottom: 22px; }
.ps-top span { flex: 1; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--terracotta); padding-bottom: 14px; margin-bottom: 22px; }
.ps-head .ps-brand { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.ps-head .ps-brand span { color: var(--terracotta); }
.ps-head .ps-title { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); }
.ps-head .ps-date { font-size: .8rem; color: var(--ink-soft); }
.ps-stats { display: flex; gap: 26px; margin-bottom: 22px; }
.ps-stats .s .n { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--terracotta); }
.ps-stats .s .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.ps-section-title { font-family: var(--serif); font-size: 1.2rem; color: var(--olive-dark); margin: 22px 0 10px; border-bottom: 1px solid var(--sand); padding-bottom: 5px; }
table.ps-table { width: 100%; border-collapse: collapse; }
table.ps-table td { padding: 9px 8px; border-bottom: 1px solid var(--sand); font-size: .88rem; vertical-align: top; }
table.ps-table .ps-ord { width: 26px; height: 26px; background: var(--terracotta); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; }
table.ps-table .ps-place { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
table.ps-table .ps-nights { color: var(--terracotta); font-weight: 600; white-space: nowrap; text-align: right; }
table.ps-table .ps-plan { color: var(--ink-soft); font-size: .82rem; }
.ps-costs { display: flex; gap: 18px; margin-top: 18px; }
.ps-costbox { flex: 1; background: var(--cream); border-radius: 10px; padding: 14px 16px; }
.ps-costbox .cl { display: flex; justify-content: space-between; font-size: .86rem; padding: 4px 0; }
.ps-costbox .cl.tot { border-top: 2px solid var(--sand); margin-top: 6px; padding-top: 9px; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--terracotta); }
.ps-note { font-size: .72rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; border-top: 1px solid var(--sand); padding-top: 12px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-up.in { opacity: 1; transform: none; }
.pill-legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 20px; font-size: .85rem; }
.pill-legend span { display: flex; align-items: center; gap: 6px; }
.pill-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
