/* =========================================================
   13. ARCHIVE — HERO (+ city split hero)
   ========================================================= */
.fos7ty-archive-hero {
    background: var(--f7-sand-50);
    border-block-end: var(--f7-line);
    color: var(--f7-ink);
    padding-block: var(--f7-s-5) var(--f7-s-4);
    margin: 0 0 var(--f7-s-5);
}

.fos7ty-archive-title {
    margin: 0 0 var(--f7-s-2);
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: var(--f7-w-title);
    line-height: var(--f7-lh-title);
    color: var(--f7-ink);
    max-width: 40ch;
}

.fos7ty-archive-description {
    max-width: 68ch;
    margin-block: 0 var(--f7-s-3);
    font-size: var(--f7-t-15);
    line-height: var(--f7-lh-body);
    color: var(--f7-ink-60);
}

.fos7ty-archive-description p {
    margin: 0 0 var(--f7-s-1);
}

/* counter: a text fact, not a pill */
.fos7ty-archive-count {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    color: var(--f7-ink-60);
}

.fos7ty-archive-count strong {
    font-size: var(--f7-t-17);
    font-weight: var(--f7-w-title);
    color: var(--f7-ink);
}

/* City / region hero: text panel and photo panel side by side.
   The photo is a framed panel, never a dark scrim behind white text. */
.fos7ty-city-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--f7-s-4);
    align-items: center;
}

.fos7ty-city-hero-text {
    min-width: 0;
}

.fos7ty-city-hero-media {
    min-width: 0;
    border-radius: var(--f7-r-card);
    overflow: hidden;
    background: var(--f7-sand-100);
}

.fos7ty-city-hero-media img,
.fos7ty-city-hero-media .fos7ty-archive-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--f7-r-card);
    border: var(--f7-line);
}

.fos7ty-archive-hero-overlay {
    display: none;
}

/* =========================================================
   14. ARCHIVE — FILTERS (one compressed row, not a pill cloud)
   ========================================================= */
.fos7ty-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--f7-s-2);
    margin-block-end: var(--f7-s-5);
    padding: var(--f7-s-2);
    border: var(--f7-line);
    border-radius: var(--f7-r-card);
    background: var(--f7-white);
}

.fos7ty-filter-field {
    flex: 1 1 168px;
    min-width: 0;
}

.fos7ty-filter-field label {
    display: block;
    margin-block-end: 5px;
    padding-inline-start: 2px;
    font-size: var(--f7-t-12);
    font-weight: var(--f7-w-meta);
    color: var(--f7-ink-60);
}

.fos7ty-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--f7-sand-200);
    border-radius: var(--f7-r-field);
    background: var(--f7-sand-50);
    color: var(--f7-ink);
    font-family: inherit;
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.fos7ty-filter-field select:hover {
    border-color: var(--f7-ink-60);
}

.fos7ty-filter-field select:focus-visible {
    outline: var(--f7-focus);
    outline-offset: 1px;
    background: var(--f7-white);
}

.fos7ty-filter-actions {
    display: flex;
    align-items: center;
    gap: var(--f7-s-2);
    flex: 0 0 auto;
}

.fos7ty-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px;
    border: 1px solid var(--f7-nile);
    border-radius: var(--f7-r-btn);
    background: var(--f7-nile);
    color: var(--f7-white);
    font-family: inherit;
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-sub);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.fos7ty-filter-btn:hover {
    background: var(--f7-nile-dark);
    border-color: var(--f7-nile-dark);
}

.fos7ty-filter-btn:focus-visible {
    outline: var(--f7-focus);
    outline-offset: 2px;
}

.fos7ty-filter-clear {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 6px;
    color: var(--f7-ink-60);
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    text-decoration: none;
    border-block-end: 1px solid transparent;
}

.fos7ty-filter-clear:hover,
.fos7ty-filter-clear:focus-visible {
    color: var(--f7-danger);
    border-block-end-color: var(--f7-danger);
}

/* =========================================================
   18. PAGINATION + LOAD MORE
   ========================================================= */
.fos7ty-pagination-wrap {
    margin-block: var(--f7-s-4) var(--f7-s-5);
}

.fos7ty-pagination {
    display: flex;
    justify-content: flex-start;
}

.fos7ty-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.fos7ty-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid transparent;
    border-radius: var(--f7-r-btn);
    background: transparent;
    color: var(--f7-ink-60);
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.fos7ty-pagination .page-numbers:hover {
    background: var(--f7-sand-100);
    color: var(--f7-ink);
}

.fos7ty-pagination .page-numbers:focus-visible {
    outline: var(--f7-focus);
    outline-offset: 2px;
}

.fos7ty-pagination .page-numbers.current {
    background: var(--f7-white);
    border-color: var(--f7-sand-200);
    color: var(--f7-ink);
    font-weight: var(--f7-w-title);
}

.fos7ty-pagination .page-numbers.dots {
    color: var(--f7-sand-200);
}

.fos7ty-pagination-hidden {
    display: none !important;
}

.fos7ty-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--f7-s-1);
    margin-block: var(--f7-s-4) var(--f7-s-6);
}

.fos7ty-load-more {
    gap: var(--f7-s-1);
    min-width: 160px;
}

/* calm busy indicator — a thin ring, not a moving skeleton */
.fos7ty-load-more[data-fos7ty-busy="1"] {
    color: var(--f7-ink-60);
    cursor: progress;
    opacity: .85;
    pointer-events: none;
}

