/* ═══════════════════════════════════════════════════════════════
   travel/travel.css — styles spécifiques Airbooky Travel
   Base : ../assets/css/stylenew.css (color.css + navbar.css inclus)
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

/* ── Page wrapper ───────────────────────────────────────────── */
.tv-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
    min-height: 100vh;
}
.tv-results-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

/* ── Kicker badge ───────────────────────────────────────────── */
.tv-kicker {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--couleurPrimaire);
    background: rgba(255,90,95,.08);
    border-radius: 999px;
    padding: .35rem .75rem;
    margin-bottom: .8rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.tv-hero-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.tv-hero-head h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--couleur-texte);
    margin: 0 0 .8rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.tv-hero-head h1 span { color: var(--couleurPrimaire); }
.tv-hero-head p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #666;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

/* ── Search card ────────────────────────────────────────────── */
.tv-search-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 16px 40px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}
.tv-search-card form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
@media (max-width: 820px) {
    .tv-search-card form { grid-template-columns: 1fr 1fr; }
    .tv-search-card form .tv-field:first-child,
    .tv-search-card form .tv-submit { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .tv-search-card form { grid-template-columns: 1fr; }
    .tv-search-card { padding: 1.25rem; }
}

.tv-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    position: relative;
}
.tv-field label {
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #555;
    margin-left: .25rem;
    margin-bottom: .2rem;
}
.tv-field input,
.tv-field select {
    background: #f7f7f7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 1rem;
    height: 48px;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--couleur-texte);
    outline: none;
    transition: all .2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.tv-field input:focus,
.tv-field select:focus { 
    background: #fff;
    border-color: var(--couleurPrimaire);
    box-shadow: 0 0 0 4px rgba(255,56,92,0.15); 
}
.tv-field input::placeholder { color: #a0a0a0; font-weight: 500; }

/* Guest control */
.tv-guest-control {
    display: flex;
    background: #f7f7f7;
    border: 1px solid transparent;
    border-radius: 12px;
    align-items: center;
    padding: 0 .4rem;
    height: 48px;
    transition: all .2s;
}
.tv-guest-control:focus-within {
    background: #fff;
    border-color: var(--couleurPrimaire);
    box-shadow: 0 0 0 4px rgba(255,56,92,0.15);
}
.tv-guest-btn {
    background: #fff;
    border: 1px solid #eaeaea;
    cursor: pointer;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--couleur-texte);
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tv-guest-btn:hover {
    border-color: #ccc;
    background: #fdfdfd;
}
.tv-guest-control input {
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    padding: 0;
    -moz-appearance: textfield;
}
.tv-guest-control input::-webkit-outer-spin-button,
.tv-guest-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tv-guest-control input:focus { box-shadow: none; border: none; background: transparent; }

/* Autocomplete */
.tv-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #efefef;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    padding: .3rem 0;
}
.tv-autocomplete li {
    list-style: none;
    padding: .6rem 1rem;
    cursor: pointer;
    font-size: .85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--couleur-texte);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: background .12s;
}
.tv-autocomplete li:hover { background: var(--couleur-background-input); }
.tv-autocomplete li svg { opacity: .35; flex-shrink: 0; }

.tv-submit {
    background: var(--couleurPrimaire);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 48px;
    padding: 0 1.6rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    white-space: nowrap;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(255,56,92,0.25);
}
.tv-submit:hover { 
    background: #e02f4f; 
    box-shadow: 0 6px 16px rgba(255,56,92,0.3);
    transform: translateY(-1px);
}

