/* Non-critical styles that can be loaded after initial render */

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

p {
    margin-bottom: 1rem;
}

a:hover {
    color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 100px 0;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Amenities Section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.amenity-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.amenity-content {
    padding: 25px;
}

.amenity-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Experiences Section */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.experience-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 25px;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.experience-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 30px;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pricing-period {
    color: #777;
    font-size: 1rem;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pricing-notes {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(58, 123, 213, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
}

/* Booking Section */
.booking-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 50px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question i {
    transition: all 0.3s ease;
}

.faq-answer {
    background-color: #f8f9fa;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Additional Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .amenities-grid, 
    .experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 30px;
    }
}
@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Print styles for better accessibility */
@media print {
    header, 
    footer,
    .mobile-menu,
    .scroll-down,
    .btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .booking-form,
    .pricing-card,
    .amenity-card,
    .experience-card {
        break-inside: avoid;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-down {
        animation: none !important;
    }
}

/* Gallery enhancements */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item:focus {
    outline: 3px solid var(--primary-color);
}

/* Promo style */
.promo-notice {
    background-color: #e7f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    border-radius: 10px;
    margin: 40px auto; /* Adds vertical spacing */
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.15);
}

.promo-notice p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}


.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 2001;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.lightbox-counter {
    color: white;
    font-size: 1rem;
    margin-top: 20px;
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Loading indicator */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }
    
    
    .lightbox-close {
        font-size: 2rem;
    }
}