/* NightPulse — harbour-after-dark editorial system */

:root {
    --ink: #10131c;
    --ink-soft: #2a2e3a;
    --paper: #f6f1e8;
    --paper-2: #fffdf8;
    --line: rgba(16, 19, 28, 0.12);
    --muted: #6d675f;
    --magenta: #e11d5a;
    --magenta-deep: #9d1240;
    --gold: #c9892d;
    --teal: #0f766e;
    --night: #0b0e16;
    --night-2: #151a27;
    --serif: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --sans: "Roboto", "Segoe UI", sans-serif;
    --shadow: 0 18px 40px rgba(16, 19, 28, 0.08);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1200px 420px at 100% -10%, rgba(225, 29, 90, 0.08), transparent 55%),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 3px;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--magenta);
    margin-bottom: 10px;
}

/* Navigation */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #ffffff 0%, #f4f7fb 14%, #1b3a6f 46%, #0e2248 100%);
    padding: 12px 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    padding: 5px 8px;
    line-height: 0;
    text-decoration: none;
    box-shadow: none;
}

.site-logo-img {
    height: 50.4px;
    width: auto;
    object-fit: contain;
    display: block;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(246, 241, 232, 0.78);
    font-weight: 500;
    font-size: 0.86rem;
    padding: 8px 10px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: #fff;
    background: var(--magenta);
}

/* Home banner */

.auto-scroll-banner {
    position: relative;
    width: 100%;
    height: min(78vh, 720px);
    min-height: 460px;
    overflow: hidden;
    background: var(--night);
}

.banner-track,
.banner-slide {
    width: 100%;
    height: 100%;
}

.banner-track {
    position: relative;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: flex-end;
    padding: 0 7vw 88px;
}

.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.2) 62%, rgba(8, 10, 16, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 10, 16, 0.05) 20%, rgba(8, 10, 16, 0.72) 100%);
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.slide-kicker {
    color: #f3c56b;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.slide-content h2 {
    font-family: var(--serif);
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    max-width: 36rem;
    font-weight: 300;
}

.banner-dots {
    position: absolute;
    left: 7vw;
    bottom: 28px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 34px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.banner-dots .dot.active {
    background: #fff;
}

/* Inner page heroes */

.page-hero,
.hero,
.hero2,
.hero3,
.hero4,
.hero5 {
    position: relative;
    color: #fff;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 120px 7vw 56px;
    background-size: cover;
    background-position: center;
}

.hero2 {
    background-image: linear-gradient(rgba(8, 10, 16, 0.25), rgba(8, 10, 16, 0.55)), url("https://images.unsplash.com/photo-1536599018102-9f803c140fc1?auto=format&fit=crop&w=1800&q=80");
}

.hero3 {
    background-image: linear-gradient(rgba(8, 10, 16, 0.15), rgba(8, 10, 16, 0.62)), url("photos/tst-wanchai-night.jpg");
}

.hero4 {
    background-image: linear-gradient(rgba(8, 10, 16, 0.25), rgba(8, 10, 16, 0.62)), url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1800&q=80");
}

.hero5 {
    background-image: linear-gradient(rgba(8, 10, 16, 0.2), rgba(8, 10, 16, 0.62)), url("photos/hkcec-night.jpg");
}

.page-hero::after,
.hero::after,
.hero2::after,
.hero3::after,
.hero4::after,
.hero5::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.15) 0%, rgba(8, 10, 16, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-content .eyebrow {
    color: #f3c56b;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 300;
}

/* Layout */

.main-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.masthead {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: end;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.masthead h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.lede {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 40rem;
}

.masthead-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.masthead-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 500;
    transition: border-color 0.2s, transform 0.2s;
}

.masthead-links a:hover {
    border-color: var(--ink);
    transform: translateX(4px);
}

.masthead-links span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 14px;
}

.metric-card {
    background: var(--night);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 118px;
}

.metric-card i {
    color: #f3c56b;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.metric-value {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.metric-value.is-long {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    letter-spacing: 0;
    line-height: 1.2;
}

.metric-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.metrics-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 34px;
    max-width: 46rem;
}

.page-intro {
    margin-bottom: 28px;
    max-width: 42rem;
}

.page-intro h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Filters */

.month-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 28px;
}

