*, *::before, *::after {
    box-sizing: border-box;
}

/* scrollbar styling — Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* scrollbar styling — Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

body {
    font-family: sans-serif;
    background: #f5f4f0;
    margin: 0;
    padding: 0;
}

/* navbar */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

/* solid state — default for non-hero pages */
.site-brand {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none;
    line-height: 1.3;
}

.site-brand:hover {
    color: #1a1a1a !important;
}

.site-sub {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.navbar .nav-link {
    font-size: 13px;
    color: #888;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* slides the navbar off the top of the screen once the hero is gone (home page only) */
.site-navbar.nav-hidden {
    transform: translateY(-100%);
}

/* transparent-over-hero state — applied by navbar.js on the home page while the hero is visible */
.site-navbar.nav-transparent {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.site-navbar.nav-transparent .site-brand {
    color: white !important;
}

.site-navbar.nav-transparent .site-sub {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-navbar.nav-transparent .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.site-navbar.nav-transparent .nav-link:hover,
.site-navbar.nav-transparent .nav-link.active {
    color: white !important;
}

.site-navbar.nav-transparent .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.site-navbar.nav-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* always-transparent, dark-text state — pages with no hero (location, about) */
/* position: static instead of fixed → scrolls away with the page, never overlaps content */
.site-navbar.nav-flat {
    position: static;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.filter-bar {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pill {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--color, #ddd);
    background: transparent;
    color: var(--color, #888);
    cursor: pointer;
}

.pill:hover {
    border-color: #bbb;
    box-shadow: 3px  3px 3px #dedede,
    -3px -3px 3px #dedede,
    3px -3px 3px #dedede,
    -3px  3px 3px #dedede;

}

.pill.active {
    color: white;
    border-color: var(--color, #1a1a1a);
    background: var(--color, #1a1a1a);
}

.main {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 50px); /* 50px ≈ filter bar height */
}

.map {
    flex: 2;
    min-height: 0; /* lets Leaflet compute height from flex, not content */
}

.card-list {
    width: 300px;
    flex-shrink: 0;
    min-height: 0; /* needed for overflow-y to kick in inside a flex container */
    border-left: 1px solid #ddd;
    background: white;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    cursor: pointer;
}

.card.active {
    border: 2px solid #1a1a1a;
}

.card:hover {
    border-color: #bbb;
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 4px;
}

h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eeedfe;
    color: #3C3489;
    font-weight: 500;
}
.badge.lima { 
    background: #fde8e8; 
    color: #9b1c1c;
}
.badge.miraflores { 
    background: #dcfce7; 
    color: #166534; 
}
.badge.centro-historico { 
    background: #fef9c3; 
    color: #854d0e; 
}
.badge.callao {
    background: #dbeafe; 
    color: #1e40af; 
}
.badge.chorrillos { 
    background: #faeeda; 
    color: #633806; 
}  
.badge.barranco { 
    background: #f3e8ff; 
    color: #6b21a8; 
}
.badge.magdalena-del-mar { 
    background: #ccfbf1; 
    color: #0f766e; 
}
.badge.brena { 
    background: #fce7f3; 
    color: #9d174d; 
}
.badge.jesus-maria { 
    background: #e0f2fe; 
    color: #075985; 
}
.badge.pueblo-libre { 
    background: #ecfccb; 
    color: #3f6212; 
}
.badge.san-miguel { 
    background: #ffedd5; 
    color: #9a3412; 
}
.badge.rimac { 
    background: #f1f5f9; 
    color: #334155; 
}
.badge.las-islas { 
    background: #cffafe; 
    color: #164e63; 
}
.badge.san-isidro { 
    background: #fdf4ff; 
    color: #86198f; 
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.description {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.description-long {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pelicula {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer {
    font-size: 11px;
    color: #aaa;
}

.detail {
    display: none;
}

.card.open .detail {
    display: block;
}

.access {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

.menu-link {
    font-size: 15px;
    color: #444;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 0.5px solid #eee;
}

.menu-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

.menu-link:hover {
    color: #1a1a1a;
}

.extra {
    display: none;
    margin-top: 8px;
}

.extra.open {
    display: block;
}

.btn-more {
     margin-top: 8px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.btn-more:hover {
    border-color: #bbb;
    color: #444;
}

.btn-evenmore {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
}

.btn-evenmore:hover {
    background: #1a1a1a;
    color: white;
}

.location-page {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

.back-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #1a1a1a;
}

.location-header {
    margin-bottom: 1.5rem;
    background: #e8e5e0;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.location-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    border-radius: 14px;
}

.location-header-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.75rem;
    width: 100%;
}

.location-header h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 6px 0 8px 0;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.location-header .badge,
.location-header .loc-address {
    color: rgba(255,255,255,0.85) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* no-image fallback: dark text on light background */
.location-header.no-image h1 {
    color: #1a1a1a;
    text-shadow: none;
}

.location-header.no-image .badge,
.location-header.no-image .loc-address {
    color: inherit !important;
    text-shadow: none;
}

.location-header.no-image .location-header-overlay {
    display: none;
}

.loc-description {
    transition: opacity 0.2s ease;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ), url('images/limashore.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.hero-cta {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background: #333;
}

.movies-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.movie-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #555;
}

.about-page {
    max-width: 680px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 48px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-section h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.about-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.credits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credits-list li {
    font-size: 14px;
    color: #444;
    display: flex;
    gap: 12px;
}

.credit-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
    min-width: 120px;
    padding-top: 2px;
}

/* location page */

.loc-address {
    font-size: 12px;
    color: #aaa;
}

.loc-access {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
    margin-bottom: 2rem;
}

.films-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin-bottom: 12px;
}

.location-films-col {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.loc-films {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 6px;
}

.film-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    background: white;
}

.film-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.film-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.film-year {
    font-size: 11px;
    color: #aaa;
    margin-right: 8px;
}

.film-genres {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.film-wiki {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.film-wiki:hover {
    color: #1a1a1a;
}

.film-description {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.film-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
    margin-right: 4px;
}

.no-films {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

/* footer */

.site-footer {
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.site-footer-title {
    font-weight: 600;
    color: #1a1a1a;
}

.site-footer-divider {
    color: #ddd;
}

.site-footer-credits {
    font-size: 11px;
}

.site-footer a {
    color: #888;
    text-decoration: none;
}

.site-footer a:hover {
    color: #1a1a1a;
}

/* ── scheda estesa (location.html) ──────────────────────────────────────── */

.loc-scheda {
    margin-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
    padding-top: 1.75rem;
}

.scheda-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin-bottom: 14px;
}

.scheda-tab-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.scheda-tab-btn {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.scheda-tab-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.scheda-tab-content {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.scheda-tab-content p {
    margin-bottom: 1rem;
}

.scheda-tab-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #ccc;
}

.scheda-tab-content ul {
    padding-left: 1.1rem;
}

.scheda-tab-content li {
    margin-bottom: 0.6rem;
    font-size: 13px;
    color: #888;
}

/* ── map popup card ─────────────────────────────────────────────────────────── */

.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: none;
    width: 160px !important;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 100% !important;
}

.custom-popup .leaflet-popup-tip-container {
    margin-top: -1px;
}

.popup-card {
    width: 160px;
}

.popup-img-wrap {
    width: 160px;
    height: 110px;
    overflow: hidden;
}

.popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-img-placeholder {
    width: 160px;
    height: 80px;
    background: #ede9e3;
}

.popup-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 8px 10px;
    line-height: 1.3;
}

/* ── text grid controls (location.html) ─────────────────────────────────────── */

.difficulty-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.difficulty-label {
    font-size: 11px;
    color: #aaa;
    min-width: 72px;
    text-align: center;
}

.difficulty-btn {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.difficulty-btn:hover:not(:disabled) {
    border-color: #aaa;
    color: #1a1a1a;
}

.difficulty-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.loc-fallback-note {
    font-size: 11px;
    color: #bbb;
    font-style: italic;
    margin-top: -8px;
    margin-bottom: 12px;
    display: none;
}

/* ── Hero intro (index.html) ──────────────────────────────────────────────── */

.hero-sub {
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-intro {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255,255,255,0.92);
    margin: 0 auto 2rem;
    text-align: justify;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55), 0 2px 24px rgba(0,0,0,0.35);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.hero-link {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.hero-link:hover {
    color: white;
    border-color: white;
}

/* ── Narratives page (itineraries.html) ───────────────────────────────────── */

.narrative-page {
    max-width: 780px;
}

.narrative-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0;
}

.narrative-tab {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 0;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.narrative-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.narrative-content {
    display: none;
}

.narrative-content.active {
    display: block;
}

.narrative-subtitle {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: -8px;
    margin-bottom: 1rem;
}

.narrative-intro h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 6px;
}

.chapter-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 6px;
}

.narrative-chapter h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.chapter-dates {
    font-size: 14px;
    font-weight: 400;
    color: #aaa;
}

.chapter-intro {
    font-size: 14px;
    color: #888;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.narrative-transition {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #e5e5e5;
    background: #fafaf8;
    border-radius: 0 8px 8px 0;
}

.narrative-transition p {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-year {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 2px;
}

.timeline-location {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.timeline-location a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.timeline-location a:hover {
    border-color: #1a1a1a;
}

.timeline-district {
    font-weight: 400;
    color: #aaa;
}

.timeline-body p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* ── Itinerary stops ──────────────────────────────────────────────────────── */

.itinerary-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 12px;
    color: #aaa;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.itinerary-stop {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.stop-number {
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.stop-location {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.stop-location a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.stop-location a:hover { border-color: #1a1a1a; }

.stop-body p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* ── Previous / Next (location.html) ─────────────────────────────────────── */

.prev-next-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    gap: 1rem;
}

.prev-next-btn {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    max-width: 38%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.prev-next-btn:hover { color: #1a1a1a; }

.prev-next-disabled {
    font-size: 12px;
    color: #ccc;
    max-width: 38%;
}

.prev-next-home {
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    flex-shrink: 0;
}

.prev-next-home:hover { color: #1a1a1a; }

/* ── Card prev/next (map cards) ───────────────────────────────────────────── */

.card-prev-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
    gap: 8px;
}

.card-nav-btn {
    font-size: 11px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-nav-btn:hover { color: #1a1a1a; }

.card-nav-next { text-align: right; }


/* ── film profile (location.html) ────────────────────────────────────────── */

.film-profile-toggle {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    background: none;
    border: none;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0 0;
    margin-top: 10px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.film-profile-toggle:hover { color: #1a1a1a; }

.film-profile-toggle.open { color: #1a1a1a; }
.film-profile-toggle.open::after { content: ' ↑'; }

.film-profile {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.film-profile.open { display: block; }

.film-profile-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin: 12px 0 4px;
}

.film-profile-text {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.film-profile-themes {
    font-style: italic;
    color: #888;
}