/* ── Platform pills ──────────────────────────────────────────── */
.tv-platform-pills {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.tv-pill {
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 20px;
    background: #f8f8f8;
    color: #888;
    border: 1.5px solid #efefef;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.tv-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tv-pill.airbnb  .dot { background: #ff385c; }
.tv-pill.booking .dot { background: #003580; }
.tv-pill.soon    .dot { background: #ddd; }

/* ── Steps section ───────────────────────────────────────────── */
.tv-steps {
    margin-top: 3.5rem;
    text-align: center;
}
.tv-steps h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--couleur-texte);
    margin: 0 0 .4rem;
}
.tv-steps > p {
    font-family: 'Montserrat', sans-serif;
    color: #888;
    font-size: .88rem;
    margin: 0 0 2rem;
}
.tv-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}
.tv-step {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #efefef;
    padding: 1.6rem 1.2rem;
    text-align: left;
}
.tv-step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--couleurPrimaire);
    margin-bottom: .8rem;
}
.tv-step-icon { 
    color: var(--couleurPrimaire);
    margin-bottom: 1.25rem; 
    line-height: 1; 
}
.tv-step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--couleur-texte);
    margin: 0 0 .3rem;
}
.tv-step-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* ── Results: recap bar ──────────────────────────────────────── */
.tv-recap {
    background: #fff;
    border: 1.5px solid #efefef;
    border-radius: 12px;
    padding: .75rem 1.1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
}
.tv-recap-item {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.tv-recap-item svg { color: #ccc; flex-shrink: 0; }
.tv-recap-edit {
    margin-left: auto;
    font-size: .78rem;
    color: var(--couleurPrimaire);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Filters row ─────────────────────────────────────────────── */
.tv-filters {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
}
.tv-filter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #ccc;
    margin-right: .2rem;
}
.tv-filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    background: #f8f8f8;
    border: 1.5px solid #efefef;
    border-radius: 20px;
    padding: .28rem .8rem;
    cursor: pointer;
    color: #777;
    transition: all .15s;
}
.tv-filter-btn:hover { border-color: var(--couleurPrimaire); color: var(--couleurPrimaire); }
.tv-filter-btn.active {
    background: var(--couleurPrimaire);
    border-color: var(--couleurPrimaire);
    color: #fff;
}
.tv-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.tv-sort label {
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    color: #ccc;
    white-space: nowrap;
}
.tv-sort select {
    background: var(--couleur-background-input);
    border: none;
    border-radius: 8px;
    padding: .32rem .6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    color: var(--couleur-texte);
    cursor: pointer;
    outline: none;
}

/* ── Stats line ──────────────────────────────────────────────── */
.tv-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    color: #aaa;
    font-weight: 600;
}
.tv-stats strong { color: var(--couleur-texte); }

/* ── Cards grid ──────────────────────────────────────────────── */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.1rem;
}
.tv-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #efefef;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.tv-card:hover {
    box-shadow: 0 8px 30px rgba(15,23,42,.1);
    transform: translateY(-2px);
}
.tv-card-img {
    position: relative;
    height: 195px;
    background: var(--couleur-background-input);
    overflow: hidden;
    flex-shrink: 0;
}
.tv-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.tv-card:hover .tv-card-img img { transform: scale(1.04); }

.tv-platform-badge {
    position: absolute;
    top: .6rem; left: .6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    padding: .22rem .55rem;
    border-radius: 20px;
    color: #fff;
    letter-spacing: .02em;
}
.tv-platform-badge.airbnb  { background: #ff385c; }
.tv-platform-badge.booking { background: #003580; }

.tv-card-body {
    padding: .85rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .22rem;
}
.tv-card-location {
    font-family: 'Montserrat', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #ccc;
}
.tv-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--couleur-texte);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.tv-card-meta {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: .1rem;
}
.tv-card-meta span {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    color: #bbb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .2rem;
}
.tv-card-rating {
    display: flex;
    align-items: center;
    gap: .2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--couleur-texte);
    margin-top: auto;
    padding-top: .45rem;
}
.tv-card-rating svg { color: #f59e0b; }
.tv-card-rating small {
    font-weight: 500;
    color: #bbb;
    font-size: .72rem;
}
.tv-card-footer {
    padding: .7rem 1rem;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.tv-card-price {
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    color: var(--couleur-texte);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.tv-card-price small {
    font-size: .7rem;
    font-weight: 500;
    color: #bbb;
}
.tv-card-cta {
    background: var(--couleur-texte);
    color: var(--background);
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    padding: .38rem .85rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: opacity .15s;
    display: flex;
    align-items: center;
    gap: .28rem;
}
.tv-card-cta:hover { opacity: .78; }

/* ── Skeleton ────────────────────────────────────────────────── */
.tv-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.1rem;
}
.tv-skeleton-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #efefef;
    overflow: hidden;
}
.tv-sk-img {
    height: 195px;
    background: linear-gradient(90deg, #f4f4f4 25%, #ebebeb 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: tv-shimmer 1.4s infinite;
}
.tv-sk-body { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .55rem; }
.tv-sk-line {
    height: 10px; border-radius: 6px;
    background: linear-gradient(90deg, #f4f4f4 25%, #ebebeb 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: tv-shimmer 1.4s infinite;
}
.tv-sk-line.w55 { width: 55%; }
.tv-sk-line.w35 { width: 35%; }
@keyframes tv-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Empty / Error ───────────────────────────────────────────── */
.tv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}
.tv-empty-icon { font-size: 2.8rem; display: block; opacity: .25; margin-bottom: .75rem; }
.tv-empty h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--couleur-texte);
}
.tv-empty p {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    color: #bbb;
    margin: 0;
}
.tv-error {
    background: #fde7e7;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    padding: .65rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    color: #b42318;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.tv-disclaimer {
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    color: #ccc;
    text-align: center;
    line-height: 1.6;
}
