:root {
    --snow-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --aurora-bg: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    --frost-bg: linear-gradient(135deg, #e0f7ff 0%, #a7d8de 100%);
    --glass-bg: rgb(255, 255, 255, 0.1);
    --glass-border: rgb(255, 255, 255, 0.2);
    --text-primary: #FFFFFF;
    --text--secondary: rgb(255, 255, 255, 0.8);
}

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

body {
    background: var(--snow-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.frost {
    background: var(--frost-bg);
}

body.aurora {
    background: var(--aurora-bg);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3em;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    position: fixed;
    background: var(--glass-bg);
    padding: 2em 3em;
    border-radius: 30px;
}

.logo h1 {
    font-size: 2.5rem;
}

.nav-links a {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1em 2em;
    border-radius: 30px;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 8em;
}

.hero .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    margin: 2em 0;
}

.hero h1 {
    font-size: 3.2rem;
}

.hero p {
    font-size: 1.2rem;
}

.hero .types {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.types a {
    background: var(--glass-bg);
    padding: .5em 1em;
    border-radius: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.types a:hover {
    animation: move normal 2s ease-in-out;
}

@keyframes move {
    100% {
        transform: translateY(-10px);
    }
}

.types .type-active {
    background: rgba(255, 255, 255, 0.2);
}

.input-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    border-radius: 20px;
    position: relative;
}

input {
    color: var(--text-primary);
    padding: 1em;
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

input::placeholder {
    color: var(--text-primary);
    letter-spacing: 1.5;
}

input:focus {
    border: 1px solid var(--glass-border);
    outline: none;
}

.suggestions {
    position: absolute;
    top: 110%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2em;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 20px;
    max-height: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.main-grid {
    margin-top: 5em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3em;
}

.glass {
    background: var(--glass-bg);
    padding: 3em;
    width: 80%;
    border-radius: 15px;
}

.weather-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3em;
}

.weather-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.temp-toggle {
    display: flex;
    justify-content: center;
    gap: 2em;
    align-items: center;
}

.toggle-btn {
    padding: .5em 1.5em;
    border-radius: 20px;
    border: none;
    margin-top: 2em;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    width: 100%;
    margin-top: 2em;
}

.detail-item {
    background: var(--glass-bg);
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    border-radius: 15px;
    width: 100%;
}

.detail-label {
    color: var(--text-secondary);
    opacity: .70;
    letter-spacing: 1.5;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: .5em;
}

.hero-image  img{
    max-height: 600px;
    width: 100%;
    background-position: center;
    object-fit: cover;
}

.gallery-item img{
    max-width: 100%;
}

.plan {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;
}

.plan button {
    width: 50%;
    padding: 1.5rem;
    border-radius: 15px;
    border: none;
    color: #000000;
    font-size: 1.2rem;
    cursor: pointer;
}

.snowflake {
    position: fixed;
    animation: fall linear infinite;
    z-index: 999;
    top: -10px;
    cursor: default;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    margin-top: 1em;
}

.hidden {
    display: none;
}



.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1.2em;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    max-width: 600px;
    width: 100%;
    padding: 3.2em;
    border-radius: 20px;
    max-height: 95vh;
    position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

.modal-close:hover {
  opacity: 0.7;
}

.trip-plan {
    display: flex;
    flex-direction: column;
    gap: 1em;
}