/* ============================================================
   LAYOUT GENERAL
   ============================================================ */

.poptcar-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.poptcar-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.poptcar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.poptcar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ============================================================
   FORMULARIO DE BÚSQUEDA
   ============================================================ */

.poptcar-box label {
    font-weight: 600;
    margin-top: 8px;
    display: block;
    font-size: 14px;
}

.poptcar-box input[type="text"],
.poptcar-box input[type="number"],
.poptcar-box input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all .2s ease;
    box-sizing: border-box;
}

.poptcar-box input:focus {
    outline: none;
    border-color: #005bbb;
    box-shadow: 0 0 0 2px rgba(0,91,187,0.2);
}

.poptcar-row {
    display: flex;
    gap: 10px;
}

.poptcar-row > div {
    flex: 1;
}

/* ============================================================
   BOTONES
   ============================================================ */

.poptcar-btn-main {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: #005bbb;
    color: #fff;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
    font-weight: 600;
}

.poptcar-btn-main:hover {
    background: #014a96;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.poptcar-btn-main:active {
    transform: scale(0.97);
}

/* efecto al hacer tap (clase que agregamos desde JS) */
.poptcar-btn-animate {
    transform: scale(0.94) !important;
}

/* Botón secundario genérico (por si lo necesitás) */
.poptcar-btn-secondary {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
    border: 2px solid #005bbb;
    background: #fff;
    color: #005bbb;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s ease;
}

.poptcar-btn-secondary:hover {
    background: #e8f1ff;
}

/* ============================================================
   MAPA
   ============================================================ */

.poptcar-map-box {
    flex: 1;
    min-width: 260px;
}

#poptcar-map {
    width: 100%;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f0f0;
}

/* ============================================================
   RESULTADOS (TARJETAS TIPO UBER)
   ============================================================ */

.poptcar-results {
    margin-top: 20px;
}

.poptcar-card.poptcar-result {
    display: flex;
    gap: 14px;
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    margin-bottom: 16px;
    align-items: center;
    box-sizing: border-box;
}

.poptcar-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.poptcar-info {
    flex: 1;
}

.poptcar-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
}

.poptcar-info p {
    margin: 3px 0;
    color: #444;
    font-size: 14px;
}

/* Animación al entrar */
.poptcar-animate-in {
    animation: poptcarFadeInUp .25s ease-out;
}

@keyframes poptcarFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   POPUP DE PAGO
   ============================================================ */

.poptcar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none; /* por defecto oculto, JS usa fadeIn */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.poptcar-modal-box {
    width: 92%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box;
}

.poptcar-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.poptcar-modal-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.poptcar-modal-box p {
    margin: 4px 0;
    font-size: 14px;
}

/* contenedor de botones de pago */
.poptcar-pay-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .poptcar-wrap {
        flex-direction: column;
    }

    .poptcar-card.poptcar-result {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .poptcar-thumb {
        width: 100%;
        height: 160px;
    }

    .poptcar-info {
        width: 100%;
    }
}
