/* ---------- Mis reservas y detalle de reserva ---------- */
.bk{
    padding:36px 0 70px;
}
.bk-back{
    margin-bottom:14px;
}
.bk-back a{
    color:#0077b6;
    font-weight:600;
}
.bk-head{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:24px;
}
.bk-head h1{
    font-family:Montserrat,sans-serif;
    font-size:clamp(1.5rem,4vw,2.1rem);
}
.bk-badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:700;
    white-space:nowrap;
}
.bk-badge.is-confirmed{ background:#d1fae5; color:#065f46; }
.bk-badge.is-pending{ background:#fef3c7; color:#92400e; }
.bk-badge.is-closed{ background:#e5e7eb; color:#4b5563; }

.bk-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 380px;
    gap:28px;
    align-items:start;
}
.bk-card{
    background:white;
    border:1px solid #eef1f4;
    border-radius:20px;
    padding:24px;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    min-width:0;
}
.bk-tour{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:20px;
}
.bk-tour img,
.bk-tour-placeholder{
    width:110px;
    height:80px;
    border-radius:14px;
    object-fit:cover;
    flex-shrink:0;
}
.bk-tour-placeholder,
.bk-item-placeholder{
    background:linear-gradient(135deg,#0077b6,#90e0ef);
}
.bk-tour h2{
    font-size:1.2rem;
    overflow-wrap:anywhere;
}
.bk-tour h2 a:hover{
    color:#0077b6;
}
.bk-muted{
    color:#6b7280;
    line-height:1.5;
    overflow-wrap:anywhere;
}
.bk-details > div{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:12px 0;
    border-top:1px solid #f1f3f5;
}
.bk-details dt{
    color:#6b7280;
}
.bk-details dd{
    margin:0;
    font-weight:600;
    text-align:right;
    overflow-wrap:anywhere;
}
.bk-details .bk-total{
    background:#eef6fb;
    border-radius:12px;
    border-top:0;
    padding:14px;
    margin-top:8px;
    color:#0b4f7a;
    font-size:1.1rem;
}
.bk-details small{
    font-weight:500;
    color:#6b7280;
}
.bk-actions h3{
    font-family:Montserrat,sans-serif;
    margin-bottom:10px;
}
.bk-actions hr{
    border:0;
    border-top:1px solid #eef1f4;
    margin:20px 0 14px;
}
.bk-pay{
    width:100%;
    background:#ff7a00;
    color:white;
    border-radius:14px;
    padding:16px;
    font-size:1.02rem;
    font-weight:700;
    margin-top:14px;
    box-shadow:0 12px 22px rgba(255,122,0,.28);
}
.bk-cancel{
    width:100%;
    background:white;
    color:#b42323;
    border:1px solid #fecaca;
    border-radius:12px;
    padding:12px;
    font-weight:700;
}
.bk-cancel:hover{
    background:#fff1f1;
}
.bk-note{
    color:#6b7280;
    font-size:.85rem;
    margin:10px 0;
    line-height:1.5;
}
.bk-alert{
    background:#fff7ed;
    color:#9a3412;
    border-radius:12px;
    padding:12px 14px;
    margin:12px 0;
    line-height:1.5;
}
.bk-ok{
    background:#ecfdf5;
    color:#065f46;
    border-radius:12px;
    padding:12px 14px;
    margin:12px 0;
}
.bk-link{
    display:inline-block;
    margin-top:12px;
    color:#0077b6;
    font-weight:600;
}
.bk-empty{
    text-align:center;
    padding:60px 0;
    color:#6b7280;
}
.bk-empty p{
    margin-bottom:20px;
}
.bk-empty .btn-primary{
    display:inline-block;
}
.bk-list{
    display:grid;
    gap:16px;
}
.bk-item{
    display:flex;
    gap:16px;
    background:white;
    border:1px solid #eef1f4;
    border-radius:18px;
    padding:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
    transition:transform .15s ease, box-shadow .15s ease;
}
.bk-item:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.09);
}
.bk-item img,
.bk-item-placeholder{
    width:140px;
    height:100px;
    border-radius:12px;
    object-fit:cover;
    flex-shrink:0;
}
.bk-item-body{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.bk-item-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap;
}
.bk-item-top strong{
    overflow-wrap:anywhere;
}
.bk-item-total{
    font-weight:700;
    color:#0b4f7a;
    margin-top:auto;
}
.bk-refund{
    margin-left:8px;
    color:#c2410c;
    font-weight:600;
}

/* Avisos (mensajes flash) del sitio público */
.flash{
    margin:18px auto 0;
    padding:14px 18px;
    border-radius:14px;
    line-height:1.5;
}
.flash-success{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.flash-error{ background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.flash-info{ background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }

@media (max-width:980px){
    .bk-grid{
        grid-template-columns:minmax(0,1fr);
    }
}
@media (max-width:520px){
    .bk{
        padding:24px 0 50px;
    }
    .bk-card{
        padding:18px;
    }
    .bk-item{
        flex-direction:column;
    }
    .bk-item img,
    .bk-item-placeholder{
        width:100%;
        height:150px;
    }
    .bk-tour img,
    .bk-tour-placeholder{
        width:84px;
        height:64px;
    }
}
