/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    flex: 1;
    text-align: left;
}

.header-right {
    flex: 1;
    text-align: right;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.slogan {
    font-size: 0.9rem;
    color: #2c5530;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
    line-height: 1.3;
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.header-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.header-whatsapp svg {
    flex-shrink: 0;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 1920px;
    max-height: 1080px;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2c5530;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* ===== ROOMS SECTION ===== */
.rooms-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-card:hover .room-overlay {
    opacity: 1;
}

.view-gallery {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.room-info p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5530 0%, #3d6b42 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.cta-button.whatsapp {
    background: #25D366;
    color: white;
}

.cta-button.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.cta-button.phone {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.phone:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    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 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
}

.contact-item svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item a {
    color: #2c5530;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3d6b42;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.agency-credit a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.agency-credit a:hover {
    color: #3d6b42;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5530;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #eee;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.gallery-container {
    position: relative;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    max-width: 800px;
    max-height: 600px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5530;
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 120px;
    max-height: 90px;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
    border-color: #2c5530;
    transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-content h2 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .slider-nav.prev {
        left: 20px;
    }
    
    .slider-nav.next {
        right: 20px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left,
    .header-right {
        flex: none;
        text-align: center;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .slogan {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .header-whatsapp {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        min-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .gallery-main img {
        height: 300px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .slogan {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .header-whatsapp {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .header-whatsapp span {
        display: none;
    }
    
    .hero-slider {
        margin-top: 70px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .rooms-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .room-image {
        height: 200px;
    }
    
    .room-info {
        padding: 20px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .gallery-nav {
        padding: 0 10px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
    }
    
    .gallery-thumbnails img {
        width: 60px;
        height: 45px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        min-width: 180px;
        padding: 10px 20px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .room-card:hover {
        transform: none;
    }
    
    .room-card:active {
        transform: scale(0.98);
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
    
    .slider-nav:hover {
        transform: translateY(-50%);
    }
    
    .slider-nav:active {
        transform: translateY(-50%) scale(0.95);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
.slider-nav:focus,
.cta-button:focus,
.modal-close:focus,
.gallery-prev:focus,
.gallery-next:focus {
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Fixed image dimensions to prevent layout shifts */
.slide img,
.room-image img,
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Specific max dimensions for different image types */
.slide img {
    max-width: 1920px;
    max-height: 1080px;
}

.room-image img {
    max-width: 600px;
    max-height: 400px;
}

.gallery-main img {
    max-width: 800px;
    max-height: 600px;
}

.gallery-thumbnails img {
    max-width: 120px;
    max-height: 90px;
}

/* ===== LOADING STATES ===== */
img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .slider-nav,
    .slider-dots,
    .cta-section,
    .footer {
        display: none;
    }
    
    .hero-slider {
        height: auto;
        margin-top: 0;
    }
    
    .slide {
        position: static;
        opacity: 1;
    }
    
    .rooms-section {
        padding: 20px 0;
    }
}
