/* Shared calendar: search/hero date dropdown, calendar-new grid, mobile mcal overlay */
/* ===== Search Box ===== */
.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text);
}

/* Startseite: größere Hero-Suchbox (unten im Slider) */
.search-box.search-box-hero {
  width: 100%;
  max-width: 1020px;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 1.15rem 1.25rem;
  gap: 0.6rem;
}

.search-box.search-box-hero .search-field {
  min-width: 152px;
}

.search-box.search-box-hero .search-field select {
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  min-height: 2.875rem;
}

.search-box.search-box-hero .btn-search {
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
  min-height: 2.875rem;
  align-self: stretch;
}

.search-field {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-field input,
.search-field select {
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 2.5rem;
  box-sizing: border-box;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(129, 165, 158, 0.2);
}

.search-field-date-range {
  position: relative;
  min-width: 230px;
  max-width: 240px;
  flex: 0 1 300px;
}

.search-date-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  min-height: 2.5rem;
  height: 2.5rem;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
}

.search-date-trigger:hover {
  border-color: var(--color-text-muted);
}

.search-date-trigger:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(129, 165, 158, 0.2);
}

.search-date-sep {
  color: var(--color-text-muted);
}

.search-date-backdrop {
  display: none;
}

.search-date-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  z-index: 100;
  min-width: 560px;
}

.search-date-dropdown.is-open {
  display: block;
}

.calendar-dropdown-close {
  display: none;
}

/* Kalender im Dropdown: ausreichend Platz, damit Tageszahlen nicht abgeschnitten werden */
.calendar-new-dropdown {
  max-width: none;
  padding: 1rem;
}

.calendar-new-dropdown .calendar-table {
  width: 100%;
  table-layout: fixed;
}

.calendar-new-dropdown .calendar-table td,
.calendar-new-dropdown .calendar-table th {
  min-width: 2.25rem;
  padding: 0.25rem;
  overflow: visible;
}

.calendar-new-dropdown .calendar-day span {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  font-size: 0.8125rem;
  box-sizing: border-box;
}

.calendar-new-dropdown .calendar-month-head {
  font-size: 0.75rem;
}

.calendar-hint-dropdown {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

/* Hero-Suche: Beschriftung in den Boxen */
.search-box-hero .search-field-inline {
  flex-direction: column;
  gap: 0;
}

.search-box-hero .search-field-wrap-date {
  cursor: pointer;
}

.search-box-hero .search-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-hero .search-field-wrap label {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 500;
  color: #54595F;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.2s;
}

.search-box-hero .search-field-wrap input,
.search-box-hero .search-field-wrap select {
  width: 100%;
}

.search-box-hero .search-field-wrap input[type="date"] {
  padding-left: 5.5rem;
}

.search-box-hero .search-field-wrap input[type="date"] {
  position: relative;
  z-index: 1;
  color: var(--color-text);
  caret-color: var(--color-text);
  cursor: pointer;
  background-color: var(--color-surface);
}

/* Leer: Nur Label "Anreise"/"Abreise" sichtbar – natives Datum-Placeholder ausblenden */
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-webkit-datetime-edit,
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-webkit-datetime-edit-text,
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-webkit-datetime-edit-month-field,
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-webkit-datetime-edit-day-field,
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-webkit-datetime-edit-year-field {
  opacity: 0;
}
.search-box-hero .search-field-wrap input[type="date"]:not(.has-value)::-moz-datetime-edit {
  opacity: 0;
}
.search-box-hero .search-field-wrap input[type="date"].has-value::-webkit-datetime-edit {
  color: var(--color-text);
}

.search-box-hero .search-field-wrap input[type="date"].has-value {
  padding-left: 0.75rem;
}

.search-box-hero .search-field-wrap input[type="date"].has-value ~ label {
  display: none;
}

/* Select: Bis zur Auswahl nur Beschriftung (erste Option = Label) */
.search-box-hero .search-field-wrap select {
  padding-left: 0.9rem;
}

.search-box-hero .search-field-wrap select.has-value {
  color: var(--color-text);
}

.search-box-hero .search-field-wrap select:not(.has-value) {
  color: var(--color-text-muted);
}

/* Hero: Anreise/Abreise mit Kalender-Dropdown (wie Suchseite) */
.hero-date-range-wrap .search-field-wrap {
  min-height: 2.875rem;
}

/* Label ausblenden, damit nur der Trigger-Text sichtbar ist (kein Überlappen) */
.hero-date-range-wrap .search-field-wrap label {
  display: none;
}

.search-box.search-box-hero .hero-date-range-wrap {
  min-width: 300px;
  flex: 0 0 300px;
}

.hero-date-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
}

.hero-date-trigger:hover {
  border-color: var(--color-text-muted);
}

