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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    width: 100%;
    height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen */
#login-screen {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#login-screen.active {
    display: flex;
}

.login-container {
    z-index: 10;
    padding: 20px;
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.date-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.date-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-body label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-body input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.25rem;
    text-align: center;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.login-body input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.login-body input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.error-msg {
    color: var(--error);
    font-size: 0.85rem;
    min-height: 20px;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px var(--primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Background decoration */
.background-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Map Screen */
#map-screen {
    position: relative;
}

#map {
    width: 100%;
    height: 100vh;
}

.leaflet-control-attribution {
    display: none !important;
}

.map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.map-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-back {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-back svg {
    width: 20px;
    height: 20px;
}

/* Location Panel */
.location-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 500px;
    margin: 0 auto;
}

.location-panel.hidden {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

.close-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.location-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
    padding-right: 40px;
    background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-panel p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.location-panel .tip {
    background: rgba(236, 72, 153, 0.1);
    border-left: 3px solid #ec4899;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #f9a8d4;
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.5);
}

.btn-directions svg {
    width: 20px;
    height: 20px;
}

/* Custom Heart Markers */
.custom-marker {
    position: relative;
    width: 32px;
    height: 28px;
    filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.5));
    animation: heartPulse 2s ease-in-out infinite;
}

.custom-marker::before,
.custom-marker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 26px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    border-radius: 16px 16px 0 0;
}

.custom-marker::before {
    left: 16px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.custom-marker::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content {
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    margin: 12px 16px;
}

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

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .location-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }
}
