/* ===== Variables – nur #E50E4A, #1F6BA3, #54595F ===== */
:root {
  --color-pink: #E50E4A;
  --color-blue: #1F6BA3;
  --color-gray: #54595F;
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #54595F;
  --color-text-muted: #54595F;
  --color-accent: #E50E4A;
  --color-accent-hover: #c90c3f;
  --color-primary: #1F6BA3;
  --color-primary-light: #1F6BA3;
  --color-border: rgba(84, 89, 95, 0.2);
  --color-success: #1F6BA3;
  --font-sans: "Roboto", sans-serif;
  --font-display: "Roboto", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 12px rgba(84, 89, 95, 0.1);
  --shadow-hover: 0 8px 24px rgba(84, 89, 95, 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo.logo-img {
  display: block;
  line-height: 0;
}

.logo-image {
  display: block;
  height: 48px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 600px) {
  .logo-image {
    height: 40px;
    max-width: 200px;
  }
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

/* Hauptmenü mit modernem Untermenü */
.nav-main-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main-item {
  position: relative;
}

.nav-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: normal;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
  white-space: nowrap;
}

/* Spezifischer, damit font-weight: normal .nav a (500) überschreibt */
.nav-main-list .nav-main-link {
  font-weight: normal;
}

.nav-main-link:hover {
  color: var(--color-text);
  font-weight: normal;
}

.nav-main-chevron {
  display: none; /* Pfeil neben Ferienhäuser/Orte etc. ausgeblendet */
  font-size: 0.65em;
  opacity: 0.85;
  transition: transform 0.2s;
}

.nav-main-item--dropdown.is-open .nav-main-chevron {
  transform: rotate(180deg);
}

/* Untermenü-Panel (Desktop: Dropdown wie Referenz – Hover öffnet). Hintergrundfarbe = Hauptmenü-Link bei Hover. */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-4px);
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  max-width: 320px;
  background-color: #E50E4A;
  border: none;
  border-radius: 0 8px 8px 8px; /* links oben eckig, Rest abgerundet */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 1002;
  max-height: 70vh;
  overflow-y: auto;
  pointer-events: none;
}

.nav-main-item--dropdown.is-open .nav-submenu,
.nav-main-item--dropdown.is-hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin-top: -1px; /* Überlappung, damit kein weißer Strich zwischen Link und Submenü */
  pointer-events: auto;
}

.nav-main-item--dropdown.is-open .nav-main-chevron,
.nav-main-item--dropdown.is-hover .nav-main-chevron {
  transform: rotate(180deg);
}

/* Hauptmenü-Link bei Hover/Offen: exakt dieselbe Hintergrundfarbe wie .nav-submenu */
.nav-main-item--dropdown.is-hover .nav-main-link,
.nav-main-item--dropdown.is-open .nav-main-link {
  background-color: #E50E4A;
  color: #fff;
  font-weight: normal;
  border-radius: 8px 8px 0 0;
  padding-bottom: 0.5rem; /* überlappt mit Submenü-Anschluss, kein weißer Strich */
}

@media (min-width: 769px) {
  .nav-main-item--dropdown.is-hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.nav-submenu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #fff;
  font-weight: normal;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
  margin: 0;
  border-radius: 0;
}

.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Profil-Dropdown im Header */
.header-profil-dropdown {
  position: relative;
}
.header-profil-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.header-profil-chevron {
  font-size: 0.7em;
  opacity: 0.8;
  transition: transform 0.2s;
}
.header-profil-dropdown.is-open .header-profil-chevron {
  transform: rotate(180deg);
}
.header-profil-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0;
  min-width: 180px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1002;
}
.header-profil-dropdown:hover .header-profil-submenu,
.header-profil-dropdown.is-open .header-profil-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-profil-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-profil-submenu a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Desktop: Hauptmenü in der Mitte */
@media (min-width: 769px) {
  .header-inner {
    position: relative;
  }
  .header-nav-wrap {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }
  .header-nav-wrap .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .nav-main-link {
    font-size: 15px;
    padding: 0.3rem 0.35rem;
  }
  .nav-main-list {
    gap: 0 0.35rem;
  }
}

@media (min-width: 769px) and (max-width: 950px) {
  .nav-main-link {
    font-size: 13px;
    padding: 0.25rem 0.25rem;
  }
  .nav-main-list {
    gap: 0 0.2rem;
  }
}

