/* destinations.css */

/* GLOBAL SETTINGS */
.dest-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    width: 100%;
    color: #1f2937;
    line-height: 1.6;
}

.dest-section {
    padding: 3rem 1.25rem; /* Min 48px padding (reduced from 64px) */
    width: 100%;
    background-color: #ffffff;
}

.dest-section.bg-light {
    background-color: #F5F7FA;
}

.dest-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
.dest-h2 {
    font-size: 1.75rem; /* Reduced from 2rem */
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0; /* Reduced margin */
    text-align: center;
}

.dest-h2.left { 
    text-align: left; 
}

.dest-h3 {
    font-size: 1.125rem; /* Reduced from 1.25rem */
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.dest-p {
    font-size: 0.95rem; /* Reduced from 1rem */
    color: #4b5563;
    margin: 0 0 1rem 0;
}

.dest-sub-p {
    font-size: 1rem; /* Reduced from 1.125rem */
    color: #6b7280;
    text-align: center;
    margin: 0 auto 2rem auto; /* Reduced margin */
    max-width: 800px;
}

.dest-sub-p.left {
    text-align: left;
    margin: 0 0 1.5rem 0;
}

.text-center {
    text-align: center;
}

/* BUTTONS */
.dest-btn-primary {
    display: inline-block;
    background-color: #00B5C4; /* Teal Accent */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem; /* Reduced */
    padding: 0.75rem 1.5rem; /* Reduced padding */
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.dest-btn-primary:hover {
    background-color: #009aa6;
    transform: translateY(-2px);
}

/* 1. HERO SECTION */
.dest-hero {
    position: relative;
    width: 100%;
    min-height: 450px; /* Reduced from 500px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.dest-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.45));
    z-index: 1;
}

.dest-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 2rem;
}

.dest-hero-content h1 {
    font-size: 2.5rem; /* Reduced from 3rem */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dest-hero-content p {
    font-size: 1.125rem; /* Reduced from 1.25rem */
    color: #d1d5db;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dest-hero-content h1 { font-size: 1.75rem; }
    .dest-hero-content p { font-size: 1rem; }
}

/* Intro Card Section */
.dest-intro-card {
    background-color: #ffffff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); */
    margin: 0 auto;
}

.dest-intro-content-wrapper {
    /* padding: 3rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dest-intro-img-container {
    height: 100%;
}

.dest-intro-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .dest-intro-card {
        grid-template-columns: 1fr;
    }
    .dest-intro-card-img {
        min-height: 250px;
    }
}

/* 2. AIRLINE LOGOS */
.dest-airlines-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* Reduced from 1.5rem */
    margin-bottom: 2.5rem;
}

.dest-airline-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem; /* Reduced */
    font-weight: 600;
    font-size: 0.95rem; /* Reduced */
    color: #6b7280;
    transition: all 0.3s;
    text-decoration: none;
    filter: grayscale(100%);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space for icon */
}

.dest-airline-pill:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #00B5C4;
    color: #00B5C4;
    box-shadow: 0 4px 6px -1px rgba(0, 181, 196, 0.1);
}

/* 3. RUTAS A SANTIAGO (Route Cards) */
.dest-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced min-width */
    gap: 1.25rem; /* Reduced */
}

.dest-route-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem; /* Reduced */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s, transform 0.2s;
}

.dest-route-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dest-route-info {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced */
}

.dest-route-icon {
    font-size: 1.25rem; /* Reduced */
    color: #00B5C4;
}

.dest-route-name {
    font-weight: 600;
    font-size: 1rem; /* Reduced */
    color: #1f2937;
}

.dest-route-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem; /* Reduced */
    font-weight: 600;
}

/* 4. INFORMACIÓN DE VUELOS (Table Card) */
.dest-table-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.dest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem; /* Reduced */
}

.dest-table th, .dest-table td {
    padding: 1rem 1.25rem; /* Reduced */
    text-align: left;
}

.dest-table th {
    font-weight: 700;
    color: #111827;
    width: 75%;
    border-right: 1px solid #f3f4f6;
}

.dest-table td {
    color: #4b5563;
}

.dest-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.dest-table tr:nth-child(odd) {
    background-color: #ffffff;
}

@media (max-width: 600px) {
    .dest-table th, .dest-table td {
        display: block;
        width: 100%;
        border-right: none;
    }
    .dest-table th { border-bottom: 1px solid #e5e7eb; }
}

/* 5. DESTINOS POPULARES */
.dest-pop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced */
    gap: 1.25rem;
}

