/* ================= PANELS ================= */

.section-booking-calendar .section-soft{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ================= KALENDER BASIS ================= */

.booking-calendar{
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.58);
}

.booking-calendar--search{
  max-width: 745px;
  margin: 0 auto 20px;
  padding: 14px;
}

/* ================= HEADER ================= */

.booking-calendar__top{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.booking-calendar__label{
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6A83A8;
  font-weight: 700;
}

.booking-calendar__status{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #1a2430;
}

/* ================= GÄSTE ================= */

.booking-calendar__guests{
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 108px;
}

.booking-calendar__guests label{
  font-size: 0.85rem;
  font-weight: 600;
}

.booking-calendar__guests select{
  min-height: 34px;
  border: 1px solid rgba(26,36,48,0.10);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.82rem;
  background: #fff;
}

/* ================= NAV ================= */

.booking-calendar__nav{
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.calendar-nav-btn{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(26,36,48,0.08);
  background: #fff;
  cursor: pointer;
}

.calendar-nav-btn:disabled{
  opacity: 0.35;
}

/* ================= GRID ================= */

.booking-calendar__months{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.booking-calendar__month-name{
  text-align: center;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.booking-calendar__weekdays{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 3px;
}

.booking-calendar__weekdays span{
  font-size: 0.66rem;
  text-align: center;
  opacity: 0.5;
}

.booking-calendar__grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* ================= TAGE ================= */

.calendar-day,
.calendar-day--empty{
  height: 36px;
}

.calendar-day{
  border-radius: 7px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(26,36,48,0.08);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  padding: 2px 1px;
}

/* Hover (Standard klickbare Tage) */
.calendar-day:not(.is-disabled):not(.is-booked):hover{
  transform: translateY(-1px);
  background: #f7faff;
  border-color: rgba(106,131,168,0.35);
}

/* Hover für ALLE Checkout-Tage (inkl. Wechseltage) */
.calendar-day.is-checkout-valid:hover{
  transform: translateY(-1px);
  background: #f7faff;
  border-color: rgba(106,131,168,0.35);
}

/* DEAKTIV */
.calendar-day.is-disabled{
  background: #fbfcfe;
  color: rgba(26,36,48,0.25);
  border-color: rgba(26,36,48,0.04);
  cursor: not-allowed;
}

/* BELEGT */
.calendar-day.is-booked{
  background: #f3f4f6;
  color: rgba(26,36,48,0.32);
  border-style: dashed;
  cursor: not-allowed;
}

/* ================= BOUNDARY DAY ================= */
/* Belegt, aber direkt nach verfügbar → neutral darstellen */

.calendar-day.is-booked.is-boundary{
  background: rgba(255,255,255,0.92);
  color: rgba(26,36,48,0.52);
  border-style: solid;
  border-color: rgba(26,36,48,0.04);
  cursor: not-allowed;
}

.calendar-day.is-booked.is-boundary .calendar-day__meta{
  opacity: 0.42;
}

/* CHECKIN */
.calendar-day.is-checkin-valid{
  border-color: rgba(106,131,168,0.25);
  background: #ffffff;
}

/* CHECKOUT */
.calendar-day.is-checkout-valid{
  background: #f0f6ff;
  border-color: rgba(106,131,168,0.35);
}

/* CHECKOUT auf belegtem Wechseltag */
.calendar-day.is-checkout-valid.is-booked{
  background: #f0f6ff;
  border-color: rgba(106,131,168,0.35);
  border-style: solid;
  color: #1a2430;
  cursor: pointer;
}

.calendar-day.is-checkout-valid.is-booked .calendar-day__meta{
  opacity: 0.7;
}

/* AUSGEWÄHLT */
.calendar-day.is-selected-start,
.calendar-day.is-selected-end{
  background: #6A83A8;
  color: #fff;
  font-weight: 700;
}

/* RANGE */
.calendar-day.is-in-range{
  background: rgba(106,131,168,0.12);
}

/* TEXT */
.calendar-day__number{
  font-size: 0.78rem;
}

.calendar-day__meta{
  font-size: 0.56rem;
  opacity: 0.6;
}

/* ================= BOOKING SEARCH ================= */

.section-booking-search .section-soft{
  padding: 18px 18px 22px;
}

.booking-search__top{
  margin-bottom: 12px;
}

.booking-search__label{
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 4px;
}

.booking-search__status{
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* ================= SEARCH RESULTS ================= */

.search-results{
  max-width: 745px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px){
  .search-results{
    grid-template-columns: 1fr 1fr;
  }
}

.search-result{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(26,36,48,0.06);
  box-shadow: 0 6px 18px rgba(26,36,48,0.04);
}

.search-result__image-link{
  display: block;
  text-decoration: none;
}

.search-result__image{
  display: block;
  width: 100%;
  aspect-ratio: 18 / 9;
  object-fit: cover;
  background: #f2f4f7;
}

.search-result__body{
  padding: 13px 14px 14px;
}

.search-result__title{
  margin: 0 0 7px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.search-result__title a,
.search-result__title a:visited{
  color: #1a2430;
  text-decoration: none;
}

.search-result__title a:hover{
  text-decoration: underline;
}

.search-result__highlights{
  margin: 0 0 8px;
  line-height: 1.45;
}

.search-result__highlights span{
  font-size: 0.8rem;
  color: rgba(26,36,48,0.8);
}

.search-result__price{
  margin: 0 0 4px;
  font-size: 0.94rem;
  font-weight: 700;
}

.search-result__price-note{
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: rgba(26,36,48,0.6);
}

.search-result__actions{
  display: flex;
  gap: 7px;
}

.search-result__actions .btn{
  flex: 1;
  padding: 8px 10px;
  font-size: 0.85rem;
}

/* ================= MOBILE ================= */

@media (max-width: 860px){
  .booking-calendar{
    max-width: 540px;
  }

  .booking-calendar__months{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .calendar-day{
    height: 38px;
  }

  .search-results{
    max-width: 100%;
  }
}