/* ═══════════════════════════════════════════════════════════════════════
   ALOJAMIENTOS — CSS módulo
   Ruta: css/alojamientos.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.alo-hero {
    background: #1e4f2e;
    border-radius: 16px;
    padding: 32px 28px 24px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    /* SIN overflow:hidden — necesario para que el dropdown no se corte */
}
.alo-hero__blobs {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;       /* overflow solo en el pseudo-elemento de blobs */
    pointer-events: none;
    z-index: 0;
}
.alo-hero__blobs::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: #2D6A3F;
    opacity: .45;
    top: -120px; right: -60px;
}
.alo-hero__blobs::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: #0f3320;
    opacity: .5;
    bottom: -80px; left: 5%;
}
.alo-hero__title {
    font-family: Georgia, serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    position: relative; z-index: 1;
}
.alo-hero__sub {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    margin-bottom: 20px;
    position: relative; z-index: 1;
}
.alo-hero__form {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1000;
}

/* ── Buscador ubicación (compartido con experiencias) ─────────────────── */
.ubicacion-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1000;
}
.ubicacion-search-ico {
    position: absolute;
    left: 12px;
    pointer-events: none;
    flex-shrink: 0;
}
.ubicacion-input {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 14px 12px 36px;
    font-size: 14px;
    color: #2c2825;
    outline: none;
    background: #fff;
}
.ubicacion-input::placeholder { color: #aaa; }

/* Dropdown sugerencias */
#ub-sugerencias {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #d9d4ce;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    list-style: none;
    padding: 4px 0; margin: 0;
    z-index: 99999;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
}
#ub-sugerencias.visible { display: block; }
#ub-sugerencias li {
    padding: 9px 12px;
    font-size: 13px;
    color: #2c2825;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
    transition: background .12s;
}
#ub-sugerencias li:hover { background: #f7f5f0; }
#ub-sugerencias li i { color: #9e9e96; margin-top: 2px; flex-shrink: 0; font-size: 13px; }
#ub-sugerencias .sug-main { font-weight: 600; color: #1a1a18; }
#ub-sugerencias .sug-sec  { font-size: 11px; color: #9e9e96; margin-top: 2px; }
#ub-sugerencias .sug-info { padding: 12px; text-align: center; color: #9e9e96; font-size: 12px; }

/* Radios km */
.ubicacion-radios {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}
.ubicacion-radio-label {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin-right: 4px;
}
.ubicacion-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    user-select: none;
}
.ubicacion-radio input { display: none; }
.ubicacion-radio.on {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

/* Separador sección */
.ubicacion-sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
}
.ubicacion-sep__line { flex: 1; height: 1px; background: #d9d4ce; }
.ubicacion-sep__txt {
    font-size: 12px;
    font-weight: 600;
    color: #9e9e96;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Botón buscar ─────────────────────────────────────────────────────── */
.alo-btn-buscar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0C447C;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, transform .15s;
    flex-shrink: 0;
}
.alo-btn-buscar:hover:not(:disabled) { background: #042C53; transform: translateY(-1px); }
.alo-btn-buscar:disabled { background: #3a6a9a; opacity: .6; cursor: not-allowed; }
.alo-btn__arr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    font-size: 12px;
}

/* ── Subcategorías ────────────────────────────────────────────────────── */
.alo-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.alo-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    min-width: 90px;
    background: #fff;
    border: 1.5px solid #e8e4de;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .15s, background .15s, transform .15s;
    cursor: pointer;
}
.alo-subcat-item:hover {
    border-color: #2D6A3F;
    color: #2D6A3F;
    transform: translateY(-2px);
    text-decoration: none;
}
.alo-subcat-item.active {
    border-color: #2D6A3F;
    background: #f0f8f2;
    color: #1e4f2e;
}
.alo-subcat-ico {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ef;
    border-radius: 10px;
    font-size: 20px;
}
.alo-subcat-ico img { width: 28px; height: 28px; object-fit: contain; }

/* ── Filtros extra ────────────────────────────────────────────────────── */
.alo-filtros-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 12px 16px;
    background: #f7f5f0;
    border-radius: 10px;
}
.alo-filtros-label {
    font-size: 12px;
    font-weight: 600;
    color: #9e9e96;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 4px;
}
.alo-filtro-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #d9d4ce;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.alo-filtro-pill:hover {
    border-color: #2D6A3F;
    color: #2D6A3F;
    background: #f0f8f2;
    text-decoration: none;
}
.alo-filtro-pill img { width: 16px; height: 16px; object-fit: contain; }

