/**
 * Destination Accommodations - Frontend Styles (Österlen-style Availability & Comparison)
 */

:root {
  --dacc-primary: #b89a5b;
  --dacc-primary-hover: #9e8248;
  --dacc-navy: #0a2540;
  --dacc-dark: #0f172a;
  --dacc-green: #2e7d32;
  --dacc-red: #c63e3e;
  --dacc-bg-card: #ffffff;
  --dacc-border: rgba(0, 0, 0, 0.08);
  --dacc-text: #1e293b;
  --dacc-text-muted: #64748b;
  --dacc-radius-card: 20px;
  --dacc-radius-pill: 9999px;
  --dacc-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --dacc-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   STANDALONE SEARCH BAR (Booking / Hero style)
   ========================================== */
.dacc-search-hero-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 35px 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 860px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* NOOTAS Branding Badge */
.dacc-search-hero-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.dacc-overview-brand-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.dacc-nootas-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0;
  border: none;
}

.dacc-nootas-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.dacc-nootas-badge:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 4px;
}

.dacc-nootas-logo-box {
  background: transparent;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dacc-nootas-badge:hover .dacc-nootas-logo-box {
  border: none !important;
  box-shadow: none !important;
}

.dacc-nootas-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.dacc-nootas-pill {
  display: none !important;
}

@media (max-width: 640px) {
  .dacc-nootas-badge {
    justify-content: center;
  }
  .dacc-nootas-logo-img {
    height: 24px;
  }
  .dacc-overview-brand-header {
    justify-content: center;
  }
}

.dacc-search-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0a2540;
  margin: 0 0 6px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.dacc-search-hero-subtitle {
  color: var(--dacc-text-muted);
  font-size: 1.05rem;
  margin: 0 0 25px 0;
  text-align: center;
}

.dacc-search-bar-inline {
  display: flex;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dacc-search-field {
  flex: 1;
  min-width: 200px;
  padding: 6px 14px;
}

.dacc-field-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dacc-text-muted);
  margin-bottom: 4px;
}

.dacc-input-icon-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dacc-field-icon {
  font-size: 16px;
  opacity: 0.7;
}

.dacc-date-range-input, .dacc-guests-select, .dacc-daterange-picker, .dacc-search-input, .dacc-sort-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--dacc-text);
  cursor: pointer;
  box-sizing: border-box;
}

.dacc-date-range-input:focus-visible,
.dacc-guests-select:focus-visible,
.dacc-daterange-picker:focus-visible,
.dacc-search-input:focus-visible,
.dacc-sort-select:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 2px;
}

.dacc-search-field:focus-within,
.dacc-date-filter-group:focus-within,
.dacc-search-group:focus-within,
.dacc-sort-group:focus-within {
  box-shadow: 0 0 0 2px #0a2540;
  border-radius: 8px;
}

.dacc-search-divider {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}

