/* Ferienhaus-Detail, Checkout, Galerie, Kalender */
/* ===== Property Detail Page ===== */
.detail-hero {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1.5rem var(--content-pad-x);
}

.booking-widget .summary-row-special-price {
  color: var(--color-accent, #81a59e);
  font-weight: 700;
}


/* ===== 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: 0;
  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;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 2rem 0.9rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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 {
  display: none;
}

.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: 0;
  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: 0;
  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 (min-width: 769px) {
  .property-gallery-grid-few .property-gallery-more {
    display: none;
  }
}

@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;
    gap: 2px;
    padding: 2px;
    min-height: 0;
  }

  .property-gallery-thumb {
    display: none;
  }

  .property-gallery-more {
    grid-column: 1;
    min-height: 0;
    padding: 10px 8px;
  }

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

/* Play-Overlay für YouTube/Vimeo über dem Hauptbild */
.property-gallery-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.property-gallery-slide .property-gallery-video-play {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 88px;
  height: 88px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #6a8d86;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.property-gallery-video-play:hover,
.property-gallery-video-play:focus-visible {
  background: #5c7d76;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.property-gallery-video-play:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.property-gallery-video-play-icon {
  display: flex;
  margin-left: 3px;
}

.property-gallery-video-play-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.property-gallery-video-player {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background: #000;
}

.property-gallery-video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.property-gallery-video-close {
  pointer-events: auto;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.property-gallery-video-close[hidden] {
  display: none;
}

.property-gallery-video-close:hover,
.property-gallery-video-close:focus-visible {
  background: rgba(0, 0, 0, 0.75);
}

.property-gallery.is-video-playing .property-gallery-video-play {
  display: none;
}

.property-gallery.is-video-playing .property-gallery-btn {
  z-index: 5;
}

@media (max-width: 768px) {
  .property-gallery-video-play {
    width: 72px;
    height: 72px;
  }
}

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

.detail-video-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.detail-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
}

.detail-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}



/* ============ Property-Tabs ============ */
.owner-dash-nav {
  background: #fff;
  border: 1px solid var(--owner-gray-line);
  border-bottom: none;
  margin-bottom: -1px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.owner-dash-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.owner-dash-nav li { flex-shrink: 0; }

.owner-dash-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--owner-gray);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.owner-dash-nav a:hover { color: var(--owner-blue); background: var(--owner-blue-soft); }

.owner-dash-nav a.is-active {
  color: var(--owner-blue);
  border-bottom-color: var(--owner-blue);
}

.owner-dash-nav-meta {
  font-size: 0.75rem;
  background: var(--owner-blue-soft);
  color: var(--owner-blue-dark);
  padding: 0.05rem 0.45rem;
  font-weight: 700;
}

.owner-dash-nav a.is-active .owner-dash-nav-meta {
  background: var(--owner-blue);
  color: #fff;
}


/* ============ Property-Card ============ */
.owner-prop {
  background: #fff;
  border: 1px solid var(--owner-gray-line);
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;
}

.owner-prop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--owner-gray-line);
}
.owner-prop-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.owner-prop-title {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--owner-gray);
}

.owner-prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--owner-gray);
  opacity: 0.85;
}

.owner-prop-meta span {
  position: relative;
  padding-right: 0.65rem;
}

.owner-prop-meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--owner-gray-line);
}

.owner-prop-meta--accent {
  color: var(--owner-pink) !important;
  font-weight: 600;
  opacity: 1 !important;
}

.owner-prop-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--owner-blue);
  color: #fff;
  border: 1px solid var(--owner-blue);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.owner-prop-cta:hover {
  background: var(--owner-blue-dark);
  box-shadow: 0 3px 10px rgba(119, 99, 77, 0.25);
}
a.owner-prop-cta {
  text-decoration: none;
  color: #fff;
}

.owner-prop-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.owner-prop-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.owner-prop-body--bookings,
.owner-prop-body--calendar {
  grid-template-columns: 1fr;
}

.owner-prop-h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--owner-gray);
  opacity: 0.7;
}

.owner-prop-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--owner-gray-soft);
  color: var(--owner-gray);
  font-size: 0.9rem;
}

