/* Homepage: Airport Transfer & Chauffeur panels.
   Loaded on every public page by layouts/public.blade.php — the theme
   stylesheets own the site look, this owns one component that must
   behave identically in all of them. */
/* ===== Transfers & Chauffeur panels (homepage) ===== */

/* Two services the site sells but used to hide behind the nav. Rendered from
   real rates (cheapest active fare / cheapest package per duration tier), so
   these cards never print a price the quote engine would refuse. */
.service-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.service-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-panel-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--primary);
}

.service-panel-title {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}

.service-panel-sub {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.service-panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-panel-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: var(--gray-100);
}

.service-route {
    font-size: 0.88rem;
    color: var(--gray-700);
}

.service-route em {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 0 0.1rem;
}

.service-panel-list strong {
    font-size: 0.95rem;
    color: var(--gray-900);
    white-space: nowrap;
}

.service-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.service-from {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.service-from strong {
    font-size: 1rem;
    color: var(--primary);
}

@media (max-width: 900px) {
    .service-duo {
        grid-template-columns: 1fr;
    }

    .service-panel {
        padding: 1.35rem;
    }
}

@media (max-width: 480px) {
    .service-panel-foot {
        /* Keep the price above its button: a "From RM50" line under the CTA
           reads as if it belongs to the next card. */
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .service-panel-foot .btn {
        width: 100%;
        justify-content: center;
    }

    .service-from {
        text-align: center;
    }
}
