/* Modern Professional Astrocartography Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a1a;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --primary-purple: #6366f1;
    --secondary-purple: #8b5cf6;
    --accent-gold: #fbbf24;
    --logo-purple: #7c3aed;
    --logo-gold: #f59e0b;
    --logo-light: #a78bfa;
    --logo-accent: #eab308;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: var(--logo-gold);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--logo-purple) 0%, var(--primary-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--logo-gold) 0%, var(--accent-gold) 100%);
    --gradient-accent: linear-gradient(135deg, var(--logo-light) 0%, var(--logo-accent) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--accent-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-fallback {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legacy logo styling - kept for fallback */
.logo {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-purple);
}

/* Language Switcher */
.language-switcher {
    margin-right: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Flag icon styling */
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: block;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('images/background.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, 
            transparent 0%,
            transparent 40%,
            rgba(10, 10, 26, 0.1) 50%,
            rgba(10, 10, 26, 0.3) 65%,
            rgba(10, 10, 26, 0.5) 75%,
            rgba(10, 10, 26, 0.7) 85%,
            rgba(10, 10, 26, 0.85) 92%,
            rgba(10, 10, 26, 0.95) 97%,
            var(--primary-bg) 100%
        );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    background: rgba(10, 10, 26, 0.3);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-button {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4); 
    }
    50% { 
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6); 
    }
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 2;
}

.planet-orbit {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.planet {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: counter-rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes counter-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

/* Floating Stars Animation */
.floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 10%;
    animation-delay: -0.5s;
    animation-duration: 5s;
}

.star-2 {
    top: 60%;
    left: 20%;
    animation-delay: -2s;
    animation-duration: 7s;
}

.star-3 {
    top: 30%;
    right: 15%;
    animation-delay: -1s;
    animation-duration: 6s;
}

.star-4 {
    bottom: 25%;
    left: 15%;
    animation-delay: -3s;
    animation-duration: 8s;
}

.star-5 {
    top: 15%;
    right: 25%;
    animation-delay: -1.5s;
    animation-duration: 5.5s;
}

.star-6 {
    bottom: 15%;
    right: 10%;
    animation-delay: -2.5s;
    animation-duration: 6.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.8;
    }
}

/* Twinkling Effect */
@keyframes twinkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.star:nth-child(odd) {
    animation: float 6s ease-in-out infinite, twinkle 3s ease-in-out infinite;
}

.star:nth-child(even) {
    animation: float 7s ease-in-out infinite, twinkle 4s ease-in-out infinite;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Map Section */
.map-section {
    padding: 2rem 0 4rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--accent-bg) 100%);
    margin-top: -4rem;
    z-index: 10;
}

/* Cosmic Background Animation */
.cosmic-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.constellation {
    position: absolute;
    width: 150px;
    height: 150px;
    animation: slow-rotate 25s linear infinite;
}

.constellation-1 {
    top: 20%;
    left: 5%;
    animation-delay: -5s;
}

.constellation-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: -12s;
    animation-duration: 30s;
}

.constellation-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
    animation: pulse 2s ease-in-out infinite;
}

.constellation-1 .constellation-star:nth-child(1) {
    top: 10px;
    left: 20px;
    animation-delay: -0.5s;
}

.constellation-1 .constellation-star:nth-child(2) {
    top: 40px;
    left: 60px;
    animation-delay: -1s;
}

.constellation-1 .constellation-star:nth-child(3) {
    bottom: 20px;
    right: 30px;
    animation-delay: -1.5s;
}

.constellation-2 .constellation-star:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: -0.2s;
}

.constellation-2 .constellation-star:nth-child(2) {
    top: 30%;
    left: 20%;
    animation-delay: -0.8s;
}

.constellation-2 .constellation-star:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: -1.2s;
}

