/*
Theme Name: Boulder-Ramat HaNegev Sister Cities
Theme URI: https://www.bouldernegev.org
Author: Boulder-Ramat HaNegev Sister City Initiative
Description: Custom responsive WordPress theme for the Boulder-Ramat HaNegev Sister City Initiative, connecting Boulder, Colorado with Ramat HaNegev, Israel.
Version: 1.2.0
Text Domain: bouldernegev
*/

/* -------------------------------------------------------------
   Design System & Color Tokens (Derived from Logo & Landscapes)
   ------------------------------------------------------------- */
:root {
    /* Brand Palette */
    --bn-blue: #0d5c91;          /* Logo Cerulean / Rocky Mountain Blue */
    --bn-blue-dark: #083e63;     /* Deep Navy for high contrast & headers */
    --bn-blue-light: #eaf2f8;    /* Soft Azure tint for cards & pills */
    --bn-gold: #d99b26;          /* Logo Ibex & desert ridge gold */
    --bn-gold-hover: #bd8319;    /* Darkened gold for hover contrast */
    --bn-gold-light: #fef7ec;    /* Soft warm gold tint */
    --bn-slate: #2c3844;         /* Rich mountain slate */
    --bn-sand: #fbf9f5;          /* Warm desert sand background */
    --bn-sand-subtle: #ede8dc;   /* Desert sand border / divider tone */
    --bn-terracotta: #c2593f;    /* Warm desert terracotta accent */
    
    /* Semantic Surfaces & Text */
    --bn-text: #1e293b;          /* High contrast charcoal */
    --bn-text-muted: #556980;    /* Accessible muted slate */
    --bn-surface: #ffffff;
    --bn-border: #e2e8f0;
    
    /* Legacy variable mappings for backward compatibility */
    --primary-color: var(--bn-blue);
    --primary-dark: var(--bn-blue-dark);
    --secondary-color: var(--bn-slate);
    --accent-warning: var(--bn-gold);
}

/* -------------------------------------------------------------
   Base Typography & Accessibility (Modern Web Guidance)
   ------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bn-text);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.wp-block-heading {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--bn-blue-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Ensure white text is honored on dark/primary backgrounds */
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3, .text-white .display-4, .text-white .display-5, .text-white .display-6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary .display-1, .bg-primary .display-2, .bg-primary .display-3, .bg-primary .display-4, .bg-primary .display-5, .bg-primary .display-6,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
    color: #ffffff !important;
}

p, li, .wp-block-paragraph {
    text-wrap: pretty;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--bn-gold) !important;
    outline-offset: 3px !important;
}

/* Skip link for screen reader / keyboard accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--bn-blue-dark);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    z-index: 99999;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    transition: top 0.2s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Backward compatibility for legacy Bootstrap 4 .font-weight-bold */
.font-weight-bold {
    font-weight: 700 !important;
}

/* Typography utilities from legacy site modernized */
.text11em {
    font-size: 1.15rem;
    line-height: 1.7;
}

.text12em {
    font-size: 1.1rem;
    line-height: 1.65;
}

.text13em {
    font-size: 1.25rem;
    line-height: 1.65;
}

/* Bootstrap Theme Overrides */
.bg-primary {
    background-color: var(--bn-blue) !important;
}

.bg-secondary {
    background-color: var(--bn-slate) !important;
}

.text-primary {
    color: var(--bn-blue) !important;
}

.btn-primary {
    background-color: var(--bn-blue) !important;
    border-color: var(--bn-blue) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bn-blue-dark) !important;
    border-color: var(--bn-blue-dark) !important;
}

.btn-outline-primary {
    border-color: var(--bn-blue) !important;
    color: var(--bn-blue) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bn-blue) !important;
    color: #ffffff !important;
}

.btn-warning,
.btn-gold {
    background-color: var(--bn-gold) !important;
    border-color: var(--bn-gold) !important;
    color: #ffffff !important;
}

