/* ==========================================================================
   SloepjesHuren Booking - Frontend Styles
   ========================================================================== */

/* Calendar */
.sh-calendar-wrapper {
    margin-bottom: 24px;
}

.sh-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sh-calendar-nav button {
    background: #1a3a5c;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sh-calendar-nav button:hover {
    background: #2e5a8a;
}

.sh-cal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
}

.sh-calendar-grid table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sh-calendar-grid th {
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.sh-calendar-grid td {
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    height: 42px;
}

.sh-calendar-grid .sh-cal-day {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.15s;
}

.sh-calendar-grid .sh-cal-day:hover {
    background: #e8f0fe;
}

.sh-calendar-grid .sh-cal-day.sh-day-past {
    color: #ccc;
    cursor: default;
}

.sh-calendar-grid .sh-cal-day.sh-day-past:hover {
    background: none;
}

.sh-calendar-grid .sh-cal-day.sh-day-booked {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sh-calendar-grid .sh-cal-day.sh-day-booked:hover {
    background: #f8d7da;
}

.sh-calendar-grid .sh-cal-day.sh-day-pending {
    background: #fff3cd;
    color: #856404;
    cursor: not-allowed;
}

.sh-calendar-grid .sh-cal-day.sh-day-pending:hover {
    background: #fff3cd;
}

.sh-calendar-grid .sh-cal-day.sh-day-available {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: pointer;
}

.sh-calendar-grid .sh-cal-day.sh-day-available:hover {
    background: #c8e6c9;
}

/* Beschikbare dagen groen via CSS (geen JS class nodig) */
.sh-calendar-grid .sh-cal-day:not(.sh-day-past):not(.sh-day-booked):not(.sh-day-pending):not(.sh-day-selected):not(.sh-day-range):not(.sh-day-no-start) {
    background: #e8f5e9;
    color: #2e7d32;
}

.sh-calendar-grid .sh-cal-day:not(.sh-day-past):not(.sh-day-booked):not(.sh-day-pending):not(.sh-day-selected):not(.sh-day-range):not(.sh-day-no-start):hover {
    background: #c8e6c9;
}

.sh-calendar-grid .sh-cal-day.sh-day-selected {
    background: #2e7d32;
    color: #fff;
}

.sh-calendar-grid .sh-cal-day.sh-day-selected:hover {
    background: #1a3a5c;
}

.sh-calendar-grid .sh-cal-day.sh-day-range {
    background: #a5d6a7;
    color: #1b5e20;
}

.sh-calendar-grid .sh-cal-day.sh-day-today {
    box-shadow: inset 0 0 0 2px #2e7d32;
}

.sh-calendar-grid .sh-cal-empty {
    background: transparent;
}

/* Legend */
.sh-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.sh-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.sh-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.sh-legend-dot.sh-available { background: #e8f5e9; border: 1px solid #66bb6a; }
.sh-legend-dot.sh-booked { background: #f8d7da; }
.sh-legend-dot.sh-pending-dot { background: #fff3cd; }
.sh-legend-dot.sh-selected { background: #2e7d32; }

/* Booking Form */
.sh-booking-widget {
    max-width: 700px;
}

.sh-booking-form {
    margin-top: 24px;
}

.sh-form-group {
    margin-bottom: 20px;
}

.sh-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
}

/* Period Options */
.sh-period-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-period-option {
    display: block;
    cursor: pointer;
}

.sh-period-option input {
    display: none;
}

.sh-period-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.sh-period-option input:checked + .sh-period-label {
    border-color: #1a3a5c;
    background: #f0f4f8;
}

.sh-period-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sh-period-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
}

/* Selected Dates */
.sh-selected-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a3a5c;
}

.sh-date-separator {
    color: #888;
    font-weight: 400;
}

/* Add-ons */
.sh-addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-addon-option {
    display: block;
    cursor: pointer;
}

.sh-addon-option input {
    display: none;
}

.sh-addon-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.sh-addon-option input:checked + .sh-addon-label {
    border-color: #1a3a5c;
    background: #f0f4f8;
}

.sh-addon-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.sh-addon-desc {
    font-size: 13px;
    color: #888;
    width: 100%;
    order: 3;
}

.sh-addon-price {
    font-weight: 700;
    color: #1a3a5c;
    white-space: nowrap;
}

.sh-addon-price small {
    font-weight: 400;
    color: #888;
}

/* Captain option */
.sh-captain-option .sh-addon-label {
    border-color: #d6e4f0;
    background: #f8fafc;
}

.sh-captain-option input:checked + .sh-addon-label {
    border-color: #1a3a5c;
    background: #e8f0fe;
}

/* Price Summary */
.sh-price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.sh-price-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.sh-price-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    margin-top: 8px;
    border-top: 2px solid #1a3a5c;
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
}

.sh-price-deposit {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* Contact Form */
.sh-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.sh-form-col {
    flex: 1;
}

.sh-booking-form input[type="text"],
.sh-booking-form input[type="email"],
.sh-booking-form input[type="tel"],
.sh-booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sh-booking-form input:focus,
.sh-booking-form textarea:focus {
    border-color: #1a3a5c;
    outline: none;
}

.sh-booking-form input.sh-error-field,
.sh-booking-form textarea.sh-error-field {
    border-color: #d9534f;
}

/* Submit Button */
.sh-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.sh-submit-btn:hover {
    background: #2e5a8a;
}

.sh-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Messages */
.sh-form-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.sh-form-message.sh-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sh-form-message.sh-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sloep Selection (multi) */
.sh-sloep-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.sh-sloep-option {
    cursor: pointer;
}

.sh-sloep-option input {
    display: none;
}

.sh-sloep-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.sh-sloep-option input:checked + .sh-sloep-card {
    border-color: #1a3a5c;
    background: #f0f4f8;
}

.sh-sloep-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.sh-sloep-name {
    font-weight: 700;
    color: #333;
    display: block;
}

.sh-sloep-persons {
    font-size: 13px;
    color: #888;
}

/* Honeypot */
.sh-hp { position:absolute; left:-9999px; }

/* Responsive */
@media (max-width: 600px) {
    .sh-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .sh-calendar-legend {
        gap: 10px;
    }

    .sh-sloep-options {
        grid-template-columns: 1fr;
    }

    .sh-period-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Calendar inline toast */
.sh-calendar-wrapper {
    position: relative;
}

.sh-calendar-toast {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #c62828;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    width: 90%;
    max-width: 340px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.sh-calendar-toast.sh-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Days that are not valid start days for selected period */
.sh-calendar-grid .sh-cal-day.sh-day-no-start {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.sh-calendar-grid .sh-cal-day.sh-day-no-start:hover {
    background: #f0f0f0;
}
