/* Visit Reservation - Frontend Styles */
.vr-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fefefefe;
    min-height: 424px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Calendar ──────────────────────────────── */
.vr-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vr-month-label {
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.vr-nav-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.vr-nav-btn:hover {
    background: #f0f0f0;
}

.vr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 15px;
    position: relative;
}

.vr-calendar-grid > .vr-loading {
    grid-column: 1 / -1;
}

.vr-cal-header {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 0;
    color: #666;
    text-transform: uppercase;
}

.vr-cal-day {
    text-align: center;
    padding: 10px 4px;
    min-height: 50px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.vr-cal-day.vr-empty {
    border: none;
}

.vr-cal-day.vr-past {
    color: #ccc;
}

.vr-cal-day.vr-today {
    border-color: #2271b1;
}

.vr-cal-day.vr-available {
    cursor: pointer;
    background: #f0faf0;
    border-color: #46b450;
}

.vr-cal-day.vr-available:hover {
    background: #e0f5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(70, 180, 80, 0.2);
}

.vr-cal-day.vr-few-spots {
    cursor: pointer;
    background: #fff8e1;
    border-color: #f0b849;
}

.vr-cal-day.vr-few-spots:hover {
    background: #fff3cd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(240, 184, 73, 0.2);
}

.vr-cal-day .vr-day-number {
    font-weight: 600;
    display: block;
}

.vr-cal-day .vr-day-spots {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.vr-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.vr-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vr-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.vr-dot-available { background: #46b450; }
.vr-dot-few { background: #f0b849; }
.vr-dot-unavailable { background: #ccc; }

/* ── Slots Selection ───────────────────────── */
.vr-slots-section {
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	height:100%;
}

.vr-slots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.vr-slot-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vr-slot-card:hover {
    border-color: #2271b1;
    background: #f5f9ff;
}

.vr-slot-card.selected {
    border-color: #2271b1;
    background: #e8f2fd;
}

.vr-slot-time {
    font-size: 18px;
    font-weight: 600;
}

.vr-slot-meta {
    text-align: right;
    font-size: 14px;
    color: #666;
}

.vr-slot-price {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.vr-slot-price-child {
    font-size: 13px;
    color: #666;
}

/* ── Booking Form ──────────────────────────── */

/* Cacher boutons incrémentation */
.vr-people-row input[type="number"]::-webkit-outer-spin-button,
.vr-people-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.vr-people-row input[type="number"] {
    -moz-appearance: textfield;
}

.vr-booking-section {
    margin-top: 25px;
}

.vr-booking-summary {
    background: #f5f9ff;
    border: 1px solid #d1e3f6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.vr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vr-form-row {
    display: flex;
    gap: 16px;
}

.vr-form-group {
    flex: 1;
}

.vr-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.vr-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.vr-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* ── People Row (Adults / Children side by side) ─── */
.vr-people-row {
    display: flex;
    gap: 24px;
}

.vr-people-row .vr-form-group {
    flex: 1;
}

/* ── Price breakdown ─────────────────────────── */
.vr-price-breakdown {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
}

.vr-spots-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.vr-spots-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #368b3d;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vr-spots-btn:hover {
    background: #47b950;
}

.vr-spots-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.vr-spots-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.vr-spots-control input {
    width: 60px;
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
    height: 40px;
    box-sizing: border-box;
}

.vr-total-price {
    margin-top: 8px;
    font-size: 18px;
}

/* ── Checkbox (TOS) ──────────────────────────── */
.vr-form-checkbox {
    padding: 8px 0;
}

.vr-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.vr-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.vr-form-checkbox a {
    color: #2271b1;
    text-decoration: underline;
}

.vr-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* ── Buttons ───────────────────────────────── */
.vr-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vr-btn-primary {
    background: #2271b1;
    color: #fff;
}

.vr-btn-primary:hover {
    background: #1a5a8e;
}

.vr-btn-primary:disabled {
    background: #9fc5e5;
    cursor: not-allowed;
}

.vr-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.vr-btn-secondary:hover {
    background: #e0e0e0;
}

/* ── Confirmation ──────────────────────────── */
.vr-confirmation {
    text-align: center;
    padding: 30px 20px;
}

.vr-confirmation-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vr-confirmation h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* ── Message Pages ─────────────────────────── */
.vr-message-page {
    text-align: center;
    padding: 40px 20px;
}

.vr-message-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.vr-message-icon.vr-success { color: #46b450; }
.vr-message-icon.vr-error { color: #dc3232; }
.vr-message-icon.vr-info { color: #2271b1; }

.vr-error-detail {
    color: #dc3232;
    background: #fef1f1;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

.vr-booking-recap {
    text-align: left;
    max-width: 350px;
    margin: 20px auto 0;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
}

.vr-booking-recap ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

/* ── Calendar overlay ─────────────────────── */
.vr-calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: 6px;
}
.vr-calendar-overlay .vr-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
    color: #2271b1;
}

/* ── No dates ─────────────────────────────── */
.vr-no-dates {
    justify-content: center;
    align-items: center;
    min-height: 350px;
    text-align: center;
    color: #666;
}

/* ── Disabled overlay ────────────────────── */
.vr-disabled-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.vr-disabled-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #f0b849;
}

.vr-disabled-message {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* ── Loader ───────────────────────────────── */
@keyframes vr-spin { to { transform: rotate(360deg); } }
.vr-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: vr-spin 0.6s linear infinite;
    vertical-align: middle;
}
.vr-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}
.vr-loading .vr-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
    color: #2271b1;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
	.hided-on-mobile {
		display:none;
	}
}
@media (max-width: 600px) {
    .vr-form-row {
        flex-direction: column;
    }

    .vr-people-row {
        flex-direction: column;
        gap: 16px;
    }

    .vr-month-nav {
        font-size: 14px;
    }

    .vr-month-label {
        font-size: 16px;
    }

    .vr-cal-day {
        padding: 6px 2px;
        min-height: 40px;
        font-size: 12px;
    }

    .vr-cal-day .vr-day-spots {
        font-size: 9px;
    }
}
