/*
 * booking-addon.css
 * Extension du style.css slmtravel pour le module réservation
 * NE redéfinit PAS les variables — hérite de style.css
 * Seulement les composants spécifiques au tunnel de réservation
 */

/* ── Stepper (étapes tunnel) ──────────────────────────────── */
.bk-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 18px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.bk-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-light);
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
}
.bk-step.active { color: var(--primary-color); font-weight: 600; }
.bk-step.done   { color: var(--primary-dark); }
.bk-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--white);
    flex-shrink: 0;
}
.bk-step.active .bk-step-num { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.bk-step.done   .bk-step-num { background: #d4edda; color: var(--success); border-color: var(--success); }
.bk-step-sep    { width: 40px; height: 1px; background: var(--border-color); flex-shrink: 0; }

/* ── Listing hôtels (complète .hotel-card existant) ───────── */
.bk-hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ── Filtres listing ──────────────────────────────────────── */
.bk-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.bk-filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.bk-filter-group { display: flex; flex-direction: column; gap: 4px; }
.bk-filter-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Prix "à partir de" ───────────────────────────────────── */
.bk-price-from   { font-size: .75rem; color: var(--text-light); }
.bk-price-amount { font-size: 1.15rem; font-weight: 700; color: var(--primary-color); }

/* ── Note rating pill ─────────────────────────────────────── */
.bk-rating-pill {
    background: var(--primary-color);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius);
}

/* ── Tags (halal, étoiles) ────────────────────────────────── */
.bk-tag {
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}
.bk-tag.halal { background: #e6f7f6; color: var(--primary-color); }
.bk-tag.star  { background: #fef9e7; color: #c9962e; }
.bk-tag.info  { background: #e8f4fd; color: #1a6eb5; }

/* ── Fiche hôtel hero ─────────────────────────────────────── */
.bk-hotel-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: var(--dark-color);
}
.bk-hotel-hero img { width: 100%; height: 100%; object-fit: cover; }
.bk-hotel-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.65));
}
.bk-hotel-hero-content {
    position: absolute;
    bottom: 28px; left: 0; right: 0;
    padding: 0 calc((100% - 1200px) / 2 + 20px);
    color: #fff;
}
@media (max-width: 1240px) {
    .bk-hotel-hero-content { padding: 0 20px; }
}
.bk-hotel-hero-name {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.bk-hotel-stars svg { width: 14px; height: 14px; fill: var(--secondary-color); }
.bk-hotel-stars { display: flex; gap: 3px; margin-bottom: 6px; }

/* ── Galerie ──────────────────────────────────────────────── */
.bk-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 4px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
}
.bk-gallery img   { width: 100%; height: 100%; object-fit: cover; }
.bk-gallery-main  { grid-row: 1 / 3; }

/* ── Badges halal ─────────────────────────────────────────── */
.bk-halal-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-halal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e6f7f6;
    border: 1px solid rgba(32,178,170,.2);
    border-radius: var(--radius);
    padding: 7px 12px;
    font-size: .82rem;
    color: var(--primary-dark);
    font-weight: 500;
}
.bk-halal-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Récapitulatif sidebar (sticky) ───────────────────────── */
.bk-recap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.bk-recap-hotel-img { aspect-ratio: 16/9; overflow: hidden; }
.bk-recap-hotel-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-recap-body      { padding: 20px; }
.bk-recap-hotel-name{ font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.bk-recap-room-name { font-size: .85rem; color: var(--text-light); margin-bottom: 14px; }
.bk-recap-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.bk-recap-date-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px;
}
.bk-recap-date-label { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.bk-recap-date-val   { font-size: .9rem; font-weight: 600; }
.bk-recap-sep        { border: none; border-top: 1px solid var(--border-color); margin: 14px 0; }
.bk-recap-line       { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; color: var(--text-light); }
.bk-recap-total      { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; border-top: 2px solid var(--border-color); padding-top: 12px; margin-top: 4px; }
.bk-recap-total .price { font-size: 1.4rem; color: var(--primary-color); }
.bk-recap-cancel {
    font-size: .78rem;
    color: var(--text-light);
    padding: 10px 16px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ── Page réservation — formulaire ────────────────────────── */
.bk-form-section    { margin-bottom: 28px; }
.bk-form-title      { font-size: .95rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.bk-grid-2          { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-form-section .form-group { display: flex; flex-direction: column; gap: 5px; }
.bk-form-section label { font-size: .82rem; font-weight: 500; color: var(--text-color); }
.bk-form-section input,
.bk-form-section select,
.bk-form-section textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    width: 100%;
    transition: border .15s;
}
.bk-form-section input:focus,
.bk-form-section select:focus,
.bk-form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32,178,170,.12);
}
.bk-form-hint { font-size: .75rem; color: var(--text-light); }
span.req      { color: var(--danger); margin-left: 2px; }

/* ── Confirmation ─────────────────────────────────────────── */
.bk-confirmation {
    text-align: center;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    margin: 48px auto;
}
.bk-confirmation-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #d4edda;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--success);
}
.bk-confirmation-ref {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 12px 0;
    letter-spacing: .04em;
    color: var(--dark-color);
}

/* ── Espace client "mes réservations" ─────────────────────── */
.bk-booking-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    transition: var(--transition);
}
.bk-booking-item:hover { box-shadow: var(--shadow-lg); }
.bk-booking-thumb { width: 140px; flex-shrink: 0; }
.bk-booking-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-booking-body  { flex: 1; padding: 18px 20px; }

/* ── Statuts réservation ──────────────────────────────────── */
.bk-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
.bk-status-pending   { background: #fff3cd; color: #856404; }
.bk-status-confirmed { background: #d4edda; color: #155724; }
.bk-status-cancelled { background: var(--bg-light); color: var(--text-light); }
.bk-status-refused   { background: #f8d7da; color: #721c24; }
.bk-status-checked_in{ background: #cce5ff; color: #004085; }
.bk-status-completed { background: #d4edda; color: #155724; }

/* ── Page hôtel — le layout est géré inline dans hotel.php ── */
/* .container du site (max-width:1200px) fait le travail */

/* ── Note avis ────────────────────────────────────────────── */
.bk-rating-stars button {
    width: 40px; height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.bk-rating-stars button.active,
.bk-rating-stars button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .bk-hotel-layout     { grid-template-columns: 1fr; }
    .bk-hotels-grid      { grid-template-columns: 1fr; }
    .bk-grid-2           { grid-template-columns: 1fr; }
    .bk-gallery          { grid-template-rows: 160px 160px; }
    .bk-hotel-hero       { height: 240px; }
    .bk-hotel-hero-name  { font-size: 1.4rem; }
    .bk-stepper          { gap: 0; }
    .bk-step             { padding: 0 8px; font-size: .75rem; }
    .bk-step-label       { display: none; }
    .bk-recap            { position: static; }
    .bk-booking-thumb    { width: 100px; }
    .bk-filters-row      { flex-direction: column; }
}