.dacc-search-submit-btn {
  background: #b59358;
  background: linear-gradient(135deg, #b89552 0%, #a48243 100%);
  color: #ffffff !important;
  border: none;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(184, 154, 91, 0.35);
}

.dacc-search-submit-btn:hover {
  background: linear-gradient(135deg, #a48243 0%, #8e6f34 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.dacc-search-submit-btn:focus-visible,
.dacc-type-pill:focus-visible,
.dacc-btn-book:focus-visible,
.dacc-btn-details:focus-visible,
.dacc-link-ota:focus-visible,
.dacc-amenity-toggle:focus-visible {
  outline: 3px solid #0a2540;
  outline-offset: 2px;
}

/* ==========================================
   TOP CONTROLS & FILTER BAR
   ========================================== */
.dacc-overview-wrapper {
  margin: 30px 0 50px;
  width: 100%;
}

.dacc-top-controls-bar {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(130px, 0.9fr) minmax(210px, 1.55fr) minmax(160px, 1.1fr) auto;
  align-items: end;
  gap: 14px;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--dacc-border, #e2e8f0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.dacc-date-filter-group,
.dacc-guests-filter-group,
.dacc-search-group,
.dacc-sort-group {
  min-width: 0;
  width: 100%;
}

.dacc-search-btn-group {
  min-width: 0;
}

.dacc-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 7px;
  white-space: nowrap;
}

.dacc-label--invisible {
  visibility: hidden;
  user-select: none;
  display: block;
}

.dacc-date-input-wrap,
.dacc-search-input-wrap,
.dacc-guests-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dacc-date-input-wrap:focus-within,
.dacc-search-input-wrap:focus-within,
.dacc-guests-input-wrap:focus-within,
.dacc-sort-select:focus {
  border-color: #0a2540;
  box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.12);
  background: #ffffff;
}

.dacc-guests-input-wrap .dacc-guests-select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--dacc-text, #1e293b);
  width: 100%;
  cursor: pointer;
  padding: 0;
  height: 100%;
}

.dacc-sort-select {
  display: block;
  width: 100%;
  height: 48px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  color: var(--dacc-text, #1e293b);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dacc-overview-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, #b89a5b 0%, #9a7d43 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(184, 154, 91, 0.25);
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.dacc-overview-search-btn:hover {
  background: linear-gradient(135deg, #a48243 0%, #8e6f34 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 154, 91, 0.35);
}

.dacc-overview-search-btn:focus-visible {
  outline: 3px solid #0a2540;
  outline-offset: 2px;
}

/* Tablet Layout (769px to 1080px) */
@media (max-width: 1080px) and (min-width: 769px) {
  .dacc-top-controls-bar {
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    padding: 18px 20px;
  }
  .dacc-search-group {
    grid-column: span 2;
  }
  .dacc-sort-group {
    grid-column: span 1;
  }
  .dacc-search-btn-group {
    grid-column: span 1;
  }
  .dacc-overview-search-btn {
    width: 100%;
  }
}

/* Sub-type Pills */
.dacc-type-filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dacc-type-pill {
  padding: 8px 18px;
  border-radius: var(--dacc-radius-pill);
  border: 1px solid var(--dacc-border);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.dacc-type-pill:hover {
  border-color: var(--dacc-primary);
  color: var(--dacc-primary);
}

.dacc-type-pill.active {
  background: var(--dacc-navy);
  border-color: var(--dacc-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

@media (max-width: 860px) {
  .dacc-search-hero-wrapper {
    padding: 20px 14px 18px;
    border-radius: 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dacc-search-hero-title {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .dacc-search-hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.4;
    padding: 0 4px;
  }

  .dacc-search-bar-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
  }

  .dacc-search-field {
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 8px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
  }

  .dacc-search-divider {
    display: none !important;
  }

  .dacc-search-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .dacc-date-range-input,
  .dacc-guests-select {
    font-size: 14px;
  }

  .dacc-top-controls-bar {
    padding: 16px 14px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .dest-acc-search-section {
    padding: 24px 0 20px !important;
  }
  .dest-acc-search-section .dest-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .dacc-search-hero-wrapper {
    padding: 16px 10px 16px;
    border-radius: 14px;
  }
  .dacc-search-hero-title {
    font-size: 1.15rem;
  }
  .dacc-search-hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .dacc-search-field {
    padding: 8px 10px;
  }
  .dacc-field-label {
    font-size: 9px;
  }
  .dacc-date-range-input,
  .dacc-guests-select {
    font-size: 13px;
  }
  .flatpickr-calendar {
    max-width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: 10px !important;
    margin: 0 auto !important;
  }
  .flatpickr-innerContainer {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .flatpickr-rContainer {
    max-width: 100% !important;
  }
  .flatpickr-days {
    max-width: 100% !important;
    width: 100% !important;
  }
  .dayContainer {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .dacc-top-controls-bar {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px;
  }

  .dacc-date-filter-group,
  .dacc-guests-filter-group,
  .dacc-search-group,
  .dacc-sort-group,
  .dacc-search-btn-group {
    flex: 1 1 100%;
    width: 100%;
  }

  .dacc-label--invisible {
    display: none;
  }

  .dacc-overview-search-btn {
    width: 100%;
    justify-content: center;
  }

  .dacc-type-filters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 16px 8px 0;
    margin-right: -10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
  }

  .dacc-type-filters-row::-webkit-scrollbar {
    display: none;
  }

  .dacc-type-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 16px;
    font-size: 13.5px;
  }
}

/* Amenities Checkbox Row */
.dacc-amenities-filters-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--dacc-border);
  margin-bottom: 25px;
}

.dacc-amenities-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* ==========================================
   "BARA LEDIGA RUM" TOGGLE SWITCH PILL
   ========================================== */
.dacc-toggle-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--dacc-border);
  border-radius: var(--dacc-radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  margin-right: 8px;
}

.dacc-toggle-switch-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dacc-toggle-switch-pill input.dacc-available-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.dacc-switch-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.dacc-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dacc-toggle-switch-pill input.dacc-available-toggle:checked + .dacc-switch-track {
  background-color: #16a34a;
}

.dacc-toggle-switch-pill input.dacc-available-toggle:checked + .dacc-switch-track .dacc-switch-thumb {
  transform: translateX(16px);
}

.dacc-toggle-switch-pill input.dacc-available-toggle:focus-visible + .dacc-switch-track {
  outline: 2px solid var(--dacc-primary);
  outline-offset: 2px;
}

.dacc-switch-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dacc-navy);
  white-space: nowrap;
}

.dacc-amenity-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

/* Date Info Banner */
.dacc-date-info-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #166534;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Beta Availability Notice Banner */
.dacc-beta-notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dacc-beta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.dacc-beta-notice-text {
  flex: 1;
}

.dacc-beta-notice-text strong {
  color: #1e293b;
  font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 640px) {
  .dacc-beta-notice-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    font-size: 0.825rem;
    margin-bottom: 18px;
  }
}

/* ==========================================
   CARDS GRID & SPLIT LAYOUT
   ========================================== */
.dacc-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.dacc-has-map .dacc-main-layout {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

@media (max-width: 1024px) {
  .dacc-has-map .dacc-main-layout {
    grid-template-columns: 1fr;
  }
}

.dacc-results-counter {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 18px;
}

.dacc-count-number {
  color: var(--dacc-navy);
  font-weight: 800;
}

.dacc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ==========================================
   ACCOMMODATION CARD
   ========================================== */
.dacc-card {
  background: #ffffff;
  border-radius: var(--dacc-radius-card);
  overflow: hidden;
  box-shadow: var(--dacc-shadow-card);
  border: 1px solid var(--dacc-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dacc-card:hover,
.dacc-card.is-highlighted {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.12), 0 0 0 2px var(--dacc-primary);
  border-color: var(--dacc-primary);
}

.dacc-card-image-wrap {
  position: relative;
  height: 200px;
  background: #0f172a;
}

.dacc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dacc-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dacc-card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 130px);
  z-index: 2;
}

.dacc-card-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.dacc-badge-type, .dacc-badge-town {
  padding: 4px 10px;
  border-radius: var(--dacc-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.dacc-badge-type {
  background: rgba(10, 37, 64, 0.85);
  color: #ffffff;
}

.dacc-badge-town {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dacc-navy);
}

.dacc-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dacc-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.dacc-card-title a {
  color: var(--dacc-navy);
  text-decoration: none;
}

.dacc-card-title a:hover {
  color: var(--dacc-primary);
}

/* Google Rating & Review Count */
.dacc-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1;
}

.dacc-card-rating .dacc-rating-star {
  color: #f59e0b;
  font-size: 1rem;
  line-height: 1;
}

.dacc-card-rating .dacc-rating-val {
  font-weight: 700;
  color: #0f172a;
}

.dacc-card-rating .dacc-rating-count {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-left: 1px;
}

.dacc-card-amenities-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dacc-amenity-tag {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.dacc-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dacc-price-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
}

.dacc-price-from {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.dacc-price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dacc-navy);
  white-space: nowrap;
  line-height: 1.15;
}

.dacc-price-unit {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.dacc-btn-book {
  background: #16a34a;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.dacc-btn-book:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.dacc-btn-details {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dacc-navy);
  text-decoration: none;
  padding: 10px 14px;
}

.dacc-btn-investigate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fdfbf7;
  color: #3b3123 !important;
  border: 1.5px dashed #cfc2ad;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1.2;
}

.dacc-btn-investigate:hover {
  background: #f5efe6;
  border-color: #b89a5b;
  color: #0a2540 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 154, 91, 0.15);
}

.dacc-card-footer.dacc-no-price {
  justify-content: stretch;
}

.dacc-card-footer.dacc-no-price .dacc-actions-col {
  width: 100%;
  align-items: stretch;
}

.dacc-card-footer.dacc-no-price .dacc-btn-investigate {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.925rem;
  justify-content: space-between;
  border-radius: 12px;
}

.dacc-card-footer.dacc-has-investigate {
  gap: 8px;
}

@media (max-width: 480px) {
  .dacc-card-footer.dacc-has-investigate {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dacc-card-footer.dacc-has-investigate .dacc-price-col {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .dacc-card-footer.dacc-has-investigate .dacc-actions-col,
  .dacc-card-footer.dacc-has-investigate .dacc-btn-investigate {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.875rem;
  }
}

.dacc-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.dacc-link-ota {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none !important;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dacc-link-ota.is-visible {
  display: inline-block !important;
}

.dacc-link-ota:hover {
  color: #0284c7;
  text-decoration: underline !important;
}

/* Guarantee position: sticky works across themes by preventing overflow clipping */
html,
body {
  overflow-x: clip !important;
}

.site,
.site-content,
.site-main,
#page,
#primary,
.entry-content,
.dest-page-content,
.dest-container,
.dacc-overview-wrapper {
  overflow: visible !important;
}

/* ==========================================
   LEAFLET MAP & PRICE PINS
   ========================================== */
.dacc-map-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--dest-header-height, 76px) + 20px);
  align-self: start;
  height: calc(100vh - var(--dest-header-height, 76px) - 40px);
  max-height: calc(100vh - 100px);
  min-height: 520px;
  border-radius: var(--dacc-radius-card);
  overflow: hidden;
  box-shadow: var(--dacc-shadow-card);
  border: 1px solid var(--dacc-border);
  background: #e2e8f0;
  z-index: 20;
}

/* Adjust sticky top when WordPress admin bar is present */
body.admin-bar .dacc-map-wrapper {
  top: calc(var(--dest-header-height, 76px) + 52px);
  height: calc(100vh - var(--dest-header-height, 76px) - 72px);
}

@media (max-width: 1024px) {
  .dacc-map-wrapper {
    position: static;
    top: auto;
    height: 420px;
    min-height: 380px;
    max-height: none;
    z-index: 1;
    margin-top: 10px;
  }
}

.dacc-map-container {
  width: 100%;
  height: 100%;
}

/* ==========================================
   MOBILE FLOATING MAP / LIST TOGGLE (Airbnb style)
   ========================================== */
.dacc-mobile-map-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .dacc-mobile-map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a2540;
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    z-index: 990;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .dacc-mobile-map-toggle:hover,
  .dacc-mobile-map-toggle:focus-visible {
    background: #0e355c;
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 10px 28px rgba(10, 37, 64, 0.45);
    outline: none;
  }

  .dacc-mobile-map-toggle:active {
    transform: translateX(-50%) scale(0.96);
  }

  .dacc-mobile-toggle-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-block;
  }

  .dacc-mobile-toggle-text {
    font-size: 0.9375rem;
    line-height: 1;
  }
}

