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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f2ed;
    color: #3a3a3a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Background Paper Texture */
body {
    background-image: url('../images/paper.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #faf8f4;
    opacity: 0.7;
    z-index: -2;
    pointer-events: none;
}

/* Header */
.header {
    position: relative;
    padding: 40px 0 20px;
    background: transparent;
    min-height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 300px;
    height: auto;
    display: block;
}

.language-switcher {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #5a4a3a;
    z-index: 20;
    touch-action: manipulation;
}

.lang-option {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    color: #8b7355;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lang-option.active {
    color: #5a4a3a;
    font-weight: 600;
}

.lang-option:hover {
    color: #3a3a3a;
}

.lang-separator {
    color: #8b7355;
}

/* Decorative Corner Elements - Removed */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 40px 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* About Section */
.about {
    padding: 60px 0;
    background: transparent;
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3a3a3a;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text strong {
    font-weight: 700;
    color: #5a4a3a;
    font-family: 'Montserrat', sans-serif;
}

/* Featured Destination Section */
.featured-destination {
    padding: 60px 0 80px;
    background: transparent;
    position: relative;
}

.destination-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.destination-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.destination-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.destination-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #3a3a3a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
}

/* Buttons */
.cta-button,
.cta-button-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #b8996e 0%, #d4b481 100%);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 153, 110, 0.3);
    width: fit-content;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.cta-button:hover,
.cta-button-secondary:hover {
    background: linear-gradient(135deg, #a8895e 0%, #c4a471 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 153, 110, 0.4);
}

.cta-button:active,
.cta-button-secondary:active {
    transform: translateY(0);
}

.cta-button-secondary {
    margin-top: 30px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #5a4a3a;
    flex-shrink: 0;
}

.contact-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #5a4a3a;
    text-decoration: none;
    transition: color 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: #3a3a3a;
    text-decoration: underline;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-link:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-link svg {
    width: 22px;
    height: 22px;
}

/* Tours Section */
.tours-section {
    position: relative;
    overflow: visible;
}

.tours-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-height: none;
    overflow: visible;
}

.tours-container.show-all {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    animation: fadeIn 0.5s ease-in;
}

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

.tour-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.tour-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.tour-content {
    padding: 20px;
}

.tour-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 8px;
}

.tour-details {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8b7355;
    margin-bottom: 12px;
}

.tour-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #5a4a3a;
    line-height: 1.6;
}

.tours-nav-arrow {
    position: absolute;
    right: -70px;
    top: 35%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #8b7355;
    background-color: #faf8f4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    border: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
}

.tours-nav-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.25);
}

.tours-nav-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

/* Footer */
.footer {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    background: transparent;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-tagline,
footer .footer-tagline,
.footer-content .footer-tagline,
p.footer-tagline {
    font-family: 'Allura', cursive !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    color: #8b7355 !important;
    font-style: normal !important;
    letter-spacing: 1.5px !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant: normal !important;
    text-transform: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .destination-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tours-container {
        grid-template-columns: 1fr;
    }
    
    .tours-container.show-all {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    /* Force arrow to bottom - must be first */
    .tours-nav-arrow,
    #toursArrowBtn,
    .tours-section .tours-nav-arrow,
    .tours-section #toursArrowBtn,
    button.tours-nav-arrow,
    button#toursArrowBtn {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        display: flex !important;
        width: 50px !important;
        height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        clear: both !important;
    }
    
    .tours-nav-arrow:active,
    #toursArrowBtn:active {
        transform: scale(0.98) !important;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 20px 0 15px;
    }
    
    .header-container {
        padding: 0 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo-container {
        flex: 1;
        display: flex;
        justify-content: center;
        min-width: 0;
        padding-right: 10px;
    }
    
    .logo {
        max-width: 180px;
        height: auto;
    }
    
    .language-switcher {
        position: static;
        margin-top: 0;
        font-size: 14px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Hero Section */
    .hero {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .hero-overlay {
        padding: 0 20px 40px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 22px;
        line-height: 1.3;
    }
    
    /* About Section */
    .about {
        padding: 40px 0;
    }
    
    .about-text {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    /* Featured Destination */
    .featured-destination {
        padding: 40px 0 60px;
    }
    
    .destination-info {
        text-align: center;
    }
    
    .destination-label {
        font-size: 12px;
    }
    
    .destination-title {
        font-size: 32px;
        margin: 15px 0;
    }
    
    .cta-button,
    .cta-button-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .contact-info {
        margin-top: 25px;
        align-items: flex-start;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .contact-link {
        font-size: 14px;
        word-break: break-all;
    }
    
    .whatsapp-link {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Tours Section */
    .tours-section {
        margin-top: 30px;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    
    .tours-container {
        gap: 20px;
        margin-bottom: 20px;
        order: 1;
        width: 100%;
    }
    
    .tour-card {
        margin-bottom: 0;
    }
    
    .tour-image {
        height: 180px;
    }
    
    .tour-content {
        padding: 15px;
    }
    
    .tour-title {
        font-size: 18px;
    }
    
    .tour-details {
        font-size: 13px;
    }
    
    .tour-description {
        font-size: 13px;
    }
    
    /* Secondary button order */
    .tours-section .cta-button-secondary {
        order: 3;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-tagline {
        font-size: 28px;
        font-family: 'Allura', cursive !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        max-width: 150px;
        margin-left: 120px;
    }
    
    .language-switcher {
        font-size: 13px;
        gap: 6px;
        padding: 6px 0;
    }
    
    .lang-option {
        padding: 6px 10px;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .destination-title {
        font-size: 28px;
    }
    
    .about-text {
        font-size: 15px;
    }
    
    .cta-button,
    .cta-button-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tour-image {
        height: 160px;
    }
    
    .footer-tagline {
        font-size: 24px;
        font-family: 'Allura', cursive !important;
    }
    
    .contact-item {
        flex-wrap: wrap;
        padding: 8px 0;
    }
    
    .whatsapp-link {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Improve touch targets */
    .lang-option {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button,
    .cta-button-secondary {
        min-height: 44px;
    }
    
    /* Tours arrow - ensure it's below tours on very small screens */
    .tours-nav-arrow,
    #toursArrowBtn,
    .tours-section .tours-nav-arrow,
    .tours-section #toursArrowBtn,
    button.tours-nav-arrow,
    button#toursArrowBtn {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        display: flex !important;
        width: 50px !important;
        height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        clear: both !important;
    }
}

/* FINAL OVERRIDE - Force arrow below tours on mobile - highest specificity */
@media (max-width: 768px) {
    body .tours-section button.tours-nav-arrow#toursArrowBtn,
    body .tours-section .tours-nav-arrow#toursArrowBtn,
    body .tours-section #toursArrowBtn.tours-nav-arrow,
    body .destination-grid .tours-section .tours-nav-arrow,
    body .destination-grid .tours-section #toursArrowBtn {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        display: flex !important;
        width: 50px !important;
        height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        clear: both !important;
    }
}