/* ── Cards destacados ─────────────────────────────────────────────────── */
.alo-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #ebe7e0;
    overflow: hidden;
    transition: transform .18s, border-color .18s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.alo-card:hover { transform: translateY(-4px); border-color: #2D6A3F; }

.alo-card__img-link { display: block; position: relative; overflow: hidden; }
.alo-card__img {
    width: 100%; height: 200px;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.alo-card:hover .alo-card__img { transform: scale(1.04); }

.alo-card__subcat-badge {
    position: absolute; bottom: 8px; left: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,.62); color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}
.alo-card__subcat-badge img { filter: brightness(0) invert(1); }

.alo-card__camper-badge {
    position: absolute; top: 8px; right: 8px;
    background: #fff; border-radius: 8px; padding: 4px 6px;
    display: flex; align-items: center;
}

.alo-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.alo-card__title {
    font-size: 15px; font-weight: 700; color: #1a1a18;
    margin: 0; line-height: 1.3;
}
.alo-card__title a { color: inherit; text-decoration: none; }
.alo-card__title a:hover { color: #2D6A3F; }

.alo-card__loc {
    font-size: 12px; color: #9e9e96;
    margin: 0; display: flex; align-items: center; gap: 4px;
}
.alo-card__pais {
    background: #f0f0eb; color: #666;
    font-size: 10px; padding: 1px 6px;
    border-radius: 10px; margin-left: 4px;
}
.alo-card__desc {
    font-size: 12px; color: #666;
    margin: 0; line-height: 1.5;
}

.alo-card__servicios {
    display: flex; gap: 8px;
    align-items: center; flex-wrap: wrap;
}
.alo-serv-ico {
    width: 26px; height: 26px;
    border-radius: 6px; background: #f5f3ef;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #666;
}
.alo-serv-ico img { width: 14px; height: 14px; object-fit: contain; }

.alo-card__footer {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: auto; padding-top: 10px;
    border-top: 1px solid #f0ede8;
}
.alo-card__precio { display: flex; align-items: baseline; gap: 3px; }
.alo-precio-desde  { font-size: 11px; color: #9e9e96; }
.alo-precio-num    { font-size: 20px; font-weight: 700; color: #1e4f2e; }
.alo-precio-noche  { font-size: 11px; color: #9e9e96; }
.alo-precio-consultar { font-size: 12px; color: #9e9e96; font-style: italic; }

.alo-card__btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #1e4f2e; color: #fff;
    padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.alo-card__btn:hover { background: #2D6A3F; color: #fff; text-decoration: none; }

/* ── Botón ver todos ──────────────────────────────────────────────────── */
.alo-btn-all {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600;
    padding: 14px 28px; border-radius: 40px;
    background: #1e4f2e; color: #fff;
    text-decoration: none;
    transition: background .18s, transform .15s;
}
.alo-btn-all:hover {
    background: #2D6A3F; color: #fff;
    transform: translateY(-2px); text-decoration: none;
}
.alo-btn-all__arr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.2); font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .alo-hero__form    { flex-direction: column; }
    .alo-btn-buscar    { justify-content: center; }
    .alo-subcats       { gap: 8px; }
    .alo-subcat-item   { min-width: 75px; padding: 10px; }
}
