/* Tennis hall, Šlapanice. This stylesheet is loaded only on the Sport page. */
body[data-page="sport"] {
  --club-green: #192c25;
  --club-lime: #d8ff3e;
  --club-rule: rgb(255 255 255 / 20%);
}
.page-hero { padding: 0; min-height: min(860px, 100svh); }
.tennis-hero-photo { inset: -8px; }
.tennis-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.tennis-hero-photo::after {
  background: linear-gradient(90deg, rgb(10 24 19 / 89%), rgb(10 24 19 / 53%) 45%, transparent 83%),
              linear-gradient(0deg, rgb(9 23 17 / 91%), rgb(9 23 17 / 10%) 56%, rgb(9 23 17 / 32%));
}
.hero-meta.tennis-hours { gap: 24px clamp(32px, 6vw, 90px); margin-top: 38px; }
.tennis-hours span { font-size: .76rem; color: #e0e8dd; }
.tennis-hours strong { font-size: 1.15rem; }
.tennis-hours a:hover { text-decoration: underline; }
.reception-hours { margin: 6px 0 0; font-size: 1rem; font-weight: 650; color: var(--club-lime); line-height: 1.45; }
.split-media { min-height: 0; aspect-ratio: 4 / 4.2; }
.split-media::after { background: linear-gradient(0deg, rgb(18 37 28 / 11%), transparent 40%); }
.section-dark:has(.club-gallery) { background: linear-gradient(155deg, #121b16, var(--club-green)); }
.club-gallery { display: grid; grid-template-columns: 1.12fr 1fr; gap: 12px clamp(14px, 2.4vw, 32px); scroll-margin-top: 88px; }
.club-photo { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: #263a2c; border-radius: 16px; min-width: 0; }
.club-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
.club-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(9 23 17 / 88%), transparent 46%); }
.club-bar::after { background: linear-gradient(0deg, rgb(9 23 17 / 68%), transparent 28%); }
.club-photo figcaption { position: absolute; z-index: 1; inset: auto 24px 22px; color: #fff; }
.club-photo figcaption span { font-family: Georgia, serif; font-style: italic; font-size: clamp(1.75rem, 3vw, 2.85rem); line-height: 1.15; }
.club-apartment { width: 100%; aspect-ratio: 4 / 3; }
.stay-links { grid-column: 2; display: flex; flex-wrap: wrap; column-gap: 26px; align-items: center; }
.stay-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: #f5f7ee; font-size: .95rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #718775; }
.stay-links a span { color: var(--club-lime); }
.stay-links a:hover, .stay-links a:focus-visible { color: var(--club-lime); }
#cenik { scroll-margin-top: 60px; }
.season-rates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.3vw, 30px); }
.season { border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3.6vw, 46px); }
.season header { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.season header h3 { margin: 0; font-size: clamp(1.55rem, 2.35vw, 2.15rem); letter-spacing: -.045em; }
.season header p { font-variant-numeric: tabular-nums; font-size: .95rem; margin: 0; }
.summer { display: flex; flex-direction: column; background: #eef0e5; }
.summer-price { display: flex; align-items: baseline; gap: .5em; font-size: 1.1rem; margin-block: auto; padding-block: 28px; }
.summer-price strong { font-size: clamp(4rem, 7vw, 6.3rem); line-height: 1; font-weight: 600; letter-spacing: -.085em; }
.summer-time { margin: 0; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; }
.winter { color: #fff; background: var(--club-green); }
.winter header { border-color: var(--club-rule); }
.winter header p { color: #d8e5d6; }
.winter table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.winter th, .winter td { text-align: left; font-weight: 500; padding: 10px 0; }
.winter td, .winter thead th:last-child { text-align: right; }
.winter td { font-weight: 700; }
.winter thead th, .winter th[scope="rowgroup"] { color: var(--club-lime); font-size: .88rem; font-weight: 650; padding: 20px 0 8px; }
.winter tr:has(th[scope="row"]) { border-bottom: 1px solid var(--club-rule); }
.season-note { margin: 20px 0 0; color: #e5eddf; font-size: .95rem; line-height: 1.6; }
.season-note strong { color: var(--club-lime); white-space: nowrap; }
@media (max-width: 920px) {
  .split-media { aspect-ratio: 3 / 2; }
  .section-dark:has(.club-gallery) .section-head { gap: 18px; }
}
@media (max-width: 680px) {
  .hero-content { padding-block: 112px 34px; }
  .page-hero h1 { font-size: clamp(44px, 11.5vw, 66px); }
  .hero-meta.tennis-hours { gap: 18px 24px; margin-top: 27px; padding-top: 18px; }
  .tennis-hours > div:first-child { flex-basis: 100%; }
  .tennis-hours strong { font-size: 1rem; }
  .hero-lead { margin-bottom: 22px; }
  .tennis-hero-photo::after { background: linear-gradient(0deg, rgb(10 24 19 / 96%), rgb(10 24 19 / 58%) 67%, rgb(10 24 19 / 41%)); }
  .club-gallery, .season-rates { grid-template-columns: 1fr; }
  .club-photo { width: 100%; aspect-ratio: 4 / 3; }
  .stay-links { grid-column: 1; }
  .club-photo figcaption { inset: auto 18px 18px; }
  .split-media { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .tennis-hero-photo { animation: none; transform: none; } }
.tennis-hero-photo img { object-position: 50% 61%; filter: contrast(1.035) saturate(1.045); }
.split-media img[src$="/kurt.jpg"] { object-position: 57% 55%; filter: contrast(1.035); }
.club-bar img { object-position: 43% 62%; }
.club-photo img[src$="/apartman.jpg"] { object-position: 43% 56%; }
.event-photo { margin: 0; width: 100%; aspect-ratio: 4 / 3; }
.event-photo img { object-position: center; object-fit: cover; }
.event-photo figcaption { position: absolute; z-index: 1; inset: auto 0 0; padding: 30px 18px 14px; background: linear-gradient(transparent, rgb(12 22 18 / 85%)); color: white; font-size: .8rem; }
.event-photo figcaption a { text-decoration: underline; text-underline-offset: 2px; }

.stay-links a:focus-visible { outline: 2px solid var(--club-lime); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .club-photo img, .split-media img { transition: transform .65s var(--ease); }
  .club-photo:hover img, .split-media:not(.event-photo):hover img { transform: scale(1.035); }
  .stay-links a span { transition: transform .22s var(--ease); }
  .stay-links a:is(:hover,:focus-visible) span { transform: translate(2px,-2px); }
  .season { transition: box-shadow .25s, border-color .25s; }
  .season:hover { border-color: #718260; box-shadow: 0 8px 28px rgb(20 41 30 / 12%); }
}