/* Burger-Button (nur Mobile) */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.header-burger:hover {
  background: var(--color-bg);
}
.header-burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.header-inner.menu-open .header-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-inner.menu-open .header-burger-bar:nth-child(2) {
  opacity: 0;
}
.header-inner.menu-open .header-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
  .header-inner {
    position: relative;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
  }
  .header-burger {
    display: flex;
    order: 2;
    margin-left: auto;
    z-index: 1002;
    position: relative;
  }
  .header-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    display: none;
    overflow: auto;
  }
  .header-inner.menu-open .header-nav-wrap {
    display: flex;
  }
  .header-nav-wrap .nav,
  .header-nav-wrap .nav-main-list {
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
  }
  .header-nav-wrap .nav a,
  .header-nav-wrap .nav-main-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: none;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .header-nav-wrap .nav-main-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-nav-wrap .nav-main-item--dropdown .nav-main-link {
    justify-content: center;
  }
  .header-nav-wrap .nav-submenu {
    position: static;
    transform: none;
    margin: 0.5rem 0 0;
    padding: 0.35rem 0 0.75rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    max-height: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background-color: #E50E4A;
    opacity: 1;
    visibility: visible;
    display: none;
    pointer-events: auto;
  }
  .header-nav-wrap .nav-main-item--dropdown.is-open .nav-submenu {
    display: block;
  }
  .header-nav-wrap .nav-submenu a {
    padding: 0.65rem 1.5rem;
    font-size: 1.05rem;
    font-weight: normal;
    margin: 0;
    text-align: center;
    color: #fff;
  }
  .header-nav-wrap .nav-submenu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: normal;
  }
  .header-nav-wrap .header-actions {
    flex-direction: column;
    padding-top: 1rem;
    align-items: center;
  }
  .header-nav-wrap .header-actions .btn {
    justify-content: center;
    min-width: 200px;
  }
  .header-profil-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-profil-trigger {
    min-width: 200px;
  }
  .header-profil-submenu {
    position: static;
    margin-top: 0.5rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: 200px;
    text-align: center;
  }
  .header-profil-dropdown:hover .header-profil-submenu,
  .header-profil-dropdown.is-open .header-profil-submenu {
    display: block;
  }
  .header-profil-dropdown:not(.is-open) .header-profil-submenu {
    display: none;
  }
  .header-profil-submenu a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-bg);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow);
}

.btn-search {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: visible;
}

/* Hero-Slideshow Hintergrund */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

@keyframes hero-slide-zoom-out {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  transform-origin: center center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  animation: hero-slide-zoom-out 4.5s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 107, 163, 0.65) 0%, rgba(31, 107, 163, 0.5) 50%, rgba(84, 89, 95, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(84, 89, 95, 0.4);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== 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);
}

.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: 8px;
  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(229, 14, 74, 0.2);
}

.search-field-date-range {
  position: relative;
  min-width: 200px;
  max-width: 200px;
  flex: 0 0 200px;
}

.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: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  min-height: 2.5rem;
  height: 2.5rem;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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(229, 14, 74, 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.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  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.75rem;
}

.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.75rem;
}

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

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

.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%;
  }
  .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);
  }
}

/* ===== Sections ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
}

.link-more {
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}

.link-more:hover {
  color: var(--color-accent-hover);
}

/* ===== Destinations ===== */
.section-intro {
  margin: -0.5rem 0 1.5rem;
  color: var(--color-text-muted);
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.destinations-empty {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  margin: 0;
}

.destinations-empty a {
  color: var(--color-accent);
  text-decoration: underline;
}

.destination-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.destination-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius) var(--radius) 0 0;
}

.destination-card span {
  display: block;
  padding: 0 1rem;
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.destination-card span:first-of-type {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}

.destination-card .destination-count {
  padding-bottom: 1rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Listings / Property Cards ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.listing-card a {
  display: block;
}

.listing-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-border);
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-surface);
  border-radius: 6px;
  color: var(--color-text);
}