.hero-date-sep {
  color: var(--color-text-muted);
}

.hero-date-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  z-index: 9999;
  min-width: 560px;
}

.hero-date-dropdown.is-open {
  display: block;
}


@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
  }
  .search-field {
    min-width: 100%;
  }
  .search-box.search-box-hero .hero-date-range-wrap {
    min-width: 100%;
    flex: 0 0 auto;
  }
  .hero-date-dropdown.is-open {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    margin-top: 0;
    min-width: 0;
    max-height: 85vh;
    overflow: auto;
    z-index: 9999;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    -webkit-overflow-scrolling: touch;
    background: var(--color-surface);
  }
}


/* ===== Kalender (Verfügbarkeit) – Neu ===== */
.detail-calendar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.detail-calendar .detail-amenities-title {
  margin-bottom: 0.5rem;
}

.calendar-hint {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

/* Neuer Kalender-Container */
.calendar-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 560px;
}

/* Detailseite: Platz für 3 Monate nebeneinander */
.detail-calendar .calendar-new {
  max-width: 900px;
}

.calendar-new-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.calendar-new-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.calendar-new-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.calendar-new-title {
  font-weight: 100;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-display);
}

.calendar-new-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.detail-calendar .calendar-new-grid {
  grid-template-columns: repeat(3, 1fr);
}

.calendar-new-grid .calendar-month {
  min-width: 0;
}

.calendar-new .calendar-month-head {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.calendar-new-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.calendar-new-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-new-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.calendar-new-dot-today {
  background: transparent;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.calendar-new-dot-blocked {
  background: #fecaca;
  border: 1px solid #ef4444;
}

.calendar-new-dot-selected {
  background: var(--color-accent);
}

/* Ähnliche Ferienhäuser */
.similar-properties {
  margin-top: 2rem;
}
.similar-properties-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.similar-properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.similar-property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
}
.similar-property-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.similar-property-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f3f4f6;
}
.similar-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.similar-property-body {
  padding: 0.75rem;
}
.similar-property-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.similar-property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
@media (max-width: 900px) {
  .similar-properties-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .similar-property-title {
    font-size: 1rem;
  }
  .similar-property-meta {
    font-size: 0.75rem;
    gap: 0.35rem;
  }
  .similar-property-body {
    padding: 0.5rem 0.6rem;
  }
}
@media (max-width: 480px) {
  .similar-properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Kalender-Tabellen im neuen Design */
.calendar-new .calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: fixed;
}

.calendar-new .calendar-table th {
  text-align: center;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.4rem 0 0.5rem;
}

.calendar-new .calendar-table td {
  text-align: center;
  padding: 0.2rem;
  vertical-align: middle;
}

.calendar-new .calendar-day {
  cursor: pointer;
}

.calendar-new .calendar-day span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}

/* Verfuegbare Tage gruen */
.calendar-new .calendar-day:not(.calendar-past):not(.calendar-blocked):not(.calendar-turnover):not(.calendar-checkin):not(.calendar-checkout):not(.calendar-inrange) span {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.calendar-new .calendar-day:hover:not(.calendar-past):not(.calendar-blocked) span {
  background: var(--color-bg);
}

.calendar-new .calendar-day:active:not(.calendar-past):not(.calendar-blocked) span {
  transform: scale(0.95);
}

.calendar-new .calendar-today:not(.calendar-checkin):not(.calendar-checkout) span {
  box-shadow: 0 0 0 2px var(--color-accent);
  font-weight: 600;
  color: var(--color-accent);
}

.calendar-new .calendar-past span {
  color: rgba(84, 89, 95, 0.4);
}

.calendar-new .calendar-past {
  cursor: default;
}

.calendar-new .calendar-blocked span {
  color: #b91c1c;
  background: #fee2e2 !important;
  opacity: 1;
}

.calendar-new .calendar-blocked {
  cursor: not-allowed;
}

/* Turn-Over Tage (Wechseltage) */
.calendar-new .calendar-turnover span {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
  color: #e65100;
}

.calendar-new .calendar-turnover .calendar-day-price {
  color: #e65100;
}

.calendar-new .calendar-day-turnover-hint {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: bold;
  color: #e65100;
}

.calendar-new-dot-turnover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}

.calendar-new-dot-available {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}

.calendar-new .calendar-inrange span {
  background: rgba(129, 165, 158, 0.12) !important;
  color: var(--color-accent);
  border-radius: 0;
}

.calendar-new .calendar-checkin span,
.calendar-new .calendar-checkout span {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 600;
}

.calendar-new .calendar-checkin span {
  border-radius: 50% 0 0 50%;
}

.calendar-new .calendar-checkout span {
  border-radius: 0 50% 50% 0;
}

