/* ═══════════════════════════════════════════════════════════════
   La Posada — Wizard de Reservas
   Requiere Bootstrap 4 (ya cargado por BB Theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── Contenedor ──────────────────────────────────────────────── */
.laposada-wizard {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Indicador de pasos ──────────────────────────────────────── */
.wz-steps {
    align-items: center;
    margin-bottom: 2rem;
}
.wz-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.wz-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}
.wz-dot-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
    transition: color 0.3s;
}
.wz-step-line {
    height: 2px;
    background: #ddd;
    margin-bottom: 18px;
    transition: background 0.3s;
}
.wz-step-dot.active   .wz-dot        { background: #5c3a21; color: #fff; }
.wz-step-dot.active   .wz-dot-label  { color: #5c3a21; font-weight: 600; }
.wz-step-dot.done     .wz-dot        { background: #28a745; color: #fff; }
.wz-step-dot.done     .wz-dot-label  { color: #28a745; }
.wz-step-dot.done  + .wz-step-line   { background: #28a745; }

/* ── Tarjetas de servicio (paso 1) ───────────────────────────── */
.wz-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 110px;
    user-select: none;
}
.wz-service-card:hover {
    border-color: #5c3a21;
    background: #fdf6f0;
    box-shadow: 0 2px 8px rgba(92,58,33,.12);
}
.wz-service-card.selected {
    border-color: #5c3a21;
    background: #fdf6f0;
    box-shadow: 0 3px 12px rgba(92,58,33,.18);
}
.wz-service-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}
.wz-service-card strong { font-size: 0.9rem; display: block; }
.wz-service-card small  { font-size: 0.75rem; color: #888; margin-top: 2px; }

/* ── Tabs de categoría (paso 2) ──────────────────────────────── */
.wz-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wz-cat-btn.active,
.wz-cat-btn:focus {
    background: #5c3a21 !important;
    color: #fff !important;
    border-color: #5c3a21 !important;
}

/* ── Tarjeta de habitación ───────────────────────────────────── */
.wz-room-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.wz-room-card:hover {
    border-color: #5c3a21;
    box-shadow: 0 3px 10px rgba(92,58,33,.12);
}
.wz-room-card.selected {
    border-color: #5c3a21;
    box-shadow: 0 4px 14px rgba(92,58,33,.22);
}
.wz-room-thumb {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #eee;
}
.wz-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.wz-room-card:hover .wz-room-thumb img { transform: scale(1.04); }
.wz-cat-badge {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: rgba(92,58,33,.85);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.wz-check {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #5c3a21;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.wz-room-card.selected .wz-check,
.wz-resource-card.selected .wz-check { display: flex; }

.wz-room-body {
    padding: 8px 10px 10px;
}
.wz-room-body strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.wz-room-body p, .wz-room-body small { margin: 0; font-size: 0.78rem; color: #666; line-height: 1.4; }
.wz-price {
    color: #5c3a21 !important;
    font-weight: 600;
    margin-top: 4px !important;
}

/* ── Tarjeta genérica (salón / restaurante) ──────────────────── */
.wz-resource-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.wz-resource-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.wz-resource-card strong { display: block; font-size: 0.95rem; }
.wz-resource-card small  { color: #888; font-size: 0.8rem; }
.wz-resource-card:hover,
.wz-resource-card.selected {
    border-color: #5c3a21;
    box-shadow: 0 3px 10px rgba(92,58,33,.14);
}
.wz-resource-card .wz-check {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ── Formulario de fechas ────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }

/* ── Resumen (paso 4) ────────────────────────────────────────── */
#wz-resumen { font-size: 0.9rem; }
#wz-resumen strong { display: block; margin-bottom: 4px; }

/* ── Footer con botones ──────────────────────────────────────── */
.wz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

/* ── Mensaje de estado ───────────────────────────────────────── */
#wz-status { font-size: 0.9rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 575px) {
    .wz-dot-label    { display: none; }
    .wz-service-card { min-height: 90px; padding: 14px 6px; }
    .wz-service-icon { font-size: 1.8rem; }
    .wz-room-thumb   { height: 110px; }
}
