:root {
    --maroon: #74264F;
    --gold: #FFC72C;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: var(--maroon);
    color: var(--white);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
}

.site-title {
    font-size: 28px;
    margin: 0;
    font-weight: bold;
    background: linear-gradient(45deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease;
}

.site-nav {
    display: flex;
    gap: 25px;
}

.site-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.site-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.site-nav a:hover {
    color: var(--maroon);
    transform: translateY(-2px);
}

.site-nav a:hover::before {
    left: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(116, 38, 79, 0.8) 0%, rgba(116, 38, 79, 0.4) 100%), 
                url("/static/metrimonehouse.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1.2s ease;
}

.hero-inner {
    max-width: 800px;
    padding: 40px;
    animation: scaleIn 1s ease 0.3s both;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: slideInFromLeft 1s ease 0.5s both;
}

.hero-sub {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInFromRight 1s ease 0.7s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.4s ease;
    border: 2px solid var(--maroon);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: var(--maroon);
    color: var(--white);
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--maroon);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn.ghost {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn.ghost::before {
    background: var(--white);
}

.btn.ghost:hover {
    color: var(--maroon);
}

/* Quick Links & Cards */
.quick-links {
    padding: 80px 0;
    background: var(--light-gray);
    animation: fadeIn 1.2s ease;
}

.quick-links h3,
.timeline-section h3,
.timeline-wheel-section h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--maroon);
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.quick-links h3::after,
.timeline-section h3::after,
.timeline-wheel-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    animation: expandWidth 0.8s ease 0.5s both;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    text-decoration: none;
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    color: var(--dark-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--maroon);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--maroon);
}

.card h4 {
    color: var(--maroon);
    margin-bottom: 20px;
    font-size: 22px;
    transition: color 0.3s ease;
}

.card:hover h4 {
    color: var(--gold);
}

.card p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 16px;
}

/* Page Layout */
.page {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.page h2 {
    color: var(--maroon);
    margin-bottom: 40px;
    font-size: 42px;
    text-align: center;
    position: relative;
}

.page h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

/* Footer */
.site-footer {
    background: var(--maroon);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.site-footer p {
    margin: 0;
    font-size: 16px;
}

/* History & Timeline Sections */
.history-intro,
.history-section,
.timeline-section {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.history-intro {
    font-size: 20px;
    padding-bottom: 40px;
}

.history-section {
    font-size: 18px;
    line-height: 1.7;
    padding: 50px 0;
}

.history-section h3 {
    color: var(--maroon);
    font-size: 30px;
    margin-bottom: 15px;
    position: relative;
}

.history-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
}

/* Timeline Wheel */
.timeline-wheel-section {
    background: var(--light-gray);
}

.cards-container {
    --base-rotation: 0deg;
    --full-circle: 360deg;
    --radius: 35vw;
    --duration: 300ms;
    --label-color: var(--maroon);
    --label-color-hover: var(--gold);
    --label-color-active: var(--maroon);
    --cards-container-size: calc(var(--radius) * 2);
    --cards-container-padding: 2rem;
    --border-color: var(--maroon);
    --label-offset: calc(var(--radius) * -1 - 1rem);
    --label-size: 35px;
    --label-line-h: 0;
    --label-line-h-current: 3rem;
    --label-dot-size: 12px;
    --title-top: 2rem;
    --title-offset-y: 30px;
    --info-top: 6rem;
    --info-width: min(70%, 400px);
    --info-offset-y: 30px;

    box-sizing: content-box;
    position: relative;
    margin: 3rem auto;
    width: var(--cards-container-size);
    height: var(--cards-container-size);
    padding: var(--cards-container-padding);
    overflow: hidden;
    border-radius: 20px;
}

.cards-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(116, 38, 79, 0.1), rgba(255, 199, 44, 0.1));
    z-index: -2;
}

.cards-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -3;
    opacity: 0.3;
    object-fit: cover;
}

.cards {
    position: absolute;
    inset: var(--cards-container-padding);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: transform 0.4s ease-in-out var(--duration);
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.cards li {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    transform-origin: center;
    display: grid;
    place-content: center;
    transform: rotate(calc(var(--i) * 360deg / var(--items)));
    pointer-events: none;
}

.cards li > label {
    position: absolute;
    inset: 0;
    margin: auto;
    transform: translateY(var(--label-offset));
    width: var(--label-size);
    height: var(--label-size);
    cursor: pointer;
    pointer-events: initial;
    text-align: center;
    color: var(--label-color);
    font-size: clamp(0.8rem, 2vw + 0.1rem, 1rem);
    font-weight: 600;
    transition: all var(--duration) ease-in-out;
}

.cards li > label::before {
    content: '';
    position: absolute;
    top: var(--cards-container-padding);
    left: 50%;
    transform: translateX(-50%);
    width: var(--label-dot-size);
    height: var(--label-dot-size);
    border-radius: 50%;
    background-color: var(--label-color);
    transition: all var(--duration) ease-in-out;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--label-color);
}