.fos7ty-load-more[data-fos7ty-busy="1"]::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--f7-sand-200);
    border-block-start-color: var(--f7-nile);
    border-radius: 50%;
    animation: f7-spin .8s linear infinite;
}

@keyframes f7-spin {
    to {
        transform: rotate(1turn);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fos7ty-load-more[data-fos7ty-busy="1"]::after {
        animation: none;
    }
}

.fos7ty-load-more-error {
    margin: 0;
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    color: var(--f7-danger);
}

.fos7ty-load-more-noscript {
    margin: 0;
    font-size: var(--f7-t-13);
}

.fos7ty-load-more-noscript a {
    color: var(--f7-nile);
    font-weight: var(--f7-w-sub);
}

/* =========================================================
   21. CITY / REGION PAGE — 2/3 content + 1/3 rail
   ========================================================= */
.fos7ty-city-description {
    margin-block-end: var(--f7-s-5);
    padding: 0;
    border: 0;
    background: transparent;
}

.fos7ty-city-description .fos7ty-content {
    font-size: var(--f7-t-15);
    line-height: var(--f7-lh-body);
    color: var(--f7-ink);
}

.fos7ty-city-description .fos7ty-content p {
    margin-block: 0 var(--f7-s-3);
}

.fos7ty-city-description .fos7ty-content h2,
.fos7ty-city-description .fos7ty-content h3 {
    margin-block: var(--f7-s-4) var(--f7-s-1);
    font-size: var(--f7-t-17);
    font-weight: var(--f7-w-sub);
    color: var(--f7-ink);
}

.fos7ty-city-description .fos7ty-content h2:first-child,
.fos7ty-city-description .fos7ty-content h3:first-child {
    margin-block-start: 0;
}

.fos7ty-city-description .fos7ty-content ul,
.fos7ty-city-description .fos7ty-content ol {
    margin-block: 0 var(--f7-s-3);
    padding-inline-start: 20px;
    font-size: var(--f7-t-15);
}

.fos7ty-city-description .fos7ty-content li {
    margin-block-end: 6px;
    line-height: var(--f7-lh-body);
}

.fos7ty-city-description .fos7ty-content img {
    border-radius: var(--f7-r-card);
    margin-block: var(--f7-s-2);
}

.fos7ty-city-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--f7-s-5);
    padding-block: var(--f7-s-4) var(--f7-s-6);
    align-items: start;
}

.fos7ty-city-main {
    min-width: 0;
}

.fos7ty-city-rail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--f7-s-4);
}

.fos7ty-rail-card {
    padding: var(--f7-s-4);
    border: var(--f7-line);
    border-radius: var(--f7-r-card);
    background: var(--f7-white);
}

.fos7ty-rail-card--sticky {
    position: sticky;
    top: 24px;
}

.fos7ty-rail-title {
    margin: 0 0 var(--f7-s-2);
    font-size: var(--f7-t-15);
    font-weight: var(--f7-w-sub);
    line-height: var(--f7-lh-title);
    color: var(--f7-ink);
}

.fos7ty-rail-links {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fos7ty-rail-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--f7-s-2);
    min-height: 44px;
    padding: 10px 0;
    border-block-end: 1px solid var(--f7-sand-200);
    color: var(--f7-ink);
    font-size: var(--f7-t-13);
    font-weight: var(--f7-w-meta);
    text-decoration: none;
}

.fos7ty-rail-links li:last-child a {
    border-block-end: 0;
}

.fos7ty-rail-links a:hover,
.fos7ty-rail-links a:focus-visible {
    color: var(--f7-nile);
}

.fos7ty-rail-links .fos7ty-rail-count {
    font-size: var(--f7-t-12);
    color: var(--f7-ink-60);
    font-feature-settings: "tnum";
}

.fos7ty-rail-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--f7-r-card);
    border: var(--f7-line);
}

.fos7ty-rail-text {
    margin: 0;
    font-size: var(--f7-t-13);
    line-height: var(--f7-lh-body);
    color: var(--f7-ink-60);
}

/* groups */
.fos7ty-group {
    margin-block-end: var(--f7-s-5);
    padding-block-end: var(--f7-s-4);
    border-block-end: var(--f7-line);
}

.fos7ty-group:last-of-type {
    border-block-end: 0;
    margin-block-end: 0;
    padding-block-end: 0;
}

.fos7ty-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--f7-s-2);
    flex-wrap: wrap;
    margin-block-end: var(--f7-s-3);
    padding-block-end: var(--f7-s-1);
    border-block-end: 2px solid var(--f7-ink);
}

.fos7ty-group-title {
    margin: 0;
    font-size: var(--f7-t-21);
    font-weight: var(--f7-w-title);
    line-height: var(--f7-lh-title);
    color: var(--f7-ink);
}

.fos7ty-group-title a {
    color: inherit;
    text-decoration: none;
}

.fos7ty-group-title a:hover,
.fos7ty-group-title a:focus-visible {
    color: var(--f7-nile);
}

.fos7ty-group-count {
    font-size: var(--f7-t-12);
    font-weight: var(--f7-w-meta);
    color: var(--f7-ink-60);
    white-space: nowrap;
    font-feature-settings: "tnum";
}

.fos7ty-group .fos7ty-grid {
    margin-block-end: var(--f7-s-3);
}

.fos7ty-group-more {
    display: flex;
    justify-content: flex-start;
    margin-block-start: var(--f7-s-2);
}

.fos7ty-group-more .fos7ty-btn {
    min-height: 44px;
    padding-inline: 16px;
    gap: var(--f7-s-1);
}
