/* IMPORT PREMIUM FONT */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500&display=swap");

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f7f7f5;
    color: #1a1a1a;
    line-height: 1.7;
}

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 24px;
}

/* NAV */
nav {
    background: rgba(11, 45, 38, 0.95);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    color: white;
}

nav a {
    color: #ddd;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #caa85c;
}

/* HERO */
.hero {
    position: relative;
    color: white;
    padding: 100px 20px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
        url("hero-xjc.jpg") center/cover;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 56px;
    margin: 0;
}

.hero p {
    max-width: 600px;
    margin-top: 15px;
    color: #ddd;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: #caa85c;
    color: black;
}

.btn-primary:hover {
    background: #b8954f;
}

.btn-secondary {
    background: #caa85c;
    color: black;
}

.btn-secondary:hover {
    background: #b8954f;
}

/* CONTENT CARD */
.content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-top: -60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* HEADINGS */
h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}

h2 {
    margin-top: 40px;
    font-size: 28px;
}

/* HIGHLIGHT */
.highlight {
    background: #faf7f0;
    padding: 20px;
    border-left: 4px solid #caa85c;
    margin: 25px 0;
}

/* IMAGE */
.image {
    width: 100%;
    border-radius: 10px;
    margin: 25px 0;
}

/* GRID */
.grid {
    display: grid;
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CARD */
.card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* STATS */
.stats {
    background: #0b2d26;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    gap: 20px;
}

.stat h2 {
    font-size: 32px;
}

/* FOOTER */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 30px;
}

.footer-premium {
    background: #0b0b0b;
    color: #777;
    padding: 40px 20px;
    font-size: 13px;
    border-top: 1px solid #222;
}

.footer-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* LEFT */
.footer-logo {
    font-family: "Playfair Display", serif;
    color: #fff;
    margin-right: 15px;
}

.footer-copy {
    opacity: 0.6;
}

/* CENTER NAV */
.footer-center a {
    color: #888;
    text-decoration: none;
    margin: 0 12px;
    transition: 0.3s;
}

.footer-center a:hover {
    color: #caa85c;
}

/* RIGHT ICONS */
.footer-right a {
    color: #888;
    margin-left: 15px;
    font-size: 16px;
    transition: 0.3s;
}

.footer-right a:hover {
    color: #caa85c;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-center {
        order: 3;
    }
}

/* FADE-IN ANIMATION */
.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Form Placeholder Text */
select:invalid {
    color: #777;
}

label {
    position: absolute;
    left: -9999px;
}

/* Placeholder text styling */
::placeholder {
    color: #777; /* medium grey */
    opacity: 1; /* ensure full visibility */
}

/* For better browser support */
::-webkit-input-placeholder {
    color: #777;
}
:-ms-input-placeholder {
    color: #777;
}
::placeholder {
    color: #777;
}

/* TABLE */

.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.xjc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

/* CAPTION */
.xjc-table caption {
    text-align: left;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    padding: 15px;
}

/* HEADERS */
.xjc-table th {
    background: #0b2d26;
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 500;
    border: 1px solid #ddd;
}

/* CELLS */
.xjc-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
}

/* ROW STRIPING */
.xjc-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* ROW HOVER */
.xjc-table tr:hover {
    background: #faf7f0;
}

/* EMPTY CELLS */
.xjc-table td:empty {
    background: #f3f3f3;
}

/* FIRST COLUMN (COLOUR NAMES) */
.xjc-table th:first-child {
    text-align: left;
}

/* COLOUR SWATCH */
.colour-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.xjc-table td,
.xjc-table th {
    border-right: 1px solid #f0f0f0;
}

.xjc-table td:last-child,
.xjc-table th:last-child {
    border-right: none;
}

/* Table Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 200px;
}

/* Slight emphasis between sections */
.xjc-table td:nth-child(3),
.xjc-table th:nth-child(3),
.xjc-table td:nth-child(10),
.xjc-table th:nth-child(10) {
    border-left: 2px solid #ddd;
}

/* reuse your existing .xjc-table styles */

/* ALIGNMENT */
.xjc-table td {
    text-align: center;
}

.xjc-table th:first-child {
    text-align: left;
}

/* TOTAL ROW (premium emphasis) */
.total-row {
    background: #0b2d26;
    color: white;
    font-weight: 500;
}

.total-row td,
.total-row th {
    border-color: #0b2d26;
}

/* SUBTLE EMPHASIS ON BIG NUMBERS */
.xjc-table td {
    font-variant-numeric: tabular-nums;
}

/* OPTIONAL: highlight dominant row (UK) */
.xjc-table tbody tr:nth-child(13) {
    font-weight: 500;
}

.xjc-table td {
    position: relative;
}

.xjc-table td::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--value, 0) * 1%);
    background: rgba(202, 168, 92, 0.15);
    pointer-events: none;
}

#map {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.leaflet-popup-content {
    font-family: "Inter", sans-serif;
}