.cards li > label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 2px;
    height: var(--label-line-h);
    background-color: var(--gold);
    transition: height 0.4s ease-in-out var(--label-line-delay, 0ms);
}

.cards li > label:hover {
    color: var(--label-color-hover);
}

.cards li > label:hover::before {
    background-color: var(--label-color-hover);
    box-shadow: 0 0 0 2px var(--label-color-hover);
    transform: translateX(-50%) scale(1.2);
}

.cards > li > h2 {
    position: absolute;
    left: 50%;
    top: var(--title-top);
    transform: translate(-50%, var(--title-offset-y));
    text-align: center;
    color: var(--maroon);
    font-size: 1.8rem;
    margin: 0;
    opacity: var(--title-opacity, 0);
    transition: all var(--duration) ease-in-out var(--title-delay, 0ms);
    font-weight: bold;
}

.cards > li > p {
    position: absolute;
    left: 50%;
    top: var(--info-top);
    transform: translate(-50%, var(--info-offset-y));
    margin: 0 auto;
    width: var(--info-width);
    text-align: center;
    color: var(--dark-gray);
    font-size: clamp(0.8rem, 1.5vw + 0.1rem, 0.9rem);
    line-height: 1.5;
    opacity: var(--info-opacity, 0);
    transition: all var(--duration) ease-in-out var(--info-delay, 0ms);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--gold);
}

.cards > li > .timeline-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 15px auto;
    border: 3px solid var(--gold);
    display: var(--image-display, block);
    animation: scaleIn 0.6s ease 0.5s both;
}

input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

li:has(input:checked) {
    --label-color: var(--label-color-active);
    --label-line-h: var(--label-line-h-current);
    --label-line-delay: calc(var(--duration) * 2);
    --title-opacity: 1;
    --title-offset-y: 0;
    --title-delay: calc(var(--duration) * 3);
    --info-opacity: 1;
    --info-offset-y: 0;
    --info-delay: calc(var(--duration) * 4);
}

li:has(input:checked) > label::before {
    background-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold);
    transform: translateX(-50%) scale(1.3);
}

.cards:has(input:checked) {
    transform: rotate(calc(var(--base-rotation) - (var(--index) * var(--full-circle) / var(--items))));
}

/* Individual item mappings */
.cards:has(li:nth-child(1) > input:checked) { --index: 0; }
.cards:has(li:nth-child(2) > input:checked) { --index: 1; }
.cards:has(li:nth-child(3) > input:checked) { --index: 2; }
.cards:has(li:nth-child(4) > input:checked) { --index: 3; }
.cards:has(li:nth-child(5) > input:checked) { --index: 4; }
.cards:has(li:nth-child(6) > input:checked) { --index: 5; }
.cards:has(li:nth-child(7) > input:checked) { --index: 6; }
.cards:has(li:nth-child(8) > input:checked) { --index: 7; }

/* Toggle & Summary Buttons */
.timeline-toggle {
    text-align: center;
    margin: 40px 0;
}

.toggle-btn,
.summary-btn {
    background: var(--maroon);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 38, 79, 0.3);
}

.toggle-btn:hover,
.summary-btn:hover {
    background: var(--gold);
    color: var(--maroon);
    transform: translateY(-2px);
}

.summary-btn-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1000;
}

