/*
  Olomouc.cz speciál: /gastronomie
*/

.special-gastronomie {
  color: inherit;
  padding: 50px 20px;
  background: white;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Hlavička rubriky --- */
.special-gastronomie__topic-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    clear: both;
}

.special-gastronomie__topic-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.special-gastronomie__topic-header-content {
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.special-gastronomie__topic-icon img { 
    width: 105px; 
    height: 105px; 
    display: block; 
}

.special-gastronomie__topic-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.sp-title-strong { 
    font-weight: 700; 
    color: #d42e25; 
    letter-spacing: 0.08em; 
}

.sp-title-light { 
    font-weight: 300; 
    color: #333; 
    letter-spacing: -0.05em; 
    margin-left: 0.1em; 
}

.special-gastronomie__topic-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin: 8px 0 0 0;
    letter-spacing: 0.295em;
    text-transform: uppercase;
}

.special-gastronomie__topic-intro-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.special-gastronomie__hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 26px 0;
  align-items: stretch;
}

.sg-banner {
  display: block;
  text-decoration: none;
  height: 100%;
}

.sg-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  clip-path: inset(0 0 10px 0);
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.sg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.sg-card:hover {
  text-decoration: none;
}

.sg-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sg-card:hover .sg-card__image {
  opacity: 0.92;
}

.sg-card__tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #d42e25;
  color: #fff;
  padding: 4px 10px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 2;
}

.sg-card__content {
  margin-top: 10px;
}

.sg-card__date {
  display: block;
  margin: 0 0 8px 0;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
}

.sg-card__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #d42e25;
}

.sg-card:hover .sg-card__title {
  text-decoration: underline;
}

.sg-card__perex {
  display: none;
}

.sg-card--hero {
  grid-column: span 2;
}

.special-gastronomie__more {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.sg-more {
  display: inline-block;
  width: fit-content;
  padding: 10px 24px;
  border: 0;
  background: #444;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}

.sg-more:hover {
  background: #d42e25;
}

/* ========== Medailonky šéfkuchařů ========== */
.sg-chefs {
  margin: 0 0 26px 0;
  padding: 10px 0;
}

.sg-chefs__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px 0;
  color: #333;
}

.sg-chefs__slider {
  position: relative;
  /* Místo pro šipky, aby nebyly mimo kontejner */
  padding: 0 50px; 
  box-sizing: border-box;
}

.sg-chefs__grid-wrapper {
  width: 100%;
}

.sg-chefs__grid { 
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 sloupců na desktopu */
  gap: 15px; 
  /* Padding zaručuje, že tooltip nevyleze z obalového prvku a nebude oříznutý */
  padding-top: 15px; 
  padding-bottom: 10px;
}

.sg-chefs__scroll {
  position: absolute;
  top: 30%;
  transform: translateY(-20%);
  z-index: 10;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  visibility: hidden; /* Řízeno přes JS */
  transition: transform 0.2s ease;
}

.sg-chefs__scroll:hover {
  transform: translateY(-20%) scale(1.1);
}

.sg-chefs__scroll img {
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sg-chefs__scroll:hover img {
  opacity: 1;
}
.sg-chefs__scroll--left { left: 0; }
.sg-chefs__scroll--right { right: 0; }

.sg-chef-medallion {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%; 
  text-align: center;
  position: relative; 
}

.sg-chef-medallion:hover .sg-chef-medallion__name {
  text-decoration: underline;
  color: #d42e25;
}

.sg-chef-medallion__photo {
  width: 100px; 
  height: 100px; 
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 15px auto;
  border: 3px solid #f0f2f4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.sg-chef-medallion:hover .sg-chef-medallion__photo {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sg-chef-medallion__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 5px 0;
}

.sg-chef-medallion__function {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  width: max-content;
  max-width: 200px;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  margin-top: -5px; 
  background-color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 99; 

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, margin-top 0.2s ease;
}

.sg-chef-medallion__function::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.sg-chef-medallion:hover .sg-chef-medallion__function {
  opacity: 1;
  visibility: visible;
  margin-top: -12px; 
}

/* ========== Gastro Kalendář ========== */
.gastro-calendar-wrapper {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  padding: 15px;
  border: 1px solid #e0e0e0;
  height: 100%;
  box-sizing: border-box;
}

.gc-event-section {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gc-list-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  flex-shrink: 0;
}

.gc-event-list {
  overflow-y: auto;
  flex-grow: 1;
}

.gc-no-events {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  padding: 10px 0;
}

.gc-event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.gc-event-item:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.gc-event-item:hover .gc-event-item__name {
  text-decoration: underline;
  color: #d42e25;
}

.gc-event-item__date {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gc-event-item__day {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #d42e25;
}

.gc-event-item__month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  line-height: 1;
}

.gc-event-item__info {
  min-width: 0;
}

.gc-event-item__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.gc-event-item__location {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.gc-more-actions {
  margin-top: 15px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  flex-shrink: 0;
}

.gc-more-button {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gc-more-button:hover {
  background: #d42e25;
  border-color: #d42e25;
  color: #fff;
  text-decoration: none;
}

/* ========== Responsivita ========== */
@media (max-width: 900px) {
  .special-gastronomie__topic-header::before { display: none; }
  .special-gastronomie__topic-header-content { flex-direction: column; text-align: center; }
  .special-gastronomie__topic-title { font-size: 1.8rem; }
  .sg-banner img { clip-path: none; }
}

@media (max-width: 768px) {
  .special-gastronomie__hero { grid-template-columns: 1fr; }
  .sg-grid { grid-template-columns: 1fr; }
  .sg-card--hero { grid-column: span 1; }
  .gastro-calendar-wrapper { 
    grid-column: span 3; 
    flex-direction: column;
  }
  .sg-banner img { width: 100%; }
  .sg-banner { grid-column: span 3; }

  .sg-chefs__slider {
    /* Zmenšíme odsazení od kraje, aby byly šipky blíže obsahu */
    padding: 0 10px; 
  }

  .sg-chefs__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 sloupce na mobilu */
    gap: 30px 15px; /* Větší mezera mezi řádky */
  }
  
  .sg-chefs__scroll {
    /* Zmenšíme velikost šipky */
    width: 32px;
    height: 32px;
    /* Posuneme šipku mírně nahoru */
    top: 0%;
  }
}

/* --- Zde začínají přidané opravy pro volební speciál --- */

.sg-candidates-interactive .sg-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: center;
    margin: 40px 0 20px 0;
    color: #333;
}

.sg-candidates-interactive {
    background-color: #f7f7f7;
    padding: 30px 20px;
    border-radius: 8px;
    margin: 40px 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden; 
}

.sg-candidates-interactive .sg-section-subtitle {
    text-align: center;
    color: #666;
    margin-top: -15px;
    margin-bottom: 30px;
}

.sg-candidates-interactive .sg-leader-carousel-container {
    position: relative;
    display: block; 
    width: 100%;
    padding: 0 45px;
    box-sizing: border-box;
}

.sg-candidates-interactive .sg-leader-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    min-width: 0; 
    box-sizing: border-box;
}

.sg-candidates-interactive .sg-leader-carousel::-webkit-scrollbar {
    display: none;
}

.sg-candidates-interactive .sg-leader-carousel__wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.sg-candidates-interactive .sg-carousel-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    line-height: 1;
}

