/* ============================================================
   POTHOLE TRAacker – Main Stylesheet
   "Fixing Bulgaria's Roads – One Pothole at a Time"
   Bulgarian Flag Colors: Red #C8102E, White #FFFFFF, Green #006F3E
   ============================================================ */

/* ============================================================
   CSS VARIABLES (Dark/Light Theme)
   ============================================================ */
:root {
    --pt-red: #C8102E;
    --pt-red-light: #E8344F;
    --pt-red-dark: #9B0C24;
    --pt-green: #006F3E;
    --pt-green-light: #00994F;
    --pt-navy: #0A1628;
    --pt-navy-light: #122240;
    --pt-white: #FFFFFF;
    --pt-gold: #FFB800;
    --pt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pt-radius: 12px;
    --pt-radius-sm: 8px;
    --pt-radius-lg: 20px;
    --pt-shadow: 0 4px 24px rgba(0,0,0,0.15);
    --pt-shadow-lg: 0 8px 40px rgba(0,0,0,0.25);
    --pt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (default) */
[data-bs-theme="dark"] {
    --pt-bg: #0A1628;
    --pt-bg-secondary: #122240;
    --pt-bg-card: #1A2D4A;
    --pt-bg-card-hover: #223858;
    --pt-text: #E8EDF5;
    --pt-text-secondary: #8899B0;
    --pt-border: rgba(255,255,255,0.08);
    --pt-input-bg: #162035;
    --pt-navbar-bg: rgba(10, 22, 40, 0.92);
    --pt-footer-bg: #070F1D;
    /* Legacy aliases for page-level inline styles */
    --card-bg: #1A2D4A;
    --border-color: rgba(255,255,255,0.08);
    --text-muted: #8899B0;
    --text-color: #E8EDF5;
    --primary-red: #C8102E;
    --primary-green: #006F3E;
    --bg-secondary: #122240;
}

/* Light Theme */
[data-bs-theme="light"] {
    --pt-bg: #F5F7FA;
    --pt-bg-secondary: #FFFFFF;
    --pt-bg-card: #FFFFFF;
    --pt-bg-card-hover: #F0F2F5;
    --pt-text: #1A2D4A;
    --pt-text-secondary: #5A6B80;
    --pt-border: rgba(0,0,0,0.08);
    --pt-input-bg: #FFFFFF;
    --pt-navbar-bg: rgba(255, 255, 255, 0.92);
    --pt-footer-bg: #1A2D4A;
    /* Legacy aliases for page-level inline styles */
    --card-bg: #FFFFFF;
    --border-color: rgba(0,0,0,0.08);
    --text-muted: #5A6B80;
    --text-color: #1A2D4A;
    --primary-red: #C8102E;
    --primary-green: #006F3E;
    --bg-secondary: #FFFFFF;
}

/* ============================================================
   BASE & TYPOGRAPHY
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--pt-font);
    background: var(--pt-bg);
    color: var(--pt-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    padding-top: 72px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--pt-red-light);
    transition: var(--pt-transition);
}

a:hover {
    color: var(--pt-red);
}

.hover-light:hover {
    color: var(--pt-white) !important;
}

::selection {
    background: var(--pt-red);
    color: white;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-glass {
    background: var(--pt-navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--pt-border);
    padding: 0.5rem 0;
    transition: var(--pt-transition);
    z-index: 1050;
}

.navbar-glass.scrolled {
    box-shadow: var(--pt-shadow);
}

.brand-text {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.fw-800 {
    font-weight: 800;
}

.navbar-glass .nav-link {
    color: var(--pt-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--pt-radius-sm);
    transition: var(--pt-transition);
    position: relative;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    color: var(--pt-white);
    background: rgba(200, 16, 46, 0.15);
}

[data-bs-theme="light"] .navbar-glass .nav-link:hover,
[data-bs-theme="light"] .navbar-glass .nav-link.active {
    color: var(--pt-red);
    background: rgba(200, 16, 46, 0.08);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pt-navy) 0%, var(--pt-navy-light) 50%, #1a3a2a 100%);
}

[data-bs-theme="light"] .hero-section {
    background: linear-gradient(135deg, #1A2D4A 0%, #2A4060 50%, #1a4030 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M20 20c5-5 15-5 20 0s15 5 20 0 15-5 20 0 15 5 20 0' stroke='rgba(255,255,255,0.03)' fill='none' stroke-width='2'/%3E%3Cpath d='M0 40c5-5 15-5 20 0s15 5 20 0 15-5 20 0 15 5 20 0' stroke='rgba(255,255,255,0.02)' fill='none' stroke-width='1.5'/%3E%3Cpath d='M10 60c5-5 15-5 20 0s15 5 20 0 15-5 20 0 15 5 20 0' stroke='rgba(255,255,255,0.03)' fill='none' stroke-width='2'/%3E%3Cpath d='M0 80c5-5 15-5 20 0s15 5 20 0 15-5 20 0 15 5 20 0' stroke='rgba(255,255,255,0.02)' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.3);
    color: var(--pt-red-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--pt-red) 0%, var(--pt-red-light) 50%, var(--pt-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-flag {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.05;
    z-index: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pt-primary {
    background: linear-gradient(135deg, var(--pt-red) 0%, var(--pt-red-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--pt-transition);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-pt-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
    color: white;
    background: linear-gradient(135deg, var(--pt-red-light) 0%, var(--pt-red) 100%);
}

.btn-pt-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--pt-transition);
}

.btn-pt-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-pt-green {
    background: linear-gradient(135deg, var(--pt-green) 0%, var(--pt-green-light) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--pt-transition);
}

.btn-pt-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 111, 62, 0.3);
    color: white;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-pt {
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    transition: var(--pt-transition);
    overflow: hidden;
}

.card-pt:hover {
    background: var(--pt-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--pt-shadow);
}

/* ============================================================
   STATS COUNTERS
   ============================================================ */
.stat-card {
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--pt-transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-green));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pt-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pt-red-light), var(--pt-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--pt-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SEVERITY BADGES
   ============================================================ */
.severity-high {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.severity-medium {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.severity-low {
    background: rgba(25, 135, 84, 0.15);
    color: #36d986;
    border: 1px solid rgba(25, 135, 84, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status badges */
.status-reported {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-inprogress {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-fixed {
    background: rgba(25, 135, 84, 0.15);
    color: #36d986;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge-status {
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   MAP STYLES
   ============================================================ */
.map-container {
    height: calc(100vh - 72px);
    width: 100%;
    position: relative;
}

.map-sidebar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 320px;
    max-height: calc(100% - 2rem);
    background: var(--pt-bg-card);
    border-radius: var(--pt-radius);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-lg);
    z-index: 1000;
    overflow-y: auto;
    transition: var(--pt-transition);
}

.map-sidebar.collapsed {
    width: 48px;
    overflow: hidden;
}

.map-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-sidebar-body {
    padding: 1rem 1.25rem;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--pt-radius-sm);
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    color: var(--pt-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pt-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 1.05rem;
}

.map-control-btn:hover {
    background: var(--pt-red);
    color: white;
    border-color: var(--pt-red);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(200,16,46,0.3);
}

.map-control-btn.active {
    background: var(--pt-red);
    color: white;
    border-color: var(--pt-red);
    box-shadow: 0 4px 14px rgba(200,16,46,0.3);
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
    background: var(--pt-bg-card);
    color: var(--pt-text);
    border-radius: var(--pt-radius);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-lg);
    font-family: var(--pt-font);
}

.leaflet-popup-tip {
    background: var(--pt-bg-card);
}

.leaflet-popup-content {
    margin: 1rem;
    font-family: var(--pt-font);
    font-size: 0.9rem;
    line-height: 1.5;
}

.leaflet-popup-content h6 {
    font-size: 1rem;
    letter-spacing: -0.3px;
}

/* Leaflet tile rendering – crisp at all zoom levels */
.leaflet-tile {
    image-rendering: -webkit-optimize-contrast;
}

/* Remove default Leaflet blue outline on focus */
.leaflet-container:focus {
    outline: none;
}

/* Leaflet zoom control override */
.leaflet-control-zoom a {
    background: var(--pt-bg-card) !important;
    color: var(--pt-text) !important;
    border-color: var(--pt-border) !important;
    font-size: 16px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--pt-red) !important;
    color: white !important;
    border-color: var(--pt-red) !important;
}

/* Custom marker pin – teardrop shape */
.custom-marker {
    background: none !important;
    border: none !important;
}

.marker-pin {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #C8102E);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px var(--pin-glow, rgba(200,16,46,0.35)),
                0 1px 4px rgba(0,0,0,0.2);
    border: 2.5px solid rgba(255,255,255,0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 20px var(--pin-glow, rgba(200,16,46,0.5)),
                0 2px 8px rgba(0,0,0,0.3);
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.marker-pin-tail {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--pin-color, #C8102E);
    border-radius: 0 0 2px 0;
    opacity: 0;
}

/* Marker cluster overrides */
.marker-cluster {
    background: none !important;
}

.marker-cluster div {
    background: var(--pt-red) !important;
    color: white !important;
    font-family: var(--pt-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 12px rgba(200,16,46,0.3), 0 0 0 4px rgba(200,16,46,0.15) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    margin-left: -18px !important;
    margin-top: -18px !important;
}

.marker-cluster-small div {
    background: var(--pt-green) !important;
    box-shadow: 0 3px 12px rgba(0,111,62,0.3), 0 0 0 4px rgba(0,111,62,0.15) !important;
}

.marker-cluster-medium div {
    background: #e67e22 !important;
    box-shadow: 0 3px 12px rgba(230,126,34,0.3), 0 0 0 4px rgba(230,126,34,0.15) !important;
}

.marker-cluster-large div {
    background: var(--pt-red) !important;
    box-shadow: 0 3px 12px rgba(200,16,46,0.3), 0 0 0 4px rgba(200,16,46,0.15) !important;
}

/* ============================================================
   REPORT FORM – STEP WIZARD
   ============================================================ */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.wizard-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--pt-border);
}

.wizard-step:last-child::after {
    display: none;
}

.wizard-step.active::after,
.wizard-step.completed::after {
    background: var(--pt-red);
}

.wizard-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pt-bg-card);
    border: 2px solid var(--pt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pt-text-secondary);
    position: relative;
    z-index: 1;
    transition: var(--pt-transition);
}

.wizard-step.active .wizard-dot {
    background: var(--pt-red);
    border-color: var(--pt-red);
    color: white;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.2);
}

.wizard-step.completed .wizard-dot {
    background: var(--pt-green);
    border-color: var(--pt-green);
    color: white;
}

.wizard-label {
    font-size: 0.8rem;
    color: var(--pt-text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.wizard-step.active .wizard-label {
    color: var(--pt-red-light);
}

.wizard-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.wizard-panel.active {
    display: block;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control-pt,
.form-select-pt {
    background: var(--pt-input-bg);
    border: 1px solid var(--pt-border);
    color: var(--pt-text);
    border-radius: var(--pt-radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--pt-font);
    transition: var(--pt-transition);
}

.form-control-pt:focus,
.form-select-pt:focus {
    border-color: var(--pt-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
    background: var(--pt-input-bg);
    color: var(--pt-text);
}

.form-label-pt {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pt-text);
    margin-bottom: 0.5rem;
}

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.photo-upload-zone {
    border: 2px dashed var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--pt-transition);
    cursor: pointer;
    background: var(--pt-input-bg);
}

.photo-upload-zone:hover,
.photo-upload-zone.dragover {
    border-color: var(--pt-red);
    background: rgba(200, 16, 46, 0.05);
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}

/* ============================================================
   DASHBOARD / DATA TABLE
   ============================================================ */
.dashboard-card {
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 1.5rem;
}

.table-pt {
    color: var(--pt-text);
}

.table-pt thead th {
    background: var(--pt-bg-secondary);
    border-bottom: 2px solid var(--pt-border);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table-pt tbody td {
    border-bottom: 1px solid var(--pt-border);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table-pt tbody tr:hover {
    background: var(--pt-bg-card-hover);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--pt-input-bg) !important;
    border: 1px solid var(--pt-border) !important;
    color: var(--pt-text) !important;
    border-radius: var(--pt-radius-sm) !important;
    padding: 0.4rem 0.75rem !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--pt-text-secondary) !important;
    padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    background: var(--pt-bg-card);
    border-color: var(--pt-border);
    color: var(--pt-text);
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: var(--pt-red);
    border-color: var(--pt-red);
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.section-pt {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--pt-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-green));
    border-radius: 2px;
    margin: 1rem 0 2rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--pt-red);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--pt-text-secondary);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--pt-text-secondary);
}

