/* AL BADI V8 — PREMIUM ACCOMMODATION SELECTOR */

.ab-acc-v8{
    --ink:#0c1b2a;
    --muted:#6e7a86;
    --line:rgba(12,27,42,.10);
    --soft:#f6f8fa;
    --white:#fff;

    max-width:1180px;
    margin:0 auto;
    padding:30px 20px 72px;
    color:var(--ink);
}

.ab-acc-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:28px;
    align-items:end;
    margin-bottom:28px;
}

.ab-acc-kicker{
    display:block;
    margin-bottom:8px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    opacity:.55;
}

.ab-acc-head h2{
    max-width:720px;
    margin:0;
    font-size:clamp(28px,4vw,48px);
    line-height:1.02;
    letter-spacing:-.04em;
}

.ab-acc-head p{
    max-width:650px;
    margin:14px 0 0;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}

.ab-acc-modes{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:20px;
}

.ab-acc-mode{
    position:relative;
    padding:20px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    cursor:pointer;
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.ab-acc-mode:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 35px rgba(12,27,42,.07);
}

.ab-acc-mode.is-active{
    border-color:rgba(12,27,42,.38);
    box-shadow:0 14px 40px rgba(12,27,42,.08);
}

.ab-acc-mode strong{
    display:block;
    margin-bottom:5px;
    font-size:15px;
}

.ab-acc-mode span{
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.ab-acc-panel{
    padding:24px;
    border:1px solid var(--line);
    border-radius:26px;
    background:#fff;
    box-shadow:0 18px 55px rgba(12,27,42,.06);
}

.ab-acc-fields{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.ab-acc-field{
    display:grid;
    gap:7px;
}

.ab-acc-field--wide{
    grid-column:span 2;
}

.ab-acc-field label{
    font-size:11px;
    font-weight:750;
    color:#4d5a66;
}

.ab-acc-field input,
.ab-acc-field select,
.ab-acc-field textarea{
    width:100%;
    min-height:48px;
    padding:11px 13px;
    border:1px solid var(--line);
    border-radius:13px;
    outline:none;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-size:13px;
    transition:border-color .2s ease,box-shadow .2s ease;
    box-sizing:border-box;
}

.ab-acc-field textarea{
    min-height:105px;
    resize:vertical;
}

.ab-acc-field input:focus,
.ab-acc-field select:focus,
.ab-acc-field textarea:focus{
    border-color:rgba(12,27,42,.38);
    box-shadow:0 0 0 4px rgba(12,27,42,.045);
}

.ab-acc-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:18px;
}

.ab-acc-btn{
    min-height:48px;
    padding:0 19px;
    border:0;
    border-radius:14px;
    background:var(--ink);
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:transform .2s ease,opacity .2s ease;
}

.ab-acc-btn:hover{
    transform:translateY(-1px);
}

.ab-acc-btn:disabled{
    cursor:not-allowed;
    opacity:.45;
    transform:none;
}

.ab-acc-results{
    margin-top:26px;
}

.ab-acc-results__head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:14px;
}

.ab-acc-results__head h3{
    margin:0;
    font-size:20px;
    letter-spacing:-.02em;
}

.ab-acc-results__head span{
    color:var(--muted);
    font-size:11px;
}

.ab-acc-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}

.ab-hotel{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.ab-hotel:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 42px rgba(12,27,42,.08);
}

.ab-hotel.is-selected{
    border-color:rgba(12,27,42,.45);
}

.ab-hotel__image{
    position:relative;
    aspect-ratio:16/10;
    overflow:hidden;
    background:#eef1f3;
}

.ab-hotel__image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ab-hotel__placeholder{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#7d8994;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
}

.ab-hotel__body{
    padding:17px;
}

.ab-hotel__stars{
    margin-bottom:7px;
    font-size:10px;
    letter-spacing:.08em;
    opacity:.6;
}

.ab-hotel h4{
    margin:0;
    font-size:16px;
    line-height:1.25;
}

.ab-hotel__location{
    margin:7px 0 14px;
    color:var(--muted);
    font-size:11px;
}

.ab-hotel__choose{
    width:100%;
    min-height:42px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}

.ab-hotel.is-selected .ab-hotel__choose{
    background:var(--ink);
    color:#fff;
}

.ab-acc-room-panel{
    margin-top:18px;
    padding:20px;
    border-radius:20px;
    background:var(--soft);
}

.ab-acc-room-panel[hidden]{
    display:none;
}

.ab-acc-room-panel h3{
    margin:0 0 15px;
    font-size:17px;
}

.ab-acc-note{
    margin-top:10px;
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
}

.ab-acc-status{
    padding:24px;
    border:1px dashed rgba(12,27,42,.16);
    border-radius:20px;
    background:#fafbfc;
    text-align:center;
}

.ab-acc-status strong{
    display:block;
    margin-bottom:6px;
    font-size:14px;
}

.ab-acc-status p{
    max-width:520px;
    margin:0 auto;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}

.ab-acc-feedback{
    margin-top:13px;
    padding:11px 13px;
    border-radius:12px;
    background:#f3f5f7;
    color:#53606b;
    font-size:11px;
    line-height:1.5;
}

.ab-acc-feedback[hidden]{
    display:none;
}

@media(max-width:900px){
    .ab-acc-head{
        grid-template-columns:1fr;
    }

    .ab-acc-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ab-acc-fields{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .ab-acc-v8{
        padding:22px 14px 90px;
    }

    .ab-acc-modes,
    .ab-acc-grid,
    .ab-acc-fields{
        grid-template-columns:1fr;
    }

    .ab-acc-field--wide{
        grid-column:auto;
    }

    .ab-acc-panel{
        padding:17px;
        border-radius:20px;
    }

    .ab-acc-actions{
        display:grid;
    }

    .ab-acc-btn{
        width:100%;
    }
}

@media(prefers-reduced-motion:reduce){
    .ab-acc-mode,
    .ab-hotel,
    .ab-acc-btn{
        transition:none!important;
    }
}

/* V8_ACCOMMODATION_TRIP_META */
#ab-my-trip .ab-trip-item__meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

#ab-my-trip .ab-trip-item__meta span{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(12,27,42,.045);
    color:#66727d;
    font-size:10px;
    line-height:1.2;
}

#ab-my-trip .ab-trip-item__bottom strong{
    text-align:right;
}
