﻿: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 {
    margin-top: 16px;
}

    .loc-section h2 {
        margin: 0 0 8px;
    }

.loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 10px 0 6px;
}

.loc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    text-decoration: none;
    font-weight: 750;
}

    .loc-card::after {
        content: "→";
        opacity: .55;
        font-weight: 900;
    }

    .loc-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(0,0,0,.10);
    }

    .loc-card:focus {
        outline: 3px solid rgba(0,0,0,.20);
        outline-offset: 2px;
    }

.grey-container {
    padding-top: 0px;
    padding-bottom: 10px;
    background: #f5f5f5;
}

h2 {
    font-size: 20px;
}

.compare-wrap {
    background: #fff;
    padding: 20px 0 40px;
    font-family: Roboto, sans-serif;
}

/* Swipe instruction */
.compare-hint {
    display: none;
    font-size: 13px;
    color: #444;
    background: #f5f6f5;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    justify-content: space-between;
}

    .compare-hint strong {
        font-weight: 700;
    }

@media (max-width:576px) {
    .compare-hint {
        display: flex;
    }
}

/* horizontal scroll container */
.compare-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

/* table layout */
.compare-table {
    display: inline-table; /* prevents squeezing */
    width: auto;
    border-collapse: separate;
    border-spacing: 26px 18px; /* LARGE GAP BETWEEN PRODUCTS */
}

    /* product column card */
    .compare-table th,
    .compare-table td {
        background: #fff;
        border: 1px solid #e9e9e9;
        border-radius: 12px;
        padding: 14px;
        text-align: center;
        vertical-align: middle;
        box-shadow: 0 6px 16px rgba(0,0,0,.07);
        min-width: 200px;
        max-width: 240px;
    }

    /* header */
    .compare-table thead th {
        position: sticky;
        top: 0;
        background: #384949;
        color: #fff;
        border: none;
    }

/* title */
.compare-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* product image */
.compare-img {
    display: block;
    margin: 0 auto;
    max-height: 120px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* description */
.compare-desc {
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

/* buttons */
.compare-btn {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    background: #7fce0d;
}

.compare-linkbtn {
    width: 100%;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
}

/* Most popular highlight */
.is-popular {
    border: 2px solid #89d320 !important;
    box-shadow: 0 12px 28px rgba(137,211,32,.28) !important;
}

.popular-badge {
    font-size: 11px;
    font-weight: 900;
    background: #89d320;
    color: #0b1a00;
    padding: 5px 10px;
    border-radius: 30px;
    margin-bottom: 8px;
    display: inline-block;
}