/* ===== VISA RUN - GOOGLE CALENDAR STYLE ===== */

.visa-step-2 h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #202124;
    letter-spacing: 0;
}

/* Wrapper */
.visa-calendar-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visa-calendar-google-wrapper {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visa-calendar-google {
    background: #fff;
    border: 1px solid #dadce0;
    width: 100%;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    overflow: hidden;
}

/* Header */
.visa-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #dadce0;
    background: #fff;
}

.calendar-month-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #202124;
}

.calendar-prev-month,
.calendar-next-month {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #5f6368;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.calendar-prev-month:hover,
.calendar-next-month:hover {
    background: #f1f3f4;
    color: #202124;
}

/* Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table thead th {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #70757a;
    padding: 6px 0;
    border-right: 1px solid #dadce0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.calendar-table thead th:last-child {
    border-right: none;
}

.calendar-table thead th:first-child {
    color: #d93025;
}

/* Cells */
.calendar-table td {
    vertical-align: top;
    border-right: 1px solid #dadce0;
    border-bottom: 1px solid #dadce0;
    width: 14.28%;
    min-height: 90px;
    height: 90px;
    padding: 0;
    position: relative;
}

.calendar-table td:last-child {
    border-right: none;
}

.calendar-table tr:last-child td {
    border-bottom: none;
}

/* Highlight cells that have a schedule */
.calendar-date-cell.has-schedule .calendar-day-num {
    color: #0C2136;
    font-weight: 700;
}

.calendar-date-cell.is-full .calendar-day-num {
    color: #70757a;
}

/* Legend */
.visa-calendar-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
    font-size: 0.78rem;
    color: #5f6368;
}

.visa-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.visa-calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* Note */
.visa-calendar-note small {
    color: #5f6368;
    font-size: 0.82rem;
}

/* Step 4 confirm summary table */
.visa-confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.visa-confirm-table tr {
    border-bottom: 1px solid #f1f3f4;
}

.visa-confirm-table tr:last-child {
    border-bottom: none;
}

.visa-confirm-table .confirm-label {
    padding: 9px 12px 9px;
    color: #5f6368;
    white-space: nowrap;
    width: 40%;
    vertical-align: top;
}

.visa-confirm-table .confirm-value {
    padding: 9px;
    color: #202124;
    font-weight: 500;
    word-break: break-word;
}
/* Cell inner wrapper (active dates) */
.calendar-date-cell {
    cursor: pointer;
    display: block;
    height: 100%;
    min-height: 90px;
    padding: 4px 2px 4px 2px;
    transition: background 0.12s;
    position: relative;
}

.calendar-date-cell:hover {
    background: #f6f9ff;
}

.calendar-date-cell.selected {
    background: #e8f0fe;
}

.calendar-date-cell.selected .calendar-day-num {
    background: #0C2136;
    color: #fff;
}

/* Day number circle */
.calendar-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 500;
    color: #202124;
    margin: 2px auto 2px;
    transition:
        background 0.12s,
        color 0.12s;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.calendar-date-cell.today .calendar-day-num {
    background: #0C2136;
    color: #fff;
    font-weight: 700;
}

.calendar-date-cell:hover .calendar-day-num {
    background: #f1f3f4;
}

.calendar-date-cell.today:hover .calendar-day-num,
.calendar-date-cell.selected .calendar-day-num {
    background: #0C2136;
    color: #fff;
}

/* Disabled / out-of-range cells */
.calendar-table td.calendar-disabled {
    opacity: 0.45;
    cursor: default;
    background: transparent;
}

.calendar-table td.calendar-disabled .calendar-day-num {
    color: #70757a;
}

/* Event chips inside cells */
.calendar-events {
    padding: 1px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 1px 5px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event-chip.chip-departure {
    background: #0C2136;
    color: #fff;
}

.calendar-event-chip.chip-full {
    background: #e8f0fe;
    color: #0C2136;
    border: 1px solid #c5d8fc;
}

.calendar-event-chip.chip-available {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #b7dfbe;
}

.calendar-event-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.7;
}

/* City bar above calendar */
.visa-calendar-city-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 6px;
}

.visa-calendar-city-bar strong {
    color: #0C2136;
    font-weight: 600;
}

/* Sidebar (right column) */
.visa-calendar-sidebar {
    flex: 0 0 34%;
    flex-shrink: 0;
    border: 1px solid #dadce0;
    
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
}

/* Placeholder state */
.calendar-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    gap: 10px;
    color: #70757a;
    min-height: 200px;
}

.calendar-sidebar-empty-icon {
    font-size: 2.2rem;
    opacity: 0.5;
}

.calendar-sidebar-empty p {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5f6368;
}

/* Content state */
.calendar-sidebar-date {
    background: #0C2136;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 12px 16px;
    line-height: 1.4;
}

.calendar-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f3f4;
}

.calendar-info-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.calendar-info-label {
    font-size: 0.68rem;
    color: #70757a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
}

.calendar-info-value {
    font-size: 0.88rem;
    color: #202124;
    font-weight: 500;
}

.calendar-info-action {
    padding: 12px 14px;
    background: #f8f9fa;
    border-top: 1px solid #dadce0;
    margin-top: auto;
}

.calendar-info-action .visa-next-step {
    width: 100%;
    background: #0C2136;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
    text-align: center;
    width: 100% !important;
}

.calendar-info-action .visa-next-step:hover:not([disabled]) {
    background: #1765cc;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.calendar-info-action .visa-next-step[disabled] {
    background: #e8eaed;
    color: #9aa0a6;
    cursor: not-allowed;
    box-shadow: none;
}

.calendar-info-action .visa-back-step {
    width: 100%;
    margin-top: 6px;
    background: none;
    color: #5f6368;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.calendar-info-action .visa-back-step:hover {
    background: #f1f3f4;
}

/* Step action row (Back + Continue / Confirm) */
.visa-step-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 720px) {
    .visa-calendar-layout {
        flex-direction: column;
    }

    .visa-calendar-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .visa-calendar-google {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .calendar-table td {
        min-height: 64px;
        height: 64px;
    }

    .calendar-date-cell {
        min-height: 64px;
    }

    .calendar-event-chip {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
}