/* Custom Leaflet DivIcon reset */
.dacc-custom-div-icon {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

/* Price Marker Pill Pin */
.dacc-price-pin {
  background: #ffffff;
  color: var(--dacc-navy);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--dacc-radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--dacc-navy);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dacc-price-pin:hover,
.dacc-price-pin.is-highlighted {
  background: var(--dacc-primary);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(184, 154, 91, 0.65), 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999 !important;
}

.dacc-price-pin.is-booked {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.15);
}

/* Sleek Location Pin (Used before dates or when no price is available) */
.dacc-location-pin {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--dacc-navy);
  border: 2px solid var(--dacc-navy);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dacc-location-pin:hover,
.dacc-location-pin.is-highlighted {
  background: var(--dacc-navy);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.45);
  z-index: 9999 !important;
}

/* ==========================================
   LIVE AVAILABILITY & SCRAPER BADGES
   ========================================== */
.dacc-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--dacc-radius-pill);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.dacc-badge-live.dacc-badge-available {
  background: rgba(22, 163, 74, 0.92);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.dacc-badge-live.dacc-badge-booked {
  background: rgba(220, 38, 38, 0.88);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.22);
}

.dacc-badge-live.dacc-badge-loading {
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dacc-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dacc-spin 0.65s linear infinite;
}

