:root {
  --studio-green: #064c45;
  --studio-green-2: #0a685d;
  --studio-blue: #008fa3;
  --studio-orange: #d8550b;
  --studio-ink: #082f2e;
  --studio-muted: #58706d;
  --studio-line: #d7e1de;
  --studio-soft: #f3f8f6;
  --studio-warn: #fff2e7;
}

.adventure-studio { background: #fff; color: var(--studio-ink); min-height: 100vh; }
.adventure-studio h1,.adventure-studio h2,.adventure-studio h3 { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","DM Sans",sans-serif; letter-spacing: -.04em; }
.studio-steps { height: 80px; display: grid; grid-template-columns: repeat(3,minmax(0,190px)); justify-content: center; align-items: stretch; border-bottom: 1px solid var(--studio-line); background: #fff; position: sticky; top: 0; z-index: 700; }
.studio-steps button { position: relative; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: 1fr 1fr; align-content: center; column-gap: 11px; border: 0; background: transparent; color: var(--studio-muted); cursor: pointer; padding: 12px 20px; text-align: left; }
.studio-steps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.studio-steps button span { grid-row: 1/3; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--studio-line); border-radius: 50%; font-weight: 800; }
.studio-steps strong { align-self: end; font-size: 1rem; }
.studio-steps small { align-self: start; font-size: .72rem; }
.studio-steps button.active { color: var(--studio-green); }
.studio-steps button.active::after { background: var(--studio-green); }
.studio-steps button.active span { background: var(--studio-green); color: #fff; border-color: var(--studio-green); }
.studio-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; max-width: 1680px; margin: auto; }
.studio-content { min-width: 0; border-right: 1px solid var(--studio-line); }
.phase-panel[hidden] { display: none; }

.explore-map-shell { height: 530px; position: relative; overflow: hidden; background: #dff1f1; }
.workspace-map { position: absolute; inset: 0; z-index: 1; }
.explore-controls { position: absolute; z-index: 500; top: 26px; left: 26px; width: 355px; max-height: calc(100% - 52px); overflow: auto; padding: 22px 26px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(2,54,53,.2); backdrop-filter: blur(14px); }
.explore-controls h1 { font-size: clamp(2.15rem,2.8vw,3.1rem); line-height: .98; margin: 2px 0 10px; }
.explore-controls>p:not(.eyebrow) { margin: 0; color: var(--studio-muted); line-height: 1.35; }
.search-field,.planning-card label,.customer-fields label { display: grid; gap: 7px; color: var(--studio-ink); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.search-field { margin: 14px 0; }
.search-field input,.planning-card input,.planning-card select,.customer-fields input,.customer-fields select,.customer-fields textarea { width: 100%; min-height: 48px; border: 1px solid var(--studio-line); border-radius: 11px; background: #fff; color: var(--studio-ink); padding: 11px 13px; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.explore-controls fieldset { border: 0; padding: 0; margin: 12px 0 0; }
.explore-controls legend { margin-bottom: 6px; font-weight: 800; font-size: .84rem; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-row button { min-height: 35px; border: 1px solid var(--studio-line); border-radius: 999px; background: #fff; color: var(--studio-ink); padding: 6px 11px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.filter-row button.active { background: var(--studio-green); border-color: var(--studio-green); color: #fff; }
.map-trust-note { position: absolute; z-index: 500; left: 400px; bottom: 22px; display: grid; gap: 2px; max-width: 355px; padding: 10px 14px; border-radius: 10px; background: rgba(6,76,69,.93); color: #fff; font-size: .72rem; }
.map-trust-note span { color: rgba(255,255,255,.72); }
.leaflet-control-zoom a { color: var(--studio-green)!important; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.studio-map-popup { display: grid; gap: 4px; min-width: 180px; }
.studio-map-popup small { color: var(--studio-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.studio-map-popup strong { font-size: 1rem; }
.studio-map-popup button { margin-top: 8px; min-height: 36px; border: 0; border-radius: 8px; background: var(--studio-orange); color: #fff; font-weight: 800; cursor: pointer; }

.activity-catalogue { padding: 28px 24px 64px; }
.activity-catalogue>header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.activity-catalogue h2 { font-size: clamp(2rem,3vw,3rem); margin: 0; }
.activity-catalogue>header>span { color: var(--studio-muted); font-weight: 700; }
.activity-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.discovery-card { min-width: 0; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 15px; background: #fff; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.discovery-card:hover { transform: translateY(-2px); border-color: rgba(0,143,163,.45); box-shadow: 0 14px 36px rgba(3,63,61,.11); }
.discovery-card.selected { border-color: var(--studio-green); box-shadow: 0 0 0 2px rgba(6,76,69,.16); }
.discovery-card>img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.discovery-card-body { display: grid; gap: 8px; padding: 15px; }
.card-destination { margin: 0; color: var(--studio-blue); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.discovery-card h3 { margin: 0; font-size: 1.14rem; line-height: 1.15; }
.discovery-card-body>p:not(.card-destination) { margin: 0; min-height: 44px; color: var(--studio-muted); font-size: .78rem; line-height: 1.4; }
.card-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--studio-line); }
.card-prices span { display: grid; }
.card-prices strong { font-size: .86rem; }
.card-prices small { color: var(--studio-muted); font-size: .65rem; }
.card-status { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.card-status span { border-radius: 999px; background: var(--studio-soft); color: var(--studio-muted); padding: 4px 7px; font-size: .62rem; font-weight: 700; }
.add-activity,.show-more,.drawer-primary,.request-booking { min-height: 48px; border: 0; border-radius: 10px; background: var(--studio-orange); color: #fff; font-weight: 850; cursor: pointer; }
.add-activity[aria-pressed="true"] { background: var(--studio-green); }
.show-more { display: block; margin: 24px auto 0; padding: 0 24px; background: var(--studio-green); }
.empty-catalogue { padding: 50px; text-align: center; color: var(--studio-muted); }

.adventure-drawer { position: sticky; top: 80px; height: calc(100vh - 80px); overflow: auto; align-self: start; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: #fff; }
.adventure-drawer>header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.adventure-drawer h2 { margin: 0; font-size: 2rem; }
.adventure-drawer>header>span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--studio-green); color: #fff; font-weight: 800; }
.drawer-trip-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--studio-line); border-radius: 12px; overflow: hidden; }
.drawer-trip-summary button { display: grid; gap: 4px; min-height: 70px; border: 0; background: #fff; padding: 11px; text-align: left; cursor: pointer; }
.drawer-trip-summary button+button { border-left: 1px solid var(--studio-line); }
.drawer-trip-summary span { color: var(--studio-muted); font-size: .7rem; }
.drawer-trip-summary strong { font-size: .76rem; line-height: 1.3; }
.selected-activities { display: grid; gap: 10px; }
.selected-item { display: grid; grid-template-columns: 70px 1fr; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--studio-line); }
.selected-item img { width: 70px; height: 78px; object-fit: cover; border-radius: 8px; }
.selected-item-content { min-width: 0; display: grid; gap: 3px; }
.selected-item-content>small { color: var(--studio-blue); font-weight: 700; }
.selected-item-content>strong { line-height: 1.2; }
.selected-item-price { display: flex; justify-content: space-between; gap: 12px; color: var(--studio-muted); font-size: .72rem; }
.selected-actions { display: flex; gap: 5px; margin-top: 5px; }
.selected-actions button { min-height: 32px; border: 1px solid var(--studio-line); border-radius: 7px; background: #fff; color: var(--studio-green); padding: 4px 8px; font-size: .68rem; font-weight: 750; cursor: pointer; }
.selected-actions .remove { color: #a13b12; }
.drawer-notice,.drawer-exclusion,.planning-warning { display: grid; gap: 3px; padding: 13px; border-radius: 10px; background: var(--studio-warn); color: #6c3411; }
.drawer-notice[hidden],.planning-warning[hidden] { display: none!important; }
.drawer-notice span,.drawer-exclusion span { font-size: .74rem; line-height: 1.4; }
.drawer-costs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--studio-line); }
#drawer-cost-lines { display: grid; gap: 8px; }
.drawer-cost-line { display: flex; justify-content: space-between; gap: 12px; font-size: .74rem; }
.drawer-costs dl { margin: 12px 0; }
.drawer-costs dl>div { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; }
.drawer-costs dd { margin: 0; font-weight: 800; }
.drawer-total { padding-top: 11px; border-top: 1px solid var(--studio-line); font-size: 1.12rem; }
#quote-state { margin: 0; color: var(--studio-muted); font-size: .72rem; line-height: 1.4; }
.drawer-primary { width: 100%; flex: 0 0 auto; }
.drawer-primary:disabled,.request-booking:disabled { background: #9aaba7; cursor: not-allowed; }
.packages-link { color: var(--studio-green); text-align: center; font-size: .76rem; font-weight: 800; }
.empty-state { color: var(--studio-muted); font-size: .86rem; }

.phase-panel[data-phase="design"],.phase-panel[data-phase="book"] { padding: clamp(34px,5vw,72px); }
.phase-heading { max-width: 760px; margin-bottom: 34px; }
.phase-heading h1 { margin: 0 0 12px; font-size: clamp(2.8rem,5vw,5rem); line-height: .98; }
.phase-heading>p:last-child { color: var(--studio-muted); font-size: 1.04rem; }
.planning-card,.customer-card { padding: clamp(22px,3vw,34px); border: 1px solid var(--studio-line); border-radius: 18px; background: var(--studio-soft); }
.planning-fields,.destination-date-grid,.customer-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.planning-card label small { color: var(--studio-muted); font-size: .7rem; text-transform: none; letter-spacing: 0; }
.destination-date-grid { margin-top: 16px; }
.interisland-check { display: flex!important; align-items: start; gap: 11px; margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--studio-warn); text-transform: none!important; letter-spacing: 0!important; font-size: .86rem!important; }
.interisland-check[hidden] { display: none!important; }
.interisland-check input { width: 22px; height: 22px; flex: 0 0 auto; }
.timeline-section { margin-top: 42px; }
.timeline-section>header { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-bottom: 1px solid var(--studio-line); padding-bottom: 16px; }
.timeline-section h2 { margin: 0; font-size: 2.4rem; }
.timeline-section>header>p { max-width: 330px; color: var(--studio-muted); text-align: right; }
.design-timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--studio-line); }
.timeline-item time { color: var(--studio-green); font-weight: 850; }
.timeline-item-content { display: grid; gap: 4px; }
.timeline-item-content span,.timeline-item-content small { color: var(--studio-muted); }
.timeline-item>strong { align-self: center; }
.planning-warning { margin-top: 24px; }
.planning-warning ul { margin: 5px 0 0; padding-left: 20px; }

.final-itinerary { display: grid; gap: 10px; }
.final-day { border-top: 1px solid var(--studio-line); padding: 20px 0; }
.final-day>p { color: var(--studio-blue); font-weight: 800; text-transform: uppercase; font-size: .74rem; letter-spacing: .07em; }
.final-day article { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 12px 0; }
.final-day article span,.final-day article small { color: var(--studio-muted); }
.final-day article strong:last-child { grid-row: 1/3; grid-column: 2; align-self: center; }
.final-cost-card { margin: 30px 0; padding: 28px; border-radius: 18px; background: var(--studio-green); color: #fff; }
.final-cost-card>header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.final-cost-card .eyebrow { color: #83e0d8; }
.final-cost-card h2 { margin: 0; font-size: 2.5rem; }
.final-cost-card>header>span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .72rem; }
#book-cost-lines { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.book-cost-line,.final-cost-card dl>div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.final-cost-card dd { margin: 0; font-weight: 800; }
.customer-card { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 32px; margin-top: 28px; background: #fff; }
.customer-card h2 { font-size: 2.2rem; }
.customer-card>div:first-child>p:last-child { color: var(--studio-muted); }
.customer-fields .wide { grid-column: 1/-1; }
.request-booking { width: 100%; margin-top: 22px; }
.flow-error { padding: 13px; background: #fff0ea; color: #7b2f10; border-left: 4px solid var(--studio-orange); }

button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible { outline: 3px solid #007f91; outline-offset: 3px; }

@media (max-width: 1180px) {
  .studio-grid { grid-template-columns: minmax(0,1fr) 340px; }
  .activity-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .explore-controls { width: 330px; }
  .map-trust-note { left: 380px; }
}

@media (max-width: 900px) {
  .adventure-studio { padding-bottom: 82px; }
  .studio-grid { display: block; }
  .studio-content { border-right: 0; }
  .adventure-drawer { position: fixed; inset: auto 0 0; z-index: 900; height: auto; max-height: none; border-top: 1px solid var(--studio-line); box-shadow: 0 -12px 35px rgba(3,63,61,.15); padding: 16px 20px; }
  .adventure-drawer>header,.drawer-trip-summary,.selected-activities,.drawer-notice,.drawer-costs,.drawer-exclusion,.packages-link { display: none; }
  .adventure-drawer .drawer-primary { display: block; }
  .explore-map-shell { height: 600px; }
  .activity-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .studio-steps { top: 0; height: 70px; grid-template-columns: repeat(3,1fr); }
  .studio-steps button { grid-template-columns: 26px 1fr; column-gap: 6px; padding: 8px 6px; }
  .studio-steps button span { width: 26px; height: 26px; font-size: .72rem; }
  .studio-steps strong { font-size: .76rem; }
  .studio-steps small { font-size: .58rem; }
  .explore-map-shell { height: auto; display: flex; flex-direction: column; overflow: visible; background: #fff; }
  .workspace-map { position: relative; order: 2; height: 310px; }
  .explore-controls { position: relative; order: 1; inset: auto; width: auto; max-height: none; padding: 26px 20px 20px; border-radius: 0; box-shadow: none; background: #fff; }
  .explore-controls h1 { font-size: 2.8rem; }
  .map-trust-note { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .activity-catalogue { padding: 26px 14px 90px; }
  .activity-catalogue>header { align-items: start; flex-direction: column; gap: 5px; }
  .activity-catalogue h2 { font-size: 2.25rem; }
  .activity-card-grid { grid-template-columns: 1fr; }
  .discovery-card { display: grid; grid-template-columns: 128px 1fr; }
  .discovery-card>img { height: 100%; aspect-ratio: auto; }
  .discovery-card-body>p:not(.card-destination),.card-status { display: none; }
  .card-prices { grid-template-columns: 1fr; }
  .card-prices span:nth-child(2) { display: none; }
  .adventure-drawer { padding: 12px 14px; }
  .phase-panel[data-phase="design"],.phase-panel[data-phase="book"] { padding: 34px 16px 92px; }
  .phase-heading h1 { font-size: 3rem; }
  .planning-fields,.destination-date-grid,.customer-fields { grid-template-columns: 1fr; }
  .timeline-section>header { align-items: start; flex-direction: column; }
  .timeline-section>header>p { text-align: left; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; }
  .final-cost-card { padding: 22px 18px; }
  .final-cost-card>header { flex-direction: column; }
  .final-day article { grid-template-columns: 1fr; }
  .final-day article strong:last-child { grid-row: auto; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-card { transition: none; }
}
