/* Compatibilidad con el contenido legacy generado por GF Calendar Sync. */
.gf-page-main,
.gf-page-sidebar {
    min-width: 0;
}

.gf-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 10px;
}

.gf-page-hero {
    position: relative;
    height: 600px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0;
}

.gf-page-hero img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    object-position: top;
}

.gf-page-hero:hover img {
    transform: scale(1.1);
    transition: transform .45s ease;
}

.gf-page-hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-3);
    font-size: 20px;
}

.gf-page-hero-overlay {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, var(--ast-global-color-4), transparent);
}

.gf-page-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 45px;
}

.gf-page-description {
    font-size: 18px;
    line-height: 1.6;
}

.gf-page-sidebar .gf-box {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-2);
    border-radius: 12px;
}

.gf-page-sidebar h3,
.gf-map h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--ast-global-color-2);
    font-size: 30px;
}

.gf-btn,
.gf-btn-secondary {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.gf-btn {
    width: 100%;
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-0);
    text-align: center;
}

.gf-btn:hover,
.gf-btn-secondary:hover {
    color: var(--ast-global-color-0);
    filter: brightness(.5);
}

.gf-btn-secondary {
    display: inline-block !important;
    margin: 0 !important;
    padding: 10px 16px;
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-0);
    line-height: 1 !important;
}

.gf-map {
    width: 100%;
    height: 530px;
    margin-bottom: 5px;
    padding: 5px 20px 20px;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-4);
    border-radius: 12px;
}

.gf-map-embed {
    margin-bottom: 8px;
}

.gf-map-embed iframe {
    display: block !important;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

.gf-map p {
    margin: 0 !important;
    text-align: center !important;
}

.gf-map .gf-btn-secondary {
    display: inline-block !important;
    margin: 10px auto 0 !important;
}

@media (max-width: 900px) {
    .gf-page-hero {
        height: 300px;
        border-radius: 10px;
    }

    .gf-page-layout {
        grid-template-columns: 1fr;
    }

    .gf-page-main {
        margin-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gf-page-hero:hover img {
        transform: none;
        transition: none;
    }
}
