/**
 * Destinations AI - Interactive Components & Semantic Utility Stylesheet.
 *
 * Styles the WordPress Interactivity API islands and upgraded archive/footer
 * surfaces using theme.json CSS custom properties so both light and dark modes
 * retain WCAG 2.2 AA contrast, 44px touch targets, visible focus rings, and 0 CLS.
 */

/* ==========================================================================
   Semantic Footer & Template Utility Layout
   ========================================================================== */

.destinations-footer-heading {
  color: var(--wp--preset--color--contrast);
  margin: 0 0 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.destinations-anchor-alias {
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.destinations-finder-section {
  margin-block: 2.5rem;
}

.destinations-archive-search {
  width: 100%;
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
}

/* Keep Save-to-Shortlist buttons visible inside featured & place cards */
.destinations-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.destinations-featured-card-link {
  height: auto;
  flex: 1 1 auto;
}

.destinations-featured-card > .da-shortlist-btn {
  align-self: flex-start;
  margin: 0 1.25rem 1.25rem;
}

.destinations-place-card-actions,
.destinations-card-rich-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Ensure client-side venue filtering hides flex-displayed cards cleanly */
.destinations-place-card[hidden],
.destinations-place-card-rich[hidden],
[data-da-venue-card][hidden] {
  display: none;
}

/* ==========================================================================
   1. Typeahead Search (.da-typeahead*)
   ========================================================================== */

.da-typeahead {
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.da-typeahead__listbox {
  position: absolute;
  top: calc(100% + 0.375rem);
  inset-inline: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 0.375rem;
  max-height: 22rem;
  overflow-y: auto;
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
  box-shadow: var(--shadow-lg, 0 12px 28px rgb(0 0 0 / 0.14));
  text-align: left;
}

.da-typeahead__listbox[hidden] {
  display: none;
}

.da-typeahead__option {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-sm, 0.375rem);
  color: var(--wp--preset--color--card-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.da-typeahead__link,
.da-typeahead__option > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.da-typeahead__title {
  font-weight: 600;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.da-typeahead__meta {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted-foreground);
  flex-shrink: 0;
  white-space: nowrap;
}

.da-typeahead__option:hover,
.da-typeahead__option.is-active,
.da-typeahead__option[aria-selected='true'] {
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--primary);
}

.da-typeahead__option.is-active,
.da-typeahead__option[aria-selected='true'] {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: -2px;
}

.da-typeahead__link:hover,
.da-typeahead__option > a:hover {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. Zero-Reload Destination Finder (.da-finder*)
   ========================================================================== */

.da-finder {
  margin: 0;
  padding: 1.5rem;
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-sm, 0 1px 3px rgb(0 0 0 / 0.08));
}

.da-finder__controls {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.da-finder__field,
.da-finder__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.da-finder__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.da-finder__select {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.da-finder__select:hover {
  border-color: var(--wp--preset--color--primary);
}

.da-finder__select:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

.da-finder__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.da-finder__reset:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-finder__reset[hidden] {
  display: none;
}

.da-finder__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.da-finder__pill,
.da-finder__pills button,
.da-finder__pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 44px;
  padding: 0.5rem 0.9375rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-finder__pill:hover,
.da-finder__pills button:hover,
.da-finder__pills a:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.da-finder__pill.is-active,
.da-finder__pill[aria-pressed='true'],
.da-finder__pills button.is-active,
.da-finder__pills button[aria-pressed='true'],
.da-finder__pills a.is-active {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

.da-finder__status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--muted-foreground);
}

.da-finder__error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--wp--preset--color--destructive);
  border-left-width: 4px;
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.da-finder__error p {
  margin: 0;
  flex: 1 1 16rem;
}

.da-finder__error button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}

.da-finder__error button:hover {
  opacity: 0.92;
}

.da-finder__error[hidden],
.da-finder__error:empty {
  display: none;
}

.da-finder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  min-height: 12rem;
}

.da-finder__grid[hidden] {
  display: none;
}

.da-finder__grid article,
.da-finder__grid .da-finder__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.da-finder__grid article:hover,
.da-finder__grid .da-finder__card:hover {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--primary);
  box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.08));
}

.da-finder__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--wp--preset--color--muted);
}

.da-finder__grid img[hidden],
.da-finder__card [hidden] {
  display: none;
}

.da-finder__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--muted-foreground);
  border: 1px dashed var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
}

.da-finder__empty p {
  margin: 0;
  max-width: 34rem;
}