.listing-heart {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.listing-heart:hover {
  transform: scale(1.1);
}

.listing-heart-form {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 10;
}

.listing-heart-active {
  background: #E50E4A;
}

.listing-heart-link {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: 50%;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.listing-heart-link:hover {
  transform: scale(1.1);
}

/* Herz-Button inline (z. B. auf der Ferienhaus-Detailseite) */
.listing-heart-inline,
.favorite-form .listing-heart {
  position: static;
  vertical-align: middle;
}

.listing-body {
  padding: 1rem;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.listing-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.listing-rating::before {
  content: "★";
  color: #E50E4A;
}

.listing-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-details {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.listing-details-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.listing-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.listing-detail-icon {
  flex-shrink: 0;
  color: var(--color-primary, #1f6ba3);
  opacity: 0.85;
  font-size: 1rem;
  width: 1em;
  text-align: center;
}

.listing-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.listing-price span {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.listing-price .listing-price-label {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.listing-price-block {
  display: block;
}

.listing-price-includes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.listing-price-includes-icon {
  flex-shrink: 0;
  color: #0d7d3d;
}

/* ===== CTA Section ===== */
.cta {
  background: #1F6BA3;
  border-radius: var(--radius-lg);
  margin: 2rem 1.5rem 3rem;
  max-width: calc(1280px - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.cta-content {
  text-align: center;
  padding: 3rem 2rem;
}

.cta h2 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.75rem;
}

.cta p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.cta .btn-primary {
  background: white;
  color: var(--color-success);
}

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-success);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo-image {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Search Page ===== */
.page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Suchseite: Ganze Seite fixed, nur Liste scrollt ===== */
body.search-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

body.search-page .header {
  flex-shrink: 0;
}

.search-page .footer {
  display: none;
}

.search-page-fixed {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.search-page-fixed .search-filters-unified {
  flex-shrink: 0;
}

.search-page-fixed .search-layout {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

/* ===== Suchseite: Breadcrumb für Ort ===== */
.search-place-breadcrumb {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-place-breadcrumb a {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.search-place-breadcrumb a:hover {
  text-decoration: underline;
}

.search-place-current {
  font-weight: 600;
  font-size: 1rem;
}

.search-filters-unified {
  font-family: Roboto, sans-serif;
  font-weight: normal;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 1rem 0.75rem;
}

.search-filters-form {
  width: 100%;
}

.search-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.search-filters-row .search-field {
  flex: 0 1 auto;
  min-width: 100px;
}

.search-filters-row .search-field-date-range {
  min-width: 200px;
  max-width: 200px;
  flex: 0 0 200px;
}

.search-filters-row .search-field-orientation {
  min-width: 0;
  max-width: 130px;
  flex: 0 1 130px;
}

/* Sortieren-Dropdown in derselben Zeile wie Suchen-Button */
.search-filters-row .search-field-sort {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 95px;
  padding-bottom: 5px;
}

.search-filters-row .search-sort-select {
  padding: 0.35rem 0.5rem 0.35rem 0.65rem;
  font-size: 0.8rem;
  min-height: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 999px;
  background: var(--color-surface, #fff);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.search-filters-row .search-sort-select:hover {
  border-color: var(--color-text-muted, #999);
}

.search-filters-row .search-sort-select:focus {
  outline: none;
  border-color: var(--color-primary, #1F6BA3);
  box-shadow: 0 0 0 2px rgba(31, 107, 163, 0.15);
}

@media (max-width: 900px) {
  .search-filters-slide-body .search-filters-row .search-field-sort {
    flex: 0 0 auto;
    width: auto;
  }
}

.search-filters-row .search-field label {
  font-size: 0.75rem;
}

.search-filters-row .search-field input,
.search-filters-row .search-field select {
  font-size: 0.875rem;
  min-width: 0;
}

.search-filters-row .btn-search {
  flex-shrink: 0;
  margin-left: 0.25rem;
}

/* Gemeinsamer Container für Kalender-Dropdown (eine Instanz für Desktop + Mobile) */
.search-filters-date-shared {
  position: relative;
  height: 0;
  overflow: visible;
}

/* Mobile: Filter als Slide-Panel; Datumszeile nur mobil */
.search-filters-date-row {
  display: none;
}
.search-filters-mobile-bar {
  display: none;
}
.search-filters-slide-backdrop {
  display: none;
}
.search-filters-slide-header,
.search-filters-slide-footer {
  display: none;
}
.search-filters-slide-wrapper {
  display: block;
}
.search-filters-slide-panel {
  display: block;
}

/* Annehmlichkeits-Filter: Button + Popup */
.search-field-amenity-btn {
  flex: 0 0 auto;
}

.btn-amenity-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  font-size: 0.875rem;
  min-height: 2.5rem;
  height: 2.5rem;
  box-sizing: border-box;
}

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

.amenity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent);
  color: white;
  border-radius: 10px;
}

/* Annehmlichkeiten-Popup */
.amenity-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1003;
  background: rgba(84, 89, 95, 0.4);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.amenity-popup-overlay.amenity-popup-open {
  display: flex;
}

.amenity-popup {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(84, 89, 95, 0.25);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.amenity-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.amenity-popup-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.amenity-popup-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.amenity-popup-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.amenity-popup-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.amenity-popup-group {
  margin-bottom: 1rem;
}

.amenity-popup-group:last-child {
  margin-bottom: 0;
}

.amenity-popup-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.amenity-popup-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.amenity-popup-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.amenity-popup-item input {
  margin: 0;
  cursor: pointer;
}

.amenity-popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .search-filters-row {
    gap: 0.6rem;
  }
  .search-filters-row .search-field {
    min-width: 90px;
  }
}

/* ===== Suchseite: Split (Liste scrollbar, Karte fixed) ===== */
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 45%);
  grid-template-rows: minmax(400px, 1fr);
  gap: 0;
  margin: 0;
  max-width: none;
  min-height: 0;
}

.results-area {
  padding: 1rem 1rem 1rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--color-border);
  min-height: 0;
  min-width: 0;
  max-height: calc(100vh - 180px);
  -webkit-overflow-scrolling: touch;
}

.search-results-count {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted, #555);
}

.search-results-page-info {
  font-weight: 500;
}

/* Pagination – modern, klar */
.search-pagination {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.search-pagination-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.search-pagination-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.search-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.search-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.search-pagination-btn:hover {
  background: rgba(31, 107, 163, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(31, 107, 163, 0.15);
}

.search-pagination-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.search-pagination-btn-disabled {
  opacity: 0.45;
  cursor: default;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.search-pagination-btn-icon {
  font-size: 1.1em;
  line-height: 1;
}

.search-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.search-pagination-page:hover {
  background: rgba(31, 107, 163, 0.1);
  color: var(--color-primary);
  border-color: rgba(31, 107, 163, 0.25);
  transform: translateY(-1px);
}

.search-pagination-page:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.search-pagination-page-current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  cursor: default;
  box-shadow: 0 2px 8px rgba(31, 107, 163, 0.35);
}

.search-pagination-page-current:hover {
  background: var(--color-primary);
  color: #fff;
  transform: none;
}

@media (max-width: 600px) {
  .search-pagination-inner {
    padding: 1rem 0.75rem;
  }
  .search-pagination-btn-text {
    display: none;
  }
  .search-pagination-page {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
  }
}

.listings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.listing-card-row {
  display: flex;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.listing-card-empty .listing-card-link {
  cursor: default;
}

.listing-card-empty .listing-image-empty {
  background: linear-gradient(135deg, #f6f7f9, #eef1f4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-empty-illustration {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-empty-icon {
  font-size: 2rem;
}

.listing-body-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.listing-empty-text {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  max-width: 460px;
}

.listing-empty-actions {
  margin-top: 0.9rem;
}

.listing-card-row .listing-card-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.listing-card-row .listing-image {
  flex: 0 0 280px;
  width: 280px;
  height: 210px;
  min-height: 0;
  aspect-ratio: auto;
}

.listing-card-row .listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.listing-card-row .listing-body {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.listing-details-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.listing-details-price-row .listing-details-icons {
  margin-bottom: 0;
}

.listing-details-price-row .listing-price-block {
  flex-shrink: 0;
  text-align: right;
}

.listing-card-row .listing-price-block {
  text-align: right;
}

.listing-card-row .listing-price {
  text-align: right;
}

.listing-card-row .listing-price-includes {
  justify-content: flex-end;
}

.search-map-panel {
  position: relative;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

.search-map {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 300px;
  background: var(--color-bg);
  position: relative; /* Wichtig fuer Leaflet */
}

.search-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.search-map-empty-inner {
  max-width: 320px;
}

.search-map-empty-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.search-map-empty-text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.search-map-panel .search-map-hint {
  margin: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Preis-Marker auf der Karte (Leaflet DivIcon) */
.leaflet-price-marker-wrap {
  background: none !important;
  border: none !important;
}

/* Hover in Liste: zugehöriger Pin liegt über allen anderen */
.leaflet-marker-in-front {
  z-index: 9999 !important;
}

.leaflet-price-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #1F6BA3;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(84, 89, 95, 0.25);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #fff;
}

/* Kleine Spitze unten */
.leaflet-price-marker::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #1F6BA3;
}

.leaflet-price-marker:hover {
  background: var(--color-accent);
  color: #ffffff !important;
  z-index: 1000;
}

.leaflet-price-marker:hover::after {
  border-top-color: var(--color-accent);
}

/* Hover von Suchergebnis-Liste: Pin auf der Karte pink hervorheben */
.leaflet-price-marker.leaflet-price-marker-highlight {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  z-index: 1000;
}
.leaflet-price-marker.leaflet-price-marker-highlight::after {
  border-top-color: var(--color-accent);
}

@media (max-width: 900px) {
  .search-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .results-area {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .search-map-panel {
    position: relative;
    height: 400px;
    min-height: 400px;
  }
  .listing-card-row .listing-image {
    flex: 0 0 160px;
    width: 160px;
    height: 120px;
    min-height: 0;
  }
}

/* Mobile: Suchergebnis-Liste optimiert (vertikale Karten, kompakter) */
@media (max-width: 600px) {
  .search-page-fixed {
    flex: 1;
    min-height: 0;
  }
  .search-filters-unified {
    padding: 0.35rem 0.75rem 0.5rem;
  }
  /* Datumszeile nur auf Mobil: oberhalb der Filter-Bar, nicht im Slide */
  .search-filters-date-row {
    display: block;
    padding: 0.5rem 0 0.25rem;
    border-bottom: 1px solid var(--color-border);
  }
  .search-filters-date-row .search-field-date-mobile {
    width: 100%;
    max-width: 100%;
  }
  .search-filters-date-row .search-date-trigger {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    text-align: left;
  }
  .search-filters-slide-body .search-field-date-desktop {
    display: none;
  }
  /* Backdrop für Kalender-Dropdown auf Mobile */
  .search-date-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
  }
  /* Kalender-Dropdown auf Mobil fixiert, damit es sichtbar ist (liegt außerhalb Slide) */
  .search-filters-date-shared .search-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: 1002;
    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;
  }
  /* Schließen-Button auf Mobile sichtbar */
  .calendar-dropdown-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }
  .calendar-dropdown-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
  }
  /* Touch-optimierte Tageszellen im Dropdown */
  .calendar-new-dropdown .calendar-table td,
  .calendar-new-dropdown .calendar-table th {
    min-width: 0;
    padding: 0.15rem;
  }
  .calendar-new-dropdown .calendar-day span {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    font-size: 0.875rem;
  }
  .calendar-new-dropdown {
    padding: 1rem 0.75rem;
  }
  .calendar-new-dropdown .calendar-new-nav {
    margin-bottom: 1rem;
  }
  /* Mobile: Filter-Bar sichtbar, Desktop-Zeile versteckt in Slide */
  .search-filters-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }
  .search-filters-mobile-bar .btn-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .search-filters-mobile-bar .btn-filter-open:hover {
    border-color: var(--color-accent);
    background: var(--color-surface);
  }
  .search-filters-mobile-bar .btn-filter-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
  }
  .search-filters-mobile-bar .btn-search-mobile {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
  /* Slide-Panel: von rechts einschieben */
  .search-filters-slide-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .search-filters-slide-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .search-filters-slide-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 92vw);
    max-width: 360px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
  }
  .search-filters-slide-wrapper.is-open {
    transform: translateX(0);
  }
  .search-filters-slide-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .search-filters-slide-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }
  .search-filters-slide-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
  }
  .search-filters-slide-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
  }
  .search-filters-slide-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
  }
  .search-filters-slide-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .search-filters-slide-body .search-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-filters-slide-body .search-filters-row .search-field,
  .search-filters-slide-body .search-filters-row .search-field-date-range {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }
  .search-filters-slide-body .search-filters-row .search-filters-row-reset,
  .search-filters-slide-body .search-filters-row .btn-search {
    display: none;
  }
  .search-filters-slide-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
  }
  .search-filters-row {
    gap: 0.5rem 0.6rem;
  }
  .search-filters-row .search-field {
    min-width: 0;
  }
  .search-filters-row .search-field-date-range {
    min-width: 0;
    flex: 1 1 100%;
  }
  .results-area {
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .listings-list {
    gap: 0.75rem;
  }
  /* Karte vertikal: Bild oben volle Breite, Text darunter */
  .listing-card-row .listing-card-link {
    flex-direction: column;
    align-items: stretch;
  }
  .listing-card-row .listing-image {
    flex: none;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 */
    min-height: 0;
    position: relative;
  }
  .listing-card-row .listing-image .listing-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .listing-card-row .listing-image .listing-carousel-inner,
  .listing-card-row .listing-image .listing-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .listing-card-row .listing-image .listing-carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .listing-card-row .listing-image .listing-heart-form,
  .listing-card-row .listing-image .listing-heart-link {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
  }
  .listing-card-row .listing-body {
    padding: 0.75rem 1rem;
    flex: none;
  }
  .listing-card-row .listing-title {
    font-size: 15px;
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 2;
  }
  .listing-card-row .listing-meta {
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
  }
  /* Icons und Preis auf Mobil: untereinander wenn nötig, mehr Abstand */
  .listing-card-row .listing-details-price-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.35rem;
  }
  .listing-card-row .listing-details-price-row .listing-details-icons {
    flex: 1 1 auto;
    min-width: 0;
  }
  .listing-card-row .listing-details-price-row .listing-price-block {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--color-border);
  }
  .listing-card-row .listing-price {
    font-size: 1rem;
    text-align: left;
  }
  .listing-card-row .listing-price-includes {
    justify-content: flex-start;
    font-size: 0.75rem;
  }
  /* Herz-Button für Favoriten: gut tappbar */
  .listing-card-row .listing-heart,
  .listing-card-row .listing-heart-link {
    min-width: 44px;
    min-height: 44px;
  }
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ===== Property Detail Page ===== */
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===== Galerie VRBO-Style: Hauptbild + 2x2-Thumb-Grid ===== */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
  z-index: 0;
}

.property-gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
}

.property-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.property-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

.property-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.property-gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 6px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.property-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.property-gallery-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.property-gallery-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.property-gallery-prev {
  left: 12px;
}

.property-gallery-next {
  right: 12px;
}

.property-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  z-index: 10;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 2px;
  min-height: 0;
}

