/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Define variables for colors */
:root {
    --primary-color: #4a90e2;
    --accent-color: #357abd;
    --text-color: #333;
    --transition: all 0.3s ease;
    --white: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px; /* Fixed height for consistency */
}

.header.hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo-image {
    height: 80px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90e2;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #4a90e2;
}

.nav-list a:hover::after {
    width: 100%;
}

.reserve-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.reserve-btn:hover {
    background: #357abd;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/benavente.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    color: white;
    text-align: center;
}

.subtitle {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #f5f5f5;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: white;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.4;
}

.feature-card.reserve {
    background: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card.reserve h2 {
    margin: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }

    .subtitle {
        font-size: 18px;
    }
}

/* Page content styles */
.page-content {
    padding-top: 100px;
    padding-bottom: 60px;
}

.page-content h1 {
    color: #333;
    margin-bottom: 30px;
    text-shadow: none;
}

.page-content h2 {
    color: #4a90e2;
    font-size: 28px;
    margin: 40px 0 20px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* Highlights and Features Lists */
.highlights ul,
.accommodation-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.highlights li,
.accommodation-features li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #555;
}

/* Events styles */
.events-list {
    margin-top: 40px;
}

.event-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Contact page styles */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-details a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #357abd;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.submit-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #357abd;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 80px;
    }
    
    .page-content h1 {
        font-size: 32px;
    }
    
    .page-content h2 {
        font-size: 24px;
    }
}

/* Image gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 14px;
}

/* Featured section styles */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

.featured-image {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content h2 {
    margin-top: 0;
}

/* Accommodation gallery styles */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-details {
    padding: 20px;
}

.room-details h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.room-features {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

/* Events page enhancement */
.event-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.event-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-details {
    padding: 30px;
}

.event-date {
    color: #4a90e2;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

    .room-gallery {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* Restaurant styles */
.restaurant-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

.restaurant-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-5px);
}

.restaurant-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover .restaurant-image img {
    transform: scale(1.05);
}

.restaurant-details {
    padding: 30px;
}

.restaurant-details h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.restaurant-info {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.specialties {
    margin-top: 20px;
}

.specialties h4 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 16px;
}

.specialties ul {
    list-style: none;
    padding: 0;
}

.specialties li {
    padding: 5px 0;
    color: #555;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .restaurant-card {
        grid-template-columns: 1fr;
    }

    .restaurant-image {
        aspect-ratio: 16/9;
    }
}

/* Reservation Form Overlay */
.reserva-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.reserva-form-overlay.hidden {
    display: none;
}

.reserva-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.reserva-form h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.reserva-form .form-group {
    margin-bottom: 15px;
}

.reserva-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.reserva-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.reserva-form .submit-btn {
    background: #4a90e2;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.reserva-form .submit-btn:hover {
    background: #357abd;
}

.reserva-form .close-btn {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.reserva-form .close-btn:hover {
    background: #f5f5f5;
}

/* Media queries */
@media (max-width: 480px) {
    .reserva-form {
        padding: 20px;
        max-height: 80vh;
    }
    
    .reserva-form h2 {
        font-size: 1.5rem;
    }
    
    .reserva-form .form-group {
        margin-bottom: 10px;
    }
    
    .reserva-form .form-group input,
    .reserva-form .submit-btn,
    .reserva-form .close-btn {
        padding: 8px;
        font-size: 14px;
    }
}

/* Accommodation Preview Section */
.accommodation-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #666;
}

.preview-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.preview-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.preview-photo:hover {
    transform: translateY(-10px);
}

.preview-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.preview-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.preview-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4a90e2;
}

.preview-text p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.know-more-btn {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.know-more-btn:hover {
    background: #357abd;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
}

.footer-info {
    text-align: center;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 100px;
    margin-bottom: 15px;
    transform: translateY(-15px);
}

.footer-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    grid-column: 3;
    grid-row: 1;
}

.footer-contact {
    grid-column: 1;
    grid-row: 1;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.footer .reserve-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-top: 0;
    transform: translateY(-10px);
}

.footer-info .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.footer-info .social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-info .social-links a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .preview-photos {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info, .footer-links, .footer-contact {
        grid-column: 1;
    }
    
    .footer-info {
        grid-row: 2;
    }
    
    .footer-links {
        grid-row: 1;
    }
    
    .footer-contact {
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
        padding-top: 2px;
        padding-bottom: 20px;
    }
    
    .nav {
        margin-top: 20px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding: 40px 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-info {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .testimonial-text {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info, .footer-links, .footer-contact {
        grid-column: 1;
    }
    
    .footer-contact {
        grid-row: 1;
    }
    
    .footer-info {
        grid-row: 2;
    }
    
    .footer-links {
        grid-row: 3;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid white;
}

.modal-text {
    margin-top: 15px;
    color: white;
    font-size: 18px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1010;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-arrow {
    left: -60px;
}

.next-arrow {
    right: -60px;
}

.nav-arrow i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .prev-arrow {
        left: -45px;
    }
    
    .next-arrow {
        right: -45px;
    }
    
    .nav-arrow i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .nav-arrow {
        width: 35px;
        height: 35px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
}

/* For the amenities icons at the top of the page */
.amenity-icon .fas, 
.amenity-icon .far, 
.amenity-icon .fab {
    font-size: 36px !important; /* Much larger icon size */
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Ensure footer social icons are visible */
.social-links .fab {
    font-size: 20px !important;
    margin-bottom: 0;
    color: white;
}
