/* =========================================================
   GASTRONOMY V2 — domain-specific presentation
   G4.9: detail page. Shared layout, buttons and typography
   remain owned by the global frontend design system.
   ========================================================= */

/* Existing card badges — preserved from the LIVE stylesheet. */
.gastronomy-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.gastronomy-badge-recommended {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(220, 38, 38, 0.92));
}

.gastronomy-badge-category {
    background: rgba(22, 101, 52, 0.9);
}

/* =========================================================
   DETAIL — Hero intro
   ========================================================= */
.gastronomy-show-hero {
    overflow: hidden;
}

.gastronomy-show-hero .container {
    min-width: 0;
}

.gastronomy-show-hero-meta {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

/* =========================================================
   DETAIL — main/sidebar grid
   ========================================================= */
.gastronomy-show {
    min-width: 0;
}

.gastronomy-show .container {
    min-width: 0;
}

.gastronomy-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

.gastronomy-show-main,
.gastronomy-show-sidebar {
    min-width: 0;
    max-width: 100%;
}

.gastronomy-show-main,
.gastronomy-show-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.gastronomy-show-image-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
    background: #f2eee5;
    box-shadow: 0 8px 24px rgba(20, 31, 23, 0.08);
}

.gastronomy-show-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* =========================================================
   DETAIL — panels and editorial copy
   ========================================================= */
.gastronomy-show :is(
    .gastronomy-show-tags,
    .gastronomy-show-introduction,
    .gastronomy-show-description,
    .gastronomy-show-program,
    .gastronomy-show-map,
    .gastronomy-show-info,
    .gastronomy-show-contact,
    .gastronomy-show-navigation
) {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 31, 23, 0.04);
    overflow-wrap: anywhere;
}

.gastronomy-show-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.gastronomy-show :is(
    .gastronomy-show-introduction,
    .gastronomy-show-description,
    .gastronomy-show-program,
    .gastronomy-show-map,
    .gastronomy-show-info,
    .gastronomy-show-contact,
    .gastronomy-show-navigation
) > h2 {
    margin: 0 0 16px;
    color: #142017;
    font-size: clamp(1.16rem, 1.45vw, 1.45rem);
    line-height: 1.3;
}

.gastronomy-show-lead {
    margin: 0;
    color: #374151;
    font-size: 1.075rem;
    line-height: 1.72;
}

.gastronomy-show-description {
    color: #374151;
    line-height: 1.8;
}

.gastronomy-show-description > :last-child,
.gastronomy-show-program > :last-child,
.gastronomy-show-map > :last-child {
    margin-bottom: 0;
}

.gastronomy-show-description img,
.gastronomy-show-description iframe,
.gastronomy-show-description video {
    max-width: 100%;
    height: auto;
}

.gastronomy-show-program {
    color: #374151;
    line-height: 1.7;
}

/* =========================================================
   DETAIL — useful information, contact, navigation
   ========================================================= */
.gastronomy-show :is(
    .gastronomy-show-info-list,
    .gastronomy-show-contact-list,
    .gastronomy-show-navigation ul
) {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gastronomy-show :is(
    .gastronomy-show-info-list,
    .gastronomy-show-contact-list,
    .gastronomy-show-navigation ul
) > li {
    margin: 0;
    padding: 0;
    color: #374151;
    line-height: 1.6;
    min-width: 0;
}

.gastronomy-show :is(
    .gastronomy-show-info-list,
    .gastronomy-show-contact-list
) strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
    color: #142017;
}

.gastronomy-show-sidebar a,
.gastronomy-show-map a {
    color: #29372d;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gastronomy-show-sidebar a:hover,
.gastronomy-show-map a:hover {
    color: #9a7629;
    text-decoration: underline;
}

.gastronomy-show-sidebar a:focus-visible,
.gastronomy-show-map a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.gastronomy-show :is(.map-embed, .map-embed iframe) {
    display: block;
    max-width: 100%;
}

.gastronomy-show .map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
}

.gastronomy-show .map-embed iframe {
    width: 100%;
    border: 0;
}

.gastronomy-show-back {
    margin-top: 30px;
}

/* =========================================================
   DETAIL — five responsive targets are tested LIVE later.
   No JS or layout component changes.
   ========================================================= */
@media (max-width: 1100px) {
    .gastronomy-show-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
        gap: 22px;
    }
}

@media (max-width: 850px) {
    .gastronomy-show-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .gastronomy-show-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gastronomy-show-navigation {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .gastronomy-show-sidebar {
        grid-template-columns: 1fr;
    }

    .gastronomy-show-navigation {
        grid-column: auto;
    }

    .gastronomy-show :is(
        .gastronomy-show-tags,
        .gastronomy-show-introduction,
        .gastronomy-show-description,
        .gastronomy-show-program,
        .gastronomy-show-map,
        .gastronomy-show-info,
        .gastronomy-show-contact,
        .gastronomy-show-navigation
    ) {
        padding: 20px;
        border-radius: 14px;
    }

    .gastronomy-show-image-wrap {
        border-radius: 14px;
    }

    .gastronomy-show-image {
        aspect-ratio: 4 / 3;
    }

    .gastronomy-show-lead {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .gastronomy-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
}
