/* ============================================
   ECUAVIAJE — Detail Page / Ficha SEO (V2) - Adaptado a Imagen de Referencia
   ============================================ */

:root { 
    --primary: #00d400; /* Cambiado a naranja coral brillante como en la imagen */
    --primary-hover: #00a000; 
    --bg: #f3f4f6; 
    --text: #041f2f; 
    --gray: #6b7280; 
    --white: #ffffff; 
    --black: #000000;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

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

.detail-page { 
    padding: 40px 0; 
}

/* === Breadcrumb === */
.breadcrumb-nav { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.9rem; 
    color: var(--gray); 
    margin-bottom: 25px; 
}
.breadcrumb-nav a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.3s; 
}
.breadcrumb-nav a:hover { color: var(--primary); }
.separator { font-size: 0.7rem; opacity: 0.5; }
.current-page { color: var(--text); font-weight: 700; }

/* === Header Card (Adaptado a imagen) === */
.top-container {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}
.detail-header-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--white); 
    padding: 30px; 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    margin-bottom: 35px; 
    border: none; 
    position: relative;
    overflow: hidden;
}

.header-info { display: flex; align-items: flex-start; gap: 25px; position: relative; z-index: 1; }
.logo-box { 
    width: 90px; 
    height: 90px; 
    background: #fff; 
    border-radius: 18px; 
    padding: 10px; 
    border: 1px solid #f3f4f6; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.title-block { display: flex; flex-direction: column; gap: 10px; }
.place-title { margin: 0; font-size: 2rem; font-weight: 800; color: var(--text); }
.place-meta { margin: 0; color: var(--gray); font-size: 1rem; display: flex; align-items: center; gap: 5px; }

.price-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 10px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text); 
    background: rgba(0,212,0,0.1);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--primary);
}
.price-box .price-label { color: var(--gray); font-size: 0.9rem; font-weight: 400;}
.price-box b { color: var(--primary); font-size: 1.2rem; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.chat-btn, .wa-btn { 
    color: #fff; 
    padding: 14px 28px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: none;
    cursor: pointer;
}
.chat-btn { background: #6b7280; font-size: 0.9rem;} /* Gris como el botón de chat en la imagen */
.chat-btn:hover { background: #4b5563; }
.wa-btn { background: var(--primary); }
.wa-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(0,212,0,0.3); 
}

/* === Slider Gallery === */
.slider-container { }
.detail-swiper { border-radius: 0; overflow: hidden; width: 100%; height: 100%; }
.swiper-slide { overflow: hidden; cursor: pointer; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.swiper-slide:hover img { transform: scale(1.03); }
.slider-btn { 
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--primary) !important; 
    background: rgba(255,255,255,0.8) !important; 
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important; 
    transition: background 0.3s; 
    z-index: 99 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.slider-btn:hover { background: rgba(255,255,255,0.9) !important; }
.slider-btn::after { display: none !important; }
.slider-btn i { font-size: 20px !important; color: var(--primary) !important; }
.swiper-button-next.slider-btn { right: 20px !important; left: auto !important; }
.swiper-button-prev.slider-btn { left: 20px !important; right: auto !important; }
.detail-swiper .swiper-pagination-bullet-active { background: var(--primary) !important; }

/* === Content Grid === */
.detail-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
}

.content-card { 
    background: var(--white); 
    padding: 35px; 
    border-radius: 24px; 
    border: 1px solid #f1f5f9; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.content-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.card-title { 
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 1.4rem; 
    font-weight: 800; 
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 15px; 
    color: #0f172a;
}
.card-title i {
    color: var(--primary);
    background: rgba(0,212,0,0.1);
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
}

.rich-content { line-height: 1.8; color: #475569; font-size: 1.05rem; }
.rich-content p { margin-bottom: 1.25rem; }
.rich-content ul { list-style-type: disc; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.rich-content li { margin-bottom: 0.5rem; }
.rich-content strong { color: var(--black); font-weight: 700; }

/* === Services & Video === */
.services-box { display: flex; flex-wrap: wrap; gap: 10px; }
.service-tag { 
    background: #f3f4f6; 
    padding: 10px 18px; 
    border-radius: 12px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    color: #374151;
    transition: all 0.3s ease;
}
.service-tag i { color: var(--primary); font-size: 1.1rem; transition: color 0.3s ease; }
.service-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 212, 0, 0.2);
}
.service-tag:hover i {
    color: var(--white);
}

.video-box { 
    border-radius: 16px; 
    overflow: hidden; 
    background: #000; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.map-box { border-radius: 16px; overflow: hidden; width: 100%; height: 450px; background: #eee; }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* === Sidebar Widgets === */
.sidebar-info-card { 
    background: var(--white); 
    padding: 35px; 
    border-radius: 24px; 
    border: 1px solid #f1f5f9; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.sidebar-info-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.sidebar-info-card.highlight-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.sidebar-title { 
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}
.sidebar-title i {
    color: var(--primary);
    background: rgba(0,212,0,0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}

/* === Upcoming Events Card (Nuevo, de imagen) === */
.events-counter {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}
.counter-item {
    flex: 1;
    background: rgba(0,212,0,0.05);
    border: 1px solid rgba(0,212,0,0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.counter-item b {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}
.counter-item small {
    display: block;
    color: var(--gray);
    font-size: 0.7rem;
    margin-top: 5px;
}

/* === Booking Card (Nuevo, de imagen) === */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group { display: flex; flex-direction: column; gap: 5px;}
.form-group label { font-size: 0.85rem; color: var(--gray); font-weight: 600;}
.booking-form input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: var(--text);
}
.booking-fee {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.booking-fee b { color: var(--primary); font-size: 1.1rem; }

/* === Original Contact & Hours Cards === */
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.item-icon { 
    width: 35px; 
    height: 35px; 
    background: #f3f4f6; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary); 
}
.item-icon i { font-size: 1rem; }
.contact-item small { display: block; color: var(--gray); font-size: 0.65rem; font-weight: 700; }
.contact-item b { font-size: 0.9rem; word-break: break-all; color: #0f172a; }

.pdf-btn { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #f0f9ff; 
    color: #0369a1; 
    padding: 15px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    justify-content: center; 
    margin-bottom: 20px; 
    transition: background 0.3s; 
    border: 1px solid #bae6fd;
    box-shadow: 0 4px 6px -1px rgba(3,105,161,0.1);
}
.pdf-btn:hover { background: #e0f2fe; }

.social-box { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center; 
    border-top: 1px solid #f3f4f6; 
    padding-top: 20px; 
}
.social-link { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: #f3f4f6; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--social-color); 
    text-decoration: none; 
    transition: 0.3s; 
}
.social-link:hover { 
    background: var(--social-color); 
    color: #fff; 
    transform: translateY(-3px); 
}

.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
.hours-row:last-child { border: none; }
.open-time { color: #059669; font-weight: 700; }
.closed-time { color: #dc2626; font-weight: 700; }

/* === Related Places Cards (Nuevas, de imagen al final) === */
.related-section {
    margin-top: 60px;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.related-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-rating-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ca8a04;
}
.card-body-related { padding: 20px; }
.card-subtitle { font-size: 0.8rem; color: var(--gray); font-weight: 500;}
.card-title-related { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 5px 0 10px; }
.card-meta-related { font-size: 0.85rem; color: var(--gray); display: flex; align-items: center; gap: 5px; }
.card-footer-related {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-related { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-related b { color: var(--primary); }
.details-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

/* === Flex layout for reordering === */
.detail-page-wrapper {
    display: flex;
    flex-direction: column;
}
.order-desktop-1 { order: 1; }
.order-desktop-2 { order: 2; }
.order-desktop-3 { order: 3; }

.video-box iframe {
    width: 100%;
    height: 500px;
    border-radius: 16px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .detail-header-card { flex-direction: column; text-align: center; gap: 20px; }
    .header-info { flex-direction: column; align-items: center;}
    .detail-grid { grid-template-columns: 1fr; }
    .place-title { font-size: 1.6rem; }
    .related-grid { grid-template-columns: 1fr; }
    
    .order-mobile-1 { order: 1 !important; }
    .order-mobile-2 { order: 2 !important; }
    .order-mobile-3 { order: 3 !important; }

    .slider-container { margin-bottom: 20px !important; margin-top: 0 !important; }
    .top-container { margin-top: 80px !important; }
    .video-box iframe { height: 300px; }
}

@media (max-width: 640px) {
    .detail-swiper { border-radius: 0; }
}

/* === Lightbox CSS === */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center;
    z-index: 999999; transition: opacity 0.3s ease;
}
.lb-close {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); border: none;
    color: #fff; font-size: 24px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.3s;
    z-index: 9999999;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none; color: #fff; font-size: 30px;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer; transition: 0.3s;
    z-index: 9999999;
    display: flex; justify-content: center; align-items: center;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-content {
    position: relative; max-width: 90vw; max-height: 90vh; text-align: center;
}
.lb-content img {
    max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); object-fit: contain;
}
.lb-counter {
    color: #fff; margin-top: 15px; font-size: 1rem; font-weight: 600;
}
