/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

/* VARIABLES */
:root {
    --bg: #f6f3ee;
    --card: #ffffff;
    --primary: #8b5e3c;
    --accent: #d9a441;
    --text: #2d2d2d;
    --muted: #777;
}

/* LAYOUT */
body {
    background: linear-gradient(120deg, #f6f3ee, #ede6dc);
    color: var(--text);
}

/* SECTION */
.booking-search {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* CARD */
.search-card {
    background: var(--card);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease;
}

.search-card h1 {
    font-size: 1.8rem;
    margin-bottom: .3rem;
    color: var(--primary);
}

.subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* FORM */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

label {
    font-weight: 600;
    font-size: .9rem;
}

input {
    padding: .7rem .8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: .95rem;
    transition: border .2s, box-shadow .2s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(217,164,65,.2);
}

/* BUTTON */
.btn-primary {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), #6f4528);
    color: white;
    border: none;
    padding: .9rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .search-card {
        padding: 2rem;
    }

    .search-card h1 {
        font-size: 1.5rem;
    }
}

/* ================= RESULTS PAGE ================= */

.results {
    padding: 2rem 0 4rem;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h1 {
    color: var(--primary);
    font-size: 2rem;
}

.subtitle {
    color: var(--muted);
    margin-top: .5rem;
}

/* TITRES DE SECTION */
.section-title {
    margin: 3rem 0 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ETAT VIDE */
.empty {
    background: #fff3f3;
    color: #a33;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    max-width: 500px;
}

/* GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* CARD */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeIn .4s ease;
}

/* HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--text);
}

.badge {
    background: var(--accent);
    color: white;
    font-size: .75rem;
    padding: .25rem .6rem;
    border-radius: 999px;
}

/* PRICE */
.price {
    font-size: 1.4rem;
    font-weight: 700;
    margin: .8rem 0;
    color: var(--primary);
}

.price span {
    font-size: .8rem;
    font-weight: 400;
    color: var(--muted);
}

/* STOCK */
.stock {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: .8rem;
}

/* FORM */
.card-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.card-form label {
    font-size: .85rem;
    font-weight: 600;
}

.card-form input {
    padding: .6rem .7rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BUTTON */
.btn-primary {
    margin-top: .8rem;
    background: linear-gradient(135deg, var(--primary), #6f4528);
    color: white;
    border: none;
    padding: .7rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
/* ================= CONFIRMATION PAGE ================= */

.confirmation {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* CARD */
.confirm-card {
    background: var(--card);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem 2.8rem;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    animation: fadeIn .5s ease;
}

/* HEADER */
.confirm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirm-header .icon {
    font-size: 3rem;
}

.confirm-header h1 {
    margin-top: .5rem;
    color: var(--primary);
}

.confirm-header .subtitle {
    color: var(--muted);
    margin-top: .4rem;
}

/* DETAILS */
.confirm-details {
    background: #faf7f3;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail strong {
    color: var(--text);
}

.detail span {
    color: var(--muted);
}

.detail .price {
    font-weight: 700;
    color: var(--primary);
}

/* TRAVELERS */
.travelers h3 {
    margin-bottom: .8rem;
    color: var(--primary);
}

.travelers ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.travelers li {
    background: #f4f1ec;
    border-radius: 10px;
    padding: .7rem .9rem;
    margin-bottom: .6rem;
    display: flex;
    flex-direction: column;
    font-size: .9rem;
}

.travelers li span {
    color: var(--muted);
    font-size: .8rem;
}

/* ACTIONS */
.confirm-actions {
    margin-top: 2rem;
    text-align: center;
}

.confirm-actions .btn-primary {
    padding: .9rem 1.4rem;
}
/* ================= TRAVELLERS PAGE ================= */

.travellers {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

/* CARD */
.travellers-card {
    background: var(--card);
    width: 100%;
    max-width: 720px;
    padding: 2.5rem 2.8rem;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

/* HEADER */
.travellers-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.travellers-header h1 {
    color: var(--primary);
}

.travellers-header .subtitle {
    color: var(--muted);
    margin-top: .4rem;
}

/* PERSON BLOCK */
.person-block {
    background: #faf7f3;
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 2rem;
}

.person-block h3 {
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
}

/* INPUTS */
.form-group input {
    padding: .65rem .75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: .95rem;
    transition: border .2s, box-shadow .2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(217,164,65,.2);
}

/* ACTIONS */
.form-actions {
    text-align: center;
    margin-top: 1rem;
}

/* BUTTON SUCCESS */
.btn-success {
    background: linear-gradient(135deg, #2e9f6b, #247a53);
    color: white;
    border: none;
    padding: .9rem 1.6rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
