/*
 * Obruk Araştırma Merkezi - Premium Light Web Design Stylesheet (GeoScan Theme)
 * Brand colors, layout grid, interactive widgets, animations, custom map filters
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-hover: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: #f97316;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.2);
    
    /* Risk Levels Palette */
    --risk-low: #16a34a;
    --risk-medium: #d97706;
    --risk-high: #f97316;
    --risk-critical: #dc2626;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Header & Navigation - Floating Glassmorphism design */
header:not(.admin-header) {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    height: 72px;
    border-radius: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:not(.admin-header):hover {
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.05);
}

header:not(.admin-header).scrolled {
    top: 10px;
    width: 95%;
    max-width: 1350px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.nav-container {
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: scale(1.08);
}

@keyframes logo-scan-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-svg circle:first-of-type {
    transform-origin: 50px 50px;
    animation: logo-scan-rotate 25s linear infinite;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--primary-glow);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    background: rgba(15, 23, 42, 0.03);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: block;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.nav-link.active {
    color: white !important;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b0f19; /* Deep dark background */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 3; /* Sit on top of overlay to add texture */
    pointer-events: none;
}

/* Background Slideshow */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 0.75; /* Much clearer background images */
    z-index: 1;
    animation: heroZoom 10s linear infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(11, 15, 25, 0.96) 0%, 
        rgba(11, 15, 25, 0.85) 45%, 
        rgba(11, 15, 25, 0.40) 100%);
    z-index: 2;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    color: #ea580c;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1; /* High contrast text on dark background */
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-globe-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.02) 60%, transparent 100%);
    animation: float 6s ease-in-out infinite;
}

.hero-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
    width: 380px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.hero-card-title {
    font-size: 1.1rem;
    color: #ffffff;
}

.hero-card-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}

.status-active {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.hero-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.hero-stat-box {
    display: flex;
    flex-direction: column;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.hero-stat-value {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

.btn-nav-cta {
    display: inline-flex;
}
@media (max-width: 576px) {
    .btn-nav-cta {
        display: none; /* Hide on small viewports to avoid overlapping */
    }
}

/* Statistics Bar */
.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-num {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Interactive Map Section */
.map-section {
    padding: 6rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title-wrap {
    max-width: 600px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
}

.map-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    height: 700px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Map Sidebar Control */
.map-sidebar {
    width: 380px;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    z-index: 400; /* Must sit below leaflet popup overlay which is ~600, but above base map */
}

.sidebar-search-box {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrap input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.search-input-wrap i {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
}

/* Filters box */
.sidebar-filters {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.85rem;
}

.sidebar-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.list-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    font-weight: 600;
}

.sinkhole-list-item {
    padding: 0.85rem;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.sinkhole-list-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.sinkhole-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.sinkhole-list-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.risk-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.risk-badge.critical { background: rgba(220, 38, 38, 0.15); color: var(--risk-critical); }
.risk-badge.high { background: rgba(249, 115, 22, 0.15); color: var(--risk-high); }
.risk-badge.medium { background: rgba(217, 119, 6, 0.15); color: var(--risk-medium); }
.risk-badge.low { background: rgba(22, 163, 74, 0.15); color: var(--risk-low); }

.sinkhole-list-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
}

.sinkhole-list-desc span strong {
    color: var(--text-primary);
}

/* Dynamic export actions */
.sidebar-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    justify-content: center;
}

/* Map Box itself */
.map-container {
    flex: 1;
    height: 100%;
    z-index: 1;
}

/* Dark theme leaflet override */
.leaflet-container {
    background-color: #ffffff !important;
}

/* Applying premium dark theme filter on tiles */
.dark-map-tiles {
    filter: grayscale(10%) contrast(100%);
}

.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: var(--transition-smooth);
}

.leaflet-bar a:hover {
    background-color: var(--bg-surface-hover) !important;
}

/* Custom details float panel (Map overlay) */
.map-details-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.map-details-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

.overlay-close:hover {
    color: var(--text-primary);
}

/* Map Ruler Button styling */
.leaflet-control-measure-btn {
    font-weight: bold;
}
.leaflet-control-measure-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    font-family: var(--font-sans);
}

.leaflet-popup-tip {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color);
}

.popup-details {
    padding: 0.25rem;
    width: 240px;
}

.popup-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.popup-specs {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.popup-specs span {
    color: var(--text-secondary);
}

.popup-specs strong {
    color: var(--text-primary);
}

/* Pulse animations for markers */
.custom-marker-pulse {
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

.pulse-critical {
    animation: marker-pulse-crit 1.5s infinite;
}

.pulse-high {
    animation: marker-pulse-high 1.5s infinite;
}

@keyframes marker-pulse-crit {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes marker-pulse-high {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Blog Feed Section */
.blog-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.05) 0%, transparent 60%);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

.blog-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #0d121f;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-title:hover {
    color: var(--primary);
}

.blog-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-readmore:hover {
    color: var(--primary-hover);
}

/* Inside Blog & Single View Layout */
.page-header {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
    padding: 8rem 0 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.single-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.single-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

/* Contact page styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.contact-info-list li i {
    width: 36px;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer Section */
footer {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.015);
    padding: 5rem 0 2.5rem 0;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 0.85rem;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .map-wrapper {
        flex-direction: column-reverse;
        height: 900px;
    }
    .map-sidebar {
        width: 100%;
        height: 450px;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header:not(.admin-header) {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        height: 70px !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px !important;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 16px 16px;
        gap: 0.5rem !important;
    }
    .nav-link {
        border-radius: 8px !important;
        padding: 0.6rem 1rem !important;
    }
    .nav-menu.active {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Advanced Ground Radar scanning tool styles */
.radar-center-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: radar-center-pulse 1.2s infinite;
}

@keyframes radar-center-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.leaflet-control-radar-btn {
    font-weight: bold;
    transition: var(--transition-smooth);
}

.leaflet-control-radar-btn.active {
    background: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
