:root {
    /* Redesign v1 - blue palette (kajass-udalosti-varianta1) */
    --blue: #087FE7;
    --blue-deep: #0A3D75;
    --blue-navy: #003980;
    --cyan: #0AC8FC;
    --btn-bottom: #056CC0;
    --slate: #37404C;
    --gray: #6B6B6B;
    --bg: #F6F6F6;
    --card: #FFFFFF;
    --line: rgba(55, 64, 76, 0.13);
    --section-gap: 20px;
    --radius: 14px;
    --white: #FFFFFF;
    --black: #000000;
    --btn-primary-bg: linear-gradient(135deg, var(--blue-deep), var(--blue-navy));

    /* Legacy semantic aliases, repointed to the new palette so existing
       rules that already consume them re-theme without touching every call site. */
    --bg-soft: var(--white);
    --surface: var(--card);
    --surface-strong: var(--card);
    --surface-muted: #EEF3FA;
    --line-strong: rgba(55, 64, 76, 0.22);
    --text: var(--slate);
    --text-soft: var(--gray);
    --text-muted: var(--gray);
    --text-main: var(--slate);
    --brand: var(--blue);
    --brand-strong: var(--blue-navy);
    --brand-soft: rgba(8, 127, 231, 0.08);
    --accent: var(--blue-deep);
    --accent-soft: rgba(10, 61, 117, 0.08);
    --shadow-soft: 0 14px 34px rgba(55, 64, 76, 0.10);
    --shadow-card: 0 10px 24px rgba(55, 64, 76, 0.08);
    --container: 1220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--bg);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
}

h4,
h5,
h6 {
    font-family: "Outfit", "Manrope", sans-serif;
}

p {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

hr {
    border: 0;
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.nav-container,
.container,
.footer-inner {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 10px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--slate);
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-tld {
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.65;
}

.logo::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 0 4px rgba(8, 127, 231, 0.08);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--slate);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-icon-link {
    width: 40px;
    padding: 0;
}

.nav-icon-link svg {
    display: block;
    width: 18px;
    height: 18px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--blue-navy);
}

.active-nav {
    color: var(--blue-navy) !important;
}

.main-nav a.active-nav::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: var(--blue);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 230px;
    height: 40px;
    max-height: 40px;
    margin-left: 6px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8, 127, 231, 0.12);
    width: 300px;
}

.nav-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--slate);
    font-size: 0.875rem;
    box-shadow: none;
}

.nav-search input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.nav-search input:focus {
    box-shadow: none;
}

.nav-search-active {
    background: rgba(8, 127, 231, 0.08);
    border-color: rgba(8, 127, 231, 0.35);
}

.container {
    flex: 1 0 auto;
    padding: 26px 0 var(--section-gap);
}

.container > * + * {
    margin-top: var(--section-gap);
}

footer {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    background: var(--card);
    color: var(--gray);
    text-align: center;
}

.card,
.page-header {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.page-hero-card {
    background: var(--surface-strong);
}

.page-hero-card::before {
    background: radial-gradient(circle, rgba(8, 127, 231, 0.06), transparent 70%);
}

.card::before,
.page-header::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(8, 127, 231, 0.05), transparent 70%);
    pointer-events: none;
}

.card > * + *,
.page-header > * + * {
    margin-top: 14px;
}

.card + .card {
    margin-top: var(--section-gap);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.participant-page-header {
    overflow: visible;
    z-index: 20;
}

.participant-hero {
    display: grid;
    gap: 3px;
}

.participant-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.45;
}

.participant-hero-label {
    color: var(--text);
    font-weight: 700;
}

.page-title,
.trip-title {
    font-size: clamp(1.85rem, 2.5vw, 2.75rem);
    font-weight: 700;
}

