.calendar-wrapper {
    background: #ffffff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.10);
    margin-top: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 22px;
    color: #111827;
}

.calendar-header button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #0f766e;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.calendar-header button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-weight: 700;
    color: #6b7280;
    font-size: 13px;
}

.calendar-day {
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #dcfce7;
    color: #065f46;
    font-weight: 700;
    cursor: pointer;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.available:hover {
    background: #0f766e;
    color: white;
}

.calendar-day.booked {
    background: #ef4444;
    color: white;
    cursor: not-allowed;
}

.calendar-day.option {
    background: #f59e0b;
    color: #111827;
}

.calendar-day.past {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.calendar-day.checkin,
.calendar-day.checkout {
    background: #22c55e;
    color: white;
}

.calendar-day.selected-range {
    background: #bbf7d0;
    color: #166534;
}

.calendar-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 14px;
    color: #374151;
}

.legend-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
}

.legend-available {
    background: #22c55e;
}

.legend-booked {
    background: #ef4444;
}

.legend-option {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 18px;
    }

    .calendar-day {
        height: 38px;
        font-size: 13px;
    }
}
.calendar-day.today {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.calendar-day.available:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}
.calendar-selection-summary {
    display: none !important;
}
.calendar-selection-summary div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.calendar-selection-summary span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.calendar-selection-summary strong {
    color: #0f766e;
    font-size: 15px;
}


/* Sağ rezervasyon kutusundaki renkli mini takvim */
.sidebar-date-picker {
    position: relative;
}

.sidebar-date-picker #checkin-date,
.sidebar-date-picker #checkout-date {
    cursor: pointer;
}

.sidebar-calendar-popover {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 80;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.sidebar-calendar-popover.active {
    display: block;
}

.sidebar-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sidebar-calendar-header strong {
    color: #0b4054;
    font-size: 14px;
}

.sidebar-calendar-header button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-calendar-header button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.sidebar-calendar-weekdays,
.sidebar-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.sidebar-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding-bottom: 4px;
}

.sidebar-calendar-day {
    position: relative;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #dcfce7;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
}

.sidebar-calendar-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.sidebar-calendar-day.booked {
    background: #ef4444;
    color: #ffffff;
}

.sidebar-calendar-day.option {
    background: #f59e0b;
    color: #111827;
}

.sidebar-calendar-day.maintenance {
    background: #94a3b8;
    color: #ffffff;
}

.sidebar-calendar-day.past {
    opacity: .48;
}

.sidebar-calendar-day.selected-range {
    background: #bbf7d0;
    color: #166534;
}