.property-gallery-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 0;
}

.property-gallery-thumb:hover {
  opacity: 0.92;
}

.property-gallery-thumb.active {
  border-color: transparent;
  box-shadow: inset 0 0 0 0.5px var(--color-accent);
}

.property-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.property-gallery-more {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.property-gallery-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.85;
}

.property-gallery-more-icon svg {
  width: 22px;
  height: 22px;
}

.property-gallery-more:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.property-gallery-more-count {
  font-size: 1.25rem;
  font-weight: 600;
}

.property-gallery-more-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Einzelbild: nur Hauptbereich, volle Breite */
.property-gallery-single {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .property-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    height: auto;
    min-height: 320px;
  }

  .property-gallery-main {
    min-height: 260px;
  }

  .property-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 2px;
    min-height: 120px;
  }

  .property-gallery-thumb {
    aspect-ratio: 4/3;
    min-height: 0;
  }

  .property-gallery-more {
    min-height: 0;
    padding: 8px;
  }

  .property-gallery-more-count {
    font-size: 1rem;
  }
}

/* ===== Galerie-Lightbox (VRBO-Style: Fotogalerie mit Zurück-Button) ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  max-height: 92vh;
  margin: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #fff;
}

.gallery-lightbox-back {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-back:hover {
  background: #f3f4f6;
}

.gallery-lightbox-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  flex: 1;
}

.gallery-lightbox-return {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-return:hover {
  background: var(--color-accent-hover);
}

.gallery-lightbox-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 575px);
  grid-auto-rows: minmax(325px, auto);
  gap: 1.5rem 1.5rem;
  align-content: start;
  justify-content: center;
}

.gallery-lightbox-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-height: 0;
}

.gallery-lightbox-item img {
  width: 575px;
  height: 325px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.gallery-lightbox-caption {
  margin: 0;
  padding: 0.5rem 0.25rem 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .gallery-lightbox-scroll {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
  }
  .gallery-lightbox-item img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 575/325;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .gallery-lightbox-content {
    max-height: 90vh;
    margin: 0.5rem;
  }
  .gallery-lightbox-header {
    flex-wrap: wrap;
  }
  .gallery-lightbox-return {
    order: 3;
    width: 100%;
  }
  .gallery-lightbox-scroll {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, auto);
    justify-content: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .gallery-lightbox-item img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 575/325;
    object-fit: cover;
  }
}

/* Vollbild-Lightbox im Fotogalerie-Popup */
.gallery-fullsize {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-fullsize.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-fullsize-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.gallery-fullsize-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fullsize-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.gallery-fullsize-close:hover {
  background: #fff;
}

.gallery-fullsize-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-fullsize-prev,
.gallery-fullsize-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.gallery-fullsize-prev:hover,
.gallery-fullsize-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-fullsize-prev {
  left: 0.5rem;
}

.gallery-fullsize-next {
  right: 0.5rem;
}

.gallery-fullsize-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.875rem;
  border-radius: 8px;
}