.month-btn,
.pill {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.month-btn {
    padding: 10px 16px;
    font-size: 0.92rem;
}

.month-btn:hover,
.pill:hover {
    border-color: var(--ink);
}

.month-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.search-sort-container,
.search-filter-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.search-sort-container .search-input-wrapper,
.search-filter-box .search-input-wrapper {
    flex: 1 1 280px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1rem;
    background: var(--paper-2);
    color: var(--ink);
    outline: none;
}

.search-input-wrapper input:focus {
    border-color: var(--ink);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 20;
    overflow: hidden;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    font-size: 0.92rem;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f3ece2;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-wrapper select {
    border: 0;
    background: transparent;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    outline: none;
}

.section-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.pill {
    padding: 8px 14px;
    font-size: 0.88rem;
}

.pill.active {
    background: var(--magenta);
    color: #fff;
    border-color: var(--magenta);
}

.comment-intro {
    margin: -6px 0 18px;
    max-width: 42rem;
    color: var(--ink-soft);
}

.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    color: var(--muted);
    margin: 8px 0 16px;
    font-weight: 500;
}

/* Spotlight */

.spotlight-banner {
    position: relative;
    min-height: 160px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(11, 14, 22, 0.88), rgba(11, 14, 22, 0.25)),
        url("https://images.unsplash.com/photo-1470225620780-dba8ba36b745?auto=format&fit=crop&w=1600&q=80") center/cover;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.banner-overlay h3 {
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-round-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 42px;
}

.list-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
}

.list-card-img {
    width: 108px;
    height: 84px;
    border-radius: 10px;
    object-fit: cover;
}

.list-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.list-card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.list-card-meta strong {
    color: var(--ink-soft);
    font-weight: 600;
}

/* Video */

.scroll-video-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
    align-items: center;
    background: var(--night);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    margin: 10px 0 48px;
}

.scroll-video-section h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.scroll-video-section p {
    color: rgba(255, 255, 255, 0.7);
}

.scroll-video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.scroll-video-wrapper video {
    width: 100%;
    display: block;
    max-height: 360px;
    object-fit: cover;
}

.video-scroll-indicator {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(11, 14, 22, 0.72);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: none;
}

/* Cards */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.event-card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.event-card:hover {
    border-color: rgba(16, 19, 28, 0.28);
}

.event-card.is-extra {
    display: none;
}

.event-card.is-extra.is-revealed {
    display: flex;
    animation: dissolve-in 0.75s ease both;
}

