/* === Base styles for mobile-first === */


.vacation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("/assets/img/vacation_background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 -37px;
    opacity: 0.35;
    z-index: -1;
}


.available::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("/assets/img/available_background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 -58px;
    opacity: 0.55;
    z-index: -1;
}

.action-button {
    font-size: 12px;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
}

.price {
    color: #131F3B;
    padding: 10px 20px;
    background-color: white;
    font-weight: bold;
    font-size: 12px !important;
    border-radius: 4px;
    border: solid 1px #131F3B;
}

.bgimgser {
    background-color: #131F3B;
    background-image: none;
    /* restaurée ici */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 300px;
    /* adapté pour mobile */
    width: 100%;
}

@media (min-width: 751px) {
    .bgimgser {
        background-image: url("/assets/img/new.png");
        /* restaurée ici */
        height: 400px;
        /* hauteur plus grande sur desktop */
    }
}


.select2.select2-container .select2-selection--multiple {
    height: auto;
    padding: 0;
    padding-inline: 10px;
    min-height: 55px;
    border-color: #0C2C90;
    border-radius: 5px;
}

.shadow {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-image: url(./assets/img/searchimg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.end {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.selectcolor option {
    color: #0C2C90 !important;
}

.pt-100 {
    margin-top: 0;
}

@media (min-width: 1026px) {
    .pt-100 {
        margin-top: -112px !important;
    }
}

.custom-pt {
    top: 0;
    position: relative;
}

@media (min-width: 751px) and (max-width: 1200px) {
    .custom-pt {
        top: 40px;
    }
}

.selectcolor select {
    color: white !important;
}

.card-container {
    border: 1px solid #131F3B;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    background-color: #f7f7f7;
}

.image-container img {
    height: 150px;
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.separator {
    margin: 0;
    border-color: #131F3B;
}

.title-section {
    text-align: center;
    padding: 10px 0;
    background-color: #131F3B;
    color: white;
    max-width: 100%;
    overflow: hidden;
}

.title-link {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4em;
    text-align: center;
}

.title-link:hover {
    color: #F1F1F1;
}

.btn-primary {
    background-color: #131F3B;
    box-shadow: none;
    color: white;
    border: 1px solid #131F3B;
}

.btn-primary:focus,
.btn-primary:hover {
    background-color: white;
    box-shadow: none;
    color: #131F3B;
    border: 1px solid #131F3B;
}

.btn-primary.add-btn {
    background-color: #7CF6D1;
    box-shadow: none;
    color: #131F3B;
    border: 1px solid #131F3B;
}

.btn-primary.add-btn:focus,
.btn-primary.add-btn:hover {
    background-color: white;
    box-shadow: none;
    color: #131F3B;
    border: 1px solid #131F3B;
}

.price-action-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #f1f1f1;
}

.card-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.fs-lg-3 {
    font-size: 1rem;
}

.fs-lg-2 {
    font-size: 1.25rem;
}

@media (min-width: 992px) {
    .fs-lg-3 {
        font-size: 1.5rem !important;
    }

    .fs-lg-2 {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 1200px) {
    .fs-xl-3 {
        font-size: 1.5rem !important;
    }

    .fs-xl-2 {
        font-size: 1.75rem !important;
    }
}

.pay {
    color: #131F3B;
}

.paytotel {
    color: #131F3B;
    font-weight: bold;
}

.unavailable {
    height: 60px;
}

.spacer {
    height: 34px;
    background-color: white;
}

.image-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    /* pour garder le cercle si nécessaire */
    display: inline-block;
}

.ellipsis-text {
    display: block;
    /* ou inline-block si besoin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* ou fixe si tu veux contrôler la largeur */
}


.zoom-inside {
    transition: transform 0.3s linear;
    display: block;
}

.image-wrapper:hover .zoom-inside,
.image-container:hover .zoom-inside,
.avatar-wrapper:hover .zoom-inside {
    transform: scale(1.1);
}

.avatar-wrapper {
    overflow: hidden;
    display: inline-block;
    position: relative;
    border-radius: 50%;
}


.image-container {
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.large-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 7px;
    right: -5px;
    background: white;
    border-radius: 50%;
    padding: 0px;
    font-size: 20px;
    color: #1DA1F2;
    box-shadow: 0 0 0 2px white;
}

.avatar-img {
    width: 64px;
    height: 64px;
    max-width: unset;
}

.btnup {
    border: 1px solid white;
    margin-top: 15px;
    width: max-content;
}

.btnup:hover {
    background-color: white;
    color: #131F3B !important;
}

.input-border-color {
    border-color: #E9E9E9;
}

.hidden {
    display: none !important;
}

.offset-position {
    position: relative;
    left: 34px;
}

.translation-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.input-groupone label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: white;
}

.input-boxone,
.input-boxtwo,
.input-boxthree {
    border: 3px solid #6BF2D2;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    background-color: #131F3B;
    color: white;
    width: 100%;
    height: 38px;
}

.input-boxones {
    width: 120px;
}

.input-boxone.action {
    text-align: center;
    width: 100%;
}

.input-boxone.action:hover {
    background-color: #6BF2D2;
    color: #131F3B;
    transition: 1s;
}

.translation-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.partner-logo-box {
    border: 1px solid white;
    border-radius: 10px;
    padding: 7px;
    width: 84px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-box img {
    width: 76px;
    height: 23px;
}

.translation-partner p {
    font-size: 14px;
}

.translation-bg-img {
    display: none;
}

.translation-title {
    font-size: 14px;
    max-width: 100%;
}

.translation-subtitle {
    font-size: 11px;
    max-width: 100%;
}

.input-group label {
    font-size: 13px;
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .translation-wrapper {
        padding: 0 40px;
    }

    .input-boxone {
        width: 220px;
    }

    .input-boxtwo,
    .input-boxthree {
        width: 160px;
    }

    .input-boxones {
        width: 1px;
    }

    .input-boxone.action {
        width: 200px;
    }

    .translation-bg-img {
        display: block;
        top: 20%;
        right: -30px;
        transform: rotate(-4deg);
        max-width: 40%;
    }

    .translation-title {
        font-size: 18px;
    }

    .translation-subtitle {
        font-size: 13px;
    }

    .partner-logo-box {
        width: 80px;
        height: 35px;
    }

    .partner-logo-box img {
        width: 72px;
        height: 20px;
    }

    .translation-partner p {
        font-size: 15px;
    }
}

/* Modernized filter selects under hero (Sworn services) */
/* Keep mechanics intact; purely visual improvements */
.translation-inputs {
    gap: 16px;
    justify-content: flex-start;
}

.translation-inputs .input-groupone {
    flex: 1 1 240px;
    min-width: 220px;
}

/* Base select styles (override previous dark style for better contrast) */
.translation-inputs select.input-boxone:not(.action),
.translation-inputs select.input-boxtwo,
.translation-inputs select.input-boxthree {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #FFFFFF;
    color: #0C2C90;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    height: 54px;
    padding: 0 44px 0 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* Custom dropdown arrow using inline SVG for broad support */
.translation-inputs select.input-boxone:not(.action),
.translation-inputs select.input-boxtwo,
.translation-inputs select.input-boxthree {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23131F3B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Hover and focus states */
.translation-inputs select.input-boxone:not(.action):hover,
.translation-inputs select.input-boxtwo:hover,
.translation-inputs select.input-boxthree:hover {
    border-color: #94A3B8;
}

.translation-inputs select.input-boxone:not(.action):focus,
.translation-inputs select.input-boxtwo:focus,
.translation-inputs select.input-boxthree:focus {
    outline: none;
    border-color: #0C2C90;
    box-shadow: 0 0 0 3px rgba(12, 44, 144, 0.15);
}

/* Labels remain white over dark hero */
.translation-inputs .input-groupone label {
    color: #FFFFFF;
    font-weight: 600;
}

/* Ensure selects use full width of their group for better space usage */
.translation-inputs .input-groupone select {
    width: 100%;
}

/* Responsive enhancements */
@media (min-width: 768px) {
    .translation-inputs {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .translation-inputs {
        gap: 24px;
    }

    .translation-inputs .input-groupone {
        flex: 0 1 280px;
        min-width: 260px;
    }
}

/* Keep action variant logic intact */
.input-boxone.action {
    background-color: #6BF2D2;
    color: #000;
    border: 0;
    height: 54px;
    border-radius: 12px;
    font-size: 15px;
}

.input-boxone.action:hover {
    background-color: #fff;
    color: #131F3B;
}

.btn-lg {
    padding: 14px 29px;
    border-radius: 4px;
}


.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 999;
}

.drawer {
    position: fixed;
    top: 5rem;
    right: 0;
    width: min(92vw, 420px);
    max-height: 520px;
    background: #ffff;
    color: #131F3BFF;
    /* border-radius: .75rem 0 0 .75rem; */
    box-shadow: -2px 0 16px rgba(0, 0, 0, .35);
    transform: translateX(105%);
    transition: transform .4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #131F3B;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.drawer-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: white;
    padding: .35rem;
    border-radius: .5rem;
    cursor: pointer;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, .08);
}


.drawer-body {
    padding: 1rem;
    overflow: auto;
    font-size: .95rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}


.tip-box {

    /* padding: .9rem; */
    margin-bottom: 1rem;
}

.tip-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .4rem 0;
}


.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.btn-outline {
    display: inline-block;
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    text-decoration: none;
    border-radius: .5rem;
    font-size: .9rem;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}


@media (max-width: 768px) {
    .drawer {
        top: 1.25rem;
        width: min(96vw, 440px);
        max-height: 90vh;
        border-radius: .5rem;
    }
}