/**
 * NajemiCamper - Availability Calendar Styles
 */

/* Calendar Container */
.ncb-frontend {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Camper Selector */
.ncb-camper-select-wrap {
    margin-bottom: 24px;
}

.ncb-camper-select-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ncb-camper-select-outer {
    position: relative;
    max-width: 320px;
}

.ncb-camper-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.15s;
}

.ncb-camper-select:focus {
    outline: none;
    border-color: #ef4444;
}

.ncb-camper-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
}

/* Calendar Panels Container */
.ncb-calendar-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .ncb-calendar-panels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ncb-calendar-panels {
        grid-template-columns: 1fr;
    }
}

/* Month Panel */
.ncb-month-panel {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.ncb-cal-title {
    background: #0f172a;
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.ncb-cal-grid {
    padding: 12px;
}

/* Days Header */
.ncb-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ncb-cal-days-header span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 0;
}

/* Days Grid */
.ncb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Day Cell */
.ncb-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: default;
    min-height: 48px;
}

.ncb-day.empty {
    background: transparent;
}

.ncb-day.past {
    background: #f1f5f9;
    color: #94a3b8;
}

.ncb-day.available {
    background: #f0fdf4;
    color: #15803d;
}

.ncb-day.booked {
    background: #fef2f2;
    color: #dc2626;
}

.ncb-day.blocked {
    background: #f1f5f9;
    color: #94a3b8;
}

.ncb-day-num {
    font-size: 14px;
    font-weight: 700;
}

.ncb-day-price {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}

/* Navigation */
.ncb-multi-cal-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ncb-cal-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s;
}

.ncb-cal-nav:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* Legend */
.ncb-cal-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ncb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ncb-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.ncb-dot.available {
    background: #22c55e;
}

.ncb-dot.booked {
    background: #ef4444;
}

/* Note */
.ncb-cal-note {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 12px;
}

/* Error */
.calendar-error {
    text-align: center;
    color: #dc2626;
    padding: 40px 20px;
    font-size: 14px;
}

/* Single camper mode (no selector) */
.ncb-camper-panel.active {
    display: block;
}

.ncb-camper-panel {
    display: none;
}

.ncb-camper-panel.active {
    display: block;
}