.gallery-fullsize-caption {
  position: absolute;
  bottom: 3rem;
  left: 0.5rem;
  right: 0.5rem;
  margin: 0;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1.4;
  max-height: 3.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .gallery-fullsize-prev {
    left: 0.25rem;
  }
  .gallery-fullsize-next {
    right: 0.25rem;
  }
  .gallery-fullsize-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }
  /* Bar immer sichtbar: Gesamtpreis + Jetzt buchen */
  .booking-widget-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 101;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
  }
  .booking-widget-bar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--color-text);
    -webkit-tap-highlight-color: transparent;
  }
  .booking-widget-bar-total {
    font-weight: 700;
    font-size: 1.125rem;
    white-space: nowrap;
  }
  .booking-widget-bar-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .booking-widget-bar-chevron {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transform: rotate(90deg);
  }
  .booking-widget-bar-btn {
    flex-shrink: 0;
    margin-left: auto;
    width: 39%;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
  .booking-widget-flyout-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .booking-widget.is-flyout-open .booking-widget-flyout-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .booking-widget-flyout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease;
  }
  .booking-widget.is-flyout-open .booking-widget-flyout {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .booking-widget-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-surface);
    z-index: 1;
  }
  .booking-widget-flyout-title {
    font-weight: 600;
    font-size: 1rem;
  }
  .booking-widget-flyout-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .booking-widget-flyout-body {
    padding: 1rem 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0) + 70px);
  }
  .booking-widget-flyout-submit {
    display: none;
  }
}

