/* Mobile Experiences only. Existing desktop, catalogue data and booking surfaces stay intact. */
body.experiences-marketplace .mobile-catalogue-only { display: none; }

@media (max-width: 767px) {
  body.experiences-marketplace .mobile-catalogue-only { display: inline-flex; }
  body.experiences-marketplace .desktop-catalogue-copy { display: none; }
  body.experiences-marketplace .marketplace-intro { --type-hero: 27px; --type-leading-heading: 1.15; --type-weight-title: 600; padding: 20px 16px 14px; }
  body.experiences-marketplace .marketplace-intro h1 { max-width: none; margin: 0; font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
  body.experiences-marketplace .marketplace-intro p { max-width: 390px; margin: 7px 0 0; font-size: 14px; line-height: 1.45; }
  body.experiences-marketplace .mobile-search-entry { display: flex; align-items: center; gap: 11px; width: calc(100% - 32px); min-height: 50px; margin: 0 16px; padding: 12px 14px; border: 1px solid #dce4dd; border-radius: 11px; background: #f5f7f3; color: var(--ink); font-size: 15px; font-weight: 400; line-height: 1.4; text-align: left; }
  body.experiences-marketplace .mobile-search-entry svg { width: 20px; height: 20px; flex: none; color: var(--teal); }
  body.experiences-marketplace #mobile-search-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  body.experiences-marketplace .mobile-search-entry:focus-visible,
  body.experiences-marketplace .chip:focus-visible,
  body.experiences-marketplace .shopping-tools button:focus-visible,
  body.experiences-marketplace .sort-label:has(select:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }

  /* The single existing search form moves into this native modal on mobile. */
  body.experiences-marketplace .mobile-search-panel { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 32px); margin: 0; padding: 21px 20px max(22px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 18px 18px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -12px 50px #182e2d20; }
  body.experiences-marketplace .mobile-search-panel::backdrop { background: #152e2d80; backdrop-filter: none; }
  body.experiences-marketplace .mobile-search-panel .dialog-heading { margin-bottom: 17px; align-items: center; }
  body.experiences-marketplace .mobile-search-panel .dialog-heading h2 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
  body.experiences-marketplace .mobile-search-panel .dialog-heading p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
  body.experiences-marketplace .mobile-search-panel .close { width: 44px; height: 44px; font-size: 27px; border-radius: 50%; background: #f3f6f2; }
  body.experiences-marketplace #mobile-search-fields .search-bar { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 0; }
  body.experiences-marketplace #mobile-search-fields .search-bar > label { display: flex; flex-direction: column; grid-column: 1; order: initial; gap: 7px; margin: 0; padding: 0; border: 0 !important; min-width: 0; }
  body.experiences-marketplace #mobile-search-fields .search-bar .keyword-field { order: -1; padding: 0 !important; }
  body.experiences-marketplace #mobile-search-fields .search-bar .date-field { padding: 0 !important; }
  body.experiences-marketplace #mobile-search-fields .search-bar > label > span { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: .025em; }
  body.experiences-marketplace #mobile-search-fields .search-bar small { font-size: 12px; font-weight: 400; }
  body.experiences-marketplace #mobile-search-fields .search-bar :is(input, select),
  body.experiences-marketplace #mobile-search-fields .search-bar .keyword-field input { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #dce4dd; border-radius: 9px; background: #fff; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink); }
  body.experiences-marketplace #mobile-search-fields .search-button { grid-column: 1; order: initial; width: 100%; height: 49px; min-height: 49px; margin: 2px 0 0; padding: 12px 16px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 15px; font-weight: 600; }

  body.experiences-marketplace .discovery { padding: 16px 16px 28px; min-width: 0; }
  body.experiences-marketplace .discovery-tools { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
  body.experiences-marketplace .category-chips { display: flex; flex: none; flex-wrap: nowrap; gap: 7px; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0 0 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: none; }
  body.experiences-marketplace .category-chips::-webkit-scrollbar { display: none; }
  body.experiences-marketplace .category-chips .chip { flex: none; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 999px; background: #f1f4ef; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
  body.experiences-marketplace .category-chips .chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
  body.experiences-marketplace .shopping-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; min-width: 0; margin: 0; padding: 0; }
  body.experiences-marketplace .shopping-tools .outline,
  body.experiences-marketplace .shopping-tools .sort-label { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 9px 8px; border: 1px solid #e0e6df; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
  body.experiences-marketplace .shopping-tools .outline[aria-pressed="true"] { background: #eef5ef; border-color: #b2c6bc; }
  body.experiences-marketplace .shopping-tools svg { flex: none; width: 17px; height: 17px; }
  body.experiences-marketplace .shopping-tools span { margin: 0; font-size: 13px; color: inherit; }
  body.experiences-marketplace .shopping-tools .mobile-sort-caption { display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
  body.experiences-marketplace .shopping-tools .sort-label select { position: absolute; inset: 0; width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 16px; }
  body.experiences-marketplace #filter-count:empty { display: none; }

  body.experiences-marketplace .live-note { min-height: 20px; margin: 9px 0 15px; gap: 7px; align-items: center; flex-wrap: nowrap; color: var(--muted); font-size: 12px; line-height: 1.4; }
  body.experiences-marketplace .live-note p { min-width: 0; margin: 0; font-size: 12px; line-height: 1.4; }
  body.experiences-marketplace #price-status { display: none; }
  body.experiences-marketplace #mobile-price-status { display: block; min-width: 0; font-size: 12px; line-height: 1.4; }
  body.experiences-marketplace .live-note .status-dot { width: 5px; height: 5px; margin: 0; background: #7f978b; flex: none; }
  body.experiences-marketplace .live-note[data-loading="true"] .status-dot { width: 12px; height: 12px; border: 1.5px solid #d7e2d8; border-top-color: var(--teal); border-radius: 50%; background: transparent; animation: catalogue-price-progress .8s linear infinite; }
  body.experiences-marketplace .live-note[data-loading="true"] #refresh-prices { display: none; }
  body.experiences-marketplace .live-note button { min-height: 32px; margin: -6px 0 -6px auto; padding: 5px 2px; font-size: 12px; line-height: 1.4; }
  body.experiences-marketplace .active-filters { gap: 7px; margin-bottom: 14px; }
  body.experiences-marketplace .active-filter { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 8px 2px 10px; border-radius: 7px; font-size: 12px; }
  body.experiences-marketplace .active-filter button { min-width: 36px; min-height: 36px; padding: 0; font-size: 18px; }
  body.experiences-marketplace .reset-all { min-height: 40px; font-size: 13px; }

  /* Opening collection starts with photography; its accessible title and rail controls remain. */
  body.experiences-marketplace #browse > .collection:first-child { display: flex; flex-direction: column; }
  body.experiences-marketplace #browse > .collection:first-child > .experience-rail { order: 0; }
  body.experiences-marketplace #browse > .collection:first-child > .section-heading { order: 1; justify-content: flex-end; margin: 10px 0 0; }
  body.experiences-marketplace #browse > .collection:first-child > .section-heading > div:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.experiences-marketplace .section-heading { --type-section: 22px; --type-leading-heading: 1.2; flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 13px; }
  body.experiences-marketplace .section-heading h2 { max-width: none; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
  body.experiences-marketplace .section-heading p:not(.eyebrow) { display: none; }
  body.experiences-marketplace .section-heading .eyebrow,
  body.experiences-marketplace .drag-hint { display: none; }
  body.experiences-marketplace .rail-actions { flex: none; gap: 5px; }
  body.experiences-marketplace .round-arrow { min-width: 44px; min-height: 44px; height: 44px; padding: 0 9px; border-color: #e0e6df; font-size: 12px; font-weight: 500; }
  body.experiences-marketplace .collection + .collection { margin-top: 28px; }
  body.experiences-marketplace .experience-rail { width: 100%; max-width: 100%; margin: 0; padding: 0 0 3px; gap: 14px; align-items: stretch; overscroll-behavior-x: contain; scroll-behavior: smooth; }
  body.experiences-marketplace .experience-card { --type-card: 19px; --type-leading-heading: 1.3; --type-tracking-heading: -.018em; flex: 0 0 calc(100% - 24px); border: 0; border-radius: 0; box-shadow: none; background: #fff; min-width: 0; }
  body.experiences-marketplace .card-photo,
  body.experiences-marketplace .results-grid .card-photo { width: 100%; aspect-ratio: 1.6; border-radius: 11px; overflow: hidden; }
  body.experiences-marketplace .card-photo img { width: 100%; height: 100%; object-fit: cover; }
  body.experiences-marketplace .save-button { width: 44px; height: 44px; top: 10px; right: 10px; background: #fffffff2; color: var(--ink); box-shadow: 0 2px 8px #102d3714; }
  body.experiences-marketplace .card-body,
  body.experiences-marketplace .results-grid .card-body { min-height: 0; padding: 11px 0 3px; }
  body.experiences-marketplace .card-kicker { font-size: 12px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; margin-bottom: 5px; color: var(--muted); }
  body.experiences-marketplace .card-title,
  body.experiences-marketplace .results-grid .card-title { min-height: 0; margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.018em; }
  body.experiences-marketplace .rating-line { white-space: normal; flex-wrap: wrap; gap: 2px 4px; min-height: 0; margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
  body.experiences-marketplace .rating-line :is(small, .product-review-source) { font-size: 11px; }
  body.experiences-marketplace .rating-line .product-review-stars { font-size: 13px; }
  body.experiences-marketplace .card-description { min-height: 0; margin: 0 0 7px; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; }
  body.experiences-marketplace .card-facts { min-height: 0; margin: 0 0 3px; gap: 0 5px; font-size: 12px; line-height: 1.45; }
  body.experiences-marketplace .card-facts span { white-space: normal; }
  body.experiences-marketplace .card-bottom { min-height: 48px; padding: 5px 0 18px; gap: 8px; border: 0; align-items: center; }
  body.experiences-marketplace .card-price,
  body.experiences-marketplace .card-price .native-price-amount { font-size: 21px; font-weight: 600; line-height: 1.25; }
  body.experiences-marketplace .card-price .native-price-prefix,
  body.experiences-marketplace .card-price .native-price-unit { font-size: 12px; }
  body.experiences-marketplace .card-price > span:only-child { max-width: none; font-size: 14px; font-weight: 500; }
  body.experiences-marketplace .card-price small { font-size: 11px; }
  body.experiences-marketplace .compare-button { min-height: 44px; padding: 7px 0 7px 8px; font-size: 12px; line-height: 1.4; }
  body.experiences-marketplace .results-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  body.experiences-marketplace .results-grid .experience-card { padding-bottom: 14px; border-bottom: 1px solid #e8ece6; }
  body.experiences-marketplace #result-count { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--muted); }

  body.experiences-marketplace #filter-dialog { position: fixed; inset: auto 0 0; margin: 0; padding: 22px 20px max(22px, env(safe-area-inset-bottom)); width: 100%; max-width: 100%; max-height: calc(100dvh - 32px); border: 0; border-radius: 18px 18px 0 0; overflow-y: auto; overscroll-behavior: contain; }
  body.experiences-marketplace #filter-dialog::backdrop { background: #152e2d80; backdrop-filter: none; }
  body.experiences-marketplace #filter-dialog .dialog-heading { align-items: center; margin-bottom: 18px; }
  body.experiences-marketplace #filter-dialog .dialog-heading h2 { font-size: 23px; font-weight: 600; line-height: 1.25; }
  body.experiences-marketplace #filter-dialog .close { width: 44px; height: 44px; font-size: 27px; background: #f3f6f2; border-radius: 50%; }
  body.experiences-marketplace #filter-dialog .filter-fields { gap: 15px; }
  body.experiences-marketplace #filter-dialog .filter-fields > label:not(.checkbox-label) { gap: 7px; font-size: 13px; font-weight: 500; }
  body.experiences-marketplace #filter-dialog .filter-fields select { min-height: 48px; padding: 11px; border-color: #dce4dd; border-radius: 9px; font-size: 16px; font-weight: 400; }
  body.experiences-marketplace #filter-dialog .checkbox-label { min-height: 44px; font-size: 14px; }
  body.experiences-marketplace #filter-dialog .checkbox-label input { width: 20px; height: 20px; }
  body.experiences-marketplace #filter-dialog .muted { font-size: 12px; line-height: 1.5; }
  body.experiences-marketplace #filter-dialog .dialog-actions { margin-top: 18px; padding-top: 15px; }
  body.experiences-marketplace #filter-dialog .dialog-actions button { min-height: 48px; border-radius: 9px; font-size: 14px; font-weight: 500; }

  /* Support retains its original URL and interaction but no longer covers catalogue controls. */
  body.experiences-marketplace .whatsapp-float { display: flex; position: static !important; inset: auto; z-index: auto; align-items: center; justify-content: center; width: calc(100% - 32px); max-width: 440px; min-height: 48px; margin: 4px auto 25px; border-radius: 9px; background: #eef5ef; color: #174d4b; font-size: 0 !important; box-shadow: none; }
  body.experiences-marketplace .whatsapp-float::after { content: "WhatsApp support"; font-size: 14px; font-weight: 500; }
  body.experiences-marketplace .whatsapp-float:hover { background: #e4eee4; color: #174d4b; }
  body.experiences-marketplace.has-compare .whatsapp-float,
  body.experiences-marketplace:has(#wandoras-cookie-choice:not([hidden])) .whatsapp-float,
  body.experiences-marketplace.has-compare:has(#wandoras-cookie-choice:not([hidden])) .whatsapp-float { position: static; bottom: auto; }

  @keyframes catalogue-price-progress { to { transform: rotate(360deg); } }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.experiences-marketplace .category-chips,
  body.experiences-marketplace .experience-rail { scroll-behavior: auto; }
  body.experiences-marketplace .live-note[data-loading="true"] .status-dot { animation: none; border-color: #cbd9cf; border-top-color: var(--teal); }
}
