/* Pengaturan Posisi & Ukuran Kalender Event */
/* DIUBAH: dari position:absolute (mengambang sendiri di kanan/kiri-atas)
   jadi position:static -> sekarang posisinya ditentukan oleh wrapper
   "#left-bottom-stack" di peta_wisata.css (kiri-bawah, di ATAS
   panel Kategori Wisata). Jangan set top/left/right/bottom di sini lagi. */
#kalender-event {
    position: static;
    width: 210px;
    max-width: 90vw;
    z-index: 25;
    filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.3));
    animation: floating 3.2s ease-in-out infinite;
}

.calendar-card {
    background: #fdf8f0;
    border: 2px solid #e3b586;
    border-radius: 10px;
    padding: 6px;
    font-family: 'Inter', sans-serif;
}

.cal-header-btn {
    background: linear-gradient(to bottom, #609d31, #366d11);
    border: 1px solid #366d11;
    border-radius: 16px;
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}
.cal-header-btn svg {
    width: 14px;
    height: 14px;
}

.cal-event-item {
    background: #ffffff;
    border: 1px solid #e3b586;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}
.cal-event-item:hover {
    transform: translateY(-1px);
}

.cal-event-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.2);
}

.cal-event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cal-event-date {
    color: #6d4c41;
    font-weight: 800;
    font-size: 0.5rem;
    letter-spacing: 0.2px;
}

.cal-event-title {
    font-weight: 800;
    font-size: 0.65rem;
    color: #212121;
    margin: 1px 0;
    line-height: 1.1;
}

.cal-event-loc {
    color: #757575;
    font-size: 0.5rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.cal-event-map {
    color: #1a73e8;
    font-size: 0.55rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.cal-more-btn {
    background: linear-gradient(to bottom, #6fb63d, #4a821e);
    border: 1px solid #366d11;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cal-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.cal-more-icon {
    width: 26px;
    height: 26px;
    background: #e65c00;
    color: white;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.2);
}

.cal-more-text {
    flex-grow: 1;
}

.cal-more-title {
    color: #ffe0b2;
    font-weight: 800;
    font-size: 0.5rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.cal-more-subtitle {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.65rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.cal-more-arrow {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
}

.cal-footer {
    border-top: 1px dashed #c4a991;
    padding-top: 6px;
    text-align: center;
    font-size: 0.55rem;
    color: #5d4037;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   PERBESAR MODAL KALENDER SAJA (#fullCalendarSheet)
   ============================================================
   Struktur asli: #fullCalendarSheet (.bottom-sheet-overlay) adalah
   BACKDROP full-screen -> JANGAN diberi width, biar tetap menutupi
   seluruh layar dengan benar.

   Kotak dialog yang sebenarnya adalah child-nya: <div class="bottom-sheet">.
   Class ".bottom-sheet" ini dipakai bareng oleh modal lain juga
   (eventDetailSheet, ulasanSheet, sewaAngkutanSheet), jadi rule di
   bawah ini SENGAJA di-scope pakai "#fullCalendarSheet .bottom-sheet"
   supaya modal-modal lain tidak ikut berubah ukurannya.
   ============================================================ */
#fullCalendarSheet .bottom-sheet {
    width: min(92vw, 800px) !important;   /* besar, tapi masih ada jarak dari tepi layar */
    max-width: 92vw !important;
    max-height: 88vh !important;          /* tinggi juga diperbesar */
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;            /* bikin center secara horizontal */
    overflow-y: auto !important;          /* jaga-jaga kalau konten kepanjangan */
    border-radius: 20px 20px 0 0 !important;
}

#fullCalendarSheet .sheet-header h3 {
    font-size: 1.15rem;
}

/* Modal Kalender Event & Styles */
.dummy-calendar {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: center;
    table-layout: fixed !important;
}
.dummy-calendar th {
    padding: 14px 5px;
    background: #f1f3f4;
    font-size: 1rem;           /* sedikit dibesarkan agar lebih terbaca */
    color: #5f6368;
    font-weight: 700;
}

.dummy-calendar td {
    height: 120px !important;   /* dibesarkan dari 110px */
    border: 1px solid #eceff1;
    position: relative;
    cursor: pointer;
    vertical-align: top;
    padding: 0;
    transition: background 0.15s;
}
.dummy-calendar td:hover {
    background: #f8f9fa;
}
.dummy-calendar td.outside {
    background: #fafafa;
}
.dummy-calendar td.outside .cal-date-num {
    color: #cfd8dc;
}

.cal-date-num {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.95rem;         /* dibesarkan dari 0.85rem */
    font-weight: 700;
    color: #5f6368;
    z-index: 2;
}

.cal-date-icon {
    position: absolute;
    top: 28px;
    left: 4px;
    right: 4px;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cal-date-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.cal-date-icon svg {
    width: 34px;
    height: 34px;
}

.dummy-calendar td.has-event {
    background: #fff3e0;
}
.dummy-calendar td.has-event:hover {
    background: #ffe0b2;
}
.dummy-calendar td.has-event .cal-date-num {
    color: #e65c00;
    font-weight: 800;
}

/* Styles untuk Modal Kalender Event */
.event-item {
    display: flex; gap: 12px; margin-bottom: 15px; border-bottom: 1px solid #f1f3f4; padding-bottom: 15px; align-items: center;
}
.event-date {
    background: #e8f0fe; color: #1a73e8; border-radius: 8px; padding: 10px; text-align: center; min-width: 60px; flex-shrink: 0;
}
.event-date .day { font-size: 1.2rem; font-weight: bold; line-height: 1; margin-bottom: 2px;}
.event-date .month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.event-details strong { font-size: 0.95rem; display: block; margin-bottom: 4px; }
.event-details p { font-size: 0.85rem; color: #5f6368; margin: 0; line-height: 1.3; }
.kalender-tab-content { display: none; margin-top: 15px; }
.kalender-tab-content.active { display: block; }

#eventDetailSheet {
    z-index: 2100;
}

/* GAMBAR DETAIL EVENT (Biar tidak terpotong & menyesuaikan ukuran asli) */
#eventDetailSheet img,
#eventDetailFoto {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
    border-radius: 8px;
}