/**
 * Seasonal Price Breakdown Modal Styles
 * Styles for the daily price breakdown modal popup
 */

/* Summary section with info icon */
.tmb-seasonal-summary { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.tmb-info-icon { 
    cursor: pointer; 
    font-size: 16px; 
    opacity: 0.7; 
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.tmb-info-icon:hover { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Modal container */
.tmb-breakdown-modal { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex
;
    align-items: center;

}

/* Modal overlay (dark background) */
.tmb-breakdown-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

/* Modal content box */
.tmb-breakdown-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 96%;
    max-height: 90vh;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: tmb-modal-slide-in 0.3s 
ease-out;
    z-index: 1;
    top: 120px;
    left: 2%;
}

/* Slide-in animation */
@keyframes tmb-modal-slide-in {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Modal header */
.tmb-breakdown-header { 
    padding: 20px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.tmb-breakdown-header h3 { 
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Close button */
.tmb-breakdown-close { 
    background: none; 
    border: none; 
    font-size: 28px; 
    cursor: pointer; 
    color: #999; 
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.tmb-breakdown-close:hover { 
    color: #333; 
}

/* Modal body with scrollable content */
.tmb-breakdown-body { 
    padding: 20px; 
    max-height: 400px; 
    overflow-y: auto; 
}

/* Individual day row */
.tmb-breakdown-row { 
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
    align-content: center;
    align-items: center;
}

 .tmb-breakdown-row .tmb-breakdown-price,.tmb-breakdown-total-price{
    text-align: right;
}


.tmb-breakdown-row span{
    margin-bottom: 0 !important;
}

.tmb-breakdown-row:hover { 
    background-color: #f9f9f9; 
}

/* Seasonal day highlighting */
.tmb-breakdown-row.tmb-seasonal-day { 
    background-color: #fff8e1; 
}

.tmb-breakdown-row.tmb-seasonal-day:hover { 
    background-color: #fff3cd; 
}

/* Date label */
.tmb-breakdown-date { 
    font-weight: 500; 
}

/* Rule name (seasonal rule title) */
.tmb-breakdown-rule { 
    color: #222 !important;
    font-size: 0.75em !important;
    font-weight: normal !important;
    display: inline-block;
    width: 100% !important;
}

/* Price for each day */
.tmb-breakdown-price { 
    font-weight: 600; 
    color: #2c3e50; 
}

/* Modal footer with total */
.tmb-breakdown-footer { 
    padding: 20px; 
    border-top: 2px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background-color: #f9f9f9;
}

.tmb-breakdown-total-label { 
    font-weight: 600; 
    font-size: 16px; 
}

.tmb-breakdown-total-price { 
    font-weight: 700; 
    font-size: 18px; 
    color: #27ae60; 
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .tmb-breakdown-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .tmb-breakdown-header h3 {
        font-size: 16px;
    }
    
    .tmb-breakdown-body {
        max-height: 300px;
    }
    
    .tmb-breakdown-row {
        padding: 10px;
    }
}

/* ============================================
   Seasonal Calendar Highlighting Styles
   Fire icon indicator for seasonal pricing dates
   ============================================ */

/* Seasonal date cell in calendar - only position for icon */
.daterangepicker td.tmb-seasonal-date {
    position: relative;
}

/* Base styles for seasonal date icons (content is set dynamically per rule) */
.daterangepicker td.tmb-seasonal-date::after {
    position: absolute;
    top: 5px;
    right: -1px;
    font-size: 7px;
    opacity: 0.9;
}

/* Responsive adjustments for calendar icon */
@media (max-width: 768px) {
    .daterangepicker td.tmb-seasonal-date::after {
        font-size: 8px;
        top: 1px;
        right: 1px;
    }
}

/* ============================================
   Seasonal Calendar Legend
   Icon explanations below date picker
   ============================================ */

.tmb-seasonal-legend {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
    margin-top: -5px;
    margin-bottom: 10px;
}

.tmb-seasonal-legend-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tmb-seasonal-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tmb-seasonal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.tmb-seasonal-legend-icon {
    font-size: 16px;
    line-height: 1;
}

.tmb-seasonal-legend-text {
    font-weight: 500;
}

/* Responsive adjustments for legend */
@media (max-width: 768px) {
    .tmb-seasonal-legend {
        margin-top: 10px;
        padding: 10px;
    }
    
    .tmb-seasonal-legend-title {
        font-size: 12px;
    }
    
    .tmb-seasonal-legend-items {
        gap: 8px;
    }
    
    .tmb-seasonal-legend-item {
        font-size: 12px;
    }
    
    .tmb-seasonal-legend-icon {
        font-size: 14px;
    }
}