@keyframes dacc-spin {
  to { transform: rotate(360deg); }
}

.dacc-live-offer-details {
  margin: 6px 0 10px 0;
}

.dacc-room-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.dacc-price-ota-comparison {
  margin-top: 4px;
}

.dacc-saving-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 9999px;
}

.dacc-card.dacc-card-booked {
  opacity: 0.82;
  background: #fbfcfe;
}

.dacc-card.dacc-card-booked .dacc-card-img {
  filter: grayscale(30%);
}

.dacc-card.dacc-card-booked:hover {
  transform: none;
  box-shadow: var(--dacc-shadow-card);
  border-color: var(--dacc-border);
}

.dacc-no-availability-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.dacc-btn-book.dacc-btn-disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 8px 14px;
}

/* Accessibility: Screen Reader Text */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .dacc-card,
  .dacc-btn-book,
  .dacc-search-submit-btn,
  .dacc-type-pill,
  .dacc-radar-ping,
  .dacc-search-progress-fill {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Trivago-style Search Radar Overlay
   ========================================================================== */
.dacc-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.dacc-search-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.dacc-search-overlay-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: dacc-overlay-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dacc-search-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.dacc-search-overlay-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@keyframes dacc-overlay-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dacc-radar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dacc-radar-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  background: #f8fafc;
  border: 2px solid var(--dacc-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dacc-radar-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dacc-primary);
  opacity: 0.25;
  animation: dacc-radar-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dacc-radar-ping--delay {
  animation-delay: 1s;
}

@keyframes dacc-radar-pulse {
  0% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  75%, 100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.dacc-search-overlay-title {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dacc-search-overlay-status {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  min-height: 24px;
  transition: opacity 0.2s ease;
}

.dacc-search-progress-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.dacc-search-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--dacc-primary), #10b981);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.dacc-search-overlay-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 8px 14px;
  border-radius: 9999px;
}

.dacc-dot-divider {
  color: #86efac;
}


