/**
 * Public Calendar Styles — Premium
 * Tri Sisters Travel & Tours
 */

.tris-public-calendar-section {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tris-section-header {
    margin-bottom: 20px;
}

.tris-section-heading {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
}

.tris-section-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

.tris-calendar-embed {
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    padding: 20px;
    max-width: 700px;
}

/* Override booking-frontend calendar day size for the PUBLIC calendar */
.tris-public-calendar-section .tris-calendar-embed .tris-cal-day,
.tris-calendar-embed .tris-cal-day {
    aspect-ratio: auto !important;
    min-height: 36px !important;
    max-height: 44px !important;
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.tris-public-calendar-section .tris-cal-days,
.tris-calendar-embed .tris-cal-days {
    gap: 3px !important;
}

.tris-public-calendar-section .tris-calendar-nav,
.tris-calendar-embed .tris-calendar-nav {
    margin-bottom: 12px;
}

.tris-public-calendar-section .tris-cal-header,
.tris-calendar-embed .tris-cal-header {
    margin-bottom: 6px;
    font-size: 11px;
}

.tris-cal-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
    margin-top: 16px;
}

.tris-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.tris-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tris-dot--open {
    background: #4DC8B4;
}

.tris-dot--almost {
    background: #F59E0B;
}

.tris-dot--full {
    background: #EF4444;
}

.tris-dot--closed {
    background: #D1D5DB;
}

.tris-slot-details {
    margin-top: 16px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    animation: tris-slideIn 0.3s ease-out;
}

@keyframes tris-slideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tris-slot-details h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A2E;
}

.tris-slot-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #FFFFFF;
    margin-bottom: 6px;
    font-size: 13px;
    border: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.tris-slot-detail-row:hover {
    border-color: #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tris-slot-detail-label {
    font-weight: 600;
    color: #374151;
}

.tris-slot-detail-time {
    font-size: 12px;
    color: #6B7280;
}

.tris-capacity-bar {
    width: 80px;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.tris-capacity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.tris-capacity-fill.fill-low {
    background: linear-gradient(90deg, #4DC8B4, #3BB8A4);
}

.tris-capacity-fill.fill-medium {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.tris-capacity-fill.fill-high {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

/* Responsive */
@media (max-width: 600px) {
    .tris-calendar-embed {
        padding: 16px;
    }

    .tris-cal-legend {
        gap: 12px;
        flex-wrap: wrap;
    }

    .tris-section-heading {
        font-size: 18px;
    }
}