.sidebar-calendar-day.checkin,
.sidebar-calendar-day.checkout {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

/* Tek ve kesin yarım-gün yönü:
   Başlangıç = sağ yarı renkli
   Bitiş     = sol yarı renkli */
.calendar-day.booked-start,
.sidebar-calendar-day.booked-start {
    background: linear-gradient(to right, #ffffff 0 50%, #ef4444 50% 100%) !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.calendar-day.booked-end,
.sidebar-calendar-day.booked-end {
    background: linear-gradient(to right, #ef4444 0 50%, #ffffff 50% 100%) !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.calendar-day.option-start,
.sidebar-calendar-day.option-start {
    background: linear-gradient(to right, #ffffff 0 50%, #f59e0b 50% 100%) !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.calendar-day.option-end,
.sidebar-calendar-day.option-end {
    background: linear-gradient(to right, #f59e0b 0 50%, #ffffff 50% 100%) !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

/* Blok ortasındaki günlerde boşluk kalmasın. */
.calendar-day.booked:not(.booked-start):not(.booked-end),
.sidebar-calendar-day.booked:not(.booked-start):not(.booked-end) {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.calendar-day.option:not(.option-start):not(.option-end),
.sidebar-calendar-day.option:not(.option-start):not(.option-end) {
    background: #f59e0b !important;
    color: #111827 !important;
    border-color: transparent !important;
}


/* Tek satır giriş-çıkış tarih alanı */
.sidebar-date-range-trigger {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid #d7dee7;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.sidebar-date-range-trigger:hover {
    border-color: #0f766e;
    background: #f8fffd;
}

.sidebar-date-range-trigger:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.sidebar-date-range-trigger i {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 16px;
}

.sidebar-date-range-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-date-picker input[type="hidden"] {
    display: none !important;
}


/* Rezervasyon paneli sade premium başlık */
.booking-box > h2,
.booking-box > h3:first-child,
.booking-box .booking-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-bottom: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}


/* =========================================================
   REZERVASYON ÖZETİ + MİSAFİR SEÇİCİ PREMIUM KOMPAKT DOKUNUŞ
   Yalnızca görünüm düzenlenir; mevcut HTML/JS mantığı korunur.
   ========================================================= */

.booking-box {
    border-radius: 24px !important;
    padding: 24px 22px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10) !important;
}

.booking-box > h2,
.booking-box > h3:first-child,
.booking-box .booking-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    letter-spacing: -.2px !important;
}

/* WhatsApp butonu daha zarif */
.booking-box #whatsapp-btn,
.booking-box .villa-btn {
    min-height: 42px !important;
    padding: 10px 14px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 18px rgba(34, 197, 94, .16) !important;
    margin-bottom: 14px !important;
}

/* Tarih ve misafir alanları aynı premium dilde */
.sidebar-date-range-trigger,
.guest-selector {
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid #dbe3ec !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .035) !important;
    padding: 0 14px !important;
    font-size: 13.5px !important;
}

.sidebar-date-range-trigger:hover,
.guest-selector:hover {
    border-color: #0f766e !important;
    background: #fbfffe !important;
}

.booking-box > label {
    display: block;
    margin: 13px 0 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

/* Fiyat özeti: iç içe kutu hissini azalt */
.booking-summary,
.price-summary {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    border: 1px solid #e5eaf0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045) !important;
}

#price-empty-message {
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #c9e8f4 !important;
    background: #f5fbfe !important;
    color: #0f5f79 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

/* Rezervasyon butonu daha ince ve modern */
#booking-request-btn,
.booking-btn {
    min-height: 44px !important;
    margin-top: 14px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

#booking-request-btn:disabled,
.booking-btn:disabled,
#booking-request-btn.disabled,
.booking-btn.disabled {
    background: #d7e0ea !important;
    color: #64748b !important;
    opacity: 1 !important;
}

/* Misafir açılır kutusu kompakt premium */
.guest-dropdown {
    margin-top: 8px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12) !important;
}

.guest-row {
    min-height: 58px !important;
    padding: 10px 0 !important;
    gap: 12px !important;
}

.guest-row + .guest-row {
    border-top: 1px solid #edf1f5 !important;
}

.guest-row strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: #1f2937 !important;
}

.guest-row > div:first-child span {
    display: block;
    margin-top: 3px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    color: #8a94a3 !important;
}

.guest-controls {
    gap: 8px !important;
}

.guest-controls button,
.guest-minus,
.guest-plus {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #d7dee7 !important;
    background: #fff !important;
    color: #263238 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .04) !important;
}

.guest-controls button:hover,
.guest-minus:hover,
.guest-plus:hover {
    border-color: #0f766e !important;
    color: #0f766e !important;
    background: #f6fffc !important;
}

.guest-controls span {
    min-width: 22px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.guest-done {
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 12px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #0f6078 !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 16px rgba(15, 96, 120, .14) !important;
}

.guest-done:hover {
    background: #0b5268 !important;
}

@media (max-width: 768px) {
    .booking-box {
        padding: 20px 16px !important;
    }

    .guest-dropdown {
        padding: 12px 14px !important;
    }

    .guest-row {
        min-height: 54px !important;
    }
}


/* Misafir seçici: ekstra kompakt tek panel */
.guest-dropdown {
    padding: 8px 12px 10px !important;
}

.guest-row {
    min-height: 46px !important;
    padding: 7px 0 !important;
    margin: 0 !important;
}

.guest-row + .guest-row {
    border-top: 1px solid #e7edf3 !important;
}

.guest-row strong {
    font-size: 13px !important;
}

.guest-row > div:first-child span {
    margin-top: 1px !important;
    font-size: 10.5px !important;
}

.guest-controls {
    gap: 6px !important;
}

.guest-controls button,
.guest-minus,
.guest-plus {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    font-size: 16px !important;
}

.guest-controls span {
    min-width: 20px !important;
    font-size: 13px !important;
}

.guest-done {
    min-height: 36px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
}


/* Fiyat özeti: kompakt satırlar ve ince ayırıcılar */
.booking-summary,
.price-summary {
    padding: 8px 13px !important;
    margin-top: 12px !important;
}

.booking-summary > div,
.price-summary > div,
.booking-summary .summary-row,
.price-summary .summary-row {
    min-height: 38px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

.booking-summary > div + div,
.price-summary > div + div,
.booking-summary .summary-row + .summary-row,
.price-summary .summary-row + .summary-row {
    border-top: 1px solid #e7edf3 !important;
}

.booking-summary p,
.price-summary p {
    margin: 0 !important;
}

.booking-summary span,
.price-summary span {
    line-height: 1.25 !important;
}

#booking-request-btn,
.booking-btn {
    margin-top: 10px !important;
}


/* Fiyat özeti son hizalama düzeltmesi:
   Yazı boyutları korunur, tüm satırlar eşit ve tam ortalıdır. */
#price-summary {
    padding: 8px 13px !important;
}

/* İç gruplar satır gibi davranmasın; farklı çizgi ve boşluk üretmesin. */
#price-summary > #summary-with-cleaning,
#price-summary > #summary-simple {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Beş finans satırının ortak ölçüsü */
#price-summary .summary-line,
#price-summary .summary-total-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf3 !important;
}

/* Son satırın altında gereksiz çizgi olmasın. */
#price-summary > .summary-line:last-child {
    border-bottom: 0 !important;
}

/* Metin ve fiyatların dikey merkezi aynı olsun. */
#price-summary .summary-line > span,
#price-summary .summary-line > strong,
#price-summary .summary-total-line > span,
#price-summary .summary-total-line > strong {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}


/* İndirim yalnızca gerçekten uygulandığında görünür */
#price-summary #discount-line {
    display: none !important;
}

#price-summary #discount-line.discount-active {
    display: flex !important;
}

/* Fiyat özeti satır aralıklarını biraz daha daralt */
#price-summary .summary-line,
#price-summary .summary-total-line {
    height: 40px !important;
    min-height: 40px !important;
}


/* Holiday Villam - Calendar daily prices */
.calendar-day{
    min-height:58px !important;
    height:58px !important;
    padding:6px 3px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:2px !important;
    line-height:1.05 !important;
}
.calendar-day-number{
    display:block !important;
    font-size:13px !important;
    font-weight:800 !important;
}
.calendar-day-price{
    display:block !important;
    max-width:100% !important;
    font-size:9px !important;
    line-height:1.05 !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    opacity:.9 !important;
}
.sidebar-calendar{gap:4px !important;}
.sidebar-calendar-day{
    min-width:0 !important;
    height:43px !important;
    padding:4px 1px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:1px !important;
    line-height:1 !important;
}
.sidebar-calendar-day-number{
    display:block !important;
    font-size:10px !important;
    font-weight:800 !important;
}
.sidebar-calendar-day-price{
    display:block !important;
    width:100% !important;
    padding:0 1px !important;
    box-sizing:border-box !important;
    font-size:7px !important;
    line-height:1 !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    opacity:.9 !important;
}
@media(max-width:768px){
    .calendar-day{
        min-height:52px !important;
        height:52px !important;
    }
    .calendar-day-price{font-size:8px !important;}
}