.calendar-new .calendar-empty {
  border: none;
  background: transparent;
  cursor: default;
}

.calendar-new .calendar-empty span {
  display: none;
}

@media (max-width: 900px) {
  .detail-calendar .calendar-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .calendar-new-grid,
  .detail-calendar .calendar-new-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .calendar-new {
    padding: 1rem 0.75rem;
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .calendar-new .calendar-day span {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9375rem;
  }
  .calendar-new .calendar-table td {
    padding: 0.15rem;
  }
  .calendar-new .calendar-table th {
    font-size: 0.7rem;
    padding: 0.3rem 0 0.4rem;
  }
  .calendar-new-nav {
    margin-bottom: 1rem;
  }
  .calendar-new-btn {
    width: 44px;
    height: 44px;
  }
  .calendar-new-legend {
    gap: 0.75rem 1rem;
    font-size: 0.75rem;
  }
}


/* ===== VRBO-Style Mobile Fullscreen Calendar ===== */
.mcal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mcal-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mcal-header {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
}

.mcal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  margin: -0.25rem 0 0.25rem -0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.mcal-dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mcal-date-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s;
}
.mcal-date-tab-active {
  border-color: var(--color-accent, #81a59e);
}

.mcal-date-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.mcal-date-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1px;
}
.mcal-date-tab:not(.mcal-date-tab-active) .mcal-date-value {
  color: var(--color-text-muted);
}
.mcal-date-value.has-date {
  color: var(--color-text);
}

.mcal-date-arrow {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.mcal-weekdays {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.625rem 0.75rem 0.375rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
  position: sticky;
  top: 0;
  z-index: 1;
}

.mcal-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0.75rem 1rem;
}

.mcal-month {
  padding-top: 1.25rem;
}

.mcal-month-title {
  font-size: 1rem;
  font-weight: 100;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.mcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.mcal-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}
.mcal-cell:active:not(.mcal-past):not(.mcal-blocked) {
  transform: scale(0.92);
}

.mcal-empty {
  cursor: default;
}

.mcal-cell.mcal-available {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.mcal-cell.mcal-turnover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.mcal-cell.mcal-blocked {
  color: #b91c1c;
  background: #fee2e2;
  opacity: 1;
  cursor: not-allowed;
}

.mcal-cell.mcal-past {
  color: rgba(84, 89, 95, 0.35);
  cursor: default;
}

.mcal-cell.mcal-today:not(.mcal-selected-start):not(.mcal-selected-end) {
  box-shadow: inset 0 0 0 2px var(--color-accent, #81a59e);
  font-weight: 100;
}

.mcal-cell.mcal-selected-start,
.mcal-cell.mcal-selected-end {
  background: var(--color-accent, #81a59e) !important;
  color: #fff !important;
  font-weight: 100;
  z-index: 1;
}
.mcal-cell.mcal-selected-start {
  border-radius: 50% 0 0 50%;
}
.mcal-cell.mcal-selected-end {
  border-radius: 0 50% 50% 0;
}
.mcal-cell.mcal-selected-start.mcal-selected-end {
  border-radius: 50%;
}

.mcal-cell.mcal-inrange {
  background: rgba(129, 165, 158, 0.1) !important;
  color: var(--color-accent, #81a59e);
  border-radius: 0;
}

.mcal-footer {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mcal-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  flex: 1;
  flex-wrap: wrap;
}

.mcal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.mcal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mcal-dot-available {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}
.mcal-dot-turnover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}
.mcal-dot-blocked {
  background: #fecaca;
  border: 1px solid #ef4444;
}

.mcal-apply {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 901px) {
  .mcal-overlay {
    display: none !important;
  }
}

/* Booking widget – CI Salbei (#81a59e) */
.booking-widget {
  --bw-text: #fff;
  --bw-text-muted: rgba(255, 255, 255, 0.88);
  --bw-border: rgba(255, 255, 255, 0.35);
  --bw-input-bg: #fff;
  position: sticky;
  top: 91px;
  height: fit-content;
  background: var(--color-accent);
  color: var(--bw-text);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(84, 89, 95, 0.22);
  border: 1px solid var(--color-accent-hover);
}

.booking-widget-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.booking-widget .price {
  font-size: 1.5rem;
  font-weight: 100;
  margin-bottom: 0;
  color: var(--bw-text);
}

.booking-widget .price-note {
  font-size: 0.875rem;
  color: var(--bw-text-muted);
  margin-bottom: 0;
}

.booking-widget .booking-min-stay-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--bw-text-muted);
}

.booking-widget #summary-discount-row {
  color: #fff !important;
}

.booking-widget .booking-field {
  margin-bottom: 1rem;
}

