/* style.css */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --success: #4cc9f0;
    --error: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7ff;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5, #e8f5e9);
    z-index: -1;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    z-index: 1;
}

.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(72, 149, 239, 0.2));
    padding: 1rem;
    border-radius: 50%;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.logo h1 span {
    color: var(--primary);
    font-weight: 600;
}

.tagline {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 400;
}

.search-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.search-container {
    width: 100%;
}

.search-input {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-input.focused {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.search-input i {
    color: var(--gray);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 1rem;
    outline: none;
    color: var(--dark);
}

.search-input input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.search-btn.clicked {
    transform: scale(0.95);
}

.room-details {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.result-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.result-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.location-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.result-body {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.directions .info-value {
    font-weight: 400;
    line-height: 1.5;
}

.map-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(to right, var(--accent), var(--success));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 149, 239, 0.3);
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 149, 239, 0.4);
}

.error-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.error-card i {
    font-size: 3rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.error-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.error-card p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.quick-links {
    margin-top: 2rem;
    text-align: center;
}

.quick-links h3 {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-buttons button {
    background-color: white;
    border: 1px solid var(--light-gray);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-buttons button:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .search-input i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-buttons button {
        width: 100%;
    }
}