/* Desktop: Bar und Flyout-UI ausblenden, Widget wie gewohnt */
@media (min-width: 901px) {
  .booking-widget-bar,
  .booking-widget-flyout-backdrop,
  .booking-widget-flyout-header {
    display: none !important;
  }
  .booking-widget-flyout-body {
    padding: 0;
    padding-bottom: 0;
  }
  .booking-widget-flyout {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .booking-widget-flyout-submit {
    display: block;
  }
}

/* Mobile: Bar nur unter 900px anzeigen */
@media (min-width: 901px) {
  .booking-widget-bar {
    display: none !important;
  }
}

.booking-widget-contact-wrap {
  margin: 0.75rem 0 0;
  text-align: center;
}

.booking-widget-contact-btn {
  width: 100%;
  font-size: 0.9375rem;
}

/* Kontakt-Popup (Booking-Widget) – modern */
.contact-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(84, 89, 95, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-popup-overlay.is-open .contact-popup {
  transform: scale(1);
  opacity: 1;
}

.contact-popup {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface, #fff);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.contact-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.contact-popup-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: var(--color-bg);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.contact-popup-close:hover {
  color: var(--color-text);
  background: rgba(84, 89, 95, 0.12);
}

.contact-popup-close:active {
  transform: scale(0.96);
}

.contact-popup-form {
  padding: 1.5rem;
}

.contact-popup-field {
  margin-bottom: 1.125rem;
}

.contact-popup-field:last-of-type {
  margin-bottom: 0;
}

.contact-popup-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.contact-popup-field .input,
.contact-popup-field .flatpickr-alt-input,
.contact-popup-field input.flatpickr-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-sizing: border-box;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-popup-field .input::placeholder,
.contact-popup-field .flatpickr-alt-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.contact-popup-field .input:focus,
.contact-popup-field .flatpickr-alt-input:focus,
.contact-popup-field input.flatpickr-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 107, 163, 0.15);
}

