﻿:root {
    --gap: 18px;
}

body {
    margin: 0;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px;
}

.hero {
    padding: 10px 0 12px;
}

.subtle {
    opacity: .88;
}

.muted {
    color: rgba(0,0,0,.75);
}

.btnrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.18);
    text-decoration: none;
    font-weight: 600;
}

.card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.hr {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 18px 0;
}

/* Town cards */
.loc-section + .loc-section {
    margin-top: 28px;
}

.loc-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #15202b;
}

.loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.loc-card {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 16px 18px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

    .loc-card:hover {
        transform: translateY(-2px);
        border-color: #0f766e;
        color: #0f766e;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
    }

    .loc-card:focus-visible {
        outline: 3px solid rgba(15, 118, 110, 0.22);
        outline-offset: 3px;
        border-color: #0f766e;
    }

.hr {
    height: 1px;
    margin: 28px 0 0;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.loc-section:last-of-type + .hr {
    display: none;
}

@media (max-width: 640px) {
    .wrap {
        padding: 24px 14px 40px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .loc-section h2 {
        font-size: 22px;
    }

    .loc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .loc-card {
        min-height: 58px;
        padding: 14px 16px;
    }
}

.grey-container {
    padding-top: 0px;
    padding-bottom: 10px;
    background: #f5f5f5;
}
h2 {
    font-size: 20px;
}

.compare-wrap {
    background: #fff;
    padding: 20px 0 30px;
    font-family: Roboto, sans-serif;
}

/* Mobile hint */
.compare-hint {
    display: none;
    font-size: 13px;
    color: #4c4c4c;
    background: #f6f7f6;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 10px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .compare-hint strong {
        font-weight: 800;
    }

    .compare-hint .arrow {
        font-weight: 900;
    }

/* Scroll container with edge fades */
.compare-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-gutter: stable both-edges;
}

    .compare-scroll::before,
    .compare-scroll::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 26px;
        pointer-events: none;
        z-index: 3;
    }

    .compare-scroll::after,
    .compare-scroll::before {
        display: none;
    }

    /* (Optional) make scrollbar visible-ish on WebKit */
    .compare-scroll::-webkit-scrollbar {
        height: 10px;
    }

    .compare-scroll::-webkit-scrollbar-track {
        background: #f2f2f2;
        border-radius: 999px;
    }

    .compare-scroll::-webkit-scrollbar-thumb {
        background: #cfcfcf;
        border-radius: 999px;
    }

.compare-table {
    border-collapse: separate;
    border-spacing: 12px 12px;
    min-width: 760px; /* ensures it scrolls on mobile */
}

    .compare-table th,
    .compare-table td {
        background: #fff;
        border: 1px solid #e9e9e9;
        border-radius: 14px;
        padding: 14px;
        vertical-align: middle;
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

    /* Sticky header cells */
    .compare-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(180deg, #384935 0%, #2e3c2b 100%);
        color: #fff;
        border: none;
        box-shadow: 0 10px 22px rgba(0,0,0,.10);
        padding-top: 12px;
    }

.compare-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.compare-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #97de3d;
    font-weight: 500;
}

.compare-img {
    display: block;
    margin: 0 auto;
    max-height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.compare-price {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.compare-vat {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.compare-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.compare-value {
    font-size: 14px;
    font-weight: 800;
    color: #222;
    margin: 0;
}

.compare-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    background: #7fce0d;
    color: #0b1a00;
    transition: transform .05s ease, filter .15s ease;
}

    .compare-btn:hover {
        filter: brightness(.95);
    }

    .compare-btn:active {
        transform: translateY(1px);
    }

/* Most Popular highlight */
.is-popular {
    border: 2px solid #97de3d !important;
    box-shadow: 0 10px 26px rgba(151,222,61,.25) !important;
    position: relative;
}

.popular-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0b1a00;
    background: #97de3d;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.popular-header-pad {
    padding-top: 10px;
}

/* Mobile rules */
@media (max-width: 576px) {
    .compare-hint {
        display: flex;
    }
}