/* -------------------------------------------------------------
    1. VARIABLES & CORE RESET
------------------------------------------------------------- */
:root {
    --primary: #12352b;
    --primary-light: #1e4d40;
    --accent: #f4b000;
    --bg-light: #f5f5f2;
    --white: #ffffff;
    --text: #222;
    --header-height: 60px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; transition: 0.2s; }

/* -------------------------------------------------------------
    2. HERO BANNER (TOP OF PAGE)
------------------------------------------------------------- */
.kc-hero {
    display: block;
    width: 100%;
    aspect-ratio: 1209 / 300; 
    background: url('kinzua.jpg') center center / cover no-repeat;
    /* Remove border: 5px solid red; */
}
/* -------------------------------------------------------------
    3. NAVIGATION HEADER (BELOW HERO)
------------------------------------------------------------- */
.kc-header {
    background: var(--primary);
    color: var(--white);
    height: var(--header-height);
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.kc-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.kc-logo { 
    font-weight: 700; 
    font-size: 1.2rem; 
    color: var(--white); 
}

.kc-nav { display: flex; align-items: center; }

.kc-nav a {
    margin-left: 1.2rem;
    color: #e8f3ef;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kc-nav a:hover { color: var(--accent); }

/* -------------------------------------------------------------
    4. 3-COLUMN GRID SYSTEM
------------------------------------------------------------- */
.kc-main {
    max-width: 1240px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.kc-section-columns {
    display: grid;
    /* Left Sidebar: 260px | Center: Fluid | Right Sidebar: 280px */
    grid-template-columns: 260px 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.kc-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.kc-card-header {
    background: var(--primary);
    color: white;
    margin: -1.25rem -1.25rem 1.25rem -1.25rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* -------------------------------------------------------------
    5. SEARCH FORM (SIDEBAR VERSION)
------------------------------------------------------------- */
.kc-search-form {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.kc-search-form input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 0.9rem;
}

.kc-search-form button {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 0 15px;
    font-weight: 700;
    cursor: pointer;
}

/* -------------------------------------------------------------
    6. MOBILE RESPONSIVENESS
------------------------------------------------------------- */
.kc-mobile-toggle { display: none; color: white; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 1000px) {
    .kc-section-columns { grid-template-columns: 260px 1fr; }
    .kc-col:last-child { display: none; } /* Hide Right Sidebar */
}

@media (max-width: 768px) {
    .kc-nav { display: none; }
    .kc-mobile-toggle { display: block; }
    .kc-section-columns { grid-template-columns: 1fr; }
}

/* Mobile Menu Overlay */
.kc-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.kc-mobile-menu.active { display: flex; }
.kc-mobile-menu a {
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* -------------------------------------------------------------
    7. FOOTER STYLES
------------------------------------------------------------- */
.kc-footer {
    background: var(--primary);
    color: #e8f3ef; /* Light green-white text */
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 4px solid var(--accent);
}

.kc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.kc-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.kc-footer a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
}

.kc-footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* -------------------------------------------------------------
    8. BACK TO TOP BUTTON
------------------------------------------------------------- */
.kc-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.kc-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.kc-back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* Optional: Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* -------------------------------------------------------------
    8. BACK TO TOP BUTTON
------------------------------------------------------------- */
.kc-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.kc-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.kc-back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* -------------------------------------------------------------
    9. TOWNS & CONTENT UTILITIES
------------------------------------------------------------- */
/* Sidebar List Refinement */
.kc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kc-list li {
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.kc-list li:last-child {
    border-bottom: none;
}

.kc-list li a {
    display: block;
    padding: 12px 15px;
    color: var(--primary-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover State */
.kc-list li:hover {
    background-color: #f9f9f9;
}

.kc-list li a:hover {
    color: var(--primary);
    padding-left: 20px; /* Subtle slide effect */
}

/* Active/Selected Town State */
.kc-list li.border-primary {
    background-color: #f0f7f4;
    border-left: 5px solid var(--primary) !important;
    border-bottom: 1px solid #d1e3db;
}

.kc-list li.border-primary a {
    color: var(--primary);
    font-weight: 700;
}

/* Town Content Area */
.town-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.kc-content-area h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* Utility Classes */
.fw-bold { font-weight: 700; }
.float-end { float: right; }
.ms-1 { margin-left: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }

#town-map {
    display: block !important;
    visibility: visible !important;
    overflow: hidden;
}

.kc-custom-marker {
    background: transparent !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaflet-container img {
    max-width: none !important;
}
#town-map {
    overflow: hidden;
}

/* -------------------------------------------------------------
    10. GLOBAL SMOOTH SCROLLING
------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

/* Navigation Dropdown Logic */
.kc-dropdown {
    position: relative;
    display: inline-block;
}

.drop-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.drop-menu a {
    color: #333 !important;
    padding: 12px 16px !important;
    display: block !important;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.drop-menu a:hover {
    background-color: #f8f9fa;
    color: #27ae60 !important;
}

.kc-dropdown:hover .drop-menu {
    display: block;
}

.drop-trigger i {
    font-size: 0.7rem;
    margin-left: 5px;
}