@keyframes dissolve-in {
    from {
        opacity: 0;
        filter: blur(8px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.view-more-btn {
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.view-more-btn:hover {
    background: var(--magenta-deep);
}

.view-more-btn[hidden] {
    display: none;
}

.card-img-container {
    position: relative;
    height: 230px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 14, 22, 0.82);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-content {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-date,
.card-venue,
.card-address {
    color: var(--muted);
    font-size: 0.86rem;
}

.card-date {
    color: var(--magenta-deep);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-title {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card-desc {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.maps-link:hover {
    text-decoration: underline;
}

.card-footer-metrics {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.eco-tag {
    color: var(--teal);
    font-weight: 600;
}

.night-tag {
    color: var(--magenta-deep);
    font-weight: 600;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.star-display {
    color: var(--gold);
    letter-spacing: 1px;
}

.no-results {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
}

/* Reviews */

.review-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-item {
    background: #f3ece2;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.84rem;
}

.review-meta {
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.review-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.review-form select,
.review-form input,
.review-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 400;
}

.review-form textarea {
    min-height: 72px;
    resize: vertical;
}

.review-form button[type="submit"] {
    align-self: flex-start;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    cursor: pointer;
}

.review-form button[type="submit"]:hover {
    background: var(--magenta);
}

.review-form button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.review-status {
    font-size: 0.8rem;
}

.review-status.ok { color: var(--teal); }
.review-status.err { color: var(--magenta-deep); }

.source-note {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Footer */

.site-footer {
    background: var(--night);
    color: #f6f1e8;
    padding: 64px 24px 28px;
}

.footer-brand,
.footer-container,
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-brand {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .eyebrow {
    color: #f3c56b;
}

.footer-brand h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    max-width: 18ch;
    line-height: 1.05;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-col h3 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(246, 241, 232, 0.55);
    margin-bottom: 14px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--magenta);
    border-color: var(--magenta);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.legal-links a {
    color: rgba(246, 241, 232, 0.86);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover,
.legal-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.legal-links a,
.copyright {
    font-size: 0.78rem;
    color: rgba(246, 241, 232, 0.55);
}

/* Responsive */

@media (max-width: 980px) {
    .masthead,
    .scroll-video-section,
    .year-round-grid,
    .footer-container,
    .metrics-bar,
    .chart-grid,
    .suggest-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        position: sticky;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #0e2248;
        padding: 10px 16px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        gap: 4px;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .auto-scroll-banner {
        min-height: 420px;
        height: 68vh;
    }

    .banner-slide {
        padding: 0 24px 78px;
    }

    .page-hero,
    .hero,
    .hero2,
    .hero3,
    .hero4,
    .hero5 {
        padding: 110px 24px 40px;
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .site-logo-img {
        height: 40.8px;
    }

    .navbar {
        padding: 10px 14px;
    }

    .slide-content h2,
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .main-container {
        padding: 32px 16px 64px;
    }

    .card-title {
        font-size: 1.45rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 88px 1fr;
    }

    .list-card-img {
        width: 88px;
        height: 72px;
    }
}

h1, h2, h3, h4,
.card-title,
.slide-content h2,
.section-title,
.metric-value,
.list-card-title,
.banner-overlay h3,
.hero-content h1 {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.card-img-container {
    height: 150px;
}

.card-title {
    font-size: 1.55rem;
    line-height: 1.2;
}

.card-content {
    padding: 14px;
    gap: 6px;
}

.card-desc {
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-list {
    gap: 6px;
}

.review-item,
.review-form label,
.review-form select,
.review-form input,
.review-form textarea {
    font-size: 0.78rem;
}

.review-form textarea {
    min-height: 46px;
}

.source-note {
    display: none;
}

.search-status {
    min-height: 1.2em;
    margin: -8px 0 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.add-schedule {
    align-self: flex-start;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.add-schedule:hover,
.add-schedule.added {
    background: var(--ink);
    color: #fff;
}

.planner {
    background: var(--night);
    color: #f6f1e8;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 28px;
}

.planner h2 {
    font-size: 2.2rem;
    line-height: 0.95;
    margin-bottom: 6px;
}

.planner p,
.planner li {
    color: rgba(246, 241, 232, 0.82);
}

.planner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.planner-actions button,
.planner-actions a {
    border: 0;
    border-radius: 999px;
    background: var(--magenta);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.planner-actions .ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
}

.schedule-item strong {
    display: block;
    color: #fff;
}

.schedule-item button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
}

.suggest-grid,
.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.suggest-card,
.chart-card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
}

.suggest-card {
    padding: 0 0 18px;
    overflow: hidden;
}

.suggest-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin-bottom: 14px;
}

.suggest-card .eyebrow,
.suggest-card h2,
.suggest-card p {
    padding-left: 18px;
    padding-right: 18px;
}

.suggest-card h2,
.chart-card h2 {
    font-size: 1.8rem;
    line-height: 0.95;
    margin-bottom: 8px;
}

.chart-grid {
    grid-template-columns: 1.3fr 0.7fr;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 1.1fr) 2fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.82rem;
}

.bar-track {
    height: 10px;
    background: #efe7db;
    border-radius: 99px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1b3a6f, #e11d5a);
    border-radius: 99px;
}

.pie-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pie {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pie-legend {
    list-style: none;
    font-size: 0.82rem;
}

.pie-legend li {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.venue-note {
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.night-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.night-table th,
.night-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.footer-brand h2 {
    max-width: none;
}

.agenda {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-row,
.night-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
}

.agenda-date {
    font-weight: 700;
    color: var(--magenta-deep);
    font-size: 0.86rem;
}

.agenda-row h3,
.night-row h3 {
    font-size: 1.45rem;
    line-height: 0.95;
    margin-bottom: 4px;
}

.agenda-row p,
.night-row p {
    color: var(--muted);
    font-size: 0.9rem;
}

.night-row {
    grid-template-columns: 148px 72px 1fr;
    align-items: center;
}

.night-row img {
    width: 148px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.photo-credit {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.78rem;
}

.night-score {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    color: var(--magenta);
    line-height: 1;
}

.night-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 720px) {
    .agenda-row,
    .night-row,
    .chart-grid,
    .suggest-grid {
        grid-template-columns: 1fr;
    }

    .pie-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .pie {
        width: 168px;
        height: 168px;
        margin: 0 auto;
    }

    .pie-legend {
        width: 100%;
    }

    .pie-legend li {
        font-size: 0.92rem;
    }
}


/* New Event form */

.hero-new {
    background-image: linear-gradient(rgba(8, 10, 16, 0.2), rgba(8, 10, 16, 0.62)), url("photos/harbour-night.jpg");
}


.event-form {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px 32px;
    margin-bottom: 48px;
}

.event-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.event-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.event-form .span-2 {
    grid-column: 1 / -1;
}

.event-form .req,
.event-form .optional {
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 6px;
}

.event-form .req {
    color: var(--magenta);
}

.event-form .optional {
    color: var(--muted);
}

.event-form input,
.event-form select,
.event-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
}

.event-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 400;
}

.image-preview-card {
    margin: 18px 0 8px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--night);
    max-width: 420px;
}

.image-preview-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.image-preview-card .form-hint {
    padding: 10px 12px;
    background: var(--paper-2);
}

.event-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.event-form-actions button[type="submit"] {
    background: var(--magenta);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    cursor: pointer;
}

.event-form-actions button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status {
    margin: 0;
    font-size: 0.92rem;
}

.form-status.is-error {
    color: var(--magenta-deep);
}

.form-status.is-success {
    color: var(--teal);
}

.form-status a {
    color: var(--magenta-deep);
    font-weight: 600;
}

@media (max-width: 720px) {
    .event-form-grid {
        grid-template-columns: 1fr;
    }

    .event-form .span-2 {
        grid-column: auto;
    }
}
