:root {
    --bg-dark: #0a0e14;
    --bg-card: rgba(22, 33, 46, 0.7);
    --accent: #c5a059;
    --accent-glow: rgba(197, 160, 89, 0.3);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('https://grainy-gradients.vercel.app/noise.svg'); */
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 14, 20, 0.8), transparent);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('salem_time_capsule_hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70%, transparent, var(--bg-dark) 90%),
        linear-gradient(to right, var(--bg-dark) 20%, transparent 80%);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero .accent {
    color: var(--accent);
    display: block;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #dcb66b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-gold {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section.dark {
    background-color: #05080c;
}

.section.alt {
    background-color: #0d141d;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.max-w-700 {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.text-center {
    text-align: center;
}

/* Visuals */
.visual-card {
    position: relative;
    padding: 2rem;
}

.card-inner {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.card-inner.modern {
    margin-top: -2rem;
    margin-left: 4rem;
    border-color: var(--accent);
}

.era-tag {
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.node-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.node-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.card-connector {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    z-index: 1;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-glow);
    transform: translateY(-10px);
}

.tech-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tech-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Business Section */
/* Business Visuals */
.visual-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin-comparison-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.stats-card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    z-index: 5;
}

.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .value {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.stat .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-value-item {
    margin-bottom: 2rem;
}

.business-value-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.business-value-item p {
    color: var(--text-dim);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #0a0e14, #1a2a3a);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.cta-group-center {
    margin-top: 3rem;
}

/* Footer */
footer {
    background-color: #05080c;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-dim);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Interface Showcase */
.interface-showcase {
    margin-top: 4rem;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mockup-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-img {
    width: 100%;
    display: block;
}

.mockup-label {
    position: absolute;
    z-index: 10;
}

.mockup-label.top-left {
    top: 20%;
    left: 30%;
}

.mockup-label.top-right {
    top: 15%;
    right: 10%;
}

.mockup-label.bottom-right {
    bottom: 25%;
    right: 10%;
}

.mockup-label .dot {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: block;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent);
    animation: pulse 2s infinite;
}

.mockup-label .label-box {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    padding: 1rem;
    border-radius: 8px;
    width: 250px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
    z-index: 20;
}

.mockup-label.top-left .label-box {
    top: 30px;
    left: -115px;
}

.mockup-label.top-right .label-box {
    top: 30px;
    right: 0;
}

.mockup-label.bottom-right .label-box {
    bottom: 30px;
    right: 0;
}

.mockup-label:hover .label-box {
    opacity: 1;
    transform: translateY(0);
}

.label-box strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.label-box p {
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

@keyframes moonGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 230, 150, 0.6)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 230, 150, 1)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 230, 150, 0.6)); }
}

.full-moon-glow {
    animation: moonGlow 3s infinite ease-in-out;
}

/* Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.workflow-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.workflow-item:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.workflow-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.workflow-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Terminal Overlay */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.terminal-container {
    width: 90%;
    max-width: 800px;
    height: 70vh;
    background: #0d1117;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.terminal-overlay.active .terminal-container {
    transform: translateY(0);
}

.terminal-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control.close {
    background: #ff5f56;
    cursor: pointer;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #c9d1d9;
}

.terminal-body h2 {
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.terminal-body code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--accent);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    color: #27c93f;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* Business Value Grid */
.business-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.business-value-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.business-value-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.business-value-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.business-value-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

/* Sponsor Pin Visualization */
.gold-pin-demo {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #c5a059);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: inline-block;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    position: relative;
    border: 2px solid #fff;
}