.contact-popup-field textarea.input {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.contact-popup-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.875rem;
}

.contact-popup-recaptcha {
  margin-top: 0.5rem;
}

.contact-popup-error {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-accent);
  line-height: 1.4;
}

.contact-popup-success-wrap {
  padding: 2rem 1.5rem;
  text-align: center;
}

.contact-popup-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 107, 163, 0.12);
  color: var(--color-success);
  border-radius: 50%;
  font-size: 1.75rem;
}

.contact-popup-success {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

.contact-popup-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.contact-popup-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.contact-popup-actions .btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .contact-popup-row {
    grid-template-columns: 1fr;
  }

  .contact-popup-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .contact-popup-form {
    padding: 1.25rem;
  }

  .contact-popup-success-wrap {
    padding: 1.75rem 1.25rem;
  }
}

.detail-main h1 {
  margin: 0 0 0.5rem;
  font-family: Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.detail-location {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

/* Anchor-Menü unter der Galerie, nur im detail-main; wird fixed unter Header beim Scrollen */
.detail-anchor-nav-wrapper {
  /* min-height wird per JS gesetzt, wenn Nav fixed ist */
}

.detail-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  font-size: 0.9375rem;
}

.detail-anchor-nav.is-fixed {
  position: fixed;
  top: 80px;
  /* left + width werden per JS an detail-main angepasst */
  z-index: 999;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
}

.detail-anchor-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.detail-anchor-nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.detail-anchor-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Scroll-Abstand wenn Nav fixed ist */
#detail-beschreibung,
#detail-ausstattung,
#detail-standort,
#detail-bewertungen,
#detail-verfuegbarkeit {
  scroll-margin-top: 8.5rem;
}


.detail-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  font-family: Roboto, sans-serif;
}

.detail-description h2 {
  font-size: 20px;
  font-family: Roboto, sans-serif;
  margin: 1.25em 0 0.5em;
  font-weight: 600;
}

.detail-description h3,
.detail-description h4 {
  font-family: Roboto, sans-serif;
}

.detail-description p {
  margin: 0 0 1rem;
}

