/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --card-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1521&q=80');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.7);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    max-width: 1000px;
    margin: 30px auto;
    color: var(--dark);
}

h1 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: var(--dark);
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

input {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    background: white;
}

button {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button[type="submit"] {
    background: var(--primary);
    color: white;
    box-shadow: var(--card-shadow);
}

button[type="submit"]:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

#reset-btn {
    background: var(--light);
    color: var(--dark);
    border: 1px solid #ddd;
    margin-top: 20px;
    width: 100%;
}

#reset-btn:hover {
    background: #e9ecef;
}

#loading {
    text-align: center;
    margin: 40px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#destination-output {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid var(--primary);
    box-shadow: var(--card-shadow);
}

#destination-output h3 {
    color: var(--secondary);
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

#destination-output ul {
    padding-left: 20px;
}

#destination-output li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

#destination-output li:before {
    content: "•";
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--light);
    font-size: 0.9rem;
}

footer a {
    color: var(--light);
    text-decoration: underline;
    font-weight: 600;
}

/* Destination Categories Styles */
.destination-categories {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.destination-categories h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

.destination-categories h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.category-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.category-card h3 {
    position: relative;
    color: white;
    font-size: 1.6rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
    margin: 0;
    padding: 20px;
    width: 100%;
    text-align: center;
}

.category-card p {
    padding: 18px;
    margin: 0;
    text-align: center;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
    background: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .categories-grid {
        gap: 20px;
    }

    .category-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card h3 {
        font-size: 1.4rem;
    }
}