.btn-warning:hover, .btn-warning:focus,
.btn-gold:hover, .btn-gold:focus {
    background-color: var(--bn-gold-hover) !important;
    border-color: var(--bn-gold-hover) !important;
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   Header & Navigation
   ------------------------------------------------------------- */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--bn-sand-subtle);
    padding: 0.85rem 1rem;
    transition: box-shadow 0.2s ease;
}

.navbar-brand {
    color: var(--bn-blue-dark) !important;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: var(--bn-slate) !important;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item.current-menu-item .nav-link {
    color: var(--bn-blue) !important;
    background-color: var(--bn-blue-light);
}

.nav-link.btn-donate-nav {
    background-color: var(--bn-gold) !important;
    color: #ffffff !important;
    border: 1px solid var(--bn-gold) !important;
    border-radius: 6px;
    font-weight: 700;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(217, 155, 38, 0.25);
    transition: all 0.2s ease;
}

.nav-link.btn-donate-nav:hover {
    background-color: var(--bn-gold-hover) !important;
    border-color: var(--bn-gold-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(217, 155, 38, 0.35);
}

/* -------------------------------------------------------------
   WordPress Core Blocks Styling (Block Editor Support)
   ------------------------------------------------------------- */
/* Group Block / Sections */
.wp-block-group {
    box-sizing: border-box;
}

.wp-block-group.alignfull {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
}

.wp-block-group.alignfull > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group.alignfull > .alignwide {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.bn-section-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Buttons Block */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center;
}

.wp-block-button__link {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Button Variants in Block Editor */
.wp-block-button.btn-bn-primary .wp-block-button__link {
    background-color: var(--bn-blue);
    color: #ffffff !important;
    border: 2px solid var(--bn-blue);
}

.wp-block-button.btn-bn-primary .wp-block-button__link:hover {
    background-color: var(--bn-blue-dark);
    border-color: var(--bn-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 92, 145, 0.25);
}

.wp-block-button.btn-bn-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--bn-blue) !important;
    border: 2px solid var(--bn-blue);
}

.wp-block-button.btn-bn-outline .wp-block-button__link:hover {
    background-color: var(--bn-blue);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 92, 145, 0.2);
}

.wp-block-button.btn-bn-gold .wp-block-button__link {
    background-color: var(--bn-gold);
    color: #ffffff !important;
    border: 2px solid var(--bn-gold);
}

.wp-block-button.btn-bn-gold .wp-block-button__link:hover {
    background-color: var(--bn-gold-hover);
    border-color: var(--bn-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 155, 38, 0.35);
}

