/* Ostateczne poprawki responsywne ladowane po glownym arkuszu. */
@media (max-width: 700px) {
  .food-dialog {
    padding: 0 18px 20px;
    overflow-x: hidden;
  }

  .food-dialog h2 {
    margin-right: -18px;
    margin-left: -18px;
    padding-left: 18px;
  }

  .food-details,
  .food-benefit-grid,
  .food-benefit-card,
  .food-benefit-card > div {
    min-width: 0;
  }

  .food-benefit-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .food-benefit-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

/* v41: Punkty widokowe - wersja premium, lekka i kompaktowa. */
@media (min-width: 641px) {
  .viewpoint-list {
    display: block !important;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 22px 24px 20px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgb(3 30 42 / 35%), rgb(3 30 42 / 48%)),
      url("../img/okolica/punkty-widokowe-tlo.png") center 42% / cover no-repeat;
    box-shadow: 0 22px 48px rgb(6 35 49 / 16%);
  }

  .viewpoint-list::before {
    inset: 12px;
    border: 1px dashed rgb(255 255 255 / 18%);
    border-radius: 16px;
  }

  .viewpoint-list-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 18px;
  }

  .viewpoint-list-heading > .material-symbols-outlined {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b5368, #148bc1);
    box-shadow: 0 14px 26px rgb(0 0 0 / 22%);
    font-size: 2.8rem;
  }

  .viewpoint-list-heading h3 {
    margin: 0 0 4px;
    font-size: clamp(1.9rem, 2vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .viewpoint-list-heading p {
    max-width: 760px;
    color: rgb(255 255 255 / 88%);
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .viewpoint-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .viewpoint-grid a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 10%));
    box-shadow: none;
    backdrop-filter: blur(5px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }

  .viewpoint-grid a::before {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8d5, #f2e5a7);
    color: #0b5368;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
    box-shadow: 0 8px 15px rgb(0 0 0 / 10%);
  }

  .viewpoint-grid a:hover {
    border-color: rgb(255 255 255 / 38%);
    background: linear-gradient(180deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 14%));
    transform: translateY(-1px);
  }

  .viewpoint-grid strong {
    min-width: 0;
    overflow: hidden;
    color: white;
    font-size: 1.02rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .viewpoint-grid span {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .viewpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .viewpoint-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
