/* Custom styles to supplement Tailwind */

/* Typography */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-accent: 'Lora', serif;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.font-body {
    font-family: var(--font-body);
}

.caption-serif {
    font-family: var(--font-accent);
    font-style: italic;
}

/* Premium Footer Link Hover Effect */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #22c55e;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #22c55e;
}

.footer-link:hover::after {
    width: 100%;
}

/* Map Popup Enhancements */
.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

/* Leaflet Tooltip Overrides */
.leaflet-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Aurora UI & Glassmorphism Tokens */
.aurora-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    z-index: 0;
}

.aurora-bg::before,
.aurora-bg::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    animation: aurora 20s linear infinite;
    opacity: 0.5;
}

.aurora-bg::before {
    background: radial-gradient(circle at 30% 30%, #10b981 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, #059669 0%, transparent 50%);
}

.aurora-bg::after {
    background: radial-gradient(circle at 70% 30%, #34d399 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, #047857 0%, transparent 50%);
    animation-delay: -10s;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-glow {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}