/* ============================================
   HOME V2 — Style ArurLoc
   Tous les sélecteurs préfixés .v2-
   ============================================ */

/* --- HERO V2 --- */

.v2-hero {
    position: relative;
    min-height: 55vh;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%),
        url('../images/hero-home.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.v2-hero__content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 48px;
    width: 100%;
}

.v2-hero__title {
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.25;
    max-width: 500px;
    margin-bottom: 28px;
}

.v2-hero__title em {
    font-style: italic;
}

.v2-hero__search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.v2-hero__search > svg {
    flex-shrink: 0;
    color: var(--color-text-light);
}

.v2-hero__search-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
    min-width: 0;
}

.v2-hero__search-field::placeholder {
    color: var(--color-text-light);
}

.v2-hero__search-btn {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.v2-hero__search-btn:hover {
    opacity: 0.85;
}


/* --- FEATURED V2 --- */

.v2-featured {
    padding: 48px 0 32px;
}

.v2-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v2-featured__card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.v2-featured__img-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.v2-featured__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.v2-featured__card:hover .v2-featured__img-wrap img {
    transform: scale(1.04);
}

.v2-featured__title {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 4px;
    color: var(--color-text);
}

.v2-featured__price {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.v2-featured__price strong {
    font-weight: 700;
    color: var(--color-text);
}


/* --- SEARCHBAR V2 --- */

.v2-searchbar {
    padding: 0 0 24px;
}

.v2-searchbar__form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    max-width: 400px;
    width: 100%;
    transition: border-color 0.2s;
    background: #fff;
}

.v2-searchbar__form:focus-within {
    border-color: var(--color-primary);
}

.v2-searchbar__form > svg {
    flex-shrink: 0;
    color: var(--color-text-light);
}

.v2-searchbar__field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
    background: transparent;
    min-width: 0;
}

.v2-searchbar__field::placeholder {
    color: var(--color-text-light);
}

.v2-searchbar__btn {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.v2-searchbar__btn:hover {
    opacity: 0.85;
}


/* --- FILTERS V2 --- */

.v2-filters {
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--color-border);
}

.v2-filters__row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.v2-filters__row::-webkit-scrollbar {
    display: none;
}

/* Quand un dropdown custom-select est ouvert, laisser le menu sortir de la ligne */
.v2-filters__row:has(.custom-select--open) {
    overflow: visible;
}

.v2-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.v2-filter:hover {
    border-color: var(--color-text);
}

.v2-filter--active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 119, 182, 0.04);
}

.v2-filter svg {
    flex-shrink: 0;
}

/* Select filtres */
.v2-filter--select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.v2-filter--submit {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    font-weight: 600;
    transition: opacity 0.2s;
}

.v2-filter--submit:hover {
    opacity: 0.85;
}


/* --- SPLIT VIEW V2 --- */

.v2-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: auto;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    gap: 24px;
}

.v2-split__list {
    padding: 0;
    overflow-y: auto;
    max-height: 480px;
}

.v2-split__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.v2-split__header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.v2-split__count {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.v2-split__fav {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.v2-split__fav:hover {
    color: #e74c3c;
}

.v2-split__card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.v2-split__card:hover {
    background: var(--color-bg-light);
}

.v2-split__card-img {
    width: 140px;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.v2-split__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-split__card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.v2-split__card-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-split__card-type {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0 0 4px;
}

.v2-split__card-rating {
    font-size: 13px;
    color: var(--color-star);
    margin-bottom: 4px;
}

.v2-split__card-rating span {
    color: var(--color-text-light);
    margin-left: 4px;
}

.v2-split__card-details {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0 0 4px;
}

.v2-split__card-price {
    font-size: 14px;
    margin: 0;
}

.v2-split__card-price strong {
    font-weight: 700;
}

/* Lien "voir plus" */
.v2-split__more {
    padding: 16px 0 8px;
}

.v2-split__more-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.v2-split__more-link:hover {
    text-decoration: underline;
}

/* Thumbnails */
.v2-split__thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0 8px;
}

.v2-split__thumb {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.v2-split__thumb:hover {
    opacity: 0.8;
}

.v2-split__thumbs-more {
    font-size: 13px;
    color: var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
}

/* Map */
.v2-split__map-wrap {
    position: relative;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
}

.v2-split__map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Map markers */
.v2-map-marker {
    background: none;
    border: none;
}

.v2-map-marker span {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.v2-map-marker--active span {
    background: #333;
    transform: scale(1.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Booking widget overlay */
.v2-split__booking {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 50;
}

.v2-split__booking h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-split__booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.v2-split__booking-dates input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text);
    background: #fff;
    outline: none;
}

.v2-split__booking-dates input:focus {
    border-color: var(--color-primary);
}

.v2-split__booking-btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}


/* --- DESTINATIONS V2 --- */

.v2-destinations {
    padding: 56px 0;
}

.v2-destinations__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.v2-destinations__header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.v2-destinations__header a {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.v2-destinations__header a:hover {
    text-decoration: underline;
}

.v2-destinations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.v2-dest-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.v2-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.v2-dest-card:hover img {
    transform: scale(1.04);
}

.v2-dest-card__name {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


/* --- FAVORITES V2 --- */

.v2-favorites {
    padding: 40px 0;
    background: var(--color-bg-light);
}

.v2-favorites__header {
    margin-bottom: 16px;
}

.v2-favorites__header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.v2-favorites__placeholder {
    padding: 40px;
    text-align: center;
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    font-size: 15px;
}


/* --- REVIEWS V2 --- */

.v2-reviews {
    padding: 56px 0;
}

.v2-reviews h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}

.v2-reviews__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.v2-review-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.v2-review-card:hover {
    box-shadow: var(--shadow-md);
}

.v2-review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.v2-review-card__content {
    flex: 1;
    min-width: 0;
}

.v2-review-card__content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.v2-review-card__stars {
    color: var(--color-star);
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.v2-review-card__content p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0 0 4px;
}

.v2-review-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}


/* --- PLACEHOLDER IMAGE --- */

.v2-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-img-placeholder::after {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235A6B7C' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.v2-img-placeholder--sm::after {
    width: 28px;
    height: 28px;
}

/* --- EMPTY STATE --- */

.v2-split__empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--color-text-light);
}

.v2-split__empty p:first-child {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px;
}

.v2-split__empty p:last-child {
    font-size: 13px;
    margin: 0;
}


/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .v2-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-destinations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-split {
        grid-template-columns: 1.2fr 1fr;
        padding: 20px 16px 32px;
    }

    .v2-split__booking {
        width: 240px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .v2-hero {
        min-height: 40vh;
    }

    .v2-hero__content {
        padding: 40px 24px;
    }

    /* Featured */
    .v2-featured__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .v2-featured {
        padding: 32px 0 24px;
    }

    /* Filters */
    .v2-filters__row {
        padding-bottom: 4px;
    }

    /* Split view */
    .v2-split {
        grid-template-columns: 1fr;
        padding: 16px 16px 24px;
    }

    .v2-split__list {
        max-height: none;
    }

    .v2-split__map-wrap {
        min-height: 280px;
        height: 280px;
    }

    .v2-split__map {
        min-height: 280px;
    }

    .v2-split__booking {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin: 16px 0;
        border-radius: 12px;
    }

    /* Destinations */
    .v2-destinations__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .v2-dest-card {
        aspect-ratio: 16 / 9;
    }

    /* Reviews */
    .v2-reviews__grid {
        grid-template-columns: 1fr;
    }
}
