/* HOBEGE Kalender (flatpickr) – Booking.com-ähnliche Zeitraum-Auswahl */
.hb-range-anchor {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

input.hb-date-view {
    cursor: pointer;
    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='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px !important;
    text-overflow: ellipsis;
}

.flatpickr-calendar.hobege-cal {
    background: #2f3236;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    padding: 16px 16px 12px;
    font-family: inherit;
    width: auto;
    z-index: 100000;
}
.flatpickr-calendar.hobege-cal:before,
.flatpickr-calendar.hobege-cal:after { display: none; }

.hobege-cal .flatpickr-months { margin-bottom: 8px; align-items: center; }
.hobege-cal .flatpickr-months .flatpickr-month { color: #fff; height: 40px; }
.hobege-cal .flatpickr-current-month {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    padding: 6px 0 0;
    height: 40px;
}
.hobege-cal .flatpickr-current-month .cur-month,
.hobege-cal .flatpickr-current-month input.cur-year { color: #fff; font-weight: 600; }
.hobege-cal .flatpickr-months .flatpickr-prev-month,
.hobege-cal .flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
    height: 40px;
    padding: 9px 12px;
    top: 0;
    display: flex;
    align-items: center;
}
.hobege-cal .flatpickr-months .flatpickr-prev-month:hover,
.hobege-cal .flatpickr-months .flatpickr-next-month:hover { color: #47bab2; }
.hobege-cal .flatpickr-months .flatpickr-prev-month svg,
.hobege-cal .flatpickr-months .flatpickr-next-month svg { fill: none; width: 22px; height: 22px; }
.hobege-cal .flatpickr-months .flatpickr-prev-month:hover svg,
.hobege-cal .flatpickr-months .flatpickr-next-month:hover svg { fill: none; }

.hobege-cal .flatpickr-weekdays { height: 30px; }
.hobege-cal span.flatpickr-weekday {
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
    font-size: 13px;
    background: transparent;
}
.hobege-cal .flatpickr-weekdaycontainer,
.hobege-cal .flatpickr-weekdaycontainer { width: 100%; }

.hobege-cal .flatpickr-innerContainer { overflow: visible; }
.hobege-cal .flatpickr-rContainer { overflow: visible; }
.hobege-cal .flatpickr-days { width: auto !important; overflow: visible; }
.hobege-cal .dayContainer {
    width: 322px;
    min-width: 322px;
    max-width: 322px;
    padding: 0 0 0 0;
}
.hobege-cal.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) { margin-left: 28px; }
.hobege-cal .flatpickr-weekdaycontainer { width: 322px; flex: none; }
.hobege-cal.multiMonth .flatpickr-weekdays { }

.hobege-cal .flatpickr-day {
    color: #fff;
    border: 0;
    border-radius: 10px;
    max-width: 46px;
    width: 46px;
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    flex-basis: 46px;
}
.hobege-cal .flatpickr-day:hover,
.hobege-cal .flatpickr-day:focus { background: rgba(71, 186, 178, .28); border: 0; }
.hobege-cal .flatpickr-day.today { box-shadow: inset 0 0 0 1.5px rgba(71, 186, 178, .8); }
.hobege-cal .flatpickr-day.today:hover { background: rgba(71, 186, 178, .28); color: #fff; }

.hobege-cal .flatpickr-day.prevMonthDay,
.hobege-cal .flatpickr-day.nextMonthDay { visibility: hidden; }

.hobege-cal .flatpickr-day.flatpickr-disabled,
.hobege-cal .flatpickr-day.flatpickr-disabled:hover { color: rgba(255, 255, 255, .22); background: transparent; cursor: not-allowed; }

.hobege-cal .flatpickr-day.hb-blocked,
.hobege-cal .flatpickr-day.hb-blocked:hover {
    color: rgba(255, 255, 255, .3);
    background: transparent;
    pointer-events: none;
    cursor: not-allowed;
}
.hobege-cal .flatpickr-day.hb-booked { text-decoration: line-through; text-decoration-thickness: 1.5px; }

.hobege-cal .flatpickr-day.selected,
.hobege-cal .flatpickr-day.startRange,
.hobege-cal .flatpickr-day.endRange,
.hobege-cal .flatpickr-day.selected:hover,
.hobege-cal .flatpickr-day.startRange:hover,
.hobege-cal .flatpickr-day.endRange:hover {
    background: #47bab2;
    color: #11302d;
    font-weight: 700;
    border-radius: 10px;
}
.hobege-cal .flatpickr-day.inRange,
.hobege-cal .flatpickr-day.inRange:hover {
    background: rgba(71, 186, 178, .25);
    box-shadow: -5px 0 0 rgba(71, 186, 178, .25), 5px 0 0 rgba(71, 186, 178, .25);
    border-radius: 0;
    color: #fff;
}
.hobege-cal .flatpickr-day.startRange { border-radius: 10px 0 0 10px; }
.hobege-cal .flatpickr-day.endRange { border-radius: 0 10px 10px 0; }
.hobege-cal .flatpickr-day.startRange.endRange { border-radius: 10px; }
.hobege-cal .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)),
.hobege-cal .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 #47bab2; }

.hb-cal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
}
.hb-cal-hint { font-weight: 600; color: #fff; }
.hb-cal-legend { color: rgba(255, 255, 255, .65); display: inline-flex; align-items: center; gap: 6px; }
.hb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.hb-dot.is-free { background: #47bab2; margin-left: 0; }
.hb-dot.is-booked { background: rgba(255, 255, 255, .25); }

@media (max-width: 859px) {
    .flatpickr-calendar.hobege-cal { padding: 12px 8px 10px; max-width: calc(100vw - 16px); }
    .hobege-cal .dayContainer,
    .hobege-cal .flatpickr-weekdaycontainer { width: 308px; min-width: 308px; max-width: 308px; }
    .hobege-cal .flatpickr-day { width: 44px; max-width: 44px; flex-basis: 44px; }
}

.hobege-cal .flatpickr-weekdaycontainer + .flatpickr-weekdaycontainer { margin-left: 28px; }
.hobege-cal.rangeMode.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) { box-shadow: none; border-left: 0; }
.hobege-cal .flatpickr-days .dayContainer + .dayContainer { box-shadow: none !important; }
.hobege-cal .flatpickr-monthDropdown-months { color: #fff; }
.hobege-cal .flatpickr-day.selected.hb-booked,
.hobege-cal .flatpickr-day.startRange.hb-booked,
.hobege-cal .flatpickr-day.endRange.hb-booked,
.hobege-cal .flatpickr-day.inRange.hb-booked { text-decoration: none; color: inherit; }
.hobege-cal .flatpickr-day.selected.hb-blocked,
.hobege-cal .flatpickr-day.startRange.hb-blocked,
.hobege-cal .flatpickr-day.endRange.hb-blocked,
.hobege-cal .flatpickr-day.inRange.hb-blocked { color: #11302d; }
.hobege-cal .flatpickr-day.inRange.hb-blocked { color: #fff; }

.apartments-page .search-bar .search-field input.hb-date-view,
.booking-field input.hb-date-view,
form input.hb-date-view {
    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='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
