:root {
    --primary-color: #C0392B; /* Deep red representing Petra */
    --text-light: #FDFEFE;
    --text-dark: #2C3E50;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow: 0 0 20px rgba(192, 57, 43, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    overflow: hidden; /* For the landing page full screen */
}

/* Landing Page Hero */
.hero-container {
    height: 100vh;
    width: 100vw;
    background: #000 url('../assets/hero.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(192, 57, 43, 0.8);
    background: #E74C3C;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Page Specifics */
.map-body {
    background-color: #0A0A0A; /* Dark mode base */
    overflow-y: auto;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.breadcrumb {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.map-container {
    display: flex;
    height: 100vh;
    padding-top: 80px;
}

.site-info {
    width: 380px; /* Slightly wider for better content space */
    margin: 2rem;
    align-self: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.site-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.site-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
}

.svg-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1rem;
    overflow: hidden;
    background: #1a1a1a; /* Dark background as fallback */
    border-radius: 15px;
}

.map-bg-img {
    filter: brightness(1) contrast(1);
    transition: filter 0.5s ease;
}

#jordan-map {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    transition: transform 0.5s ease;
}

.route-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    opacity: 0.1;
    transition: all 0.5s ease;
}

.route-line.active {
    opacity: 1;
    stroke-width: 10;
    filter: drop-shadow(0 0 15px var(--primary-color)) drop-shadow(0 0 5px #FFF);
}

.city {
    cursor: pointer;
}

.city-dot {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    transition: all 0.3s ease;
}

.city:hover .city-dot {
    fill: rgba(192, 57, 43, 0.2);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    filter: drop-shadow(0 0 20px var(--primary-color));
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 5px var(--primary-color)); }
    50% { filter: drop-shadow(0 0 25px var(--primary-color)); }
    100% { filter: drop-shadow(0 0 5px var(--primary-color)); }
}

.active-dot {
    fill: var(--primary-color) !important;
    stroke: #FFF !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 15px var(--primary-color));
    opacity: 1 !important;
    animation: none !important;
}

.city-label {
    display: none;
}

.active-site .city-label {
    opacity: 1;
    fill: var(--primary-color);
}

/* Suggestions & Reset Button */
.suggestions-container {
    margin-top: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-in;
}

.separator {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.suggestions-container h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-container ul {
    list-style: none;
    padding: 0;
}

.suggestions-container li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #eee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding-left 0.3s ease;
}

.suggestions-container li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.reset-button {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.reset-button:hover {
    background: var(--primary-color);
    color: white;
}

.active-dot {
    fill: var(--primary-color) !important;
    r: 18 !important;
    stroke: #FFF !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .map-container {
        flex-direction: column;
        height: auto;
        padding-top: 60px;
        overflow-y: auto;
    }

    .site-info {
        width: 100%;
        margin: 1rem;
        padding: 1rem;
        order: 2; /* Put text below map on mobile */
    }

    .site-info h2 {
        font-size: 2rem;
    }

    .svg-wrapper {
        width: 100%;
        height: 60vh;
        order: 1; /* Map on top for mobile */
        margin: 0;
        mask-image: none; /* Disable mask on mobile for better visibility */
        -webkit-mask-image: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
        width: 90%;
    }

    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

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