.gold-pin-demo::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    border-color: var(--accent);
    background: rgba(197, 160, 89, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.partner-logo {
    width: 70px;
    height: 70px;
    background: #0a0e14;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    box-shadow: inset 0 0 15px var(--accent-glow);
}

.partner-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.partner-link {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sponsorship CTA */
.sponsor-cta {
    background: linear-gradient(to right, rgba(197, 160, 89, 0.1), rgba(10, 14, 20, 0.8));
    border: 1px solid var(--accent-glow);
    padding: 4rem;
    border-radius: 16px;
    margin-top: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsor-cta::before {
    content: "SUPPORTER";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(197, 160, 89, 0.03);
    z-index: 0;
    pointer-events: none;
}

.sponsor-cta h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.sponsor-cta p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.sponsor-cta .btn {
    position: relative;
    z-index: 1;
}

/* Documentation Detail */
.doc-section {
    margin-bottom: 2.5rem;
}

.doc-section h3 {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.doc-endpoint {
    background: #000;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 0.5rem 0;
    border-left: 4px solid #27c93f;
}

.doc-endpoint span {
    color: #8b949e;
}

.doc-endpoint b {
    color: #d2a8ff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 1s forwards 0.6s;
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    /* Bottom Sheet Pattern for Map Popups */
    .mockup-label .label-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: none;
        border-top: 1px solid var(--accent);
        padding: 2.5rem 1.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
        z-index: 2000;
        top: auto;
    }

    .mockup-label:hover .label-box {
        transform: translateY(0);
    }

    /* Larger Touch Targets for Pins */
    .mockup-label .dot {
        width: 32px;
        height: 32px;
        margin: -16px;
        /* Center alignment */
    }

    /* Stacked Sections */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section {
        padding: 5rem 0;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-cta {
        padding: 3rem 1.5rem;
    }
}

/* Merchant Hub Interaction */
.merchant-hub-pin {
    background: radial-gradient(circle, var(--accent), #8a6d3b);
    border: 2px solid #fff;
    box-shadow: 0 0 30px var(--accent-glow);
}


.leaflet-bottom {
    display: none
}

/* Cemetery Directory Modal */
.cemetery-modal-content {
    position: relative;
    background: #111;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 12px;
    z-index: 10001;
    overflow-y: auto;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

/* Redesigned Compact Sticky Topbar */
.cemetery-modal-topbar {
    padding: 1.5rem 2rem;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cemetery-modal-topbar h2 {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cemetery-modal-topbar .cemetery-close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.cemetery-modal-topbar .cemetery-close-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

/* Scrollable Info & Intro Section */
.cemetery-modal-intro {
    padding: 1.5rem 2rem 0.5rem;
}

.cemetery-history-details {
    border: 1px solid rgba(197, 160, 89, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cemetery-history-details[open] {
    border-color: rgba(197, 160, 89, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.cemetery-history-details summary {
    padding: 0.8rem 1.2rem;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    outline: none;
}

.cemetery-history-details summary::-webkit-details-marker {
    display: none; /* Hide default chrome chevron */
}

.cemetery-history-details summary .summary-title {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cemetery-history-details summary .summary-chevron {
    color: var(--accent);
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.cemetery-history-details[open] summary .summary-chevron {
    transform: rotate(180deg);
}

.cemetery-history-details .details-content {
    padding: 0 1.2rem 1.2rem;
}

.cemetery-history-details .details-content p {
    margin: 0;
    padding-left: 0.8rem;
    border-left: 2px solid rgba(197, 160, 89, 0.3);
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sleek Integrated Search Bar */
.cemetery-search-wrapper {
    position: relative;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
}

.cemetery-search-wrapper .search-icon {
    position: absolute;
    left: 3rem;
    font-size: 1rem;
    color: rgba(197, 160, 89, 0.6);
    pointer-events: none;
    z-index: 2;
}

.cemetery-search-wrapper input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    border-radius: 30px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.cemetery-search-wrapper input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.cemetery-search-wrapper input:focus + .search-icon {
    color: var(--accent);
}

/* Records Grid */
.cemetery-records-list {
    padding: 1.5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cemetery-records-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cemetery-records-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cemetery-record-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.cemetery-record-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.cemetery-record-card h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.cemetery-record-card .lifespan {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: rgba(197, 160, 89, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.cemetery-record-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Witch Memorial Special Styling */
.witch-memorial-special {
    border-color: rgba(200, 30, 30, 0.4);
    box-shadow: 0 25px 60px rgba(180, 10, 10, 0.15);
}

.witch-memorial-special .cemetery-modal-topbar {
    background: rgba(25, 15, 15, 0.96);
    border-bottom: 1px solid rgba(255, 107, 107, 0.25);
}

.witch-memorial-special .cemetery-modal-topbar h2 {
    color: #ff6b6b;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.witch-memorial-special .cemetery-modal-topbar .cemetery-close-btn {
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.witch-memorial-special .cemetery-modal-topbar .cemetery-close-btn:hover {
    background: #ff6b6b;
    color: #000;
}

.witch-memorial-special .cemetery-history-details {
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(25, 15, 15, 0.4);
}

.witch-memorial-special .cemetery-history-details[open] {
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(25, 15, 15, 0.6);
}

.witch-memorial-special .cemetery-history-details summary .summary-title {
    color: #ff6b6b;
}

.witch-memorial-special .cemetery-history-details summary .summary-chevron {
    color: #ff6b6b;
}

.witch-memorial-special .cemetery-history-details .details-content p {
    border-left-color: rgba(255, 107, 107, 0.4);
}

.witch-memorial-special .cemetery-search-wrapper input {
    border-color: rgba(255, 107, 107, 0.25);
}

.witch-memorial-special .cemetery-search-wrapper input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.15);
}

.witch-memorial-special .cemetery-search-wrapper .search-icon {
    color: rgba(255, 107, 107, 0.6);
}

.witch-memorial-special .cemetery-search-wrapper input:focus + .search-icon {
    color: #ff6b6b;
}

.witch-memorial-special .lifespan {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.witch-memorial-special .cemetery-record-card {
    border-color: rgba(255, 107, 107, 0.15);
}

.witch-memorial-special .cemetery-record-card:hover {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 50, 50, 0.04);
}

/* =========================================================================
   WEATHER ALMANAC MODAL
   ========================================================================= */
.weather-modal-content {
    position: relative;
    background: rgba(14, 18, 26, 0.96);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    z-index: 10001;
    overflow-y: auto;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    text-align: center;
}

.weather-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: rgba(197, 160, 89, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.weather-modal-close:hover {
    color: var(--accent);
}

.weather-modal-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.weather-modal-temp {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.weather-modal-label {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.weather-modal-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    position: relative;
}

.weather-modal-author {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-top: 1rem;
}

.weather-modal-msg {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.weather-modal-cta {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.weather-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Mobile-Specific Overrides for Cemetery Directory */
@media (max-width: 768px) {
    .cemetery-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .cemetery-modal-topbar {
        padding: 1rem 1.2rem;
    }
    
    .cemetery-modal-topbar h2 {
        font-size: 1.3rem;
    }
    
    .cemetery-modal-topbar .cemetery-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .cemetery-modal-intro {
        padding: 1rem 1.2rem 0.3rem;
    }
    
    .cemetery-history-details summary {
        padding: 0.6rem 0.8rem;
    }
    
    .cemetery-history-details summary .summary-title {
        font-size: 0.9rem;
    }
    
    .cemetery-history-details .details-content {
        padding: 0 0.8rem 0.8rem;
    }
    
    .cemetery-history-details .details-content p {
        font-size: 0.85rem;
        padding-left: 0.6rem;
    }
    
    .cemetery-search-wrapper {
        padding: 0.4rem 1.2rem;
    }
    
    .cemetery-search-wrapper .search-icon {
        left: 2rem;
    }
    
    .cemetery-search-wrapper input {
        padding: 0.7rem 1rem 0.7rem 2.4rem;
        font-size: 0.9rem;
    }
    
    .cemetery-records-list {
        padding: 1rem 1.2rem 2.5rem;
        gap: 1rem;
    }
    
    .cemetery-record-card {
        padding: 1.2rem;
    }
    
    .cemetery-record-card h3 {
        font-size: 1.25rem;
    }
}


/* Drawer Sponsor Badge */
.drawer-sponsor-badge {
    margin-top: 5rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 1.5rem;
    padding-top: 3.5rem;
    border: 1px solid var(--accent);
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.drawer-sponsor-icon-wrapper {
    margin: 0;
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-sponsor-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.drawer-sponsor-icon {
    height: 120px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

.drawer-sponsor-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.drawer-sponsor-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.drawer-sponsor-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.drawer-sponsor-name a,
.drawer-sponsor-name span {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.drawer-sponsor-name a:hover {
    color: var(--accent);
}

.drawer-sponsor-btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.2s;
}

.drawer-sponsor-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .drawer-sponsor-name {
        font-size: 1.8rem;
    }
}



/* Gold Sponsor Map Pin Pulse Animation */
.is-gold-sponsor img {
    animation: goldSponsorPulse 2.5s infinite;
    border-radius: 50%;
}

@keyframes goldSponsorPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.4)) drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(197, 160, 89, 1)) drop-shadow(0 0 15px rgba(197, 160, 89, 0.8)) drop-shadow(0 5px 15px rgba(0,0,0,0.8));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.4)) drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    }
}

