/* ================================================================
   Makana Ferry — Frontend Travel Rates Styles
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --mkr-statia: #1565C0;
    --mkr-saba: #2E7D32;
    --mkr-maarten: #F9A825;
    --mkr-kitts: #C62828;
    --mkr-orange: #F57C00;
    --mkr-navy: #1A237E;
    --mkr-cell-bg: #1565C0;
    --mkr-border: #FFD600;
    --mkr-shadow: 0 6px 32px rgba(0, 0, 0, .10);
    --mkr-radius: 16px;
}

.mkr-front-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px 40px;
}

/* ===== Outer Card ===== */
.mkr-front-card {
    background: #fff;
    border: 3px solid var(--mkr-border);
    border-radius: var(--mkr-radius);
    box-shadow: var(--mkr-shadow);
    margin-bottom: 28px;
    overflow: hidden;
    animation: mkrFadeUp 0.5s ease both;
}

.mkr-front-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Table Base ===== */
.mkr-front-table {
    border-collapse: separate;
    border-spacing: 3px;
    min-width: 960px;
    width: 100%;
    padding: 8px;
}

/* ===== Corner ===== */
.mkr-fc-corner {
    background: #fff;
    width: 90px;
    min-width: 90px;
    text-align: center;
    border: 3px solid var(--mkr-border);
    border-radius: 10px;
    padding: 8px 4px;
    vertical-align: middle;
}

.mkr-fc-to {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #F57C00;
    letter-spacing: .5px;
    text-align: right;
    padding-right: 6px;
    line-height: 1.4;
}

.mkr-fc-from {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #1565C0;
    letter-spacing: .5px;
    text-align: left;
    padding-left: 6px;
    line-height: 1.4;
}

.mkr-fc-divider {
    display: block;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, #1565C0, #F57C00);
    border-radius: 2px;
    margin: 5px auto;
    transform: rotate(-10deg);
}

/* ===== Destination header ===== */
.mkr-fc-dest {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 14px 8px;
    color: #fff;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
}

/* ===== Passenger header ===== */
.mkr-fc-pax-head {
    text-align: center;
    padding: 8px 4px;
}

.mkr-fc-adult {
    background: #fff3e0;
}

.mkr-fc-child {
    background: #fce4ec;
}

.mkr-fc-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}

.mkr-fc-adult-pill {
    background: var(--mkr-orange);
}

.mkr-fc-child-pill {
    background: #E64A19;
}

.mkr-pax-icon-emoji {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.mkr-pax-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
}

/* ===== Trip type header ===== */
.mkr-fc-trip {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #555;
    padding: 6px 4px;
    background: #fafafa;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== Origin column ===== */
.mkr-fc-origin {
    text-align: center;
    border-radius: 8px;
    padding: 6px 4px;
    min-width: 72px;
}

.mkr-fc-origin span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1.3;
    padding: 4px;
}

/* ===== Data Cells ===== */
.mkr-fc-cell {
    text-align: center;
    border-radius: 8px;
    padding: 8px 4px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    cursor: default;
}

.mkr-fc-adult-cell {
    background: #1565C0;
}

.mkr-fc-child-cell {
    background: #1976D2;
}

.mkr-fc-price {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Hover highlight */
.mkr-fc-row:hover .mkr-fc-cell {
    filter: brightness(1.15);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(21, 101, 192, .3);
    z-index: 1;
    position: relative;
}

/* No-service */
.mkr-fc-noservice {
    background: #f5f5f5;
    color: #ccc;
    text-align: center;
    font-size: 20px;
    border-radius: 8px;
}

/* ===== Bottom Panels ===== */
.mkr-front-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    animation: mkrFadeUp 0.6s ease both;
    animation-delay: 0.1s;
}

.mkr-front-info-card {
    background: #eef2fb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.mkr-front-info-header {
    background: var(--mkr-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 20px;
    letter-spacing: .5px;
    text-align: center;
}

/* -- Departure Taxes -- */
.mkr-front-tax-list {
    padding: 12px 16px 4px;
}

.mkr-front-tax-head-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    padding: 4px 8px 10px;
    border-bottom: 2px solid #d0d8ee;
    margin-bottom: 8px;
}

.mkr-front-tax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.mkr-front-tax-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    flex: 1;
}

.mkr-front-tax-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--mkr-navy);
    white-space: nowrap;
}

.mkr-front-tax-note {
    font-size: 11px;
    color: #667;
    padding: 8px 16px 12px;
    font-style: italic;
    border-top: 1px solid #d0d8ee;
    margin: 4px 0 0;
}

/* -- Baggage -- */
.mkr-front-baggage-body {
    padding: 16px 20px;
}

.mkr-bag-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mkr-navy);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0d8ee;
}

.mkr-bag-item {
    font-size: 13px;
    color: #333;
    margin: 5px 0;
}

.mkr-bag-extra-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.mkr-bag-meta {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin: 4px 0;
}

/* ===== Footer Notes ===== */
.mkr-front-notes {
    background: #eef2fb;
    border-radius: 12px;
    padding: 18px 28px;
    text-align: center;
    animation: mkrFadeUp 0.7s ease both;
    animation-delay: 0.2s;
}

.mkr-front-notes p {
    margin: 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ===== Animations ===== */
@keyframes mkrFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .mkr-front-panels {
        grid-template-columns: 1fr;
    }

    .mkr-front-table-scroll::after {
        content: '← Scroll to see more →';
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        padding: 6px 0 10px;
        font-style: italic;
    }

    .mkr-fc-price {
        font-size: 11px;
    }

    .mkr-fc-dest {
        font-size: 11px;
        letter-spacing: .5px;
    }
}