/* Apartamento Reservas – Frontend Styles */

#ar-booking-widget {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
}

.ar-step-title {
    font-size: 1.3em;
    margin-bottom: 6px;
    color: #1a1a1a;
}
#ar-booking-widget .ar-subtitle,
#ar-booking-widget .ar-times-info {
    color: #666 !important;
    font-size: 0.9em !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}



/* Calendar */
#ar-calendar-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ar-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ar-cal-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 1.2em;
    color: #444;
    transition: background .2s;
}
.ar-cal-nav button:hover { background: #f5f5f5; }
#ar-month-label {
    font-weight: 600;
    font-size: 1.1em;
    text-transform: capitalize;
    color: #1a1a1a;
}
#ar-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    text-align: center;
    overflow: hidden;
}
.ar-day-header {
    font-size: 0.7em;
    font-weight: 600;
    color: #888;
    padding: 4px 2px;
    text-transform: uppercase;
    text-align: center;
}
.ar-day {
    padding: 4px 2px;
    border-radius: 8px;
    cursor: default;
    font-size: 0.9em;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    line-height: 1.2;
}
.ar-day.ar-saturday {
    cursor: pointer;
    font-weight: 600;
}
.ar-day.ar-saturday:hover:not(.ar-booked):not(.ar-past) {
    background: #e8f4f8;
    color: #0077aa;
}
.ar-day.ar-booked { background: #fdecea !important; color: #c0392b !important; cursor: not-allowed !important; }
.ar-day.ar-not-saturday.ar-booked { background: #fdecea !important; color: #c0392b !important; }
.ar-day.ar-past { color: #ccc; cursor: not-allowed; }
.ar-day.ar-selected-start, .ar-day.ar-selected-end {
    background: #0077aa;
    color: #fff;
    font-weight: 700;
}
.ar-day.ar-in-range {
    background: #e0f0fa;
    color: #004d73;
}
.ar-day.ar-empty { visibility: hidden; }

/* Legend */
.ar-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8em;
    color: #666;
}
.ar-legend-item { display: flex; align-items: center; gap: 6px; }
.ar-dot {
    width: 12px; height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.ar-dot-free { background: #e8f4f8; border: 1px solid #0077aa; }
.ar-dot-booked { background: #fdecea; border: 1px solid #c0392b; }
.ar-dot-selected { background: #0077aa; }

/* Dates box */
.ar-dates-box {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
}
.ar-date-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.ar-date-row > div { flex: 1; }
.ar-date-row > div span { font-size: 1em; color: #333; }
.ar-arrow { color: #888; font-size: 1.4em; }

/* Price box */
.ar-price-box {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
    margin-bottom: 16px;
}
.ar-price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95em;
}
.ar-deposit-row { color: #0077aa; font-weight: 600; }

/* Buttons */
.ar-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all .2s;
    font-weight: 600;
}
.ar-btn-primary {
    background: #0077aa;
    color: #fff;
}
.ar-btn-primary:hover { background: #005f8a; }
.ar-btn-secondary {
    background: #f0f0f0;
    color: #444;
}
.ar-btn-secondary:hover { background: #e0e0e0; }
.ar-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Step 2 form */
.ar-summary-bar {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #004d73;
    display: flex;
    gap: 12px;
    align-items: center;
}
.ar-summary-bar a { color: #0077aa; margin-left: auto; }
.ar-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ar-field { display: flex; flex-direction: column; gap: 6px; }
.ar-field label { font-size: 0.85em; font-weight: 600; color: #444; }
.ar-field input, .ar-field select, .ar-field textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95em;
    transition: border .2s;
    font-family: inherit;
}
.ar-field input:focus, .ar-field select:focus, .ar-field textarea:focus {
    outline: none;
    border-color: #0077aa;
}
.ar-field-full { grid-column: 1 / -1; }

/* Payment */
#ar-payment-element { margin: 16px 0; }
#ar-deposit-info {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #5d4037;
}
.ar-error {
    background: #fdecea;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9em;
    margin-top: 12px;
}

/* Confirmation */
.ar-confirmation {
    text-align: center;
    padding: 40px 20px;
}
.ar-checkmark { font-size: 3em; margin-bottom: 16px; }
.ar-confirmation h3 { font-size: 1.5em; color: #1a1a1a; margin-bottom: 12px; }
.ar-confirmation-sub { color: #666; font-size: 0.9em; margin-top: 8px; }

/* Loading */
.ar-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}
.ar-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #0077aa;
    border-radius: 50%;
    animation: ar-spin .7s linear infinite;
}
@keyframes ar-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .ar-form-grid { grid-template-columns: 1fr; }
    .ar-date-row { flex-wrap: wrap; }
    .ar-form-actions { flex-direction: column; }
    .ar-form-actions .ar-btn { width: 100%; }
}


/* Day price */
.ar-day-price {
    font-size: 0.62em !important;
    color: #0077aa;
    font-weight: 500;
    margin-top: 1px;
    line-height: 1;
}
.ar-day.ar-selected-start .ar-day-price,
.ar-day.ar-selected-end .ar-day-price {
    color: rgba(255,255,255,0.85);
}

.ar-day-num {
    display: block;
    line-height: 1.2;
}
