/* ===========================================
   Les P'tits Loups Booking — Frontend Styles
   Premium vacation rental booking design
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --pl-navy: #1a2744;
    --pl-navy-light: #243456;
    --pl-gold: #c8a45a;
    --pl-gold-light: #d4b56e;
    --pl-gold-dark: #a8883e;
    --pl-white: #ffffff;
    --pl-bg: #f8f6f2;
    --pl-bg-card: #ffffff;
    --pl-text: #333333;
    --pl-text-light: #777777;
    --pl-border: #e8e4dc;
    --pl-success: #27ae60;
    --pl-error: #e74c3c;
    --pl-shadow: 0 4px 24px rgba(26, 39, 68, 0.10);
    --pl-shadow-hover: 0 8px 40px rgba(26, 39, 68, 0.18);
    --pl-radius: 12px;
    --pl-radius-sm: 8px;
    --pl-font-heading: 'Playfair Display', Georgia, serif;
    --pl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── QUICKBAR (Homepage Booking Strip) ── */
.ptitsloups-quickbar {
    background: linear-gradient(135deg, var(--pl-navy) 0%, var(--pl-navy-light) 100%);
    padding: 18px 24px;
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}
.ptitsloups-quickbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(200,164,90,0.08) 0%, transparent 50%, rgba(200,164,90,0.05) 100%);
    pointer-events: none;
}
.ptitsloups-quickbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.ptitsloups-quickbar-title {
    font-family: var(--pl-font-heading);
    color: var(--pl-gold);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.ptitsloups-qb-field {
    flex: 1;
    min-width: 160px;
}
.ptitsloups-qb-field label {
    display: block;
    font-family: var(--pl-font-body);
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 500;
}
.ptitsloups-qb-field select,
.ptitsloups-qb-field input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--pl-radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--pl-white);
    font-family: var(--pl-font-body);
    font-size: 14px;
    font-weight: 500;
    transition: var(--pl-transition);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}
.ptitsloups-qb-field select:hover,
.ptitsloups-qb-field input[type="date"]:hover {
    border-color: var(--pl-gold);
    background: rgba(255,255,255,0.12);
}
.ptitsloups-qb-field select:focus,
.ptitsloups-qb-field input[type="date"]:focus {
    border-color: var(--pl-gold);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.2);
}
.ptitsloups-qb-field select option { color: var(--pl-navy); background: white; }
.ptitsloups-qb-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}
.ptitsloups-qb-price {
    text-align: center;
    min-width: 100px;
    padding: 8px 14px;
    background: rgba(200, 164, 90, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(200, 164, 90, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ptitsloups-qb-price-label {
    font-family: var(--pl-font-body);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ptitsloups-qb-price-value {
    font-family: 'Playfair Display', serif;
    color: var(--pl-gold);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.ptitsloups-qb-price-nights {
    font-family: var(--pl-font-body);
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}
.ptitsloups-qb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--pl-gold) 0%, var(--pl-gold-dark) 100%);
    color: var(--pl-white);
    border: none;
    border-radius: var(--pl-radius-sm);
    font-family: var(--pl-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pl-transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ptitsloups-qb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,164,90,0.4);
    background: linear-gradient(135deg, var(--pl-gold-light) 0%, var(--pl-gold) 100%);
}
.ptitsloups-qb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── BOOKING PAGE (Full Reservation) ── */
.ptitsloups-booking {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: var(--pl-font-body);
}
.ptitsloups-booking-header {
    text-align: center;
    margin-bottom: 40px;
}
.ptitsloups-booking-header h2 {
    font-family: var(--pl-font-heading);
    color: var(--pl-navy);
    font-size: 36px;
    margin: 0 0 8px;
}
.ptitsloups-booking-header p {
    color: var(--pl-text-light);
    font-size: 16px;
}
.ptitsloups-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Property Cards */
.ptitsloups-properties-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ptitsloups-property-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--pl-bg-card);
    border: 2px solid var(--pl-border);
    border-radius: var(--pl-radius);
    cursor: pointer;
    transition: var(--pl-transition);
}
.ptitsloups-property-card:hover {
    border-color: var(--pl-gold);
    box-shadow: var(--pl-shadow);
}
.ptitsloups-property-card.active {
    border-color: var(--pl-gold);
    background: linear-gradient(135deg, #fdf8ee 0%, #fff 100%);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.15);
}
.ptitsloups-property-card-img {
    width: 120px;
    height: 90px;
    border-radius: var(--pl-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.ptitsloups-property-card-img.placeholder {
    background: linear-gradient(135deg, var(--pl-navy) 0%, var(--pl-navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.ptitsloups-property-card-info h4 {
    margin: 0 0 4px;
    font-family: var(--pl-font-heading);
    color: var(--pl-navy);
    font-size: 17px;
}
.ptitsloups-property-card-info p {
    margin: 0;
    color: var(--pl-text-light);
    font-size: 13px;
    line-height: 1.4;
}
.ptitsloups-property-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--pl-text-light);
}
.ptitsloups-property-card-price {
    font-family: var(--pl-font-heading);
    color: var(--pl-gold-dark);
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

/* Amenities */
.ptitsloups-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    background: var(--pl-bg);
    border-radius: var(--pl-radius-sm);
}
.ptitsloups-amenity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--pl-bg-card);
    border-radius: 20px;
    font-size: 12px;
    color: var(--pl-text);
    border: 1px solid var(--pl-border);
}

/* ── CALENDAR ── */
.ptitsloups-calendar-container {
    background: var(--pl-bg-card);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    overflow: hidden;
}
.ptitsloups-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--pl-navy);
}
.ptitsloups-calendar-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--pl-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ptitsloups-calendar-nav button:hover {
    background: var(--pl-gold);
    border-color: var(--pl-gold);
}
.ptitsloups-calendar-nav-title {
    font-family: var(--pl-font-heading);
    color: var(--pl-white);
    font-size: 18px;
    font-weight: 600;
}
.ptitsloups-calendar-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.ptitsloups-calendar-month {
    padding: 16px;
}
.ptitsloups-calendar-month:first-child {
    border-right: 1px solid var(--pl-border);
}
.ptitsloups-calendar-month-title {
    text-align: center;
    font-family: var(--pl-font-heading);
    color: var(--pl-navy);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}
