/*
 * Single offer template — layout for hero, event banner, main section, and
 * its right-column info blocks. Map and gallery have their own stylesheets.
 */

.tv-single-offer {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--tv-space-16);
}

/* --- Hero ---------------------------------------------------------------- */

.tv-offer-hero {
    position: relative;
    min-height: 480px;
    background-color: var(--tv-color-cream);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
}

.tv-offer-hero--no-photo {
    min-height: 320px;
}

.tv-offer-hero__spacer {
    height: 30vh;
}

.tv-offer-hero__container {
  width: 100%;
  background-image: linear-gradient(180deg, #00000000 66%, var(--tv-color-cream) 66%);
}

.tv-offer-hero__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--tv-space-12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tv-space-6);
  width: 100%;
}

.tv-offer-hero__card {
    background: var(--tv-color-white);
    padding: var(--tv-space-8);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tv-space-12);
}

.tv-offer-hero__card .tv-breadcrumb {
  text-transform: uppercase;
}

.tv-offer-hero__card .tv-breadcrumb .tv-breadcrumb__list {
  justify-content: center;
}

.tv-offer-hero__card .tv-breadcrumb .tv-breadcrumb__current {
  color: var(--tv-color-coral);
}

.tv-offer-hero__title {
    font-family: var(--tv-font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 0;
    color: var(--tv-color-text);
    font-weight: 800;
    text-align: center;
}

.tv-offer-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tv-space-3) var(--tv-space-6);
    background: var(--tv-color-green);
    color: var(--tv-color-white);
    text-decoration: none;
    font-family: var(--tv-font-accent);
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tv-offer-hero__cta:hover,
.tv-offer-hero__cta:focus-visible {
    background: var(--tv-color-green-dark);
    color: var(--tv-color-white);
    transform: translateY(-1px);
}

/* --- Event banner -------------------------------------------------------- */

.tv-offer-event-banner {
    background: var(--tv-color-coral);
    color: var(--tv-color-white);
    padding: var(--tv-space-4) var(--tv-space-6);
}

.tv-offer-event-banner__text {
    margin: 0;
    font-family: var(--tv-font-accent);
    font-size: 1.125rem;
    font-weight: 600;
}

/* --- Main section (En bref + right column) ------------------------------- */

.tv-offer-main {
    background-image: linear-gradient(180deg, var(--tv-color-cream) calc(100% - 350px), #00000000 calc(100% - 350px));
}

.tv-offer-main__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--tv-space-12);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--tv-space-12) var(--tv-space-6);
    width: 100%;
}

.tv-offer-main__left,
.tv-offer-main__right__wrapper {
    display: flex;
    flex-direction: column;
}

.tv-offer-main__left {
    gap: var(--tv-space-8);
}

.tv-offer-main__right__wrapper {
    background: var(--tv-color-white);
}

/* --- Summary ------------------------------------------------------------- */

.tv-offer-summary__title {
    font-family: var(--tv-font-heading);
    font-size: 1.75rem;
    color: var(--tv-color-text);
    font-weight: 800;
    margin: 0 0 var(--tv-space-4);
}

.tv-offer-summary__body {
    font-family: var(--tv-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tv-color-text);
}

.tv-offer-summary__body p {
    margin: 0 0 var(--tv-space-4);
}

/* --- Info blocks --------------------------------------------------------- */

.tv-offer-info-block {
    padding: var(--tv-space-6);
  color: var(--tv-color-green);
}

.tv-offer-info-block + .tv-offer-info-block {
    border-top: 1px solid var(--tv-color-cream);
}

.tv-offer-info-block__title {
    font-family: var(--tv-font-heading);
    font-size: 1.125rem;
    margin: 0 0 var(--tv-space-3);
}

.tv-offer-info-block__body {
    font-family: var(--tv-font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.tv-offer-info-block__list {
    list-style: disc;
    margin: 0;
    padding-left: var(--tv-space-6);
}

.tv-offer-info-block__item {
    margin-bottom: var(--tv-space-2);
}

.tv-offer-info-block__address,
.tv-offer-info-block__phone,
.tv-offer-info-block__email {
    margin: 0 0 var(--tv-space-2);
}

.tv-offer-info-block__phone a,
.tv-offer-info-block__email a {
    color: var(--tv-color-coral);
    text-decoration: none;
}

.tv-offer-info-block__phone a:hover,
.tv-offer-info-block__phone a:focus-visible,
.tv-offer-info-block__email a:hover,
.tv-offer-info-block__email a:focus-visible {
    text-decoration: underline;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .tv-offer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tv-offer-hero {
        padding: var(--tv-space-6) var(--tv-space-4);
        align-items: stretch;
        min-height: auto;
    }

    .tv-offer-hero__card {
        max-width: none;
        padding: var(--tv-space-6);
    }

    .tv-offer-hero__title {
        font-size: 1.5rem;
    }

    .tv-offer-main {
        padding: 0 var(--tv-space-4);
        gap: var(--tv-space-8);
    }
}