.booking-widget .booking-field-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.booking-widget .booking-field-wrap input,
.booking-widget .booking-field-wrap select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(84, 89, 95, 0.15);
  font-size: 0.9375rem;
  background: var(--bw-input-bg);
  color: var(--color-text);
}

.booking-widget .booking-field-wrap input {
  border-radius: 8px;
}

.booking-widget .booking-field-wrap select,
.booking-widget #book-guests {
  border-radius: 0;
}

/* Datum: Label oben, Eingabefeld sichtbar – Kalender öffnet zuverlässig */
.booking-widget .booking-field-wrap label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bw-text-muted);
  margin-bottom: 4px;
}

.booking-widget .booking-date-wrap {
  position: relative;
  cursor: pointer;
}

.booking-widget .booking-date-wrap.is-invalid .booking-date-input-area,
.booking-widget .booking-date-wrap.is-invalid .booking-date-display {
  outline: 2px solid #b94a48;
  outline-offset: 0;
  border-radius: 8px;
}
.booking-widget .booking-date-wrap.is-invalid .booking-date-display {
  border-color: #b94a48;
}

.booking-widget .booking-date-input-area {
  position: relative;
  min-height: 2.5rem;
}

.booking-widget .booking-date-wrap .booking-date-display {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 2.5rem 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2354595F' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.booking-widget .booking-date-wrap input[type="date"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: transparent;
  z-index: 1;
}

.booking-widget .booking-date-wrap .booking-date-display {
  z-index: 2;
}

.booking-widget .booking-date-wrap input[type="date"]::-webkit-datetime-edit,
.booking-widget .booking-date-wrap input[type="date"]::-webkit-datetime-edit-text,
.booking-widget .booking-date-wrap input[type="date"]::-webkit-datetime-edit-month-field,
.booking-widget .booking-date-wrap input[type="date"]::-webkit-datetime-edit-day-field,
.booking-widget .booking-date-wrap input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 0;
}

.booking-widget .booking-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.booking-widget .booking-date-wrap input[type="date"]::-moz-datetime-edit {
  opacity: 0;
}

.booking-widget .booking-field-wrap input[type="date"] {
  width: 100%;
  cursor: pointer;
}

/* Flatpickr Input Styling */
.booking-widget .booking-date-wrap input[type="text"] {
  position: relative;
  width: 100%;
  padding: 0.75rem;
  padding-right: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: #fff;
  cursor: pointer;
}

.booking-widget .booking-date-wrap input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(129, 165, 158, 0.1);
}

.booking-widget .booking-date-wrap input[type="text"]::placeholder {
  color: var(--color-text-muted);
}

/* Flatpickr Alt-Input (das sichtbare Input) */
.booking-widget .booking-date-wrap input.flatpickr-alt-input,
.booking-widget .booking-date-wrap input.flatpickr-input[readonly] {
  background: #fff !important;
  cursor: pointer !important;
}

/* Kalender-Icon fuer Datums-Felder */
.booking-widget .booking-date-input-area {
  position: relative;
}

.booking-widget .booking-date-input-area::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2354595F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.6;
}

.booking-widget .booking-field-wrap select {
  padding-left: 0.75rem;
}

.booking-widget .booking-field-wrap select.has-value {
  color: var(--color-text);
}

.booking-widget .booking-field-wrap select:not(.has-value) {
  color: var(--color-text-muted);
}

.booking-widget .btn-primary,
.booking-widget .btn-primary.booking-widget-bar-btn,
.booking-widget .btn-primary.booking-widget-flyout-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.booking-widget .btn-primary:hover,
.booking-widget .btn-primary.booking-widget-bar-btn:hover,
.booking-widget .btn-primary.booking-widget-flyout-submit:hover {
  background: #5e4f3d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.booking-widget .btn-primary:not(.booking-widget-bar-btn) {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.booking-widget .btn-ghost,
.booking-widget .booking-widget-contact-btn {
  color: var(--bw-text);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
}

.booking-widget .btn-ghost:hover,
.booking-widget .booking-widget-contact-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--bw-text);
}

.booking-widget .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--bw-border);
  color: var(--bw-text);
}

.booking-widget .summary-row.total {
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}

/* Buchungsstatus als Badge */
.booking-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.booking-status-badge--in_progress {
  background: rgba(119, 99, 77, 0.15);
  color: var(--color-primary);
}
.booking-status-badge--confirmed {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.booking-status-badge--cancelled {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.35);
}

.booking-badge-paid {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.booking-badge-outstanding {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(234, 88, 12, 0.15);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.4);
}

/* Mietvertrag-Badge: Ausstehend = rot, Unterzeichnet = grün */
.rental-contract-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.rental-contract-badge--pending {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.35);
}
.rental-contract-badge--signed {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.4);
}


