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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #1a1a1a;
}

/* Landing Section */
.landing-section {
    height: 100vh;
    width: 100%;
    background: url('wallpaper.png') no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.scroll-text {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    animation: scrollText 2s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes scrollText {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    animation: scrollLine 2s ease-in-out infinite;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    animation: scrollDot 2s ease-in-out infinite;
}

.scroll-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin-top: -2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

/* Portfolio Section - Cloned from Sameel.dev style */
.portfolio-section {
    width: 100%;
    min-height: 100vh;
    background: #0f0f0f;
    padding: 0;
    color: #ffffff;
    position: relative;
    overflow: visible;
}

/* Static dispersed grain noise effect */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.015) 0px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.015) 0px, transparent 2px),
        radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.02) 0px, transparent 2px),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.015) 0px, transparent 2px),
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.02) 0px, transparent 2px),
        radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.015) 0px, transparent 2px),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.02) 0px, transparent 2px),
        radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.015) 0px, transparent 2px);
    background-size: 200px 200px, 250px 250px, 180px 180px, 220px 220px, 190px 190px, 210px 210px, 230px 230px, 200px 200px, 240px 240px, 195px 195px;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 25% 75%, 75% 25%, 10% 90%, 90% 10%, 60% 40%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    position: relative;
    min-height: 100vh;
}

/* Three Column Layout */
.three-column-layout {
    display: grid;
    grid-template-columns: 250px 1fr 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    position: relative;
    min-height: 100vh;
}