.summary-btn {
    padding: 12px 20px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.summary-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Traditional Timeline */
.traditional-timeline {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.timeline__event {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    margin: 40px 0;
    border-radius: 10px;
    align-self: center;
    width: 80%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline__event:nth-child(2n+1) {
    flex-direction: row-reverse;
}

.timeline__event__date {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 30px;
    border-radius: 10px 0 0 10px;
    min-width: 180px;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0 10px 10px 0;
}

.timeline__event__content {
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--white);
    width: 70%;
    border-radius: 0 10px 10px 0;
    border-left: 4px solid var(--gold);
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
    border-radius: 10px 0 0 10px;
    border-left: none;
    border-right: 4px solid var(--gold);
}

.timeline__event__title {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 15px;
}

.timeline__event__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Images */
.timeline-image,
.timeline-image-full {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    animation: scaleIn 0.8s ease;
}

.timeline-image-full {
    height: 300px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.timeline-caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 5px;
}

/* History Summary */
.history-summary {
    padding: 80px 0;
    background: var(--light-gray);
    animation: fadeInUp 1s ease;
    display: none;
}

.summary-visible .history-summary {
    display: block;
}

.summary-visible .timeline-wheel-section {
    display: none;
}

.summary-section {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideInFromLeft 0.8s ease;
    border-left: 5px solid var(--maroon);
}

.summary-section h3 {
    color: var(--maroon);
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.summary-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
    animation: expandWidth 0.8s ease 0.5s both;
}

.summary-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--dark-gray);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Animation Delays */
.timeline__event:nth-child(1),
.summary-section:nth-child(1) { animation-delay: 0.1s; }
.timeline__event:nth-child(2),
.summary-section:nth-child(2) { animation-delay: 0.2s; }
.timeline__event:nth-child(3),
.summary-section:nth-child(3) { animation-delay: 0.3s; }
.timeline__event:nth-child(4),
.summary-section:nth-child(4) { animation-delay: 0.4s; }
.timeline__event:nth-child(5),
.summary-section:nth-child(5) { animation-delay: 0.5s; }
.timeline__event:nth-child(6),
.summary-section:nth-child(6) { animation-delay: 0.6s; }
.timeline__event:nth-child(7),
.summary-section:nth-child(7) { animation-delay: 0.7s; }
.timeline__event:nth-child(8),
.summary-section:nth-child(8) { animation-delay: 0.8s; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .site-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-sub {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        width: 200px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .quick-links h3,
    .timeline-section h3,
    .timeline-wheel-section h3 {
        font-size: 28px;
    }
    
    .page h2 {
        font-size: 32px;
    }
    
    .cards-container {
        --radius: 45vw;
        --label-size: 30px;
        --label-dot-size: 10px;
        --label-line-h-current: 2rem;
        --title-top: 1.5rem;
        --info-top: 4rem;
        --info-width: min(85%, 300px);
    }
    
    .cards > li > h2 {
        font-size: 20px;
    }
    
    .cards > li > p {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .timeline__event {
        flex-direction: column;
        width: 95%;
    }
    
    .timeline__event__date {
        border-radius: 10px 10px 0 0;
        min-width: auto;
        padding: 15px;
    }
    
    .timeline__event__content {
        width: 100%;
        border-radius: 0 0 10px 10px;
        border-left: none;
        border-top: 4px solid var(--gold);
    }
    
    .timeline__event:nth-child(2n+1) {
        flex-direction: column;
    }
    
    .timeline__event:nth-child(2n+1) .timeline__event__date {
        border-radius: 10px 10px 0 0;
    }
    
    .timeline__event:nth-child(2n+1) .timeline__event__content {
        border-radius: 0 0 10px 10px;
        border-right: none;
        border-top: 4px solid var(--gold);
    }
    
    .cards-container video {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .cards-container {
        --radius: 55vw;
        --cards-container-padding: 1rem;
    }
    
    .timeline-wheel-section {
        padding: 40px 0;
    }
    
    .summary-btn-container {
        position: static;
        text-align: center;
        margin: 20px 0;
    }
}
/* Enhanced Map Styles */
.map-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 600px;
}

#map {
    height: 100%;
    width: 100%;
}

/* Custom Marker Styles */
.custom-marker {
    background: var(--maroon);
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker-historical { background: var(--maroon); }
.marker-shopping { background: #db2777; }
.marker-parks { background: #16a34a; }
.marker-education { background: #854d0e; }
.marker-entertainment { background: #7c3aed; }
.marker-community { background: #0366d6; }
.marker-sports { background: #dc2626; }

/* Popup Styles */
.leaflet-popup-content {
    margin: 12px;
    min-width: 250px;
}

.leaflet-popup-content h3 {
    color: var(--maroon);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.leaflet-popup-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.leaflet-popup-content .category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--maroon);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Enhanced Filter Controls */
.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--maroon);
    background: var(--white);
    color: var(--maroon);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--maroon);
    color: var(--white);
}

.search-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#locationSearch {
    padding: 12px 20px;
    border: 2px solid var(--maroon);
    border-radius: 25px;
    width: 300px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#locationSearch:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 38, 79, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--gold);
    color: var(--maroon);
    transform: translateY(-2px);
}

/* Enhanced Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.location-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    color: var(--maroon);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Category Tag Colors */
.category-tag.historical { background: #e8f4fd; color: #0366d6; }
.category-tag.shopping { background: #fdf2f8; color: #db2777; }
.category-tag.parks { background: #f0fdf4; color: #16a34a; }
.category-tag.education { background: #fef7cd; color: #854d0e; }
.category-tag.entertainment { background: #f3e8ff; color: #7c3aed; }
.category-tag.community { background: #e0f2fe; color: #0366d6; }
.category-tag.sports { background: #fee2e2; color: #dc2626; }

.neighborhood-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: center;
    }
    
    #locationSearch {
        width: 100%;
        max-width: 300px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .map-wrapper {
        height: 400px;
    }
}
/* About & References Page Styling */
.info-page,
.content {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-page h1,
.content h1 {
    text-align: center;
    margin-bottom: 20px;
}

.info-page h2,
.content h2 {
    margin-top: 25px;
}

.info-page p,
.content p,
.info-page li {
    line-height: 1.6;
    font-size: 1.05rem;
}

.info-page ul {
    padding-left: 20px;
}

.info-page a {
    color: #2a5d84;
    text-decoration: none;
}

.info-page a:hover {
    text-decoration: underline;
}
