/* ==========================================================================
   Buscador de combinaciones — Departamentos Los Almendros
   Reemplaza al CTA "RESERVA ONLINE" del hero (pro/_buscador_combinaciones_publico.php).
   Tarjetas blancas: el hero tiene foto de fondo y texto blanco, asi que el
   bloque va sobre una superficie clara para mantener el contraste (AA).
   ========================================================================== */

.acmb {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(12, 48, 78, .28);
    padding: 18px;
    margin: 0 auto;
    max-width: 1040px;
    color: #1b2b3a;
    text-align: left;
}

.acmb * { box-sizing: border-box; }

/* ---------- form ---------- */
.acmb-form {
    display: grid;
    grid-template-columns: 1fr 1fr 120px auto;
    gap: 10px;
    align-items: end;
}

.acmb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.acmb-lbl {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5b6b7a;
}

.acmb-inp {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font-size: .95rem;
    color: #1b2b3a;
    background: #f6f8fa;
    border: 1px solid #d7dee5;
    border-radius: 10px;
    outline: none;
}

.acmb-inp:focus {
    border-color: var(--secondary, #175b88);
    box-shadow: 0 0 0 3px rgba(23, 91, 136, .15);
}

.acmb-btn {
    min-height: 46px;
    padding: 0 22px;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: var(--primary, #0c304e);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}

.acmb-btn:hover,
.acmb-btn:focus-visible { background: var(--primary-soft, #134063); }

/* ---------- textos ---------- */
.acmb-intro,
.acmb-msg,
.acmb-aviso,
.acmb-pie { margin: 12px 0 0; font-size: .9rem; line-height: 1.5; }

.acmb-intro { color: #40525f; }
.acmb-intro strong { color: var(--primary, #0c304e); }

.acmb-msg-err { color: #8a2b2b; }
.acmb-msg-err a { color: #8a2b2b; font-weight: 700; }

.acmb-aviso { color: #8a5a12; font-size: .82rem; }

.acmb-sum {
    margin: 14px 0 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5b6b7a;
}

/* ---------- tabla ---------- */
.acmb-tbl-wrap {
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acmb-tbl { width: 100%; border-collapse: collapse; }

.acmb-tbl th {
    padding: 8px 10px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    color: #5b6b7a;
    border-bottom: 1px solid #d7dee5;
    white-space: nowrap;
}

.acmb-tbl th:last-child,
.acmb-tbl td:last-child { text-align: right; white-space: nowrap; }

.acmb-tbl td {
    padding: 14px 10px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f5;
}

.acmb-combo { display: block; font-weight: 700; color: var(--primary, #0c304e); }
.acmb-nota  { display: block; font-size: .78rem; color: #6b7a88; }

.acmb-comunes { display: block; margin-top: 6px; font-size: .76rem; color: #5b6b7a; }

.acmb-comunes-items { display: block; margin-top: 4px; }

.acmb-tag {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    font-size: .72rem;
    font-style: normal;
    color: #1b4b6b;
    background: #eaf2f8;
    border-radius: 999px;
}

/* ---------- unidad ---------- */
.acmb-unit {
    padding: 8px 0;
    min-width: 190px;
}
.acmb-unit + .acmb-unit { border-top: 1px dashed #e3e9ee; }

.acmb-unit-top { display: flex; align-items: baseline; gap: 6px; }
.acmb-unit-ref { font-weight: 700; font-size: .92rem; color: var(--primary, #0c304e); }
.acmb-unit-pax { font-size: .74rem; color: #6b7a88; }

.acmb-unit-serv {
    display: block;
    margin-top: 2px;
    font-size: .74rem;
    color: #5b6b7a;
}

.acmb-unit-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.acmb-unit-ars { font-size: .84rem; font-weight: 700; color: #1b2b3a; }

.acmb-unit-btn {
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: var(--secondary, #175b88);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.acmb-unit-btn:hover,
.acmb-unit-btn:focus-visible { background: var(--primary, #0c304e); }

/* Boton unico cuando las N unidades son del mismo tipo: el checkout las
   reserva en una sola operacion (?unidades=N) con un solo pago. */
.acmb-set-btn {
    display: block;
    margin-top: 10px;
    padding: 9px 14px;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: var(--primary, #0c304e);
    border-radius: 10px;
    text-decoration: none;
}
.acmb-set-btn:hover,
.acmb-set-btn:focus-visible { background: var(--primary-soft, #134063); }

/* ---------- total ---------- */
.acmb-total { font-weight: 800; font-size: 1rem; color: var(--primary, #0c304e); }
.acmb-total-sin { font-weight: 600; font-size: .82rem; color: #6b7a88; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .acmb-form { grid-template-columns: 1fr 1fr; }
    .acmb-btn  { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .acmb { padding: 14px; border-radius: 14px; }
    .acmb-form { grid-template-columns: 1fr; }
    .acmb-th-oculta { display: none; }
    .acmb-tbl td, .acmb-tbl th { padding-left: 4px; padding-right: 4px; }
    .acmb-unit { min-width: 0; }
}