.sg-candidates-interactive .sg-carousel-arrow:hover {
    background-color: #fff;
    color: #d42e25;
}

.sg-candidates-interactive .sg-carousel-arrow--left { left: 0; } 
.sg-candidates-interactive .sg-carousel-arrow--right { right: 0; } 

.sg-candidates-interactive .sg-party-card {
    flex: 0 0 280px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.sg-candidates-interactive .sg-party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.sg-candidates-interactive .sg-party-card--active {
    border-color: #d42e25;
    box-shadow: 0 6px 15px rgba(212, 46, 37, 0.3);
    transform: translateY(-5px);
}

.sg-candidates-interactive .sg-party-card__logo-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-candidates-interactive .sg-party-card__logo {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}

.sg-candidates-interactive .sg-party-card__leader {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sg-candidates-interactive .sg-party-card__leader-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sg-candidates-interactive .sg-party-card__leader-info {
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.sg-candidates-interactive .sg-party-card__leader-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: baseline;
}

.sg-candidates-interactive .sg-party-card__leader-function {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sg-candidates-interactive .sg-candidate-display {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.sg-candidates-interactive .sg-no-candidates {
    padding: 20px;
    text-align: center;
    color: #777;
}

.sg-candidates-interactive .sg-candidate-position {
    color: #d42e25;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 8px;
    min-width: 20px;
    text-align: right;
}

.sg-candidates-interactive .sg-candidate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.sg-candidates-interactive .sg-party-card__leader-name .sg-candidate-position {
    font-size: 1.1rem;
}

.sg-candidates-interactive .sg-candidate-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    width: calc(33.333% - 14px);
    box-sizing: border-box;
    min-width: 0; 
}

.sg-candidates-interactive .sg-candidate-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sg-candidates-interactive .sg-candidate-info {
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.sg-candidates-interactive .sg-candidate-name {
    display: flex;
    align-items: baseline;
    font-weight: 700;
    font-size: 1rem;
}

.sg-candidates-interactive .sg-candidate-function {
    font-size: 0.85rem;
    color: #777;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sg-candidates-interactive .sg-candidate-detail {
    text-decoration: none;
    color: inherit;
}

.sg-candidates-interactive .sg-candidate-detail:hover .sg-candidate-name {
    text-decoration: underline;
    color: #d42e25;
}

@media (max-width: 900px) {
    .sg-candidates-interactive .sg-carousel-arrow {
        display: none;
    }
    .sg-candidates-interactive .sg-leader-carousel-container {
        padding: 0;
    }
    .sg-candidates-interactive .sg-candidate-detail {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .sg-candidates-interactive {
        padding: 20px 10px;
    }
    .sg-candidates-interactive .sg-party-card {
        flex: 0 0 240px;
    }
    .sg-candidates-interactive .sg-party-card__leader-name {
        font-size: 1rem;
    }
    .sg-candidates-interactive .sg-party-card__leader-function {
        font-size: 0.8rem;
    }
    .sg-candidates-interactive .sg-candidate-detail {
        width: 100%;
    }
}