/* Flash Messages - Centered at Top */
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.alert {
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.4s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    opacity: 0.5;
    line-height: 1;
}

.close-btn:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), 
    url('/static/images/indxlandscape.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}


/* Search bar*/

.search-container {
    background: white;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 85%;
    max-width: 1400px;
    margin: 40px auto;
    margin-top: -30px;
    
}

.search-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.search-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-item label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    padding-left: 4px;
    white-space: nowrap;
}

.search-item input,
.search-item select {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    height: 60px;
    box-sizing: border-box;
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    border-color: #0071c2;
}

/* Button styling */
.search-item button.search-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.search-item button.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Extra Large screens - make it even wider */
@media screen and (min-width: 1600px) {
    .search-container {
        width: 90%;
        max-width: 1600px;
        padding: 20px 32px;
    }
    
    .search-item input,
    .search-item select,
    .search-item button.search-btn {
        height: 68px;
        font-size: 18px;
    }
    
    .search-item label {
        font-size: 16px;
    }
    
    .search-item button.search-btn {
        font-size: 20px;
    }
}

/* Large screens */
@media screen and (min-width: 1200px) and (max-width: 1599px) {
    .search-container {
        width: 88%;
    }
}

@media screen and (max-width: 1024px) {
    .search-container {
        width: 90%;
        padding: 20px;
        margin: 30px auto;
    }
    
    .search-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* Destination - full width */
    .search-item:nth-child(1) {
        flex: 1 1 100%;
    }
    
    /* Check-in and Check-out - side by side */
    .search-item:nth-child(2),
    .search-item:nth-child(3) {
        flex: 1 1 calc(50% - 6px);
    }
    
    /* Rooms - full width */
    .search-item:nth-child(4) {
        flex: 1 1 100%;
    }
    
    /* Guests - full width */
    .search-item:nth-child(5) {
        flex: 1 1 100%;
    }
    
    /* Search button - full width */
    .search-item:nth-child(6) {
        flex: 1 1 100%;
    }
    
    .search-item input,
    .search-item select,
    .search-item button.search-btn {
        height: 56px;
        font-size: 16px;
    }
}

/* Mobile Responsive - Stack in one column */
@media screen and (max-width: 768px) {
    .search-container {
        width: 92%;
        padding: 16px;
        margin: 20px auto;
    }
    
    .search-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-item {
        width: 100%;
        flex: 1 1 100% !important;
    }
    
    .search-item label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .search-item input,
    .search-item select {
        height: 52px;
        font-size: 16px;
    }
    
    .search-item button.search-btn {
        margin-top: 8px;
        height: 56px;
        font-size: 18px;
    }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
    .search-container {
        width: 90%;
        padding: 14px;
    }
    
    .search-item input,
    .search-item select,
    .search-item button.search-btn {
        height: 50px;
        font-size: 16px;
    }
}



/* Featured Hotels */
.featured-hotels {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden; /* Prevent horizontal scroll */
}

.featured-hotels h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns on desktop */
    gap: 2rem;
    max-width: 100%; 
}

.hotel-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%; 
    min-width: 0; 
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; 
}

.hotel-info {
    padding: 1.5rem;
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.hotel-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    word-wrap: break-word; 
}

.hotel-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1; 
    word-wrap: break-word;
}

.hotel-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.view-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%; /* Full width button */
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Ensure proper width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 1.5rem;
    }
    
    .hotel-card {
        max-width: 100%;
    }
}

/* Featured hotels see more location Section */
.see-more-btn {
    margin-top: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/*learn more button */
.learn-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}