@charset "UTF-8";
/* =========================================================
   AcentaKur - Basit Tarih Takvimi Stilleri
   Renkler style.css :root değişkenlerinden gelir (temaya uyumlu).
   ========================================================= */

.tkvm-field { position: relative; }
.tkvm-field input { cursor: pointer; padding-right: 2rem; }
/* Sağdaki aşağı ok */
.tkvm-caret {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: .8rem; pointer-events: none; transition: color .2s;
}
.tkvm-field input:focus ~ .tkvm-caret { color: var(--accent); }

/* Açılan takvim kutusu */
.basit-takvim {
    position: absolute; top: 100%; left: 0; margin-top: 6px;
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-md); z-index: 999; display: none; width: 300px; overflow: hidden;
}

/* Başlık: ay/yıl + ok butonları */
.basit-takvim-baslik {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 8px;
}
.basit-takvim-baslik span { font-size: .9rem; font-weight: 700; color: var(--primary); }
.basit-takvim-baslik button {
    width: 32px; height: 32px; border: none; background: transparent; font-size: 14px;
    cursor: pointer; border-radius: 8px; color: var(--primary); transition: background .15s, color .15s;
}
.basit-takvim-baslik button:hover { background: var(--accent); color: var(--white); }

.basit-kapat {
    display: none; width: auto !important; height: 28px !important; padding: 0 10px;
    font-size: 11px !important; font-weight: 600; color: var(--muted) !important;
    background: transparent !important; border: 1px solid var(--border) !important; border-radius: 8px;
}
.basit-kapat:hover { background: var(--bg-alt) !important; color: var(--primary) !important; }

/* Gün ızgarası */
.basit-takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px; }
.basit-gun-baslik { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.basit-gun {
    text-align: center; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--text); border-radius: 8px; cursor: pointer;
    border: .5px solid transparent; transition: background .12s, color .12s;
}
.basit-gun:hover { background: var(--accent-tint); }
.basit-gun.basit-bos { cursor: default; }
.basit-gun.basit-bos:hover { background: transparent; }
.basit-gun.basit-gecmis { opacity: .35; cursor: not-allowed; }
.basit-gun.basit-gecmis:hover { background: transparent; }

/* Seçim aralığı (tema: accent) */
.basit-gun.basit-secili { background: var(--accent-tint); color: var(--accent-dark); }
.basit-gun.basit-uc { background: var(--accent); color: var(--white); }
.basit-gun.basit-secili:hover, .basit-gun.basit-uc:hover { background: var(--accent); color: var(--white); }

/* Çıkış etiket satırı: "Çıkış" solda, gece sayısı sağda */
.tkvm-label-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tkvm-gece {
    font-size: .72rem; font-weight: 700; line-height: 1;
    color: var(--accent-dark); background: var(--accent-tint);
    padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}

/* Fare ile aralık gezerken gece sayısı balonu */
.gece-tooltip {
    position: fixed; background: var(--primary); color: var(--white); padding: 5px 12px;
    border-radius: 6px; font-size: 12px; font-weight: 600; pointer-events: none; z-index: 9999;
    white-space: nowrap; display: none; transform: translate(-50%, -120%);
}
.gece-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--primary);
}

/* Mobil: alttan açılan sheet */
@media (max-width: 575.98px) {
    .basit-takvim {
        position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%;
        margin-top: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(var(--primary-rgb), .18);
        z-index: 2000;
    }
    .basit-kapat { display: inline-flex !important; align-items: center; justify-content: center; }
    .basit-takvim-grid { padding: 10px; }
    .basit-gun { font-size: 15px; }
}

/* =====================================================================
   BÜYÜK TAKVİM (.takvim-container) + full-width modal
   Villa kartındaki "Takvim" butonuyla açılır; villa-detay'da da kullanılacak.
   Durum renkleri (dolu/opsiyon/fırsat/müsait) anlamsaldır, sabittir.
   ===================================================================== */