/* ============================================================
   LOADING & ANIMATIONS
   ============================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

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

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

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

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.5s ease forwards;
}

/* Stagger delay utility classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    transition: var(--pt-transition);
    opacity: 0;
}

.btn-back-to-top.show {
    display: flex !important;
    opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--pt-footer-bg);
    border-top: 1px solid var(--pt-border);
    color: var(--pt-text-secondary);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.impact-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pt-red-light);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--pt-red);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    width: 2px;
    height: calc(100% - 4px);
    background: var(--pt-border);
}

.timeline-item:last-child::after {
    display: none;
}

/* ============================================================
   CHARTS
   ============================================================ */
.chart-container {
    position: relative;
    width: 100%;
    max-height: 400px;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pt-red), var(--pt-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar-glass,
    .site-footer,
    .btn-back-to-top,
    .map-sidebar,
    .map-controls,
    .theme-toggle,
    #langToggle {
        display: none !important;
    }
    
    main {
        padding-top: 0 !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .map-container {
        height: 600px !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .map-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        max-height: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--pt-border);
    }
    
    .map-container {
        height: calc(100vh - 72px);
        display: flex;
        flex-direction: column;
    }

    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .section-pt {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .wizard-label {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-pt-primary,
    .btn-pt-outline,
    .btn-pt-green {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.visually-hidden-focusable:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 1rem;
    background: var(--pt-red);
    color: white;
    font-weight: bold;
}

:focus-visible {
    outline: 2px solid var(--pt-red);
    outline-offset: 2px;
}