.da-finder__empty[hidden] {
  display: none;
}

.da-finder__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.da-finder__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.da-finder__more:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.12));
}

.da-finder__more[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .da-finder {
    padding: 2rem;
  }

  .da-finder__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .da-finder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .da-finder__controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .da-finder__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   3. Compact 6-Tab Venue Filters & Collapsible Drawer (.da-venue-*, .da-filter-*)
   ========================================================================== */

.da-venue-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.25rem 0 0.5rem;
  margin: 1.25rem 0;
}

.da-venue-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-venue-tab:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.da-venue-tab.is-active,
.da-venue-tab[aria-current='page'],
.da-venue-tab[aria-selected='true'] {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

.da-venue-tab.is-active:hover,
.da-venue-tab[aria-current='page']:hover,
.da-venue-tab[aria-selected='true']:hover {
  color: var(--wp--preset--color--primary-foreground);
}

.da-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-filter-trigger:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-filter-drawer {
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-lg, 1rem);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  box-shadow: var(--shadow-lg, 0 12px 28px rgb(0 0 0 / 0.16));
  box-sizing: border-box;
}

dialog.da-filter-drawer {
  width: min(30rem, calc(100vw - 2rem));
  max-height: 85dvh;
  margin: auto;
  overflow: hidden;
}

dialog.da-filter-drawer[open] {
  display: flex;
  flex-direction: column;
}

dialog.da-filter-drawer::backdrop {
  background-color: rgb(9 9 11 / 0.6);
  backdrop-filter: blur(4px);
}

.da-filter-drawer[hidden] {
  display: none;
}

.da-filter-drawer__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  color: var(--wp--preset--color--card-foreground);
}

.da-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--card-foreground);
}

.da-filter-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-filter-drawer__close:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-filter-drawer__controls {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.da-filter-drawer__check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--card-foreground);
  cursor: pointer;
}

.da-filter-drawer__check input[type='checkbox'] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--wp--preset--color--primary);
  cursor: pointer;
}

.da-filter-drawer__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.da-filter-drawer__field select {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}

.da-filter-drawer__field select:hover {
  border-color: var(--wp--preset--color--primary);
}

.da-filter-drawer__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-filter-drawer__reset:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-filter-drawer__categories {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.da-filter-drawer__subhead {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--muted-foreground);
}

.da-filter-drawer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.da-venue-filter__scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.da-venue-filter__scope[hidden],
.da-venue-filter__scope:empty {
  display: none;
}

.da-venue-filter__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.da-venue-filter__empty p {
  margin: 0;
  max-width: 34rem;
  color: var(--wp--preset--color--muted-foreground);
}

.da-venue-filter__empty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-venue-filter__empty button:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-venue-filter__empty[hidden] {
  display: none;
}

/* ==========================================================================
   4. Zero-Login Save to Shortlist (.da-shortlist-*)
   ========================================================================== */

.da-shortlist-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm, 0 1px 3px rgb(0 0 0 / 0.12));
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.da-shortlist-trigger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.16));
  color: var(--wp--preset--color--primary-foreground);
  text-decoration: none;
}

.da-shortlist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--primary-foreground);
  color: var(--wp--preset--color--primary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.da-shortlist-badge[hidden] {
  display: none;
}

.da-shortlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-shortlist-btn:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-shortlist-btn.is-saved,
.da-shortlist-btn[aria-pressed='true'] {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

.da-shortlist-btn.is-saved:hover,
.da-shortlist-btn[aria-pressed='true']:hover {
  color: var(--wp--preset--color--primary-foreground);
}

.da-shortlist-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(26rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  box-shadow: var(--shadow-xl, 0 20px 40px rgb(0 0 0 / 0.25));
  overflow-y: auto;
  z-index: 200;
  box-sizing: border-box;
}

.da-shortlist-drawer[open] {
  display: flex;
  flex-direction: column;
}

.da-shortlist-drawer[hidden] {
  display: none;
}

.da-shortlist-drawer::backdrop {
  background-color: rgb(9 9 11 / 0.6);
  backdrop-filter: blur(4px);
}

.da-shortlist-drawer__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.da-shortlist-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.da-shortlist-drawer__heading-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.da-shortlist-drawer__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--wp--preset--color--card-foreground);
}

.da-shortlist-drawer__header .da-shortlist-badge {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

.da-shortlist-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-shortlist-drawer__close:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.da-shortlist-drawer__status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
}