.dest-pop-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.dest-pop-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-pop-card:hover img {
    transform: scale(1.1);
}

.dest-pop-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1.5rem 1.25rem 1.25rem 1.25rem; /* Reduced */
    display: flex;
    flex-direction: column;
}

.dest-pop-title {
    color: #ffffff;
    font-size: 1.125rem; /* Reduced */
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.dest-pop-subtitle {
    color: #d1d5db;
    font-size: 0.85rem; /* Reduced */
    margin: 0;
}

/* 6. AEROPUERTOS & MEJOR ÉPOCA (2 Column Equal) */
.dest-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* Reduced */
}

@media (max-width: 900px) {
    .dest-split-grid { grid-template-columns: 1fr; }
}

.dest-info-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem; /* Reduced from 2.5rem */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.dest-num-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.dest-num-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem; /* Reduced */
}

.dest-num-badge {
    position: absolute;
    left: 0; top: 10px;
    width: 0.8rem; height: 0.8rem;
    background: #00B5C4;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem; /* Adjusted for icons */
    font-weight: bold;
}

/* 7. CONSEJOS (Tips Grid) */
.dest-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem; /* Reduced */
}

@media (max-width: 768px) {
    .dest-tips-grid { grid-template-columns: 1fr; }
}

.dest-tip-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem; /* Reduced */
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.dest-tip-icon {
    font-size: 1.25rem; /* Reduced */
    margin-top: 0.15rem;
}

.dest-tip-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem; /* Reduced */
    color: #1f2937;
}

.dest-tip-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem; /* Reduced */
}

/* 8. OFERTA EXCLUSIVA (Full Width Banner) */
.dest-cta-banner {
    background: linear-gradient(135deg, #00B5C4 0%, #007A8A 100%);
    border-radius: 1rem;
    padding: 3rem 2rem; /* Reduced from 4rem */
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 181, 196, 0.3);
}

.dest-cta-banner h2 {
    color: #ffffff;
    font-size: 2rem; /* Reduced */
    margin-bottom: 0.75rem; /* Reduced */
}

.dest-cta-banner p {
    font-size: 1.125rem; /* Reduced */
    color: #e0f2fe;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dest-cta-btn-white {
    background: #ffffff;
    color: #007A8A;
    font-size: 1.125rem; /* Reduced */
    font-weight: 700;
    padding: 0.875rem 2.5rem; /* Reduced */
    border-radius: 3rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dest-cta-btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .dest-cta-banner h2 { font-size: 1.5rem; }
    .dest-cta-banner p { font-size: 1rem; }
}

/* 9. LAS MEJORES COSAS PARA HACER */
.dest-todo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced */
    gap: 1.5rem; /* Reduced */
}

.dest-todo-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.dest-todo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.dest-todo-img {
    height: 180px; /* Reduced */
    width: 100%;
    object-fit: cover;
}

.dest-todo-content {
    padding: 1.25rem; /* Reduced */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dest-todo-link {
    margin-top: auto;
    color: #00B5C4;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem; /* Reduced */
}

.dest-todo-link:hover {
    text-decoration: underline;
}

/* 10. WHY CHOOSE US (4 Column Grid) */
.dest-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* Reduced */
}

@media (max-width: 1024px) {
    .dest-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .dest-why-grid { grid-template-columns: 1fr; }
}

.dest-why-card {
    text-align: center;
    padding: 1.5rem; /* Reduced */
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.dest-why-icon {
    font-size: 2rem; /* Reduced */
    margin-bottom: 0.75rem; /* Reduced */
    display: inline-block;
}

/* 11. FAQ ACCORDION (Proper bordered boxes) */
.dest-faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced */
}

.dest-faq-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.dest-faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem; /* Reduced */
    font-size: 1.05rem; /* Reduced */
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    margin: 0;
}

.dest-faq-summary::-webkit-details-marker {
    display: none;
}

.dest-faq-summary-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dest-faq-icon {
    font-size: 1.25rem; /* Reduced */
    color: #00B5C4;
    line-height: 1;
    transition: transform 0.3s;
}

.dest-faq-box[open] .dest-faq-icon {
    transform: rotate(45deg);
}

.dest-faq-answer {
    padding: 1.25rem; /* Reduced */
    color: #4b5563;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.dest-faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* SEO Content */
.dest-seo-content {
    color: #9ca3af;
    font-size: 0.85rem; /* Reduced */
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem; /* Reduced */
    text-align: center;
}