:root {
  color-scheme: light;
  --green: #254c36;
  --ink: #253a30;
  --muted: #62685b;
  --cream: #fcf0e4;
  --paper: #fdfaf5;
  --border: #e8ddd0;
  --orange: #bb471f;
  --white: #fff;
  --gutter: clamp(24px, 5.2vw, 86px);
  --dock-height: 70px;
  --search-height: 68px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--dock-height) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.layout { width: min(100% - 2 * var(--gutter), 1430px); margin-inline: auto; }
.masthead { background: var(--cream); border-bottom: 1px solid var(--border); }
.search-dock {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4;
  height: var(--dock-height);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dock-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.masthead.is-docked .search-dock {
  background: var(--paper);
  border-bottom-color: var(--border);
  box-shadow: 0 5px 18px #4734290f;
}
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "search";
  align-items: center;
  padding-block: calc(var(--dock-height) + 20px) 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; object-fit: contain; mix-blend-mode: multiply; }

.categories { display: flex; align-items: center; gap: 7px; }
.category {
  display: inline-flex;
  min-height: 43px;
  padding: 7px 14px;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  background: transparent;
  color: var(--green);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 650;
}
.category:hover { background: #fff9f3; }
.category[aria-pressed="true"] { background: var(--green); color: white; }
.icon { display: block; width: 19px; height: 19px; flex-shrink: 0; }

.territory {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  font-weight: 650;
  color: var(--green);
  white-space: nowrap;
}
.territory-icon { color: var(--orange); }
.territory-icon .icon { width: 16px; height: 16px; }

h1, h2 { color: var(--green); font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -.062em; }

.search-slot {
  grid-area: search;
  min-height: var(--search-height);
}
.search {
  position: relative;
  z-index: 5;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  width: min(100%, 712px);
  min-height: var(--search-height);
  padding: 7px;
  background: var(--white);
  border: 1px solid #eddfd1;
  border-radius: 42px;
  box-shadow: 0 9px 25px #663e1d0b;
}
.search-field { display: grid; min-width: 0; gap: 2px; padding: 4px 22px; cursor: text; }
.search-where { border-left: 1px solid var(--border); }
.search-label { font-size: .8rem; font-weight: 750; color: var(--green); }
.search-field input {
  padding: 0;
  border: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-size: .92rem;
  text-overflow: ellipsis;
}
.search-field input::placeholder { color: #66685e; opacity: 1; }
.search-field:focus-within { background: var(--paper); border-radius: 24px; }
.search-field input:focus { outline: none; }
.search-submit {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
}
.search-submit:hover { background: #9e3613; }
.search-submit .icon { width: 21px; height: 21px; }

.marketplace { padding-block: 32px 58px; min-height: 52vh; }
.section + .section { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border); }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 12px; background: #efe9d8; color: var(--green); }
.section[data-category="activites"] .section-icon { background: #e4ecdf; }
.section[data-category="menage"] .section-icon { background: #f6e7e0; }
.section[data-category="repas"] .section-icon { background: #f8e6d2; }
h2 { margin: 0; font-size: clamp(1.55rem, 2.65vw, 2.3rem); line-height: 1.12; letter-spacing: -.045em; }

.controls { display: flex; gap: 7px; }
.carousel-control {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
}
.carousel-control:hover:not(:disabled) { background: var(--cream); }
.carousel-control:disabled { opacity: .38; cursor: default; }
.carousel-control .icon { width: 17px; height: 17px; }

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px;
  padding-bottom: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { min-width: 0; scroll-snap-align: start; }
.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.57;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--white);
}
.placeholder .card-image {
  background: linear-gradient(155deg, #fff 20%, #fbf5ec);
}
.placeholder .card-line { display: block; height: 8px; width: 58%; margin-top: 12px; border-radius: 28px; background: #eee6db; }
.placeholder .card-line + .card-line { width: 36%; margin-top: 8px; background: #f2ece3; }
.card h3 { margin: 8px 0 3px; font-size: 1rem; line-height: 1.28; overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--muted); font-size: .875rem; }
.card .card-price { color: var(--ink); font-weight: 650; }
.card-link { text-decoration: none; }
@media (hover: hover) {
  .card-link:hover h3 { text-decoration: underline; }
}
.search-status { margin-bottom: 22px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; color: var(--muted); font-size: .875rem; }

@media (max-width: 1060px) {
  .categories { gap: 2px; }
  .category { padding-inline: 9px; }
  .cards { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}

@media (max-width: 800px) {
  :root { --gutter: 22px; --dock-height: 56px; --search-height: 65px; }
  body { background: var(--cream); }
  .masthead { border-bottom: 0; }
  .masthead-inner {
    grid-template-areas: "search" "categories";
    padding-block: var(--dock-height) 0;
  }
  .brand img { width: 39px; height: 35px; }
  .territory { font-size: .75rem; }
  .search-slot { margin-top: 8px; }
  .search-field { padding-inline: 12px; }
  .search-label { font-size: .72rem; }
  .search-field input { font-size: .875rem; }
  .search-submit { width: 40px; height: 40px; }
  .categories {
    grid-area: categories;
    justify-self: stretch;
    min-width: 0;
    margin: 11px calc(-1 * var(--gutter)) 0;
    padding: 3px var(--gutter);
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar { display: none; }
  .category { min-height: 37px; padding-inline: 11px; gap: 6px; background: var(--white); border-color: var(--border); }
  .category .icon { width: 17px; height: 17px; }
  .marketplace { padding-block: 21px 40px; }
  .section + .section { margin-top: 24px; padding-top: 20px; }
  .section-icon { flex-basis: 32px; height: 32px; border-radius: 10px; }
  .cards { grid-auto-columns: 43%; gap: 11px; padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
  .card-image { aspect-ratio: 1.16; border-radius: 15px; }
  .controls { display: none; }
  .footer-inner > span { text-align: right; }
  .footer-brand img { width: 28px; height: 25px; }
}

@media (max-width: 430px) {
  :root { --gutter: 16px; --search-height: 56px; }
  .search-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
  .search { grid-template-columns: 1.45fr 1fr auto; }
  .search-field { padding-block: 8px; }
  .search-what { padding-left: 10px; }
  .search-where { padding-inline: 9px 4px; }
  .territory-icon { display: none; }
}

.desktop-search, .search-panel { display: none; }

@media (min-width: 801px) {
  .categories {
    position: fixed;
    inset: 0 0 auto;
    z-index: 4;
    width: max-content;
    height: var(--dock-height);
    margin-inline: auto;
  }
  .is-docked .categories { visibility: hidden; }
  .search {
    width: min(100%, 940px);
    grid-template-columns: 1.25fr 1fr .94fr .84fr auto;
    transition: background-color .15s;
  }
  .search[data-open] { background: #f3e8dc; }
  .search-field { min-height: 50px; align-content: center; }
  .search-where, .search-trigger { border-left: 1px solid var(--border); }
  .search-trigger {
    display: grid;
    text-align: left;
    border-block: 0;
    border-right: 0;
    background: transparent;
    cursor: pointer;
  }
  .search-trigger:hover { background: #fff9f3; border-radius: 28px; }
  .search-trigger[aria-expanded="true"],
  .search[data-open="destination"] .search-where {
    border-left-color: transparent;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 2px 10px #47342916;
  }
  .search-value { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-submit { display: inline-flex; width: auto; gap: 8px; padding-inline: 16px; border-radius: 999px; font-size: .875rem; font-weight: 700; }
  .search-submit .desktop-search { display: inline; }

  .search-panel {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    z-index: 3;
    max-width: 100%;
    max-height: var(--panel-height, 470px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 16px 44px #34221224, 0 3px 10px #34221210;
  }
  .destination-panel { left: var(--destination-offset, 0px); width: 320px; }
  .dates-panel { left: 50%; transform: translateX(-50%); width: 690px; }
  .guests-panel { right: 0; width: 365px; }
  .panel-title { margin: 0; font-size: 1.5rem; }
  .panel-note { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
  .destination-options { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
  .destination-options:empty { margin: 0; }
  .destination-option { display: flex; gap: 11px; padding: 7px; align-items: center; border-radius: 11px; cursor: pointer; font-size: .9375rem; font-weight: 650; }
  .destination-option:hover, .destination-option[aria-selected="true"] { background: var(--paper); }
  .destination-option-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--cream); color: var(--orange); }
  .destination-option:nth-child(even) .destination-option-icon { background: #e9efe5; color: var(--green); }
  .panel-heading, .panel-actions, .counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .month-controls, .counter-controls { display: flex; align-items: center; gap: 8px; }
  .panel-step {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--green);
    font-size: 1.125rem;
  }
  .panel-step:disabled { opacity: .35; cursor: default; }
  .panel-step:hover:not(:disabled) { background: var(--cream); }
  .calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 15px; }
  .calendar-month + .calendar-month { border-left: 1px solid var(--border); padding-left: 21px; }
  .month-title { margin: 0 0 9px; font-size: .9375rem; color: var(--green); text-transform: capitalize; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
  .weekday { text-align: center; font-size: .75rem; font-weight: 650; color: var(--muted); padding-bottom: 5px; }
  .calendar-day { height: 34px; border: 1px solid transparent; border-radius: 7px; padding: 0; color: var(--green); background: transparent; font-size: .875rem; }
  .calendar-day:disabled { color: #9b9a8d; cursor: default; }
  .calendar-day[aria-current="date"] { border-color: var(--border); }
  .calendar-day.in-range { background: #eaf0e6; border-radius: 0; }
  .calendar-day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
  .calendar-day:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--cream); }
  .panel-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  .panel-reset, .panel-done { min-height: 36px; border: 0; border-radius: 999px; padding: 5px 12px; font-size: .875rem; font-weight: 650; }
  .panel-reset { background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
  .panel-reset:hover { background: var(--paper); }
  .panel-done { background: var(--green); color: var(--white); }
  .panel-done:hover { background: #1b3928; }
  .counter-row { padding-block: 11px; }
  .counter-row + .counter-row { border-top: 1px solid var(--border); }
  .counter-label { display: block; font-weight: 650; }
  .counter-note { display: block; color: var(--muted); font-size: .8125rem; }
  .counter-value { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
}

.is-docked .search {
  position: fixed;
  inset: 0 0 auto;
  top: calc((var(--dock-height) - 44px) / 2);
  width: min(665px, 100% - 2 * (var(--gutter) + 150px));
  min-height: 44px;
  padding: 4px;
  transform-origin: top left;
  box-shadow: 0 2px 10px #47342912;
}

.is-docked .search-field { min-height: 34px; padding: 0 12px; }
.is-docked .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.is-docked .search-field input, .is-docked .search-value { font-size: .875rem; }
.is-docked .search-submit { width: 34px; height: 34px; display: grid; padding: 0; }
.is-docked .search-submit .icon { width: 18px; height: 18px; }
.is-docked .search-submit .desktop-search { display: none; }

@media (801px <= width <= 1050px) {
  .is-docked .territory { visibility: hidden; }
  .is-docked .search { width: min(665px, 100% - 2 * (var(--gutter) + 54px)); }
}

@media (max-width: 800px) {
  .is-docked .territory { visibility: hidden; }
  .is-docked .search {
    left: calc(var(--gutter) + 48px);
    right: var(--gutter);
    width: auto;
  }
  .is-docked .search-field { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .search-dock, .search { transition: none; }
}
