:root {
  --paper: #f7f8f2;
  --ink: #1d332e;
  --accent: #126b63;
  --accent-dark: #0d514b;
  --holiday: #f5d589;
  --line: #d9e1da;
  --muted: #4d625a;
  --accent-soft: #e4f1eb;
  --accent-line: #aad0c4;
  --field: #f9faf6;
  --shadow-soft: #e8eee7;
  --holiday-ink: #4a3512;
  --holiday-soft: #fff4d8;
  --holiday-line: #d8b56a;
  --weekend: #e1e8f0;
  --weekend-ink: #34465b;
  --outside: #ecece5;
  --display: "Bricolage Grotesque",Arial,sans-serif;
  --body: "DM Sans",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}

a {
  color: inherit;
}

button,input,select {
  font: inherit;
  color: inherit;
}

a,button,select,summary {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .42;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none!important;
}

.shell {
  width: min(1180px,calc(100% - 80px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  transform: translateY(-120%);
  background: white;
  padding: 8px 16px;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.brand {
  font: 800 27px/1 var(--display);
  letter-spacing: -1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand>span:not(.logo) {
  color: var(--accent);
}

.logo {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  margin-inline-end: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 11px;
  padding: 11px 17px;
  min-height: 43px;
  font-weight: 800;
  font-size: .93rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: white;
  line-height: 1.25;
}

.outline {
  border-color: var(--line);
  background: transparent;
}

.outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.primary {
  background: var(--accent);
  color: white;
  padding: 15px 21px;
  box-shadow: 0 4px 0 var(--accent-dark);
}

.primary:hover {
  background: var(--accent-dark);
}

.primary span {
  color: var(--holiday);
  font-size: 1.15rem;
}

.eyebrow {
  font-weight: 800;
  letter-spacing: .125em;
  color: var(--accent-dark);
  font-size: .79rem;
  margin: 0 0 14px;
}

.eyebrow span {
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-right: 5px;
}

.planner-bg {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.planner {
  padding-block: 46px 52px;
  scroll-margin-top: 14px;
}

.result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  font: 800 clamp(2.15rem,4.3vw,3.4rem)/.98 var(--display);
  letter-spacing: -.06em;
  margin: 0;
}

h3 {
  font: 800 1.55rem/1.15 var(--display);
  letter-spacing: -.035em;
  margin: 0;
}

.controls {
  display: grid;
  grid-template-columns: 1.1fr 1.45fr .74fr .84fr;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 3px 0 var(--shadow-soft);
}

.controls.single {
  grid-template-columns: 1.2fr .8fr 1fr;
}

.controls label,.field {
  display: block;
  min-width: 0;
  font-weight: 800;
  font-size: .9rem;
}

.controls select,.stepper,.year-value,input[type=date] {
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: var(--field);
}

.year-value {
  display: flex;
  align-items: center;
  padding-inline: 12px;
}

select {
  appearance: none;
  padding: 8px 34px 8px 12px;
  background-image: linear-gradient(45deg,transparent 50%,#4d625a 50%),linear-gradient(135deg,#4d625a 50%,transparent 50%);
  background-position: calc(100% - 16px) 53%,calc(100% - 11px) 53%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.stepper {
  display: grid;
  grid-template-columns: 38px minmax(24px,1fr) 38px;
  align-items: center;
  padding: 3px;
}

.stepper button {
  border: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  min-height: 35px;
  font-size: 1.16rem;
}

.stepper button:hover:not(:disabled) {
  background: var(--accent-line);
}

.stepper input {
  width: 100%;
  min-width: 0;
  text-align: center;
  background: none;
  border: 0;
  font-weight: 800;
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.result-head {
  align-items: start;
}

.result-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  list-style: none;
  padding: 0;
  margin: 14px 0;
  font-size: .84rem;
  font-weight: 700;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid #1d332e20;
}

.annual {
  background: var(--accent);
  color: white;
}

.holiday {
  background: var(--holiday);
  color: var(--holiday-ink);
}

.weekend {
  background: var(--weekend);
  color: var(--weekend-ink);
}

.year-calendar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.calendar-month {
  min-width: 0;
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-line);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--shadow-soft);
}

.calendar-month h4 {
  margin: 0 0 8px 3px;
  font: 800 1.35rem/1.15 var(--display);
  letter-spacing: -.03em;
}

.month-grid {
  table-layout: fixed;
  width: 100%;
  border-spacing: 3px;
  text-align: center;
}

.month-grid th {
  padding-bottom: 3px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--muted);
}

.month-grid td {
  padding: 0;
  height: 32px;
}

.calendar-day {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 32px;
  border: 0;
  padding: 0;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

button.calendar-day:hover {
  box-shadow: inset 0 0 0 2px #1d332e70;
}

button.calendar-day:focus-visible {
  outline-offset: 1px;
}

button.calendar-day[data-day-label] {
  position: relative;
}

button.calendar-day:is(:hover, :focus-visible)::after {
  content: attr(data-day-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: max-content;
  max-width: 9.5rem;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  box-shadow: 0 2px 7px #1d332e33;
  font: 600 .82rem/1.3 var(--body);
  overflow-wrap: anywhere;
  pointer-events: none;
}

.month-grid td:nth-child(-n+3) button.calendar-day::after {
  left: 0;
  transform: none;
}

.month-grid td:nth-child(n+5) button.calendar-day::after {
  right: 0;
  left: auto;
  transform: none;
}

.workday {
  background: var(--field);
}

.outside {
  background: var(--outside);
  color: var(--muted);
}

.month-detail {
  min-height: 2.7em;
  margin: 7px 3px 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1060px) {
  .year-calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 770px) {
  .year-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 490px) {
  .year-calendar {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-grid td,
  .calendar-day {
    min-height: 40px;
  }
}

@media(max-width:950px) {
  .shell {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(3.8rem,9vw,6rem);
  }
  .hero-art {
    height: 365px;
  }
  .controls {
    gap: 10px;
  }
}

@media(max-width:700px) {
  .shell {
    width: calc(100% - 32px);
  }
  .top {
    min-height: 64px;
  }
  .top nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 28px 32px;
    gap: 19px;
  }
  .hero-copy {
    padding-block: 0 4px;
  }
  .hero h1 {
    font-size: clamp(3.6rem,12.5vw,5.6rem);
  }
  .hero-art {
    height: 260px;
  }
  .ticket {
    right: 15px;
    bottom: 20px;
    transform: rotate(-7deg) scale(.82);
    transform-origin: bottom right;
  }
  .planner {
    padding-block: 35px 37px;
  }
  .controls,.controls.single {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }
  .controls.single > :first-child {
    grid-column: 1/-1;
  }
  .result-head {
    flex-wrap: wrap;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media(max-width:455px) {
  .brand {
    font-size: 24px;
  }
  .top-action {
    font-size: .81rem;
    padding-inline: 11px;
  }
  .holiday-panel {
    padding: 15px;
  }
  .hero-art {
    height: 225px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: clamp(17px, 2.2vw, 22px);
}
.compact-header h1 {
  margin: 7px 0 0;
  font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--display);
  letter-spacing: -.045em;
}
.compact-header em {
  color: var(--accent);
  font-style: normal;
}
.planner { padding-block: 14px 22px; }
.controls {
  grid-template-columns: 1.1fr 1.4fr 1fr 1fr 1fr;
  padding: 10px 14px;
  gap: 12px;
}
.controls.single { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.controls input[type=date] {
  min-width: 0;
  padding: 6px 9px;
}
.result-head {
  align-items: center;
  margin-top: 13px;
}
.result-head h2 {
  font-size: 1.32rem;
  letter-spacing: -.035em;
}
.legend { margin: 8px 0 10px; }
.calendar-month { padding: 8px 9px; }
.calendar-month h4 { font-size: 1.13rem; margin-bottom: 3px; }
.month-grid { border-spacing: 2px; }
.month-grid td { height: 22px; }
.calendar-day { min-height: 22px; }
.month-detail {
  margin-top: 3px;
  padding-top: 3px;
  min-height: 1.6em;
  font-size: .82rem;
}
@media (min-width: 1120px) {
  .year-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .compact-header > div { display: flex; align-items: center; gap: 24px; }
  .compact-header h1 { margin: 0; font-size: 2.05rem; }
  .planner { padding-top: 10px; }
  .calendar-month { padding: 13px; }
  .month-grid td { height: 30px; }
  .calendar-day { min-height: 30px; }
}
@media (max-width: 850px) {
  .controls, .controls.single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .calendar-month { padding: 9px 12px; }
  .calendar-day { min-height: 33px; }
}

/* Planner panels */
.planner-bg { border: 0; }
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.planner {
  max-width: 960px;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.header-inner .brand {
  font-size: 1.2rem;
  letter-spacing: -.05em;
}

.header-inner .logo {
  width: 28px;
  height: 28px;
}

.planner {
  padding-top: clamp(30px, 5vw, 54px);
}

.planner-intro {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.planner-intro h1 {
  margin: 0 0 16px;
  font: 800 clamp(2.6rem, 6vw, 3.6rem)/1.06 var(--display);
  letter-spacing: -.055em;
}

.planner-intro em {
  color: var(--accent);
  font-style: normal;
}

.planner-intro p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.planner-faq {
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.planner-faq h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 4vw, 1.7rem);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}

.faq-grid h3 {
  margin: 0 0 6px;
  font: 800 1rem/1.4 var(--body);
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

@media (max-width: 640px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
.controls, .controls.single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
}
.controls.single > :first-child { grid-column: 1 / -1; }
.controls select,
.controls input[type=number] {
  min-height: 44px;
}
.controls input[type=number] {
  width: 100%;
  min-height: 45px;
  padding: 8px 12px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
}
.form-action, .dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-action { grid-column: 1 / -1; }
.form-action .primary { min-height: 48px; padding-inline: 24px; }
.holiday-picker {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.calendar-panel {
  padding: 18px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.holiday-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.holiday-heading h2 { font: 800 1rem/1.4 var(--body); margin: 0; }
.holiday-heading .button { min-height: 35px; padding: 5px 12px; }
#holiday-count { margin-inline-start: 8px; color: var(--muted); font-weight: 600; }
.holiday-options { display: flex; flex-wrap: wrap; gap: 7px; }
.holiday-option, .holiday-toggle[aria-pressed=true] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-dark);
}
.holiday-option, .holiday-toggle {
  padding: 4px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 7px;
  font-size: .875rem;
}
.holiday-option { max-width: 100%; overflow-wrap: anywhere; font-family: var(--body); }
.holiday-option-date { font-weight: 750; white-space: nowrap; }
.holiday-option-name { font-weight: 500; }
.holiday-editor { display: grid; gap: 6px; max-height: min(45vh, 320px); overflow: auto; margin-bottom: 16px; padding: 4px; }
.holiday-toggle { background: white; border-color: var(--line); color: var(--muted); text-align: start; cursor: pointer; }
.holiday-toggle[aria-pressed=false] { text-decoration: line-through; }
#holiday-dialog h2 { font-size: 1.5rem; }
#holiday-dialog p { color: var(--muted); font-size: .9rem; }
#add-holiday-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
#add-holiday-form input { display: block; padding-inline: 10px; }
#holiday-name {
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  font: inherit;
  color: inherit;
}
#add-holiday-form button { justify-self: start; }
.calendar-panel { padding: clamp(12px, 2.5vw, 28px); scroll-margin-top: 16px; }
.calendar-panel .result-head { margin-top: 0; }
.calendar-panel .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.calendar-panel .calendar-month { border: 0; box-shadow: none; padding: 12px 0; }
.calendar-panel .workday { background: transparent; }
.trip-section { padding: 16px 0 24px; }
.trip-section h2 { font-size: 1.6rem; }
.header-inner { justify-content: space-between; gap: 12px; }
.header-inner > .button { min-height: 36px; }
.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trip-section .trip-grid { margin-top: 14px; }
.trip-card {
  position: relative;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--field);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.trip-card:hover,
.trip-card:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 4px 14px var(--shadow-soft);
}

.trip-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 10px;
  background: var(--accent-soft);
}

.trip-card-body { padding: 10px 10px 8px; }
.related-guides .trip-card-photo { aspect-ratio: 16 / 6; }
.trip-country { font: 600 .85rem/1.4 var(--body); color: var(--accent-dark); }
.trip-card h3 { margin: 5px 0; font-size: 1.16rem; }
.trip-card a { color: var(--ink); text-underline-offset: 3px; }
.trip-card a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.trip-card a:hover { color: var(--accent); }
.trip-card p, .guide-note { color: var(--muted); margin: 0; }
.trip-more { margin-top: 14px; }
.destination-page { padding-bottom: 40px; }
.back-link { color: var(--accent-dark); text-underline-offset: 3px; }
.guide-intro { margin-top: 20px; }
.guide-intro h1 { margin-top: 8px; }
.guide-content { max-width: 66ch; }
.guide-content section { border-top: 1px solid var(--line); padding: 16px 0; }
.guide-content h2 { font-size: 1.35rem; margin: 0; }
.guide-content p { margin: 7px 0 0; }
.guide-note { margin: 6px 0 16px; }
@media (max-width: 490px) {
  .trip-grid { grid-template-columns: minmax(0, 1fr); }
}
dialog {
  width: min(410px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
}
dialog::backdrop { background: #1d332e77; }
#date-form { display: grid; gap: 14px; }
#date-form h2 { font-size: 1.6rem; }
#date-form input { display: block; padding-inline: 10px; }
.dialog-actions { justify-content: flex-end; }
@media (max-width: 850px) {
  .calendar-panel .year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .controls, .controls.single { grid-template-columns: minmax(0, 1fr); }
  .calendar-panel .year-calendar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.site-footer { max-width: 960px; padding: 0 0 24px; font-size: .875rem; color: var(--muted); }

.travel-guide > p { margin: 0 0 18px; }
.travel-guide section { scroll-margin-top: 20px; }
.travel-guide section p + p { margin-top: 12px; }
.guide-picks { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 16px 20px; }
.guide-picks ul { margin: 8px 0 0; padding-inline-start: 20px; }
.guide-jumps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0; }
.guide-jumps a, .travel-guide a { color: var(--accent-dark); text-underline-offset: 3px; }
.guide-planning dt { font-weight: 800; margin-top: 12px; }
.guide-planning dd { margin: 4px 0 0; }
.related-guides { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }

.guide-cover {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 18px 18px 0 0;
}

.guide-cover img {
  display: block;
  width: 100%;
  height: clamp(220px, 43vw, 430px);
  object-fit: cover;
  object-position: center 48%;
}

.guide-cover::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom, transparent, var(--paper));
}

.travel-guide-page .guide-intro {
  position: relative;
  margin-top: -32px;
}

.travel-guide-page .guide-intro h1 {
  max-width: 22ch;
  font-size: clamp(2.05rem, 5vw, 3.45rem);
}

@media (min-width: 768px) {
  .travel-guide-page { text-align: center; }
  .travel-guide-page > .back-link { display: block; width: fit-content; }
  .travel-guide-page .guide-intro h1,
  .travel-guide-page .guide-intro p,
  .travel-guide { margin-inline: auto; }
  .travel-guide .guide-picks ul { list-style: none; padding-inline-start: 0; }
  .travel-guide .guide-jumps { justify-content: center; }
}