.page-intro,
.place-page-intro,
.section-lead,
.hero-copy {
    color: var(--text-soft);
    max-width: 70ch;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.section-heading h2,
.card h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--brand-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.home-hero-card {
    padding: 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        "copy photo"
        "stats photo";
    gap: 36px;
    align-items: center;
}

.hero-copy {
    grid-area: copy;
}

.hero-copy h1 {
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
    line-height: 1.15;
    margin: 0.3em 0 0.4em;
}

.hero-copy p {
    max-width: 46ch;
    font-size: 0.97rem;
    line-height: 1.55;
}

.hero-copy p + p {
    margin-top: 10px;
}

.hero-photo {
    position: relative;
    display: block;
    grid-area: photo;
    align-self: stretch;
    overflow: hidden;
    border-radius: 18px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(55, 64, 76, 0.18);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 380px;
    object-fit: cover;
}

.hero-photo .cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 16px 14px;
    background: linear-gradient(transparent, rgba(15, 23, 32, 0.75));
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.latest-events-card {
    padding-bottom: 18px;
}

.latest-events-heading {
    align-items: center;
    margin-bottom: 0;
}

.latest-events-link {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.latest-events-link:hover {
    color: var(--brand-strong);
}

.latest-events-list {
    display: grid;
    gap: var(--section-gap);
}

.latest-trip {
    margin-top: 0;
}

.button-link,
.button-secondary,
button,
[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-primary-bg);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 14px 30px rgba(8, 127, 231, 0.18);
}

.button-link:hover,
.button-secondary:hover,
button:hover,
[type="submit"]:hover,
.button-link:focus-visible,
.button-secondary:focus-visible,
button:focus-visible,
[type="submit"]:focus-visible {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    border-color: var(--line);
    box-shadow: none;
}

/* Shared button system: identical Hledat/Filtrovat/Reset everywhere. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

.btn.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--white);
    border-color: transparent;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
    filter: brightness(1.12);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--gray);
    border-color: var(--line);
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus-visible {
    border-color: var(--blue-navy);
}

.stats-grid,
.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero .stats-grid {
    display: grid;
    grid-area: stats;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 110px;
    padding: 12px 14px;
    border: 1px solid rgba(8, 127, 231, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--text);
    text-align: left;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 231, 0.22);
}

.stat-card-link {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
    transform: translateY(-1px);
    border-color: var(--blue-navy);
    box-shadow: 0 8px 20px rgba(0, 57, 128, 0.16);
}

.stat-icon {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-number {
    margin-top: 6px;
    font-family: "Outfit", sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
}

.stat-label {
    display: none;
}

.trip-header-people {
    margin-top: 8px;
}

.trip-header-participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trip-header-participant-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(8, 127, 231, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trip-header-participant-link-light {
    background: rgba(255, 255, 255, 0.82);
}

.trip-header-participant-note {
    background: rgba(8, 127, 231, 0.08);
    color: var(--text-soft);
}

.trip-header-participant-link:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 127, 231, 0.28);
    background: rgba(255, 255, 255, 0.94);
}

.trip-header-participant-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.active-stat {
    background: var(--btn-primary-bg);
    color: var(--white);
    border-color: transparent;
}

.active-stat .stat-icon,
.active-stat .stat-label {
    color: rgba(255, 255, 255, 0.78);
}

.highlight-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.highlight-box,
.empty-state,
.place-empty-state {
    padding: 15px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: rgba(8, 127, 231, 0.04);
    color: var(--text-soft);
}

.participant-presence-summary {
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.participant-presence-percent {
    color: var(--text-soft);
}

.participant-presence-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.95);
}

.participant-presence-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
}

.participant-presence-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-soft);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

select,
input,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8, 127, 231, 0.15);
}

.trip-list,
.timeline-items {
    display: grid;
    gap: 10px;
}

.trip-item,
.timeline-item-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.trip-item {
    align-items: center;
    justify-content: space-between;
}

.trip-item-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.timeline-item-card {
    align-items: flex-start;
}

.trip-item:hover,
.timeline-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 231, 0.22);
    background: rgba(255, 255, 255, 0.78);
}

.section-heading h2 a,
.trip-item a,
.timeline-item-title-link,
.place-card-title a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(8, 127, 231, 0.4);
    text-underline-offset: 2px;
}

.section-heading h2 a:hover,
.trip-item a:hover,
.place-card-title a:hover,
.timeline-item-card:hover .timeline-item-title-link {
    color: var(--blue-navy);
    text-decoration-color: var(--blue);
}

.timeline-item-title-link {
    color: inherit;
}

.timeline-item-title-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.event-tags-inline {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-self: center;
    justify-content: flex-end;
    gap: 4px 12px;
    max-width: 42%;
}

.event-tag-inline {
    color: var(--blue-navy);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.event-tag-inline:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .trip-item,
    .timeline-item-card {
        flex-wrap: wrap;
    }

    .event-tags-inline {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }
}

.trip-meta,
.timeline-item-meta,
.muted,
.year-count,
.places-section-subtitle {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.trip-place-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trip-place-chip {
    display: grid;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    min-width: 0;
}

.trip-place-link {
    text-decoration: none;
    font-weight: 700;
}

.trip-place-link:hover {
    color: var(--brand-strong);
}

.trip {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.trip-cover-link,
.trip-cover {
    display: block;
}

.trip-cover-link img,
.trip-cover img {
    width: 100%;
    max-height: min(42vh, 300px);
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.trip-cover img {
    max-height: min(54vh, 420px);
}

.trip-richtext {
    line-height: 1.72;
    color: var(--text);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.trip-richtext > * + * {
    margin-top: 0.8rem;
}

.trip-richtext-with-aside {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.trip-richtext-with-aside p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.trip-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.trip-richtext-with-aside::after {
    content: "";
    display: block;
    clear: both;
}

.trip-richtext-with-aside > :first-child {
    margin-top: 0;
}

.trip-inline-image {
    margin: 0;
}

.trip-inline-image a {
    display: block;
}

.trip-inline-image img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.trip-inline-image figcaption {
    margin-top: 0.6rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.trip-richtext .trip-inline-image-aside {
    float: right;
    display: inline-block;
    width: min(26%, 220px);
    margin: 0.05rem 0 0.75rem 1rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(55, 64, 76, 0.08);
    shape-outside: margin-box;
    shape-margin: 1rem;
}

.trip-richtext .trip-inline-image-aside-left {
    float: left;
    margin: 0.05rem 1rem 0.75rem 0;
}

.trip-richtext .trip-inline-image-aside-right {
    float: right;
    margin: 0.05rem 0 0.75rem 1rem;
}

.trip-quote {
    margin: 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(8, 127, 231, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(8, 127, 231, 0.05));
}

.trip-quote-body {
    color: var(--text);
    font-style: italic;
    line-height: 1.85;
}

.trip-quote-body > * + * {
    margin-top: 0.8rem;
}

.trip-quote-source-inline {
    display: inline;
    margin-left: 0.45rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
    color: var(--brand-strong);
}

.trip-quote-source-inline::before {
    content: " Zdroj: ";
}

.trip-quote-source-inline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trip-richtext .imgbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: start;
}

.trip-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.trip-gallery-grid a {
    display: block;
}

.trip-gallery-grid img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.trip-photo-lightbox-trigger {
    display: block;
    text-decoration: none;
}

.trip-photo-dialog {
    margin: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: none;
    background: transparent;
    box-shadow: none;
}

.trip-photo-dialog::backdrop {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(2px);
}

.trip-photo-dialog-frame {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: min(96vw, 84rem);
    margin: 0 auto;
    padding: 0.75rem;
}

.trip-photo-dialog-stack {
    pointer-events: none;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
}

.trip-photo-dialog-media {
    pointer-events: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1.75rem;
    background: var(--black);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    outline: 1px solid rgba(255, 255, 255, 0.1);
}

.trip-photo-dialog-image {
    pointer-events: auto;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
}

.trip-photo-dialog-meta {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.85rem 1rem 0;
    text-align: left;
}

.trip-photo-dialog-caption {
    min-width: 0;
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 600;
    text-wrap: pretty;
    text-shadow: none;
}

.trip-photo-dialog-counter {
    flex-shrink: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    backdrop-filter: blur(10px);
}

.trip-photo-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: none;
}

.trip-photo-dialog-hitarea {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    display: block;
    padding: 0;
    border: none;
    width: 33.333333%;
    background: transparent;
    color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
}

.trip-photo-dialog-hitarea:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.trip-photo-dialog-hitarea-prev {
    left: 0;
}

.trip-photo-dialog-hitarea-next {
    right: 0;
}

.trip-photo-dialog-hitarea-icon {
    pointer-events: none;
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.38);
    color: var(--white);
    font-size: 1.9rem;
    line-height: 1;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 150ms ease;
    backdrop-filter: blur(10px);
}

.trip-photo-dialog-hitarea-prev .trip-photo-dialog-hitarea-icon {
    left: 0.75rem;
}

.trip-photo-dialog-hitarea-next .trip-photo-dialog-hitarea-icon {
    right: 0.75rem;
}

.trip-photo-dialog-hitarea:hover .trip-photo-dialog-hitarea-icon,
.trip-photo-dialog-hitarea:focus-visible .trip-photo-dialog-hitarea-icon {
    opacity: 1;
}

.trip-photo-dialog-hitarea::-moz-focus-inner {
    border: 0;
}

.trip-photo-dialog-caption[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .trip-photo-dialog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .trip-photo-dialog-counter {
        align-self: flex-end;
    }
}

.trip-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.trip-header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.trip-header-right {
    flex: 0 0 auto;
    width: min(240px, 100%);
}

.trip-header-right .stat-card,
.photo-story-detail-header .stat-card {
    min-width: 0;
    padding: 12px 14px;
}

.trip-header-right .stat-number,
.photo-story-detail-header .stat-number {
    font-size: clamp(1.05rem, 1.3vw, 1.4rem);
}

.trip-participants-inline,
.participants-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.participants-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

@media (max-width: 1200px) {
    .participants-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .participants-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .participants-row {
        grid-template-columns: 1fr;
    }
}

.participant-card,
.participant-card-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.participant-card {
    gap: 16px;
    width: 100%;
    min-height: 96px;
    padding: 14px 18px;
    border-radius: 20px;
    box-sizing: border-box;
}

.participant-card:hover,
.participant-card-compact:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 127, 231, 0.24);
}

.participant-photo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.participant-photo-wrap:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.participant-photo {
    display: block;
    object-fit: cover;
}

.participant-photo-thumb,
.participant-avatar {
    width: 64px;
    height: 64px;
}

.participant-photo-thumb-small,
.participant-avatar-small {
    width: 34px;
    height: 34px;
}

.participant-photo-thumb,
.participant-photo-thumb-small,
.participant-photo-profile {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(55, 64, 76, 0.14);
    background: var(--bg);
}

.participant-photo-profile,
.avatar {
    width: 128px;
    height: 128px;
}

.participant-photo-preview {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2500;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.participant-photo-wrap-profile .participant-photo-preview {
    width: min(420px, 72vw);
}

.participant-photo-large {
    width: 100%;
    max-height: 520px;
    border-radius: 10px;
    background: var(--white);
}

.participant-photo-wrap:hover .participant-photo-preview,
.participant-photo-wrap:focus-within .participant-photo-preview {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.participant-photo-wrap-profile {
    text-decoration: none;
}

.participant-photo-dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: min(92vw, 960px);
    z-index: 4000;
}

.participant-photo-dialog::backdrop {
    background: rgba(15, 23, 42, 0.74);
}

.participant-photo-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: none;
}

.participant-photo-dialog-image {
    display: block;
    max-width: min(92vw, 960px);
    max-height: 88vh;
    border-radius: 18px;
}

.participant-avatar,
.participant-avatar-small,
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: var(--white);
    font-weight: 800;
}

.participant-name {
    font-weight: 700;
}

.participant-summary {
    display: grid;
    gap: 6px;
}

.participant-card .participant-summary strong {
    font-size: 1.12rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.participant-card .participant-summary .muted {
    font-size: 1rem;
}

.trip-participant-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trip-participant-note span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.95rem;
    font-weight: 700;
}

.map-frame,
#map,
#trip-map,
#participant-map,
#place-map {
    width: 100%;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-frame-loading {
    opacity: 0;
}

.map-frame.map-frame-large,
#map {
    min-height: 430px;
}

.timeline-container {
    display: grid;
    gap: 18px;
}

.timeline-year-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
    font-weight: 700;
}

.timeline-item-date {
    flex: 0 0 84px;
    color: var(--brand-strong);
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.timeline-item-content {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.place-category-row,
.place-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.place-category-row {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.place-category-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--blue-deep);
    font-weight: 700;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    font-size: 0.96rem;
}

.place-category-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.place-category-badge .place-category-icon {
    width: 20px;
    height: 20px;
    color: inherit;
}

.place-category-icon svg {
    width: 100%;
    height: 100%;
}

.place-page-header {
    gap: 24px;
}

.place-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.place-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    cursor: pointer;
    transition: 0.2s ease;
    font: inherit;
}

.place-filter-chip strong {
    color: var(--accent);
}

.place-filter-chip:hover {
    background: rgba(8, 127, 231, 0.05);
    border-color: rgba(8, 127, 231, 0.25);
}

.place-filter-chip.is-active {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: var(--white);
    border-color: transparent;
}

.place-filter-chip.is-active strong,
.place-filter-chip.is-active .place-category-icon {
    color: var(--white);
}

.places-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.place-card {
    display: grid;
    grid-template-rows: auto minmax(3rem, auto) auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    align-items: start;
}

.place-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: flex-start;
    min-height: 42px;
}

.place-visit-badge {
    background: rgba(55, 64, 76, 0.08);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
    max-width: 100%;
    justify-self: end;
}

.place-card-top > * {
    max-width: 100%;
}

.place-card-top .place-visit-badge {
    margin-left: 0;
}

.place-card-title {
    font-size: 1.12rem;
    color: var(--text);
    line-height: 1.25;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.place-source-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.place-source-link:hover {
    text-decoration: underline;
}

.place-card-media-link {
    display: block;
    text-decoration: none;
}

.place-card-image-shell,
.place-detail-image-shell {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-muted);
}

.place-detail-image-shell {
    border-radius: 20px;
}

.place-card-image,
.place-card-image-fallback {
    width: 100%;
    height: 140px;
    border-radius: 16px;
}

.place-card-image {
    display: block;
    object-fit: cover;
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.place-image-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent),
        linear-gradient(135deg, var(--surface-muted) 0%, rgba(8, 127, 231, 0.1) 45%, var(--surface-muted) 100%);
    background-size: 220% 100%, 100% 100%;
    animation: place-image-skeleton-shimmer 1.35s ease-in-out infinite;
}

.place-image-loading img {
    opacity: 0;
    filter: blur(12px);
}

.place-image-loading .place-image-skeleton {
    opacity: 1;
}

.place-image-skeleton {
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

@keyframes place-image-skeleton-shimmer {
    0% {
        background-position: 180% 0, 0 0;
    }

    100% {
        background-position: -180% 0, 0 0;
    }
}

.place-card-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--surface-muted) 0%, rgba(8, 127, 231, 0.08) 100%);
    border: 1px dashed rgba(8, 127, 231, 0.22);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    padding: 16px;
}

.place-card-fallback-icon {
    width: 32px;
    height: 32px;
}

.place-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.place-detail-hero {
    margin-top: 24px;
}

.place-detail-image,
.place-detail-image-fallback {
    width: 100%;
    min-height: 220px;
    border-radius: 20px;
}

.place-detail-image {
    display: block;
    object-fit: cover;
    max-height: min(48vh, 380px);
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.place-detail-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    background: linear-gradient(135deg, var(--surface-muted) 0%, rgba(8, 127, 231, 0.08) 100%);
    border: 1px dashed rgba(8, 127, 231, 0.22);
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.place-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.place-detail-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
}

.place-detail-item strong {
    display: block;
    margin-bottom: 8px;
}

.place-detail-item-full {
    grid-column: 1 / -1;
}

.places-year-group + .places-year-group {
    margin-top: 20px;
}

.place-group-card[hidden] {
    display: none;
}

.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-inline span:first-child {
    color: var(--blue-navy);
    font-weight: 700;
}

.meta-note {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: var(--section-gap) 0 0;
}

.pagination li,
.pagination .page-item {
    list-style: none;
}

.pagination a,
.pagination span,
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    text-decoration: none;
}

.pagination .active span,
.pagination .active .page-link {
    background: var(--btn-primary-bg);
    color: var(--white);
    border-color: transparent;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border-radius: 14px;
}

.trip-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.trip-card-header-main {
    display: grid;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.trip-card-header-tags {
    flex: 0 1 auto;
    max-width: 40%;
    margin-top: 0;
    justify-content: flex-end;
    align-content: flex-start;
}

.trip-tag-filter-group,
.trip-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trip-tag-filter-group {
    margin-top: 12px;
}

.trip-tag-list {
    margin-top: 10px;
}

.trip-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(8, 127, 231, 0.22);
    background: rgba(8, 127, 231, 0.08);
    color: var(--blue-navy);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.trip-tag-chip:hover {
    background: rgba(8, 127, 231, 0.14);
    border-color: rgba(8, 127, 231, 0.4);
    color: var(--blue-navy);
}

.trip-tag-chip-active {
    background: linear-gradient(135deg, var(--blue), var(--blue-navy));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(8, 127, 231, 0.25);
}

.trip-tag-chip-active:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .trip-card-header {
        flex-direction: column;
    }

    .trip-card-header-tags {
        max-width: 100%;
        justify-content: flex-start;
    }
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

.search-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-weight: 700;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.search-result-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.search-result-topline {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-result-title {
    font-size: 1.2rem;
}

.search-result-title a {
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--brand-strong);
}

.search-result-text {
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .nav-container,
    .page-header,
    .trip-header-layout,
    .timeline-item-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item-date {
        flex: 0 0 auto;
    }

    .profile-stats,
    .stats-grid {
        width: 100%;
    }

    .stat-card {
        flex: 1 1 160px;
    }

    .page-header-left {
        align-items: flex-start;
    }

    .trip-header-right {
        width: 100%;
    }

    .trip-header-right .stat-card,
    .photo-story-detail-header .stat-card {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .container,
    .nav-container,
    .footer-inner {
        width: min(calc(100% - 24px), var(--container));
    }

    .container {
        padding-top: 18px;
        padding-bottom: var(--section-gap);
    }

    .card,
    .page-header,
    .trip {
        padding: 16px;
        border-radius: 18px;
    }

    .main-nav {
        width: 100%;
        gap: 8px;
    }

    .main-nav a {
        flex: 1 1 auto;
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .main-nav a.active-nav::after {
        left: 10px;
        right: 10px;
    }

    .nav-search {
        width: 100%;
        height: 40px;
        max-height: 40px;
        margin-left: 0;
    }

    .nav-search:focus-within {
        width: 100%;
    }

    .nav-search input {
        min-width: 0;
        font-size: 0.92rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .latest-events-heading {
        align-items: flex-start;
    }

    .latest-events-link {
        width: fit-content;
        font-size: 1.1rem;
    }

    .search-page-form {
        grid-template-columns: 1fr;
    }

    .participant-photo-preview {
        left: 0;
        transform: translateX(0);
    }

    .participant-photo-wrap:hover .participant-photo-preview,
    .participant-photo-wrap:focus-within .participant-photo-preview {
        transform: translateX(0) translateY(0);
    }

    .place-card-top,
    .places-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .place-filter-chip {
        width: 100%;
        justify-content: space-between;
    }

    .trip-richtext .trip-inline-image-aside,
    .trip-richtext .trip-inline-image-aside-left,
    .trip-richtext .trip-inline-image-aside-right {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 0.85rem 0;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "photo"
            "stats";
        gap: 14px;
    }

    .home-hero-card {
        padding: 16px;
    }

    .hero-photo img {
        min-height: 200px;
        max-height: 200px;
    }

    .hero-copy h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .page-title,
    .trip-title {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    .section-heading h2,
    .card h2 {
        font-size: 1.1rem;
    }

    .stats-grid,
    .profile-stats {
        gap: 8px;
    }

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

    .stat-card {
        min-width: 0;
        padding: 12px 13px;
        border-radius: 16px;
    }

    .stat-icon {
        font-size: 0.72rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label,
    .trip-meta,
    .timeline-item-meta,
    .muted,
    .year-count,
    .places-section-subtitle,
    .meta-note {
        font-size: 0.84rem;
    }

    .trip-item,
    .timeline-item-card {
        padding: 12px 13px;
    }

    .trip {
        gap: 12px;
        padding: 16px;
    }

    .trip-cover-link img,
    .trip-cover img {
        max-height: 220px;
        border-radius: 16px;
    }

    .trip-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .trip-gallery-grid img {
        height: 128px;
        border-radius: 12px;
    }

    .trip-tag-chip {
        padding: 6px 10px;
        font-size: 0.84rem;
    }

    .map-frame,
    #map,
    #trip-map,
    #participant-map,
    #place-map {
        min-height: 250px;
        border-radius: 14px;
    }

    .map-frame.map-frame-large,
    #map {
        min-height: 300px;
    }

    .place-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .place-card,
    .search-result-card {
        padding: 14px;
    }

    .place-card {
        grid-template-rows: auto auto auto;
    }

    .place-card-top,
    .place-card-title {
        min-height: 0;
    }

    .place-card-top {
        grid-template-columns: 1fr;
    }

    .place-visit-badge {
        justify-self: start;
    }

    .place-card-image,
    .place-card-image-fallback {
        height: 132px;
    }

    .place-detail-image {
        max-height: 240px;
    }

    .photo-story-entry {
        padding-left: 0.75rem;
    }

    .photo-story-entry-cover img {
        max-height: 168px;
    }
}

.photo-story-hero-card {
    overflow: hidden;
    background: linear-gradient(135deg, var(--card) 0%, rgba(8, 127, 231, 0.06) 52%, var(--card) 100%);
}

.photo-story-hero {
    position: relative;
}

.photo-story-hero::after {
    content: "";
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 64, 76, 0.16);
    background: rgba(55, 64, 76, 0.06);
}

.photo-story-stat {
    background: var(--blue-deep);
    color: var(--white);
}

.photo-story-stat .stat-icon,
.photo-story-stat .stat-label {
    color: rgba(255, 255, 255, 0.82);
}

.photo-story-filter-card {
    background: rgba(255, 255, 255, 0.94);
}

.photo-story-entry {
    border-left: 4px solid rgba(8, 127, 231, 0.64);
    padding-left: 1rem;
}

.photo-story-entry-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1rem;
    align-items: start;
}

.photo-story-entry-copy {
    min-width: 0;
}

.photo-story-entry-copy .section-heading {
    margin-bottom: 0.55rem;
}

.photo-story-entry-copy .section-lead {
    margin: 0.55rem 0 0;
}

.photo-story-entry-cover {
    align-self: stretch;
}

.photo-story-entry-cover img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 190px;
    object-fit: cover;
    border-radius: 18px;
}

.photo-story-meta {
    color: var(--text-soft);
}

.photo-story-detail-card {
    background: linear-gradient(90deg, var(--card) 0%, rgba(8, 127, 231, 0.05) 58%, var(--card) 100%);
}

.photo-story-detail-header {
    align-items: flex-start;
}

.photo-story-gallery-card {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 860px) {
    .photo-story-entry-main {
        grid-template-columns: 1fr;
    }

    .photo-story-entry-cover {
        order: -1;
    }

    .photo-story-entry-cover img {
        min-height: 0;
        max-height: 240px;
    }
}