/* Ausstattung / Annehmlichkeiten */
.detail-amenities {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.detail-amenities-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.amenities-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.amenity-group {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}

.amenity-category {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.amenity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.amenity-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* Bewertungen */
.detail-reviews {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}

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

.review-rating {
  font-weight: 600;
  color: var(--color-primary);
}

.review-guest {
  font-weight: 600;
  color: var(--color-text);
}

.review-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.review-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-comment {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ===== Standort / Karte ===== */
.detail-map-section {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.property-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
  background: var(--color-bg);
}

/* Eigenes Pin-Icon auf der Ferienhaus-Karte (SVG) */
.property-map-pin-icon {
  background: none !important;
  border: none !important;
}

/* Leaflet-Zoom (+/-) und Steuerelemente unter Header & Anker-Nav */
.detail-map-section .leaflet-control-container,
.detail-map-section .leaflet-control-zoom {
  z-index: 400 !important;
}

.detail-address {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

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

.map-link-hint a {
  color: var(--color-accent);
  text-decoration: underline;
}

.map-link-hint a:hover {
  color: var(--color-accent-hover);
}

/* ===== 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;
}

.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: 700;
  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;
}

.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: rgba(84, 89, 95, 0.2);
  background-image: linear-gradient(135deg, transparent 45%, var(--color-text-muted) 45%, var(--color-text-muted) 55%, transparent 55%);
}

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

/* 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: var(--color-text-muted);
  text-decoration: line-through;
  background: rgba(84, 89, 95, 0.08) !important;
  opacity: 0.8;
}

.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(229, 14, 74, 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: 600px) {
  .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;
  }
}

/* Booking widget */
.booking-widget {
  position: sticky;
  top: 80px;
  height: fit-content;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
}

.booking-widget .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.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 var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
}

/* 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(--color-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(229, 14, 74, 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:not(.booking-widget-bar-btn) {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.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(--color-border);
}

.booking-widget .summary-row.total {
  font-weight: 700;
  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(31, 107, 163, 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);
}

/* ===== Blog/Seiten ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.page-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Ort-Seite: CKEditor-Text unter der Ferienhaus-Liste */
.search-place-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* CKEditor-Inhalt (Seiten-Body) */
.page-body.ck-content h1 { font-size: 1.5rem; margin: 1.5em 0 0.5em; font-weight: 700; }
.page-body.ck-content h2 { font-size: 1.25rem; margin: 1.25em 0 0.5em; font-weight: 600; }
.page-body.ck-content h3 { font-size: 1.125rem; margin: 1em 0 0.5em; font-weight: 600; }
.page-body.ck-content p { margin: 0 0 1em; }
.page-body.ck-content ul, .page-body.ck-content ol { margin: 0 0 1em; padding-left: 1.5em; }
.page-body.ck-content li { margin-bottom: 0.25em; }
.page-body.ck-content blockquote { margin: 1em 0; padding: 0.75em 1.25em; border-left: 4px solid var(--color-accent); background: var(--color-bg); font-style: italic; }
.page-body.ck-content a { color: var(--color-primary); text-decoration: underline; }
.page-body.ck-content a:hover { color: var(--color-accent); }
.page-body.ck-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }
.page-body.ck-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.page-body.ck-content th, .page-body.ck-content td { border: 1px solid var(--color-border); padding: 0.5rem 0.75rem; text-align: left; }
.page-body.ck-content th { background: var(--color-bg); font-weight: 600; }

/* ===== Login Page (Felder wie Suchseite) ===== */
.login-main {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.login-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.login-form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.login-form-field {
  flex: 1;
  min-width: 0;
}

.login-form-field input {
  width: 100%;
}

.login-forgot-link {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-primary);
}

.login-forgot-link:hover {
  color: var(--color-accent);
}

.login-form-recaptcha {
  margin: 0.75rem 0;
}

.login-form-recaptcha .login-field-error {
  margin-top: 0.35rem;
}

.login-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.login-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.login-submit {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.login-footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== Skeleton Loading ===== */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-block {
  background: var(--color-border, #e0e0e0);
  border-radius: 4px;
}

.skeleton-listing-card .listing-card-inner {
  display: flex;
  width: 100%;
}

.skeleton-listing-card .listing-image {
  background: var(--color-border, #e0e0e0);
}

.skeleton-listing-card .listing-body {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skeleton-listing-card .listing-body .skeleton-block {
  flex-shrink: 0;
}

.skeleton-listing-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .skeleton-listing-card .listing-card-inner {
    flex-direction: column;
  }
  .skeleton-listing-card .listing-image {
    flex: none;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
  }
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