/* Left Column: Introduction */
.intro-column {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 10;
    will-change: transform;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    color: #888;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #ffffff;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.intro-name {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 2.5rem;
    font-weight: 500;
    font-style: italic;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.intro-roles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-item {
    font-size: 0.95rem;
    color: #888;
    font-weight: 400;
    text-transform: lowercase;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

/* Middle Column: Experience */
.experience-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    width: 100%;
    position: relative;
    z-index: 0;
}


.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.year-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.year-heading {
    font-size: 1.1rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-item {
    background: #252525;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.2s ease;
    position: relative;
    margin-bottom: 0;
}

.experience-item:hover {
    background: #2a2a2a;
}

.experience-item.expanded {
    background: #2a2a2a;
}


.experience-header {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.company-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #a78bfa;
    overflow: hidden;
    background: #1a1a1a;
    padding: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 6px;
    border: 2px solid #a78bfa;
}

.experience-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-role {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.company-name {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.acquired-tag {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #4ade80;
}

.died-tag {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #f87171;
}

.paused-tag {
    display: inline-block;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #a78bfa;
}

.present-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #60a5fa;
}

.loved-tag {
    display: inline-block;
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #fdba74;
}

.loved-tag::before {
    content: '♡';
    margin-right: 0.15rem;
    color: #fb923c;
    font-size: 0.8rem;
}

.company-details {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.company-details.expired {
    color: #555;
    font-style: italic;
}

.experience-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}


.experience-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid #333;
    margin-top: 0.5rem;
}

.experience-description p {
    margin-bottom: 0.75rem;
}

.experience-description p:last-child {
    margin-bottom: 0;
}

.experience-description ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.experience-description li {
    margin-bottom: 0.5rem;
}

.experience-description li:last-child {
    margin-bottom: 0;
}

.experience-description strong {
    color: #ffffff;
    font-weight: 600;
}

.project-list li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-list li:last-child {
    margin-bottom: 0;
}

.project-name {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #888;
    text-underline-offset: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}


.contract-work {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.contract-heading {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.contract-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    transition: padding-left 0.2s ease;
}

.contract-item:hover {
    padding-left: 0.5rem;
}

.contract-name {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.contract-desc {
    font-size: 0.85rem;
    color: #666;
    flex: 1;
}

.contract-arrow {
    color: #666;
    flex-shrink: 0;
}

/* Right Column: Projects */
.projects-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    width: 100%;
    position: relative;
    z-index: 0;
    padding-right: 0;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.project-card-link:hover .project-card {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card {
    background: #252525;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    display: flex;
    gap: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.project-card:hover {
    background: #2a2a2a;
}

.project-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #333;
    border-radius: 6px;
    padding: 0;
    border: 2px solid #a78bfa;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.education-icon-box {
    padding: 3px !important;
}

.education-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.project-icon img,
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 6px;
    border: 2px solid #a78bfa;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    flex-grow: 1;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    width: 100%;
    word-wrap: break-word;
}

.project-description {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-description strong {
    color: #ffffff;
    font-weight: 600;
}

.project-description ul strong {
    color: #ffffff;
    font-weight: 600;
}

.project-description li strong {
    color: #ffffff;
    font-weight: 600;
}

.project-content a {
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #666;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.project-content a:hover {
    color: #ffffff;
    border-bottom-color: #a78bfa;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
    margin-left: auto;
}

.project-action-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.project-action-btn:hover {
    color: #ffffff;
}

.project-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 220px 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-column {
        position: static;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .social-icons {
        order: 1;
        margin-bottom: 0;
    }

    .intro-name {
        order: 2;
        font-size: 2rem;
    }

    .intro-roles {
        order: 3;
        flex-direction: row;
        gap: 1rem;
    }


    .experience-column,
    .projects-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .landing-section {
        background-attachment: scroll;
        background-size: cover;
    }

    .scroll-indicator {
        bottom: 40px;
    }

    .scroll-line {
        height: 35px;
    }

    .portfolio-container {
        padding: 2rem 1rem;
    }

    .intro-name {
        font-size: 1.75rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .experience-item,
    .project-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-line {
        height: 30px;
    }

    .portfolio-container {
        padding: 1.5rem 1rem;
    }

    .intro-name {
        font-size: 1.5rem;
    }

    .intro-roles {
        flex-direction: column;
        gap: 0.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-actions {
        align-self: flex-end;
    }
}

/* Travel Map Section */
.travel-map-section {
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.map-container {
    max-width: 100%;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 65px;
    gap: 1rem;
    box-sizing: border-box;
}

/* Travel Stats Sidebar (30%) */
.travel-stats-sidebar {
    width: 30%;
    height: calc(100vh - 130px);
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar for sidebar */
.travel-stats-sidebar::-webkit-scrollbar {
    width: 6px;
}

.travel-stats-sidebar::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 10px;
}

.travel-stats-sidebar::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 10px;
}

.travel-stats-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

/* Stats Header */
.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.stats-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.stats-logo-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.stats-separator {
    width: 1px;
    height: 16px;
    background: #444;
}

.stats-realtime {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.stats-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-action-btn {
    background: transparent;
    border: 1px solid #fb923c;
    border-radius: 6px;
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stats-action-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
}

/* Main Stats */
.stats-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.stats-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stats-count {
    color: #ffffff;
}

.stats-domain {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #888;
    margin-left: 1.3rem;
}

.stats-domain svg {
    width: 14px;
    height: 14px;
    color: #888;
}

.stats-value {
    font-size: 0.8rem;
    color: #888;
    margin-left: 1.3rem;
}

.stats-value-number {
    color: #10b981;
    font-weight: 600;
}

/* Stats Category */
.stats-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-category-label {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #ffffff;
    width: fit-content;
    transition: all 0.2s ease;
}

.stats-tag:hover {
    background: rgba(42, 42, 42, 0.8);
    border-color: #555;
}

.stats-tag-icon {
    font-size: 1rem;
    line-height: 1;
}

.stats-tag-text {
    color: #ffffff;
}

.stats-tag-count {
    color: #888;
    font-weight: 500;
}

/* Country Groups */
.country-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stats-tag-main {
    width: fit-content;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: 0;
    padding-left: 0;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    color: #ccc;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: default;
}

.city-tag:hover {
    background: rgba(42, 42, 42, 0.9);
    border-color: #666;
    color: #ffffff;
}

/* Map Area (70%) */
.map-area {
    width: 70%;
    height: calc(100vh - 130px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.map-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    pointer-events: none;
}

.map-header * {
    pointer-events: auto;
}

.map-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.map-subtitle {
    color: #888;
    font-size: 0.9rem;
}

.map-stats {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    min-width: 200px;
    pointer-events: none;
}

.map-stats * {
    pointer-events: auto;
}

.map-stats-title {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.map-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.map-stats-label {
    color: #ccc;
}

.map-stats-value {
    color: #ffffff;
    font-weight: 600;
}

#travelMap {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid #a78bfa;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    visibility: visible;
    pointer-events: auto;
}

/* Leaflet container styling */
#travelMap.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

/* Ensure Leaflet map is visible and interactive */
.leaflet-map-pane {
    z-index: 1;
    pointer-events: auto;
}

.leaflet-container {
    pointer-events: auto !important;
    cursor: grab;
}

.leaflet-container:active {
    cursor: grabbing;
}

.leaflet-interactive {
    cursor: pointer;
}

.leaflet-marker-pane {
    z-index: 600;
}

/* Dark theme for Leaflet map (original) */
.leaflet-container {
    background: #0a0a0a !important;
    color: #ffffff;
    font-family: inherit;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.leaflet-map-pane {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
}

.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}

.leaflet-tile-pane {
    z-index: 2;
}

.leaflet-marker-pane {
    z-index: 600;
    pointer-events: none;
}

.leaflet-marker-pane .leaflet-marker-icon {
    pointer-events: auto;
    cursor: pointer;
}

/* No filter needed for dark_all tiles - they're already dark */
.leaflet-tile-container img {
    filter: none;
}

.leaflet-popup-content-wrapper {
    background: rgba(42, 42, 42, 0.95) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
    border: 1px solid #444 !important;
}

.leaflet-popup-tip {
    background: rgba(42, 42, 42, 0.95) !important;
}

.leaflet-popup-close-button {
    color: #ffffff !important;
    font-size: 20px !important;
    padding: 5px !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
}

.leaflet-control-zoom a {
    background-color: rgba(42, 42, 42, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
    backdrop-filter: blur(10px);
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
}

.leaflet-control-zoom a:hover {
    background-color: rgba(60, 60, 60, 0.9) !important;
}

/* Custom Leaflet marker styling */
.custom-marker-leaflet {
    background: transparent !important;
    border: none !important;
}

/* Purple marker pin (original color) */
.purple-marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #a78bfa;
    border: 3px solid #ffffff;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.8), 0 0 40px rgba(167, 139, 250, 0.5);
    position: relative;
    animation: pulseMarker 2s ease-in-out infinite;
    cursor: pointer;
}

.purple-marker-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

/* Custom marker animation */
@keyframes pulseMarker {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 25px rgba(167, 139, 250, 0.8), 0 0 50px rgba(167, 139, 250, 0.5), 0 0 75px rgba(167, 139, 250, 0.3);
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 35px rgba(167, 139, 250, 1), 0 0 70px rgba(167, 139, 250, 0.7), 0 0 100px rgba(167, 139, 250, 0.5);
    }
}

.custom-marker-3d {
    animation: pulseMarker 2s ease-in-out infinite;
    will-change: transform;
    pointer-events: auto;
    z-index: 10000 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateZ(0);
}

/* Ensure markers are visible on the map */
.maplibregl-marker {
    z-index: 10000 !important;
}

.maplibregl-marker svg {
    display: none !important;
}

/* Custom marker styling with pulsing animation */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    background: #a78bfa;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.8), 0 0 30px rgba(167, 139, 250, 0.4);
    animation: pulseMarker 2s ease-in-out infinite;
}

@keyframes pulseMarker {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .travel-map-section {
        padding: 0;
    }

    .map-container {
        flex-direction: column;
        padding: 60px;
    }

    .travel-stats-sidebar {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        max-height: 300px;
    }

    .map-area {
        width: 100%;
        height: calc(100vh - 400px);
        margin-left: 0;
    }

    .map-header {
        top: 0;
        left: 0;
        padding: 1rem 1.5rem;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .map-stats {
        top: 0;
        right: 0;
        padding: 1rem 1.5rem;
        min-width: 150px;
    }

    #travelMap {
        height: 100%;
    }
}