.wp-block-button.btn-bn-outline-light .wp-block-button__link {
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.wp-block-button.btn-bn-outline-light .wp-block-button__link:hover {
    background-color: #ffffff;
    color: var(--bn-blue-dark) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   Page Header Banners & Gutenberg Editor Support
   ------------------------------------------------------------- */
.bn-events-hero,
.bn-programs-hero,
.bn-emergency-hero,
.bn-contact-hero,
.bn-travel-hero {
    background-color: var(--bn-blue-dark) !important;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
    color: #ffffff;
}

.bn-events-hero .wp-block-heading,
.bn-programs-hero .wp-block-heading,
.bn-emergency-hero .wp-block-heading,
.bn-contact-hero .wp-block-heading,
.bn-travel-hero .wp-block-heading,
.bn-events-hero h1,
.bn-programs-hero h1,
.bn-emergency-hero h1,
.bn-contact-hero h1,
.bn-travel-hero h1,
.bn-events-hero p,
.bn-programs-hero p,
.bn-emergency-hero p,
.bn-contact-hero p,
.bn-travel-hero p {
    color: #ffffff !important;
}

.bn-events-hero .lead,
.bn-programs-hero .lead,
.bn-emergency-hero .lead,
.bn-contact-hero .lead,
.bn-travel-hero .lead {
    color: rgba(255, 255, 255, 0.75) !important;
}

.bn-upcoming-card {
    background: linear-gradient(135deg, var(--bn-blue-light) 0%, #ffffff 100%) !important;
    border-left: 5px solid var(--bn-blue) !important;
    border-radius: 12px;
}

.bn-nav-strip {
    background-color: var(--bn-sand) !important;
}

.bn-cat-pill-gold {
    border-color: var(--bn-gold) !important;
    color: var(--bn-gold-hover) !important;
}

.bn-exchanges-section {
    background-color: var(--bn-sand) !important;
    border-top: 1px solid var(--bn-sand-subtle);
    border-bottom: 1px solid var(--bn-sand-subtle);
}

.bn-future-section {
    background-color: #ffffff !important;
    border-top: 1px solid var(--bn-border);
    border-bottom: 1px solid var(--bn-border);
}

.bn-cta-box {
    background-color: var(--bn-blue-light) !important;
    border: 1px solid var(--bn-border) !important;
    border-radius: 12px;
}

.bn-letter-card {
    background-color: var(--bn-sand) !important;
    border-left: 5px solid var(--bn-gold) !important;
}

.bn-quote-text {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
}

.bn-donation-cta {
    background-color: var(--bn-sand) !important;
}

.bn-contact-logo img,
figure.bn-contact-logo img {
    max-height: 200px !important;
    width: auto !important;
    display: block;
    margin: 0 auto;
}

.bn-engagement-card {
    background-color: var(--bn-sand) !important;
}

.bn-engagement-title {
    letter-spacing: 0.05em;
}

/* Ensure columns flex responsiveness and spacing in Block Editor and Theme */
.wp-block-columns.align-items-center {
    align-items: center;
}

.wp-block-columns.align-items-start {
    align-items: flex-start;
}

@media (min-width: 992px) {
    .wp-block-columns.flex-lg-row-reverse {
        flex-direction: row-reverse !important;
    }
    .wp-block-column.col-lg-8 {
        flex-basis: 66.66% !important;
        flex-grow: 0 !important;
    }
    .wp-block-column.col-lg-4 {
        flex-basis: 33.33% !important;
        flex-grow: 0 !important;
    }
    .wp-block-column.col-lg-7 {
        flex-basis: 58.33% !important;
        flex-grow: 0 !important;
    }
    .wp-block-column.col-lg-5 {
        flex-basis: 41.67% !important;
        flex-grow: 0 !important;
    }
    .wp-block-column.col-lg-6 {
        flex-basis: 50% !important;
        flex-grow: 0 !important;
    }
}

.bn-lead-max {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-columns.g-4 {
    gap: 1.5rem !important;
}

/* Lightbox support for Gutenberg image figures */
figure.bn-gallery-grid-img,
figure.bn-gallery-grid-img img,
.bn-gallery-grid-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

figure.bn-gallery-grid-img:hover img,
.bn-gallery-grid-img:hover img,
img.bn-gallery-grid-img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Admin Block Editor Canvas Styles */
.editor-styles-wrapper .bn-events-hero {
    background-color: var(--bn-blue-dark) !important;
    padding: 3rem 1.5rem;
    color: #ffffff !important;
}

.editor-styles-wrapper .bn-events-hero .wp-block-heading {
    color: #ffffff !important;
}

.editor-styles-wrapper .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.editor-styles-wrapper .badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* -------------------------------------------------------------
   Hero Section & Elements
   ------------------------------------------------------------- */
.bn-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bn-sand) 100%);
    border-bottom: 1px solid var(--bn-sand-subtle);
    padding: 3.5rem 0 4rem 0;
}

.bn-hero-logo {
    margin-bottom: 2rem !important;
    text-align: center;
}

.bn-hero-logo figure {
    margin: 0 auto !important;
    display: inline-block;
}

.bn-hero-logo img {
    max-height: 190px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 4px 12px rgba(13, 92, 145, 0.08));
}

.bn-hero-title {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--bn-blue-dark);
    margin-bottom: 1.25rem;
}