.constellation-2 .constellation-star:nth-child(4) {
    bottom: 10px;
    left: 50%;
    animation-delay: -1.8s;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.map-interface {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    height: 80vh;
}

/* Control Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--logo-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Specific styling for select options */
.form-group select option {
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.coordinates-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.coordinates-input input {
    opacity: 0.7;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-purple);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.85rem;
    cursor: pointer;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary-purple);
    color: var(--text-primary);
}

/* Legend Panel */
.legend-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    max-height: 400px;
    overflow-y: auto;
}

.legend-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.legend-section {
    margin-bottom: 1.5rem;
}

.legend-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.line-types {
    display: grid;
    gap: 0.75rem;
}

.line-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--glass-bg);
    border-radius: 8px;
    font-size: 0.85rem;
}

.line-type strong {
    color: var(--accent-gold);
    min-width: 25px;
    font-weight: 700;
}

.planet-list {
    display: grid;
    gap: 0.5rem;
}

.planet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--glass-bg);
    border-radius: 8px;
    font-size: 0.85rem;
}

.planet-symbol {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.accuracy-note {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.note-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.note-content {
    color: rgba(255, 255, 255, 0.8);
}

/* Map Panel */
.map-panel {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.map-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.map-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.map-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.astro-map {
    flex: 1;
    min-height: 500px;
    background: #1a1a2e;
}

.map-stage {
    position: relative;
}

/* Bottom floating toggle button */
.legend-toggle {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1200;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(20, 24, 48, 0.75);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.legend-toggle:hover {
    background: rgba(30, 34, 58, 0.85);
    border-color: rgba(255,255,255,0.4);
}

/* Bottom floating panel */
.legend-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 56px; /* sits above the toggle */
    z-index: 1200;
    
    max-height: 32vh;
    overflow: auto;
    
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20, 24, 48, 0.85);
    backdrop-filter: blur(10px);
    
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20, 24, 48, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    box-shadow: var(--card-shadow);
}

.legend-panel.open {
    display: block;
}

.legend-panel h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.legend-panel .legend-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.legend-panel .line-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-panel .line-type strong {
    color: var(--accent-gold);
    min-width: 20px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .legend-panel {
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 45vh;
    }
}

.info-panel {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: url('images/background2.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 1;
}

.about-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-decoration {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.3;
    pointer-events: none;
}

.floating-icon {
    font-size: 1.5rem;
    animation: gentle-float 4s ease-in-out infinite;
    display: inline-block;
}

.about-card:nth-child(1) .floating-icon {
    animation-delay: -0.5s;
}

.about-card:nth-child(2) .floating-icon {
    animation-delay: -1s;
}

.about-card:nth-child(3) .floating-icon {
    animation-delay: -1.5s;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-8px) rotate(180deg);
        opacity: 0.6;
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Locational Astrology Page Styles */
.astrology-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
    position: relative;
}

.astrology-hero .hero-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}

.astrology-hero .hero-title {
    color: white;
}

.astrology-hero .hero-subtitle {
    color: rgba(255,255,255,0.95);
}

.astrology-hero .hero-description {
    color: rgba(255,255,255,0.9);
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.astrology-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-section {
    padding: 4rem 0;
    position: relative;
}

.content-section h2, .content-section h3 {
    color: #2d3748;
}

.content-section p {
    color: #4a5568;
    line-height: 1.6;
}

.alt-bg {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.line-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.line-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.line-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.lines-note {
    background: linear-gradient(135deg, #fef7cd, #fbbf24);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
}

.steps-container {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.planet-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.planet-card:hover {
    transform: translateY(-3px);
}

.planet-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: #667eea;
}

.planet-card h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-container {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-item h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button.secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Additional Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
}

.footer-brand {
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--primary-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.copyright {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--accent-color);
    background: var(--glass-bg);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.social-icon {
    font-size: 1rem;
}

/* Friend Links */
.friend-links {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 0.75rem 0;
    justify-content: flex-end;
}

.friend-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.friend-link:hover {
    color: var(--text-secondary);
    background: var(--glass-bg);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.friend-icon {
    font-size: 0.9rem;
}

/* Map Legend Panel - positioned below map */
.map-legend-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.legend-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-toggle {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.legend-content {
    padding: 2rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.legend-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.line-types {
    display: grid;
    gap: 0.75rem;
}

.line-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.line-type strong {
    color: var(--accent-gold);
    min-width: 30px;
    font-weight: 700;
    text-align: center;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.planet-list {
    display: grid;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.planet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.planet-symbol {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.accuracy-note {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.note-content {
    color: rgba(255, 255, 255, 0.9);
}

.note-content strong {
    color: var(--accent-gold);
}

/* Responsive adjustments for legend */
@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .legend-header {
        padding: 1rem;
    }
    
    .legend-content {
        padding: 1.5rem 1rem;
    }
    
    .legend-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
#map {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.custom-tooltip {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    padding: 10px 12px !important;
    font-family: 'Inter', system-ui !important;
    max-width: 280px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.custom-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.95) !important;
}

.geocoder-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.geocoder-input:focus {
    outline: none !important;
    border-color: var(--primary-purple) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.geocoder-input::placeholder {
    color: var(--text-muted) !important;
}

.form-select {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.form-select option {
    background: var(--secondary-bg);
    color: white;
}

.planet-icon {
    background: none !important;
    border: none !important;
}

/* Logo responsive behavior */
@media (max-width: 768px) {
    .logo-image {
        height: 28px;
        max-width: 100px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .footer-brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 24px;
        max-width: 80px;
    }
    
    .brand-text {
        font-size: 0.95rem;
    }
}

/* Logo hover effects */
.nav-brand:hover .logo-image,
.footer-brand:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Dark/Light theme logo variants */
@media (prefers-color-scheme: light) {
    .logo-image {
        /* Could switch to black & white version if implemented */
        filter: brightness(0.9);
    }
}

/* Print styles for black & white logo */
@media print {
    .logo-image {
        filter: grayscale(100%) contrast(120%);
    }
}
@media (max-width: 1200px) {
    .map-interface {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .map-interface {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .control-panel {
        order: 2;
    }
    
    .map-panel {
        order: 1;
        height: 60vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .friend-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--glass-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Custom scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--glass-bg);
}

/* SEO Section Styles */
.seo-section {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.seo-section h2 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.seo-section h3 {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--logo-light);
}

.seo-section p, .seo-section li {
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 8px;
}

.seo-section ul, .seo-section ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.seo-section details {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0;
}

.seo-section summary {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.seo-section summary:hover {
    background: rgba(255,255,255,0.06);
}

.seo-section details[open] summary {
    border-radius: 8px 8px 0 0;
}

.seo-section details p {
    padding: 10px 12px;
    margin: 0;
}

/* Prevent the panel from covering the attribution text too much */
.leaflet-control-attribution {
    margin-bottom: 36px;
}

/* Map Page Styles */
.map-page {
    padding-top: 0;
}

.map-display-section {
    min-height: 100vh;
    padding: 80px 0 20px 0;
}

.container-full {
    max-width: 100%;
    padding: 0 20px;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.map-title h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.map-controls {
    display: flex;
    gap: 12px;
}

.control-button, .nav-link-button {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.control-button:hover, .nav-link-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.data-summary {
    margin-top: 20px;
    padding: 0 20px;
}

.data-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.data-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.data-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.data-item strong {
    color: var(--logo-light);
}

/* Birth Form Section Styles */
.birth-form-section {
    min-height: 100vh;
    padding: 100px 0 40px 0;
    position: relative;
}

.form-interface {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

.share-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover {
    border-color: var(--logo-light);
    color: var(--logo-light);
}

/* Mobile responsiveness for map page */
@media (max-width: 768px) {
    .map-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .map-title h1 {
        font-size: 2rem;
    }
    
    .map-controls {
        width: 100%;
        justify-content: center;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide old data-summary at bottom */
.data-summary {
    display: none !important;
}

/* Sliding Legend Panel */
.legend-slider {
    position: fixed !important;
    left: -300px; /* Hidden by default */
    top: 80px !important; /* Below navbar */
    height: calc(100vh - 80px) !important;
    width: 340px;
    z-index: 2000; /* Higher than map */
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.legend-slider.open {
    left: 0;
}

/* Legend Toggle Arrow - Always visible on left edge */
.legend-slider .legend-toggle {
    position: fixed; /* Changed from absolute to fixed */
    left: 0; /* Always at left edge of viewport */
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2001;
}

/* When slider is open, move toggle button with it */
.legend-slider.open .legend-toggle {
    left: 340px; /* Move to match slider width (340px) */
}

.legend-slider .legend-toggle:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-50%) translateX(2px);
}

.arrow-icon {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.legend-slider.open .arrow-icon {
    transform: rotate(180deg);
}

/* Legend Panel Content in Slider */
.legend-slider .legend-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: rgba(10, 10, 26, 0.98); /* More opaque */
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* More visible border */
    padding: 35px 25px 25px 25px; /* More top padding */
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    top: 0;
}

.legend-slider .legend-panel h3 {
    color: var(--logo-light);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.legend-slider .legend-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.legend-slider .line-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.legend-slider .line-type:hover {
    background: rgba(255, 255, 255, 0.1);
}

.legend-slider .line-type strong {
    color: #4A90E2;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced from 1rem */
}

.legend-slider .line-type span {
    color: #ffffff;
    font-size: 0.7rem; /* Reduced from 0.9rem */
}

.save-icon-btn {
    background: rgba(67, 102, 226, 0.1);
    color: #4A90E2;
    border: 1px solid rgba(67, 102, 226, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.save-icon-btn:hover {
    background: rgba(67, 102, 226, 0.2);
    color: #357abd;
    transform: translateY(-1px);
}

.line-type-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.line-label-marker {
    background: transparent !important;
    border: none !important;
}

.city-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 60, 60, 0.8);
    border: 1px solid rgba(255, 80, 80, 1);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.city-marker {
    background: transparent !important;
    border: none !important;
}

.city-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
}

.horoscope-info {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.birth-data-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.language-switcher {
    margin: 0 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(67, 102, 226, 0.3);
    border-color: rgba(67, 102, 226, 0.5);
}

.horoscope-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
}

.horoscope-sign .sign-symbol {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.horoscope-sign .sign-name {
    color: #a0a0a0;
    font-size: 0.7rem;
}

/* Custom tooltip styling */
.horoscope-sign {
    position: relative;
    cursor: help;
}

.horoscope-sign .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    width: 280px;
    text-align: left;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.horoscope-sign:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.horoscope-sign .tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

/* Mobile responsiveness for slider */
@media (max-width: 768px) {
    .legend-slider {
        left: -250px;
        width: 280px;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .legend-slider .legend-toggle {
        right: -35px;
        width: 35px;
        height: 50px;
    }
    
    .arrow-icon {
        font-size: 14px;
    }
    
    .legend-slider .legend-panel {
        padding: 20px;
    }
}

/* =================================
   LEGEND PANEL VISIBILITY FIX
   ================================= */

/* Make legend panel VERY visible when open */
.legend-slider.open .legend-panel {
    background: rgba(10, 10, 26, 0.98) !important;
    border-left: 3px solid var(--primary-color) !important; /* Use theme primary color */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make heading VERY visible */
.legend-slider .legend-panel h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Make line types VERY visible */
.legend-slider .line-type {
    background: rgba(255, 255, 255, 0.05) !important; /* Subtle theme background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Theme border */
    padding: 10px !important; /* Slightly reduced padding */
    margin-bottom: 6px !important; /* Reduced margin */
}

.legend-slider .line-type strong {
    color: var(--accent-color) !important;
    font-size: 0.75rem !important; /* Match planet name size */
}

.legend-slider .line-type span {
    color: var(--text-primary) !important;
    font-size: 0.7rem !important; /* Match toggle indicator size */
}

/* Make planet list visible */
.legend-slider .planet-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color); /* Use theme primary color */
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.legend-slider .planet-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05); /* Theme colors instead of bright blue */
    border-radius: 6px;
    margin-bottom: 4px; /* Reduced margin */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle theme border */
    cursor: pointer; /* Show it's clickable */\n    transition: all 0.3s ease; /* Smooth transitions */\n}\n\n/* Hover effect for planet items */\n.legend-slider .planet-item:hover {\n    background: rgba(255, 255, 255, 0.1);\n    border-color: var(--primary-color);\n}\n\n/* Disabled state for planet items */\n.legend-slider .planet-item.disabled {\n    opacity: 0.4;\n    background: rgba(255, 255, 255, 0.02);\n}\n\n.legend-slider .planet-item.disabled .planet-name {\n    text-decoration: line-through;\n}\n\n/* Toggle indicator styling */\n.toggle-indicator {\n    margin-left: auto;\n    color: var(--accent-color);\n    font-weight: bold;\n    font-size: 0.9rem;\n}\n\n.legend-slider .planet-item.disabled .toggle-indicator {\n    color: #ff4444;\n}

.legend-slider .planet-symbol {
    font-size: 1.2rem; /* Reduced from 1.5rem */
    width: 24px; /* Reduced from 30px */
    text-align: center;
}

.legend-slider .planet-name {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.75rem; /* Reduced from 0.9rem */
}

/* Debug - add visible background */
.legend-slider {
    background: transparent !important; /* Made transparent */
}

/* Reduce spacing between planet items in legend */
.legend-slider .planet-item {
    margin-bottom: 3px !important; /* Reduced from 4px */
    padding: 4px 8px !important; /* Reduced from 6px 10px */
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
}

/* Also reduce spacing in planet-list container */
.legend-slider .planet-list {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Reduced from 4px */
}

/* Reduce line-type spacing too if needed */
.legend-slider .line-type {
    margin-bottom: 2px !important; /* Reduced from 4px */
    padding: 6px 8px !important; /* Reduced from 10px 12px */
    font-size: 0.7rem; /* Add smaller font size */
}

.legend-slider .legend-grid {
    gap: 3px !important; /* Reduced from 6px */
    margin-bottom: 10px !important; /* Reduced from 15px */
}

/* Birth data in navbar */
.birth-data-inline {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.birth-data-inline .data-grid {
    display: flex;
    gap: 15px;
    align-items: center;
}

.birth-data-inline .data-item {
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.birth-data-inline .data-item strong {
    color: var(--logo-light);
    margin-right: 4px;
}

/* Mobile adjustments for navbar birth data */
@media (max-width: 1200px) {
    .birth-data-inline {
        display: none; /* Hide on smaller screens to save space */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* =================================
   FIXED LEGEND PANEL
   ================================= */

.legend-toggle {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1201;
    
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.legend-toggle:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ensure legend panel displays properly */
.legend-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 56px;
    z-index: 1200;
    
    max-height: 40vh;
    overflow-y: auto;
    
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20, 24, 48, 0.95);
    backdrop-filter: blur(20px);
    
    /* Use visibility/opacity for smooth toggle */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.legend-panel.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.legend-panel h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* =================================
   FULLSCREEN MAP LAYOUT
   ================================= */

/* Make map page body use full viewport */
body.map-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Map display section takes remaining space */
.map-page .map-display-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flexbox */
    padding-top: 70px; /* Height of navbar only */
}

/* Container fills available space */
.map-page .container-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

/* Map stage takes all remaining space */
.map-page .map-stage {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: visible; /* Changed from hidden to visible */
}

/* Map fills the stage completely now */
.map-page #map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .map-page .data-grid {
        gap: 12px;
    }
    
    .map-page .data-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .map-page .data-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive styles for locational astrology page */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .planets-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .lines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .astrology-hero .hero-content {
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
