/* Vipealo Elementor Widgets - Styles */
/* Font: Montserrat (already loaded by theme) */
/* Colors: #192837 (dark), #41AFDD (accent), #3F96FF (blue), #FDFDFE (bg) */

/* ============================================
   INFO BAR (single post activity details)
   ============================================ */
.vipealo-info-bar {
    background: linear-gradient(135deg, #192837, #1e3a52);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.vipealo-info--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.vipealo-info--vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vipealo-info__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vipealo-info__icon {
    font-size: 24px;
    line-height: 1;
}

.vipealo-info__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    font-weight: 500;
}

.vipealo-info__value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   DESTINATIONS GRID
   ============================================ */
.vipealo-destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
}

.vipealo-dest-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #3F96FF, #41AFDD);
    min-height: 180px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.vipealo-dest-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.vipealo-dest-card__name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.vipealo-dest-card__count {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

/* ============================================
   ACTIVITIES GRID
   ============================================ */
.vipealo-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-family: 'Montserrat', sans-serif;
}

.vipealo-activities-grid--auto {
    grid-template-columns: repeat(3, 1fr);
}

.vipealo-act-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vipealo-act-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.vipealo-act-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vipealo-act-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.vipealo-act-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vipealo-act-card:hover .vipealo-act-card__image img {
    transform: scale(1.05);
}

.vipealo-act-card__body {
    padding: 16px;
}

.vipealo-act-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #192837;
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vipealo-act-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.vipealo-act-card__price {
    color: #3F96FF;
    font-weight: 700;
}

.vipealo-act-card__duration::before {
    content: "\23F1 ";
}

.vipealo-act-card__city::before {
    content: "\1F4CD ";
}

/* ============================================
   CITY PAGE ACTIVITIES SECTION
   ============================================ */
.vipealo-city-activities {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.vipealo-city-activities__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #192837;
    margin-bottom: 24px;
    text-align: center;
}

.vipealo-city-activities__more {
    text-align: center;
    margin-top: 30px;
}

a.vipealo-btn,
a.vipealo-btn:link,
a.vipealo-btn:visited {
    display: inline-block;
    background: #3F96FF;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease;
}

a.vipealo-btn:hover,
a.vipealo-btn:focus {
    background: #2d7ee6;
    color: #fff !important;
}

/* ============================================
   SINGLE POST FEATURED IMAGE
   ============================================ */
.vipealo-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.vipealo-featured-image__img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* ============================================
   SINGLE POST GALLERY (injected for posts
   without inline images)
   ============================================ */
.vipealo-post-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.vipealo-post-gallery__item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}

.vipealo-post-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/10;
}

/* Existing inline images from migration */
.page-content figure.wp-block-image {
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
}

.page-content figure.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

/* ============================================
   GLOBAL TYPOGRAPHY
   Targets WordPress post headings & content
   for consistent mobile typography.
   ============================================ */

/* Evitar overflow de títulos largos en móvil */
.entry-title,
article h1,
article h2,
article h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Legibilidad del contenido de posts */
.entry-content {
    line-height: 1.75;
    word-break: break-word;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .vipealo-destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .vipealo-activities-grid,
    .vipealo-activities-grid--auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vipealo-destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vipealo-info--horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .vipealo-dest-card {
        min-height: 140px;
    }
    .vipealo-dest-card__name {
        font-size: 18px;
    }
    .vipealo-city-activities__title {
        font-size: 22px;
    }
    .vipealo-featured-image__img {
        max-height: 300px;
    }
    .vipealo-post-gallery,
    .page-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }
    /* --- Global: heading size caps (móvil) --- */
    .page-header .entry-title,
    .entry-title,
    article h1,
    .entry-content h1 {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }
    .entry-content h2,
    article h2 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
    .entry-content h3,
    article h3 {
        font-size: 19px !important;
        line-height: 1.4 !important;
    }
    /* --- Contenido más legible en móvil --- */
    .entry-content {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .vipealo-destinations-grid,
    .vipealo-activities-grid,
    .vipealo-activities-grid--auto {
        grid-template-columns: 1fr;
    }
    .vipealo-info-bar {
        padding: 16px;
    }
    /* --- Global: headings más pequeños (teléfonos) --- */
    .page-header .entry-title,
    .entry-title,
    article h1,
    .entry-content h1 {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
    .entry-content h2,
    article h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    .entry-content h3,
    article h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }
    .entry-content {
        font-size: 14px !important;
    }
}