.da-shortlist-drawer__status:empty {
  display: none;
}

.da-shortlist-drawer__empty {
  padding: 1.25rem;
  border: 1px dashed var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.da-shortlist-drawer__empty p {
  margin: 0;
}

.da-shortlist-drawer__empty[hidden] {
  display: none;
}

.da-shortlist-drawer__body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1 1 auto;
}

.da-shortlist-drawer__body[hidden] {
  display: none;
}

.da-shortlist-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md, 0.75rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
}

.da-shortlist-group__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.da-shortlist-group__list,
.da-shortlist-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.da-shortlist-group__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.da-shortlist-group__item:last-child {
  border-bottom: 0;
}

.da-shortlist-group__link {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  color: var(--wp--preset--color--contrast);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.da-shortlist-group__link:hover {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}

.da-shortlist-group__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-shortlist-group__remove:hover {
  border-color: var(--wp--preset--color--destructive);
  color: var(--wp--preset--color--destructive);
}

.da-shortlist-drawer__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.da-shortlist-drawer__footer[hidden] {
  display: none;
}

.da-shortlist-drawer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}

.da-shortlist-drawer__action:hover {
  opacity: 0.92;
  color: var(--wp--preset--color--primary-foreground);
  text-decoration: none;
}

.da-shortlist-drawer__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.da-shortlist-drawer__clear:hover {
  border-color: var(--wp--preset--color--destructive);
  color: var(--wp--preset--color--destructive);
}

@media (max-width: 640px) {
  .da-shortlist-trigger {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .da-shortlist-drawer__panel {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   5. Stay22 Click-to-Load Map Facade & Contextual Landmark CTA (.da-stay22-*, .da-landmark-*)
   ========================================================================== */

.da-stay22-facade {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 24rem;
  padding: 0;
  text-align: center;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-lg, 1rem);
  background-color: var(--wp--preset--color--muted);
  background-image:
    linear-gradient(to right, rgb(113 113 122 / 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(113 113 122 / 0.12) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  color: var(--wp--preset--color--contrast);
  overflow: hidden;
  box-sizing: border-box;
}

.da-stay22-facade__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.da-stay22-facade__placeholder[hidden] {
  display: none;
}

.da-stay22-facade__coords,
.da-stay22-facade p {
  max-width: 34rem;
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.da-stay22-facade__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.12));
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.da-stay22-facade__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg, 0 12px 24px rgb(0 0 0 / 0.16));
  color: var(--wp--preset--color--primary-foreground);
  text-decoration: none;
}

.da-stay22-facade__mount {
  width: 100%;
}

.da-stay22-facade__mount:not(:empty) {
  flex: 1 1 auto;
  height: 100%;
}

.da-stay22-facade__mount iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.da-landmark-gyg-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.da-landmark-gyg-cta .destinations-btn-gyg {
  min-height: 44px;
  box-sizing: border-box;
}

a.da-landmark-gyg-cta {
  justify-content: center;
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  border: 1px solid var(--wp--preset--color--secondary);
  border-radius: var(--radius-md, 0.75rem);
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary-foreground);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 1px 3px rgb(0 0 0 / 0.08));
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

a.da-landmark-gyg-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.14));
  color: var(--wp--preset--color--secondary-foreground);
  text-decoration: none;
}

/* ==========================================================================
   6. Windowed Pagination (.da-pagination*)
   ========================================================================== */

.da-pagination {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.da-pagination .da-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.da-pagination .da-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--control-border, #71717a);
  border-radius: var(--radius-sm, 0.375rem);
  background-color: var(--wp--preset--color--card);
  color: var(--wp--preset--color--card-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.da-pagination .da-pagination__link:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.da-pagination .da-pagination__link.is-active,
.da-pagination .da-pagination__link[aria-current='page'] {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  text-decoration: none;
}

.da-pagination .da-pagination__link.is-active:hover,
.da-pagination .da-pagination__link[aria-current='page']:hover {
  color: var(--wp--preset--color--primary-foreground);
}

.da-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 44px;
  color: var(--wp--preset--color--muted-foreground);
  font-weight: 600;
  user-select: none;
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .da-finder__grid article:hover,
  .da-finder__grid .da-finder__card:hover,
  .da-finder__more:hover,
  .da-shortlist-trigger:hover,
  .da-stay22-facade__btn:hover,
  a.da-landmark-gyg-cta:hover {
    transform: none;
  }
}