.owner-prop-conflict {
  margin: 0 0 0.65rem 0;
  padding: 0.7rem 0.9rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.88rem;
}
.owner-prop-conflict strong { color: #78350f; }

.owner-bk-source {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
}
.owner-bk-source--website        { background: #ccfbf1; color: #115e59; }
.owner-bk-source--airbnb         { background: #fee2e2; color: #b91c1c; }
.owner-bk-source--booking_com    { background: #dbeafe; color: #1d4ed8; }
.owner-bk-source--vrbo           { background: #fef3c7; color: #92400e; }
.owner-bk-source--expedia        { background: #ede9fe; color: #6d28d9; }
.owner-bk-source--direct_beds24  { background: #f1f5f9; color: #475569; }
.owner-bk-source--other          { background: #f3f4f6; color: #4b5563; }
.owner-bk-source--owner          { background: #fce7f3; color: #9d174d; }
.owner-bk-source--block          { background: #e2e8f0; color: #334155; }

.pm-timing-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.owner-bk-flag {
  display: inline-block;
  margin-left: 0.35rem;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.1em;
  text-align: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.75rem;
}
.owner-prop-table tr[data-bk-conflict="1"] {
  background: #fff7ed;
}

.owner-prop-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--owner-gray-line);
}

.owner-prop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.owner-prop-table th,
.owner-prop-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--owner-gray-line);
}

.owner-prop-table thead th {
  background: var(--owner-gray-soft);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--owner-gray);
}

.owner-prop-table-nights { text-align: right !important; }

.owner-prop-table tbody tr:last-child td { border-bottom: none; }

.owner-prop-table tbody tr.is-current {
  background: var(--owner-blue-soft);
  font-weight: 600;
}

.owner-prop-table tbody tr.is-current td:first-child {
  position: relative;
  padding-left: 1.1rem;
}

.owner-prop-table tbody tr.is-current td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--owner-blue);
}

.owner-prop-table-empty td {
  text-align: center;
  color: var(--owner-gray);
  opacity: 0.7;
  font-style: italic;
  padding: 1rem 0.85rem !important;
}

.owner-prop-table-actions { width: 1%; text-align: right !important; white-space: nowrap; }
.owner-prop-table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.owner-prop-table-note {
  color: var(--owner-gray);
  font-size: 0.88rem;
  max-width: 280px;
  word-break: break-word;
}

.owner-prop-table--self tbody tr.is-current {
  background: #fff5f8;
}

.owner-prop-table--self tbody tr.is-current td:first-child::before {
  background: var(--owner-pink);
}

.owner-btn-link {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--owner-danger);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background .15s, border-color .15s;
}

.owner-btn-link:hover {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.3);
}

.owner-btn-link svg { stroke: currentColor; }

.checkin-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.checkin-range-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}

.checkin-range-tab:hover {
  border-color: #0d9488;
  color: #0d9488;
}

.checkin-range-tab.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}


/* === Buchungs-Tabs === */
.owner-prop-bookings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.owner-prop-bookings-head .owner-prop-h3 { margin: 0; }

.owner-bookings-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--owner-gray-soft);
  border: 1px solid var(--owner-gray-line);
}

.owner-bookings-tabs button {
  appearance: none;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--owner-gray);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background .15s, color .15s;
}

.owner-bookings-tabs button:hover {
  background: rgba(119, 99, 77, 0.08);
  color: var(--owner-blue-dark);
}

.owner-bookings-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--owner-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.owner-bookings-tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--owner-gray-line);
  color: var(--owner-gray);
  padding: 0.05rem 0.4rem;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: center;
}

.owner-bookings-tabs button[aria-selected="true"] .owner-bookings-tab-count {
  background: var(--owner-blue);
  color: #fff;
}


/* Flatpickr overrides (property detail booking widget) */
.flatpickr-calendar {
  font-family: var(--font-sans);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: none;
}
.flatpickr-months {
  padding: 8px;
}
.flatpickr-month {
  color: var(--color-text);
}
.flatpickr-current-month {
  font-weight: 600;
}
.flatpickr-calendar .flatpickr-current-month .cur-month,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  width: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
.flatpickr-day {
  border-radius: 50%;
  font-weight: 500;
}
.flatpickr-day:hover {
  background: var(--color-bg);
}
.flatpickr-day.selected {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}
.flatpickr-day.inRange {
  background: rgba(129, 165, 158, 0.15) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.flatpickr-day.today {
  border-color: var(--color-accent);
}
.flatpickr-day.available {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}
.flatpickr-day.available:hover {
  background: #c8e6c9;
}
.flatpickr-day.turnover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}
.flatpickr-day.turnover:hover {
  background: #ffe0b2;
}
.flatpickr-day.blocked,
.flatpickr-day.blocked.flatpickr-disabled {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  pointer-events: none;
}
.flatpickr-day.flatpickr-disabled {
  color: #ccc;
  background: transparent !important;
  pointer-events: none;
}
.flatpickr-calendar .flatpickr-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid #eee;
  font-size: 11px;
}
.flatpickr-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.flatpickr-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.flatpickr-legend-dot.available {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}
.flatpickr-legend-dot.turnover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}
.flatpickr-legend-dot.blocked {
  background: #fecaca;
  border: 1px solid #ef4444;
}

