/* ========================================
   QUINTA TRANQUILA - Main Stylesheet
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

/* ========================================
   MAIN HEADER - Branding Left, Nav Right
   ======================================== */
.main-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #3d7a52 100%);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.branding {
    display: flex;
    flex-direction: column;
}

.branding h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.branding .tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector select {
    appearance: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 120px;
}

.language-selector select:hover {
    background: rgba(255,255,255,0.25);
}

.language-selector::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: white;
    pointer-events: none;
}

.language-selector select option {
    background: #2d5a3d;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   PAGE SUB-HEADERS (Sand colored)
   ======================================== */
.page-header {
    background-color: #d4c4a8;
    padding: 1.5rem 0;
    text-align: center;
}

.page-header h2 {
    color: #2d5a3d;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   IMAGE SLIDESHOW - 16:9 Widescreen
   ======================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideshow-container .prev,
.slideshow-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    z-index: 10;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
    background: rgba(0,0,0,0.8);
}

.slideshow-container .prev {
    left: 10px;
}

.slideshow-container .next {
    right: 10px;
}

.slideshow-dots {
    text-align: center;
    padding: 1rem;
    background: #1a1a1a;
}

.slideshow-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slideshow-dots .dot.active,
.slideshow-dots .dot:hover {
    background-color: #fff;
}

/* ========================================
   SCROLLING REVIEWS CAROUSEL
   ======================================== */
.reviews-carousel {
    background: linear-gradient(135deg, #f8f6f3 0%, #efe9e1 100%);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.reviews-carousel::before,
.reviews-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.reviews-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f8f6f3 0%, transparent 100%);
}

.reviews-carousel::after {
    right: 0;
    background: linear-gradient(to left, #efe9e1 0%, transparent 100%);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    animation: scrollReviews 60s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    flex-shrink: 0;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 380px;
    min-width: 320px;
}

.review-card .stars {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.review-card .review-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card .reviewer {
    color: #2d5a3d;
    font-weight: 600;
    font-size: 0.9rem;
}

.review-card .reviewer::before {
    content: '— ';
}

/* ========================================
   WELCOME & CONTENT SECTIONS
   ======================================== */
.welcome-section {
    padding: 3rem 0;
    text-align: center;
    background: white;
}

.welcome-section h2 {
    color: #2d5a3d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* ========================================
   ALTERNATING CONTENT BLOCKS
   ======================================== */
.content-block {
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block .text-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.content-block .text-side h3 {
    color: #2d5a3d;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.content-block .text-side p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-block .image-side {
    flex: 1;
    min-height: 400px;
}

.content-block .image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   FEATURES LIST
   ======================================== */
.features-section {
    padding: 3rem 0;
    background: #f8f8f8;
}

.features-section h2 {
    text-align: center;
    color: #2d5a3d;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-item h4 {
    color: #2d5a3d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */
.gallery-section {
    padding: 3rem 0;
    background: white;
}

.gallery-section h2 {
    text-align: center;
    color: #2d5a3d;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

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

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

/* ========================================
   ACTIVITIES CARDS
   ======================================== */
.activities-section {
    padding: 3rem 0;
    background: #f8f8f8;
}

.activities-section h2 {
    text-align: center;
    color: #2d5a3d;
    margin-bottom: 0.5rem;
}

.activities-section .section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity-card .card-image {
    height: 200px;
    overflow: hidden;
}

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

.activity-card .card-content {
    padding: 1.5rem;
}

.activity-card h3 {
    color: #2d5a3d;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.activity-card .distance {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.activity-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-section {
    padding: 3rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2d5a3d;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-item .icon {
    font-size: 1.5rem;
    color: #2d5a3d;
}

.contact-form h3 {
    color: #2d5a3d;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-weight: 500;
}

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

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

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #2d5a3d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #3d7a52;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #2d5a3d;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-content h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links p,
.footer-contact p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.3rem 0;
    opacity: 0.9;
}

.footer-keywords {
    font-size: 0.8rem;
    opacity: 0.7;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   MAP EMBED
   ======================================== */
.map-container {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .branding {
        align-items: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-block,
    .content-block.reverse {
        flex-direction: column;
    }
    
    .content-block .image-side {
        min-height: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .branding h1 {
        font-size: 1.5rem;
    }
    
    .main-nav a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .slideshow-container {
        max-height: 400px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section h2,
    .content-block .text-side h3 {
        font-size: 1.5rem;
    }
    
    .content-block .text-side {
        padding: 2rem 1.5rem;
    }
    
    .review-card {
        min-width: 280px;
        max-width: 300px;
    }
}
