/* General Styling */
body {
    background: linear-gradient(45deg, #1e3c72, #2a1d8f);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: #f5f5f5;
    font-family: 'Playfair Display', serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Smooth fade-in animation for sections */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    background: rgba(30, 30, 30, 0.95) url('https://www.transparenttextures.com/patterns/linen.png');
    border-radius: 15px;
    margin: 3rem 0;
    padding: 2rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styling */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1578683014728-c73504a286f9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #2ecc71;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(46, 204, 113, 0.2), rgba(30, 29, 143, 0.5));
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

h1, h2, h4, h5 {
    color: #2ecc71;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    border: 1px solid #d4af37;
    color: #121212;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    border-color: #b8972e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Form Styling */
.form-control, .form-select {
    background-color: rgba(30, 60, 114, 0.9);
    color: #f5f5f5;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(30, 60, 114, 0.9);
    color: #f5f5f5;
    border-color: #2ecc71;
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

/* Gallery Section */
.gallery-section {
    margin: 3rem 0;
    position: relative;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover fixed;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 29, 143, 0.7);
    z-index: 1;
}

.gallery-section > * {
    position: relative;
    z-index: 2;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index: 2;
    padding: 1rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
}

/* Services Section */
.services-section .service-card {
    background: rgba(30, 60, 114, 0.9);
    border: 1px solid #d4af37;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.services-section .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.service-card img {
    height: 220px;
    object-fit: cover;
}

.service-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.service-card .card-title {
    color: #2ecc71;
}

.service-card .card-text {
    color: #f5f5f5;
}

.service-card ul {
    color: #f5f5f5;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: whitesmoke;
}

/* Location Section */
.location-section .map-container {
    border: 3px solid #d4af37;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.location-section .map-container:hover {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.location-section iframe {
    width: 100%;
    height: 350px;
}

/* Footer */
footer {
    background: linear-gradient(to top, #1e3c72, #2a1d8f);
    color: #2ecc71;
    padding: 2rem 0;
}

/* Booking Section */
.booking-section .img-fluid {
    max-height: 80%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #d4af37;
}

.booking-section .col-md-6:nth-child(2) {
    display: flex;
    align-items: stretch;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .booking-section .row {
        flex-direction: column;
    }

    .booking-section .col-md-6 {
        width: 100%;
    }

    .booking-section .img-fluid {
        max-height: 300px;
        margin-top: 1rem;
    }

    .booking-section .col-md-6:nth-child(2) {
        display: block;
    }

    .carousel-item img {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .booking-section .row {
        align-items: stretch;
    }

    .booking-section .col-md-6:first-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Availability Checker Styling */
.availability-section {
    position: relative;
    padding: 4rem 0;
    background: url('img/p7.jpg') center/cover fixed;
}

.availability-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 29, 143, 0.85);
    z-index: 1;
}

.availability-section > * {
    position: relative;
    z-index: 2;
}

.availability-checker {
    background: rgba(30, 60, 114, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.availability-checker:hover {
    transform: translateY(-10px);
}

.availability-checker form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.availability-checker .form-group {
    position: relative;
}

.availability-checker .form-label {
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.availability-checker .form-control,
.availability-checker .form-select {
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
}

.availability-checker .btn-primary {
    padding: 0.8rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.availability-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.1);
    text-align: center;
}

.availability-result.available {
    background: rgba(46, 204, 113, 0.2);
}

.availability-result.booked {
    background: rgba(231, 76, 60, 0.2);
}

.availability-result h4 {
    margin-bottom: 1rem;
    color: #2ecc71;
}

.availability-result.booked h4 {
    color: #e74c3c;
}

.availability-result .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.progress-bar {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.progress {
    background: rgba(30, 60, 114, 0.9);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .availability-checker {
        padding: 1.5rem;
    }

    .availability-checker .form-control,
    .availability-checker .form-select {
        font-size: 0.9rem;
    }

    .availability-checker .btn-primary {
        font-size: 1rem;
    }

    .availability-result .icon {
        font-size: 2rem;
    }
}