/* --- SEASONALITY BAR WIDGET STYLES --- */

/* Main container */
#seasonality-chart-wrapper {
    width: 100%;
    padding: 20px 0;
}

#seasonality-chart-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Season color classes */
.season-low-season   { background: #d6c9c0; height: 25%; min-height: 30px; }
.season-mid-season   { background: #b9a89b; height: 50%; min-height: 40px; }
.season-high-season  { background: #a48e82; height: 75%; min-height: 50px; }
.season-peak-season  { background: #927c70; height: 100%; min-height: 60px; }

.color-text {
    color: rgba(0,0,0,0.6) !important;
}

.seasonality-chart-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.seasonality-chart-header h4 {
    margin: 0;
}

.seasonality-chart-header .room-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.seasonality-chart-header .room-selector-label {
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

.seasonality-chart-header .room-selector {
    min-width: 120px;
    width: auto;
}

.seasonality-main-wrapper {
    position: relative;
}

.seasonality-inner {
    width: calc(100% - 160px);
    margin: 0 auto;
}

.seasonality-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    min-height: 80px;
    position: relative;
    padding: 10px 0 0 0;
}

.seasonality-months-wrapper {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    text-align: center;
}

.seasonality-month-item {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.seasonality-year-indicator {
    text-align: center;
}

.seasonality-item-wrapper {
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0;
    min-height: 60px;
    cursor: pointer;
}

.seasonality-item {
    width: 100%;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.seasonality-item-wrapper:hover .seasonality-item {
    opacity: 0.8;
}

.seasonality-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    padding: 0;
}

#seasonality-side-arrow-prev { left: 0px; }
#seasonality-side-arrow-next { right: 0px; }
.seasonality-side-arrow .seasonality-slick-arrow {
    width: 40px;
    height: 40px;
}

.seasonality-side-arrow .seasonality-slick-arrow path {
    fill: rgba(0,0,0,0.2);
    transition: fill 0.2s ease-in-out;
}

.seasonality-side-arrow:hover .seasonality-slick-arrow path {
    fill: rgba(0,0,0,0.45);
}
.seasonality-side-arrow:disabled,
.seasonality-side-arrow.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.5;
    background: transparent !important;
}
#seasonality-side-arrow-prev .seasonality-slick-arrow {
    transform: scaleX(-1);
}


/* --- TOOLTIP STYLES --- */
#seasonality-room-tooltip-float {
    position: fixed;
    pointer-events: none;
    background: rgba(40,40,40,0.97);
    color: #fff;
    padding: 12px 0px 0px 0px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    line-height: 1.4;
}

.tooltip-season-header {
    text-align: left;
    padding: 8px 12px;
    margin: -12px 0px 12px 0px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px 5px 0 0;
}

.tooltip-price-table {
    width: 100%;
    border-collapse: collapse;
}

.tooltip-price-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
    font-weight: bold;
    background: rgba(40, 40, 40, 0.97);
}

.tooltip-price-table th.align-right {
    text-align: right;
}

.tooltip-price-table tr {
    background-color: white;
}

.tooltip-price-table td {
    padding: 8px 12px;
    color: #000;
    font-size: 12px;
}

.tooltip-price-table td.align-right {
    text-align: right;
}

.seasonality-item-dynamic {
    background: #a48e82;
    height: 75%;
    min-height: 30px;
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* Room selector styling */
.room-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 120px;
    width: auto;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-selector:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.room-selector-label {
    font-weight: 500;
    color: #333;
}

/* Loading skeleton styles */
.seasonality-skeleton {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.seasonality-item-skeleton {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.seasonality-item-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.seasonality-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for very small screens */
@media (max-width: 600px) {
    .seasonality-chart-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .seasonality-chart-header .room-selector-wrapper {
        gap: 0.5rem;
    }

    .room-selector {
        min-width: 100px;
        font-size: 13px;
    }
}/* --- END SEASONALITY BAR WIDGET STYLES --- */