/* --- Full-width modal kabuğu --- */
.takvim-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.takvim-modal[hidden] { display: none; }
.takvim-modal-backdrop { position: absolute; inset: 0; background: var(--overlay-scrim); backdrop-filter: blur(2px); }
.takvim-modal-panel {
    position: relative; z-index: 1; background: var(--white); border-radius: 16px;
    width: 100%; height: 100%; max-height: 100%; display: flex; flex-direction: column;
    overflow: hidden; box-shadow: var(--shadow-md); animation: tkvmModalPop .25s ease;
}
@keyframes tkvmModalPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.takvim-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); flex: none; }
.takvim-modal-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.takvim-modal-title i { color: var(--accent); }
.takvim-modal-close { width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--bg-alt); color: var(--primary); font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.takvim-modal-close:hover { background: var(--border); }
.takvim-modal-body { padding: 1.2rem; overflow-y: auto; }
@media (max-width: 575.98px) {
    .takvim-modal { padding: 0; }
    .takvim-modal-panel { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .takvim-modal-body { padding: .9rem; }
}

/* --- Takvim ızgarası --- */
.takvim-container { max-width: 100%; margin: 0 auto; }
/* Fiyatsız gün bilgisi (aylar-grid üstünde) */
.takvim-not {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    background: var(--accent-tint); color: var(--accent-dark);
    border: 1px solid var(--promo-glow); border-radius: 10px;
    padding: .6rem .9rem; margin-bottom: 16px; font-size: .8rem; font-weight: 600; text-align: center;
}
.takvim-not i { font-size: 1rem; flex: none; color: var(--accent); }
.takvim-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.takvim-nav button { width: 36px; height: 36px; border: 1px solid var(--border); background: var(--white); border-radius: 8px; font-size: 16px; cursor: pointer; color: var(--primary); transition: .2s; }
.takvim-nav button:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.takvim-nav .ay-yil { font-size: 16px; font-weight: 700; min-width: 220px; text-align: center; color: var(--primary); }
.aylar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) {
    .takvim-container { display: flex; flex-direction: column; gap: 12px; }
    .aylar-grid { display: contents; }
    .takvim-nav { order: 0; margin-bottom: 0; }
    .ay-kutu:nth-child(1) { order: 1; }
    .ay-kutu:nth-child(2) { order: 2; }
    .ay-kutu:nth-child(3) { order: 3; }
    .ay-kutu:nth-child(4) { order: 4; }
    .takvim-legend { order: 6; margin-top: 0; }
    .takvim-not { margin-bottom: 0; padding: 5px; border-radius: 5px; }
    .takvim-not i { display: none; }
    .ay-baslik { display: none; }
}
.ay-kutu { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.ay-baslik { background: var(--bg-alt); color: var(--primary); padding: 18px; font-size: 14px; font-weight: 700; text-align: center; }
.takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.gun-baslik { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
.gun-hucre { position: relative; aspect-ratio: 1; border: 0.5px solid #f0f0f0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 2px 1px; user-select: none; overflow: hidden; }
.gun-hucre.bos { cursor: default; border-color: transparent; }
.gun-hucre .gun-no { font-size: 14px; font-weight: 700; color: #333; z-index: 2; position: relative; line-height: 1; }
.gun-hucre .eski-fiyat { font-size: 10px; color: #aaa; text-decoration: line-through; z-index: 2; position: relative; order: -1; line-height: 1; margin-bottom: 3px; }
.gun-hucre .guncel-fiyat { font-size: 10px; color: #555; font-weight: 600; z-index: 2; position: relative; line-height: 1; margin-top: 3px; }
.gun-hucre.musait { background: #fff; }
.gun-hucre.musait:hover { background: #f0fdf4; }
.gun-hucre.dolu { background: #fecaca; cursor: not-allowed; }
.gun-hucre.dolu .gun-no { color: #b91c1c; }
.gun-hucre.gecis-tarih .gun-no { color: #333; }
.gun-hucre.dolu .guncel-fiyat { color: #b91c1c; }
.gun-hucre.dolu-gecis { cursor: pointer; }
.gun-hucre.dolu-gecis .gun-no { color: #333; }
.gun-hucre.opsiyon { background: #fef9c3; cursor: not-allowed; }
.gun-hucre.opsiyon .gun-no { color: #8e8412; }
.gun-hucre.opsiyon-gecis { cursor: pointer; }
.gun-hucre.opsiyon-gecis .gun-no { color: #333; }
.gun-hucre.firsat { background: #bbf7d0; }
.gun-hucre.firsat .gun-no { color: #166534; }
.gun-hucre.firsat .guncel-fiyat { color: #166534; }
.gun-hucre.fiyatsiz { cursor: not-allowed; opacity: 1; }
.gun-hucre.secili { background: #86efac !important; }
.gun-hucre.secili .gun-no { color: #166534 !important; }
.gun-hucre.secili .guncel-fiyat { color: #166534 !important; }
.gun-hucre.secim-giris::after, .gun-hucre.secim-cikis::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #86efac; z-index: 1; }
.gun-hucre.secim-giris::after { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.gun-hucre.secim-cikis::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.gun-hucre.secim-giris .gun-no, .gun-hucre.secim-cikis .gun-no { color: #166534 !important; }
.gun-hucre.secim-giris .guncel-fiyat, .gun-hucre.secim-cikis .guncel-fiyat { color: #166534 !important; }
.gun-hucre.gecis-tarih { cursor: pointer; }
.gun-hucre.gecis-tarih::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gecis-renk); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 1; }
.gun-hucre.gecmis { opacity: 0.35; cursor: not-allowed; }
.gun-hucre.gecmis .gun-no { color: #b3aeae; }
.takvim-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 16px; padding: 12px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.legend-renk { width: 18px; height: 18px; border-radius: 3px; border: 1px solid var(--border); }
.legend-renk.l-musait { background: #fff; }
.legend-renk.l-dolu { background: #fecaca; }
.legend-renk.l-opsiyon { background: #fef9c3; }
.legend-renk.l-firsat { background: #bbf7d0; }
.legend-renk.l-giris-cikis { background: linear-gradient(to bottom right, #fecaca 50%, #fff 50%); }

/* --- Uyarı / öneri modalı (takvimModal) --- */
.tkvm-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: none; z-index: 10000; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.tkvm-modal-overlay.acik { display: flex; animation: tkvmFade 0.2s ease; }
@keyframes tkvmFade { from { opacity: 0; } to { opacity: 1; } }
.tkvm-modal { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: tkvmPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tkvmPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tkvm-modal-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 28px auto 14px; font-size: 34px; font-weight: 700; line-height: 1; }
.tkvm-modal.uyari .tkvm-modal-icon { background: #fef3c7; color: #d97706; }
.tkvm-modal.basari .tkvm-modal-icon { background: #dcfce7; color: #16a34a; }
.tkvm-modal-baslik { text-align: center; font-size: 18px; font-weight: 700; color: #1e293b; padding: 0 24px 18px; }
.tkvm-modal-icerik { padding: 0 24px 8px; color: #475569; font-size: 14px; line-height: 1.6; }
.tkvm-modal-icerik .tkvm-uyari-satir { display: flex; gap: 8px; padding: 10px 12px; background: #fef9c3; border: 1px solid #fde68a; border-radius: 8px; margin-bottom: 8px; color: #854d0e; font-size: 13px; line-height: 1.5; }
.tkvm-modal-icerik .tkvm-uyari-satir::before { content: '⚠'; flex-shrink: 0; }
.tkvm-modal-icerik .tkvm-bilgi { font-size: 13px; color: #64748b; padding: 12px 14px; background: #f8fafc; border-radius: 8px; margin-top: 12px; line-height: 1.6; }
.tkvm-modal-icerik .tkvm-oneriler { margin-top: 14px; }
.tkvm-modal-icerik .tkvm-oneri-baslik { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; padding-left: 2px; }
.tkvm-modal-icerik .tkvm-oneri { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; margin-bottom: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; cursor: pointer; transition: background 0.15s, transform 0.1s; text-align: left; }
.tkvm-modal-icerik .tkvm-oneri:hover { background: #bbf7d0; }
.tkvm-modal-icerik .tkvm-oneri:active { transform: scale(0.98); }
.tkvm-modal-icerik .tkvm-oneri-tarih { font-size: 14px; font-weight: 700; color: #166534; }
.tkvm-modal-icerik .tkvm-oneri-detay { display: flex; justify-content: space-between; align-items: center; }
.tkvm-modal-icerik .tkvm-oneri-gece { font-size: 12px; color: #15803d; font-weight: 600; background: #dcfce7; padding: 3px 8px; border-radius: 6px; }
.tkvm-modal-icerik .tkvm-oneri-tutar { font-size: 15px; font-weight: 700; color: #16a34a; }
.tkvm-modal-buton { padding: 18px 24px 24px; }
.tkvm-modal-buton button { width: 100%; padding: 12px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; color: #fff; transition: background 0.15s, transform 0.1s; }
.tkvm-modal-buton button:active { transform: scale(0.98); }
.tkvm-modal.basari .tkvm-modal-buton button { background: #16a34a; }
.tkvm-modal.basari .tkvm-modal-buton button:hover { background: #15803d; }
.tkvm-modal.uyari .tkvm-modal-buton button { background: #d97706; }
.tkvm-modal.uyari .tkvm-modal-buton button:hover { background: #b45309; }
@media (max-width: 480px) {
    .tkvm-modal-overlay { padding: 0; align-items: flex-end; }
    .tkvm-modal { max-width: 100%; border-radius: 16px 16px 0 0; }
}

/* ===== Mini takvim (rezervasyon kutusu: müsaitlik/fiyat gösteren tarih seçici) ===== */
.mini-takvim { position: absolute; top: 100%; left: 0; margin-top: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 999; display: none; width: 320px; overflow: hidden; }
.mini-baslik { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.mini-ay-yil { font-size: .95rem; font-weight: 700; color: var(--primary); }
.mini-baslik button { width: 28px; height: 28px; border: none; background: transparent; font-size: 14px; cursor: pointer; border-radius: 8px; color: var(--primary); transition: background .15s, color .15s; }
.mini-baslik button.mini-ok:hover { background: var(--accent); color: #fff; }
.mini-kapat { display: none; width: auto !important; height: 26px !important; padding: 0 8px; font-size: 11px !important; font-weight: 600; background: transparent !important; color: var(--muted) !important; border: 1px solid var(--border) !important; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px; }
.mini-gun-baslik { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.mini-gun { position: relative; text-align: center; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--primary); border-radius: 6px; cursor: pointer; overflow: hidden; border: .5px solid #f5f5f5; }
.mini-gun:hover { background: #f0fdf4; }
.mini-gun.bos { cursor: default; border-color: transparent; }
.mini-gun.bos:hover { background: transparent; }
.mini-gun.mini-gecmis { opacity: .3; cursor: not-allowed; }
.mini-gun.mini-gecmis:hover { background: transparent; }
.mini-gun.mini-gecmis .mini-no { color: #b3aeae; }
.mini-gun.mini-dolu { background: #fecaca; cursor: not-allowed; }
.mini-gun.mini-dolu .mini-no { color: #b91c1c; }
.mini-gun.mini-gecis-tarih .mini-no { color: var(--primary); }
.mini-gun.mini-opsiyon { background: #fef9c3; cursor: not-allowed; }
.mini-gun.mini-opsiyon .mini-no { color: #8e8412; }
.mini-gun.mini-firsat { background: #bbf7d0; }
.mini-gun.mini-firsat .mini-no { color: #166534; }
.mini-gun.mini-fiyatsiz { opacity: 1; cursor: not-allowed; }
.mini-gun.secili-gun { background: #86efac !important; }
.mini-gun.secili-gun .mini-no, .mini-gun.secili-gun .mini-fiyat { color: #166534 !important; }
.mini-gun.mini-secim-giris, .mini-gun.mini-secim-cikis { position: relative; }
.mini-gun.mini-secim-giris::after, .mini-gun.mini-secim-cikis::after { content: ''; position: absolute; inset: 0; background: #86efac; z-index: 1; }
.mini-gun.mini-secim-giris::after { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.mini-gun.mini-secim-cikis::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.mini-gun.mini-secim-giris .mini-no, .mini-gun.mini-secim-cikis .mini-no,
.mini-gun.mini-secim-giris .mini-fiyat, .mini-gun.mini-secim-cikis .mini-fiyat { position: relative; z-index: 2; color: #166534 !important; }
.mini-gun.mini-gecis-tarih { cursor: pointer; }
.mini-gun.mini-gecis-tarih::before { content: ''; position: absolute; inset: 0; background: var(--gecis-renk); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 1; }
.mini-gun .mini-no { font-size: 13px; font-weight: 700; z-index: 2; position: relative; line-height: 1; }
.mini-gun .mini-fiyat { font-size: 9px; color: #888; z-index: 2; position: relative; line-height: 1; margin-top: 2px; }

/* Çıkış mini-takvimi sağ sütunda; kutudan taşmasın diye sağa hizala */
.rez-tarih .tkvm-field:last-child .mini-takvim { left: auto; right: 0; }

@media (max-width: 480px) {
    .mini-takvim { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; margin-top: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.15); z-index: 3000; }
    .mini-kapat { display: inline-flex !important; align-items: center; justify-content: center; }
    .mini-baslik { padding: 14px 16px; }
    .mini-grid { padding: 8px; }
}