.ptitsloups-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
}
.ptitsloups-calendar-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--pl-text-light);
    text-transform: uppercase;
    padding: 4px 0;
}
.ptitsloups-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ptitsloups-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--pl-transition);
    color: var(--pl-text);
    position: relative;
}
.ptitsloups-calendar-day:hover:not(.blocked):not(.empty):not(.past) {
    background: rgba(200,164,90,0.15);
    color: var(--pl-gold-dark);
}
.ptitsloups-calendar-day.empty { cursor: default; }
.ptitsloups-calendar-day.past { color: #ccc; cursor: not-allowed; }
.ptitsloups-calendar-day.blocked {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
    background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(231,76,60,0.06) 3px, rgba(231,76,60,0.06) 6px);
}
.ptitsloups-calendar-day.today {
    border: 2px solid var(--pl-gold);
    font-weight: 700;
}
.ptitsloups-calendar-day.selected-start,
.ptitsloups-calendar-day.selected-end {
    background: var(--pl-gold) !important;
    color: white !important;
    font-weight: 700;
    border-radius: 50%;
}
.ptitsloups-calendar-day.in-range {
    background: rgba(200,164,90,0.15);
    border-radius: 0;
    color: var(--pl-gold-dark);
}
.ptitsloups-calendar-day.in-range.selected-start { border-radius: 50% 0 0 50%; }
.ptitsloups-calendar-day.in-range.selected-end { border-radius: 0 50% 50% 0; }
.ptitsloups-calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 14px;
    border-top: 1px solid var(--pl-border);
    font-size: 12px;
    color: var(--pl-text-light);
}
.ptitsloups-calendar-legend span::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.ptitsloups-calendar-legend .available::before { background: var(--pl-success); }
.ptitsloups-calendar-legend .blocked::before { background: #e0e0e0; }
.ptitsloups-calendar-legend .selected::before { background: var(--pl-gold); }

/* ── SUMMARY / CHECKOUT ── */
.ptitsloups-summary {
    background: var(--pl-bg-card);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.ptitsloups-summary-header {
    background: var(--pl-navy);
    padding: 20px;
}
.ptitsloups-summary-header h3 {
    margin: 0;
    font-family: var(--pl-font-heading);
    color: var(--pl-gold);
    font-size: 20px;
}
.ptitsloups-summary-body {
    padding: 24px;
}
.ptitsloups-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--pl-text);
}
.ptitsloups-summary-row.total {
    border-top: 2px solid var(--pl-navy);
    margin-top: 10px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--pl-font-heading);
}
.ptitsloups-summary-row.total .ptitsloups-summary-value {
    color: var(--pl-gold-dark);
    font-size: 28px;
}
.ptitsloups-summary-empty {
    text-align: center;
    padding: 30px;
    color: var(--pl-text-light);
    font-size: 14px;
}

/* ── CHECKOUT FORM ── */
.ptitsloups-checkout-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pl-border);
}
.ptitsloups-form-group {
    margin-bottom: 14px;
}
.ptitsloups-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pl-navy);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ptitsloups-form-group input,
.ptitsloups-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-sm);
    font-family: var(--pl-font-body);
    font-size: 14px;
    transition: var(--pl-transition);
    outline: none;
    box-sizing: border-box;
}
.ptitsloups-form-group input:focus,
.ptitsloups-form-group textarea:focus {
    border-color: var(--pl-gold);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.15);
}
.ptitsloups-form-group textarea { resize: vertical; min-height: 60px; }
.ptitsloups-pay-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--pl-gold) 0%, var(--pl-gold-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--pl-radius-sm);
    font-family: var(--pl-font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pl-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.ptitsloups-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,164,90,0.4);
}
.ptitsloups-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ptitsloups-pay-btn .spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: pl-spin 0.6s linear infinite;
    display: none;
}
.ptitsloups-pay-btn.loading .spinner { display: block; }
.ptitsloups-pay-btn.loading .btn-text { display: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.ptitsloups-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--pl-text-light);
}

/* ── SUCCESS / CANCEL PAGES ── */
.ptitsloups-result {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 50px 30px;
    background: var(--pl-bg-card);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
}
.ptitsloups-result-icon { font-size: 64px; margin-bottom: 16px; }
.ptitsloups-result h2 {
    font-family: var(--pl-font-heading);
    color: var(--pl-navy);
    font-size: 28px;
    margin: 0 0 12px;
}
.ptitsloups-result p { color: var(--pl-text-light); font-size: 15px; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .ptitsloups-booking-grid { grid-template-columns: 1fr; }
    .ptitsloups-calendar-months { grid-template-columns: 1fr; }
    .ptitsloups-calendar-month:first-child { border-right: none; border-bottom: 1px solid var(--pl-border); }
    .ptitsloups-summary { position: static; }
}
@media (max-width: 768px) {
    .ptitsloups-quickbar-inner { flex-direction: column; align-items: stretch; }
    .ptitsloups-quickbar-title { text-align: center; }
    .ptitsloups-qb-price { text-align: center; }
    .ptitsloups-booking-header h2 { font-size: 26px; }
    .ptitsloups-property-card { flex-direction: column; }
    .ptitsloups-property-card-img { width: 100%; height: 160px; }
}
