/* ===== RESPONSIVE STYLES ===== */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        margin-top: 20px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image::before,
    .about-image::after {
        display: none;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .header.scrolled .logo-text {
        font-size: 1rem;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .footer-logo {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo-container {
        justify-content: center;
    }
    
    .footer-logo p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-location {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-map-container,
    .footer-contact-info {
        text-align: center;
    }
    
    .footer-map-container h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Navigation for tablets */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .language-switch {
        margin-top: 20px;
    }
    
    /* Package footer adjustments for tablets */
    .package-footer {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
    }
    
    .package-price {
        align-items: center;
        min-width: auto;
    }
    
    /* Group pricing tablet styles */
    .package-pricing-options {
        min-width: auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* CTA pricing tablet */
    .cta-pricing {
        max-width: 320px;
    }
    
    .btn-whatsapp {
        min-width: 180px;
        padding: 12px 20px;
    }
    
    /* Sticky back button tablet adjustments */
    .sticky-back-button {
        top: 18px;
        left: 18px;
    }
    
    .sticky-back-button .back-button {
        padding: 11px 18px;
        font-size: 0.88rem;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
        animation-duration: 1s;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
        animation-duration: 1s;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card:last-child {
        grid-column: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-filter {
        flex-wrap: wrap;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-company {
        text-align: center;
    }
    
    .footer-company .footer-logo-container {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
        margin: 0 auto 25px;
    }
    
    .footer-social-media,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-links-column h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: left;
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 20px;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .header.scrolled .logo-text {
        font-size: 0.85rem;
    }
    
    .footer-company .footer-logo-container {
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-contact-item {
        gap: 12px;
    }
    
    .footer-contact-item i {
        font-size: 1rem;
    }
    
    .footer-contact-item p {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
        animation-duration: 0.8s;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
        animation-duration: 0.8s;
        word-break: break-word;
    }
    
    .package-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .package-price {
        margin-bottom: 0;
        align-items: center;
        min-width: auto;
    }
    
    /* Group pricing responsive styles */
    .package-pricing-options {
        min-width: auto;
        width: 100%;
        gap: 6px;
    }
    
    .price-option {
        padding: 6px 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
    }
    
    .price-option .price {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .price-option .per-person {
        font-size: 0.6rem;
    }
    
    .discount-badge {
        position: static;
        margin-left: 6px;
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    /* CTA pricing responsive */
    .cta-pricing {
        max-width: 100%;
    }
    
    .cta-pricing .price-option {
        padding: 8px 12px;
    }
    
    .cta-pricing .price-option .price {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }
    
    .per-person {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    .btn-whatsapp {
        width: 100%;
        min-width: auto;
        padding: 14px 24px;
        font-size: 1rem;
        justify-content: center;
    }
    
    .btn-whatsapp i {
        font-size: 1.2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .testimonial-author img {
        margin: 0 auto 10px;
        width: 50px;
        height: 50px;
    }
    
    .testimonial-content {
        padding: 25px 20px;
        min-height: auto;
    }
    
    .testimonial-text {
        margin-bottom: 20px;
    }
    
    .testimonial-text p {
        padding: 0 10px;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-text p::before {
        font-size: 2.5rem;
        left: -5px;
        top: -15px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .whatsapp-float {
        bottom: 70px;
    }
    
    /* Sticky back button mobile adjustments */
    .sticky-back-button {
        top: 15px;
        left: 15px;
    }
    
    .sticky-back-button .back-button {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .sticky-back-button .back-button i {
        font-size: 0.9rem;
    }
}

/* Adjustments for very small devices */
@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
        animation-duration: 0.8s;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
        animation-duration: 0.8s;
        word-break: break-word;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .package-content,
    .contact-card {
        padding: 20px;
    }
    
    .package-features {
        grid-template-columns: 1fr;
    }
}

/* Height-based media queries for better hero section display */
@media (max-height: 700px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 60px 0;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .hero-buttons,
    .contact-form-container,
    .gallery-filter,
    .testimonial-controls {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .hero,
    .about,
    .packages,
    .gallery,
    .contact {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .hero-title,
    .section-title,
    .package-title,
    .contact-details h3 {
        color: #000;
    }
    
    .section-divider {
        background-color: #000;
    }
    
    .package-card,
    .feature-card,
    .contact-card {
        box-shadow: none;
        border: 1pt solid #ddd;
    }
}

/* Responsive Custom Packages Styles */
@media (max-width: 768px) {
    .packages-cta {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .custom-packages-intro h3 {
        font-size: 1.8rem;
    }
    
    .custom-packages-intro p {
        font-size: 1rem;
    }
    
    .custom-packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .custom-package-item {
        padding: 1.5rem;
        text-align: center;
    }
    
    .custom-package-item h4 {
        font-size: 1.2rem;
    }
    
    .custom-packages-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .custom-packages-intro h3 {
        font-size: 1.6rem;
    }
    
    .custom-package-item {
        padding: 1rem;
    }
    
    .custom-package-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .custom-package-icon i {
        font-size: 1.2rem;
    }
    
    .custom-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}