.bn-hero-subtitle {
    font-size: clamp(1.1rem, 1.3vw + 0.5rem, 1.3rem);
    color: var(--bn-slate);
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Dual Landscape Cards (Clean 2-Column Grid) */
.bn-dual-photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    background: #ffffff;
    border: 3px solid #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.bn-dual-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.bn-dual-photo-card img,
.bn-dual-photo-card .wp-block-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
}

.bn-photo-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(8, 62, 99, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Distance Connector Ribbon */
.bn-distance-banner {
    background: #ffffff;
    border: 1px solid var(--bn-border);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bn-blue-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.bn-hero-bullet-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bn-sand-subtle);
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--bn-blue-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    margin: 0.25rem;
}

/* -------------------------------------------------------------
   Core Pillars / Mission Cards
   ------------------------------------------------------------- */
.bn-mission-section {
    background-color: var(--bn-blue-dark) !important;
    color: #ffffff;
    padding-top: 5rem !important;
    padding-bottom: 5.5rem !important;
    padding-left: clamp(2rem, 6vw, 5rem) !important;
    padding-right: clamp(2rem, 6vw, 5rem) !important;
    box-sizing: border-box;
}

.bn-mission-section > * {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bn-mission-section .wp-block-columns {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 2rem !important;
}

.bn-mission-section h2,
.bn-mission-section .wp-block-heading {
    color: #ffffff;
}

.bn-mission-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bn-mission-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.bn-icon-badge {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, var(--bn-blue-light) 100%);
    border: 3px solid var(--bn-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    padding: 16px;
    box-sizing: border-box;
}

.bn-icon-badge img,
.bn-icon-badge svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------------------
   Two Communities Comparison Box ("Two Cities, One Spirit")
   ------------------------------------------------------------- */
.bn-comparison-card {
    background: #ffffff;
    border: 1px solid var(--bn-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.bn-stat-item {
    border-bottom: 1px dashed var(--bn-sand-subtle);
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
}

.bn-stat-item:last-child {
    border-bottom: none;
}

/* -------------------------------------------------------------
   Latest News Shortcode Cards
   ------------------------------------------------------------- */
.bn-news-card {
    border: 1px solid var(--bn-border);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bn-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.bn-news-card-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.bn-news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------
   Category Navigation Pills (Programs, Events)
   ------------------------------------------------------------- */
.bn-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.bn-cat-pill {
    background: #ffffff;
    border: 1px solid var(--bn-border);
    color: var(--bn-slate);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bn-cat-pill:hover,
.bn-cat-pill.active {
    background: var(--bn-blue);
    border-color: var(--bn-blue);
    color: #ffffff;
}

/* -------------------------------------------------------------
   Program Cards & Event Cards
   ------------------------------------------------------------- */
.program-card {
    border: 1px solid var(--bn-border) !important;
    background-color: #ffffff;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.program-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bn-program-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

/* -------------------------------------------------------------
   Photo Galleries & Lightbox (<dialog>)
   ------------------------------------------------------------- */
.bn-gallery-grid-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.bn-gallery-grid-img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Native HTML <dialog> Lightbox */
.bn-lightbox {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bn-lightbox::backdrop {
    background: rgba(10, 25, 41, 0.85);
    backdrop-filter: blur(6px);
}

.bn-lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bn-lightbox-content img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.bn-lightbox-caption {
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
}

.bn-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 1;
    cursor: pointer;
}

/* -------------------------------------------------------------
   Footer & Partner Strip
   ------------------------------------------------------------- */
.site-footer {
    background-color: var(--bn-slate) !important;
    color: #e2e8f0;
    border-top: 4px solid var(--bn-gold);
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--bn-gold);
}

.bn-partner-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-block;
}

/* -------------------------------------------------------------
   Ramat HaNegev Interactive Travel Map & POI Directory Styles
   ------------------------------------------------------------- */
.bn-map-wrapper {
    position: relative;
    border-radius: 10px;
    background: #e5e3df;
}

.bn-map-overlay-tools {
    position: absolute;
    bottom: 25px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.bn-map-tool-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #1e293b;
    transition: all 0.2s ease;
}

.bn-map-tool-btn:hover {
    background: #ffffff;
    color: var(--bn-blue, #0d5c91);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bn-map-layer-guide {
    position: absolute;
    bottom: 25px;
    left: 110px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Category Filter Pills */
.bn-filter-btn {
    background: #ffffff;
    border: 1px solid var(--bn-border, #e2e8f0);
    color: var(--bn-slate, #2c3844);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bn-filter-btn:hover {
    border-color: var(--bn-gold, #d99b26);
    color: var(--bn-blue-dark, #083e63);
    background: #fdfaf3;
}

.bn-filter-btn.active {
    background: var(--bn-blue-dark, #083e63) !important;
    border-color: var(--bn-blue-dark, #083e63) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(8, 62, 99, 0.28);
}

.bn-filter-btn.active .badge {
    background-color: var(--bn-gold, #d99b26) !important;
    color: #ffffff !important;
    border: none !important;
}

.bn-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* Custom Leaflet SVG Pin */
.bn-custom-pin-wrapper {
    background: none;
    border: none;
}

.bn-svg-pin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #0d5c91);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px 2px 6px rgba(0, 0, 0, 0.35);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-svg-pin .bn-pin-glyph {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
    fill: #ffffff;
}

.bn-svg-pin:hover {
    transform: rotate(-45deg) scale(1.18);
    z-index: 1000 !important;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.leaflet-popup-content {
    margin: 0;
    line-height: 1.5;
}

.bn-popup-card {
    max-width: 290px;
    font-family: inherit;
}

.bn-popup-img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
}

.bn-popup-body {
    padding: 12px 14px;
}

.bn-popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bn-blue-dark, #083e63);
    margin: 0 0 2px;
}

.bn-popup-subtitle {
    font-size: 0.8rem;
    margin: 0 0 8px;
}

.bn-popup-desc {
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Directory Cards */
.bn-place-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
}

.bn-place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

.bn-card-img {
    height: 180px;
    object-fit: cover;
}

.bn-card-img-placeholder {
    height: 180px;
}

/* Modern Accessible Dialog Modal (Modern Web Guidance) */
dialog.bn-modal-dialog {
    border: none;
    padding: 0;
    border-radius: 14px;
    max-width: 680px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

dialog:modal {
    overscroll-behavior: contain;
}

dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.bn-dialog-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.bn-dialog-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bn-dialog-body {
    padding: 1.5rem;
    max-height: 82vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* -------------------------------------------------------------
   Left-Side Synchronized Places List & Regional Boundary Styles
   ------------------------------------------------------------- */
.bn-sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--bn-border, #e2e8f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bn-places-scroll-list {
    overflow-y: auto;
    max-height: 645px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    padding-right: 4px;
}

/* Custom scrollbar for left places list */
.bn-places-scroll-list::-webkit-scrollbar {
    width: 6px;
}
.bn-places-scroll-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.bn-places-scroll-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.bn-places-scroll-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bn-place-list-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.bn-place-list-item:hover {
    border-color: var(--bn-gold, #d99b26);
    background: #fcfaf6;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.bn-place-list-item.active-place-item {
    border-color: var(--bn-blue, #0d5c91) !important;
    background: #f0f7fc !important;
    box-shadow: 0 0 0 2px rgba(13, 92, 145, 0.25), 0 4px 12px rgba(13, 92, 145, 0.12) !important;
}

.bn-place-list-item.active-place-item .bn-place-item-title {
    color: var(--bn-blue, #0d5c91) !important;
}

.bn-list-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px #ffffff, 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bn-place-item-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
    line-height: 1.45;
    font-size: 0.82rem;
    color: #556980;
}

.btn-xs {
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.3;
}

/* Boundary Hover Tooltip */
.bn-boundary-tooltip {
    background: rgba(8, 62, 99, 0.95);
    border: 1px solid var(--bn-gold, #d99b26);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.84rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.bn-boundary-tooltip::before {
    border-top-color: rgba(8, 62, 99, 0.95);
}
