.heatPanel_wrap {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Stat row ── */
.heatPanel_statRow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.heatPanel_statCard {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.heatPanel_statCardLink {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    display: block;
}

.heatPanel_statCardLink:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
    transform: translateY(-2px);
}

.heatPanel_statLabel {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.heatPanel_statValue {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.heatPanel_statValue.green { color: #16a34a; }
.heatPanel_statValue.red   { color: #dc2626; }
.heatPanel_statValue.blue  { color: #2563eb; }

.heatPanel_statSub {
    font-size: 14px;
    color: #1a1a2e;
    margin-top: 4px;
    font-weight: 600;
}

/* ── Heat map ── */
.heatPanel_card {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.heatPanel_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.heatPanel_title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.heatPanel_sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

.heatPanel_durationForm {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.heatPanel_durationLabel {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.heatPanel_durationSelect {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 10px;
    background: #f9fafb;
    cursor: pointer;
}

.heatPanel_grid {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: flex-start;
}

.heatPanel_month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.heatPanel_monthLabel {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.heatPanel_monthWeeks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.heatPanel_cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    cursor: default;
    position: relative;
    transition: transform 0.1s;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.heatPanel_cell:hover { transform: scale(1.25); z-index: 10; }

.heatPanel_cell.no-data {
    background: #f3f4f6;
    border: 1px dashed #e0e4ea;
}

.heatPanel_cellDate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10pt;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.heatPanel_cell.no-data .heatPanel_cellDate { color: #9ca3af; text-shadow: none; }

.heatPanel_cellPrice {
    display: none;
    font-size: 9pt;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    line-height: 1;
    pointer-events: none;
}

/* Tooltip */
.heatPanel_cell::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 20;
}

.heatPanel_cell:hover::after { opacity: 1; }

/* ── Legend ── */
.heatPanel_legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.heatPanel_legendBar {
    height: 10px;
    width: 160px;
    border-radius: 5px;
    background: linear-gradient(to right, #58D95E, #C8E02A, #F5C518, #F57518);
    flex-shrink: 0;
}

/* ── Upcoming strip ── */
.heatPanel_upcomingCard {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.heatPanel_upcomingTitle {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.heatPanel_availButtons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.heatPanel_availBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    background: #f9fafb;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    text-align: center;
}

.heatPanel_availBtn:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.10);
    transform: translateY(-2px);
}

.heatPanel_availBtnDate {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.heatPanel_availBtnPrice {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.heatPanel_availBtnNights {
    font-size: 14px;
    color: #1a1a2e;
    margin-top: 2px;
    font-weight: 400;
}

a.heatPanel_cell { display: block; cursor: pointer; }

@media (max-width: 680px) {
    .heatPanel_header { flex-wrap: wrap; }
    .heatPanel_durationForm { width: 100%; }
    .heatPanel_durationSelect { flex: 1; width: 100%; padding: 12px 14px; font-size: 15px; }
    .heatPanel_durationLabel { display: none; }
    .heatPanel_sub { display: none; }
    .heatPanel_availButtons { grid-template-columns: repeat(2, 1fr); }
    .heatPanel_statRow { grid-template-columns: repeat(2, 1fr); }
    .heatPanel_grid { flex-direction: column; }
    .heatPanel_month { flex-direction: row; align-items: center; flex: none; width: 100%; }
    .heatPanel_monthLabel { width: 28px; font-size: 10px; margin-bottom: 0; flex-shrink: 0; }
    .heatPanel_monthWeeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; flex: 1; min-width: 0; }
    .heatPanel_cell { width: auto; height: auto; aspect-ratio: 1; min-width: 0; border-radius: 8px; flex-shrink: unset; display: flex !important; flex-direction: column !important; gap: 5px; justify-content: center !important; align-items: center !important; padding: 0; }
    .heatPanel_cellDate { font-size: 10px; font-weight: 600; position: static; transform: none; text-align: center; color: #fff; text-shadow: none; white-space: nowrap; line-height: 1; margin: 0; display: block; width: 100%; }
    .heatPanel_cellPrice { display: block; font-size: 13px; font-weight: 800; color: #fff; text-shadow: none; line-height: 1; text-align: center; white-space: nowrap; margin: 0; width: 100%; }
    .heatPanel_cell.no-data .heatPanel_cellDate { color: #9ca3af; }
    .heatPanel_cellBreak { display: none; }
    .heatPanel_card { padding: 18px 14px; }
}
