/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 20px;
}

.nav-logo h2 {
    color: #ED2839;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ED2839;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ED2839;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 40, 57, 0.4), rgba(0, 191, 255, 0.4));
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ED2839;
    color: white;
}

.btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(237, 40, 57, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #ED2839;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    color: #ED2839;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ED2839, #00bfff);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.bg-light {
    background-color: white;
}

/* Inn Section */
.inn-content {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 700px);
    gap: 80px;
    align-items: center;
}

.inn-text h3 {
    font-size: 2.2rem;
    color: #ED2839;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.inn-text p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.amenities {
    list-style: none;
    margin-bottom: 2rem;
}

.amenities li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.amenities i {
    color: #ED2839;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.pricing {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(237, 40, 57, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pricing h4 {
    font-size: 1.8rem;
    color: #ED2839;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Fix Inn Gallery for balanced 2x2 grid layout */
.inn-gallery {
    width: 100%;
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
}
.inn-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Ensure Inn gallery stays a 2x2 grid even if .gallery-grid is redefined later */
.gallery-grid.inn-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 40px !important;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Strong override: force Inn gallery to be a stable 2x2 grid */
#inn .gallery-grid.inn-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    grid-auto-flow: row !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

#inn .gallery-grid.inn-gallery-grid > .gallery-item {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    align-self: stretch !important;
}

#inn .inn-gallery {
    min-width: 0 !important;
}

#inn .inn-gallery {
    display: block !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .inn-gallery-grid {
        max-width: 100%;
        width: 100%;
        gap: 20px;
    }
    .inn-gallery-grid .gallery-item {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .inn-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

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

/* Cafe and Spanish School specific gallery */
.cafe-gallery .gallery-grid,
.school-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 50px 0;
    width: 100%;
    overflow: hidden;
}

.cafe-gallery,
.school-gallery {
    width: 100%;
    overflow: hidden;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

/* Larger items for Cafe and Spanish School */
.cafe-gallery .gallery-item,
.school-gallery .gallery-item {
    aspect-ratio: 3/2;
    min-height: 280px;
    max-height: 350px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    width: 100%;
    height: auto;
}

.cafe-gallery .gallery-item:hover,
.school-gallery .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(1.1);
    display: block;
}

.hero-bg-image {
    opacity: 0;
    transform: scale(1.1);
}

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

/* Cafe Section */
.cafe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cafe-text h3 {
    font-size: 2.2rem;
    color: #ED2839;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cafe-text p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.menu-highlights {
    margin-bottom: 2rem;
}

.menu-highlights h4 {
    font-size: 1.3rem;
    color: #ED2839;
    margin-bottom: 1rem;
}

.menu-highlights ul {
    list-style: none;
}

.menu-highlights li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.cafe-hours {
    background: #ED2839;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.cafe-hours h4,
.cafe-hours p,
.cafe-hours a {
    color: white !important;
}

.cafe-hours h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cafe-hours-highlight {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.15em;
    letter-spacing: 1px;
}

/* Spanish School Section */
.school-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.school-text h3 {
    font-size: 2.2rem;
    color: #ED2839;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.school-text p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.courses h4 {
    font-size: 1.3rem;
    color: #ED2839;
    margin-bottom: 1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(237, 40, 57, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-card h5 {
    color: #ED2839;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.course-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price {
    font-weight: 700;
    color: #ED2839;
    font-size: 1.4rem;
}

.school-features {
    text-align: center;
    margin: 3rem auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.school-features h4 {
    font-size: 1.8rem;
    color: #ED2839;
    margin-bottom: 3rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.school-features ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.school-features li {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(237, 40, 57, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 160px;
    width: 100%;
}

.school-features li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.school-features i {
    color: #ED2839;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    width: auto;
}

@media (max-width: 1024px) {
    .school-features ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .school-features li {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .school-features ul {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        max-width: 400px;
    }
}

.school-text .btn {
    margin: 2rem auto 0;
    display: block;
    width: fit-content;
}

/* School Features Full Width Section */
.school-features-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: 60px;
}

.school-features {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    padding: 0 40px;
}

.school-features h4 {
    font-size: 2.5rem;
    color: #ED2839;
    margin-bottom: 4rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    letter-spacing: -0.5px;
}

.school-features ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    justify-items: center;
    align-items: stretch;
}

.school-features li {
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(237, 40, 57, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 200px;
    width: 100%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.school-features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ED2839, #00bfff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.school-features li:hover::before {
    transform: scaleX(1);
}

.school-features li:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(237, 40, 57, 0.2);
}

.school-features i {
    color: #ED2839;
    font-size: 3rem;
    margin-bottom: 0;
    width: auto;
    transition: all 0.3s ease;
}

.school-features li:hover i {
    transform: scale(1.1);
    color: #c82333;
}

.school-features span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1024px) {
    .school-features ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 2.5rem;
        max-width: 800px;
    }
    
    .school-features li {
        max-width: 350px;
        min-height: 180px;
    }
    
    .school-features h4 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .school-features-fullwidth {
        padding: 60px 0;
        margin-top: 40px;
    }
    
    .school-features {
        padding: 0 20px;
    }
    
    .school-features ul {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        max-width: 400px;
    }
    
    .school-features h4 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .school-features li {
        min-height: 160px;
        padding: 2.5rem 2rem;
    }
    
    .school-features i {
        font-size: 2.5rem;
    }
}

/* Attractions Section */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.attraction-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.attraction-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.attraction-image {
    height: 250px;
    overflow: hidden;
}

.attraction-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    opacity: 0;
    transform: scale(1.1);
}

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

.attraction-content {
    padding: 2rem;
}

.attraction-content h3 {
    color: #ED2839;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.attraction-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 2.2rem;
    color: #ED2839;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #ED2839;
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    color: #ED2839;
    margin-bottom: 0.5rem;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 450px;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer */
.footer {
    background: #ED2839;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }
    
    .nav-logo {
        position: static;
    }
    
    .hamburger {
        position: static;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        width: 100%;
        height: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .inn-content,
    .cafe-content,
    .school-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map iframe {
        height: 300px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .cafe-gallery .gallery-grid,
    .school-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
    }
    
    .cafe-gallery .gallery-item,
    .school-gallery .gallery-item {
        min-height: 250px;
        max-height: 300px;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Final override: guarantee Inn gallery is 2x2 */
#inn #inn-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

#inn .inn-gallery {
    display: block !important;
    width: 100% !important;
}

#inn .gallery-grid.inn-gallery-grid > .gallery-item {
    width: 100% !important;
    min-width: 0 !important;
}