*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --bg:       #EDE9E2;
  --dark:     #1D2021;
  --dark-hover: #2e3334;
  --card:     #fff;
  --font-body: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-bold: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.calendar-wrapper {
  flex: 1;
  min-width: 0;
}

.info-card {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark);
}

.info-card a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
}

.info-card a:hover { text-decoration: underline; }

.phone {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 680px) {
  .layout { flex-direction: column; align-items: stretch; }
  .info-card { width: 100%; }
}

/* Tabs */
[hidden] { display: none !important; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-bold);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: #3a3a3a; }
.tab-btn.active { color: var(--dark); border-bottom-color: var(--dark); }

/* Wyposazenie */
.wyposaZenie-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wyposaZenie-wrapper h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eee;
}

.wyposaZenie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.wyposaZenie-section {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.wyposaZenie-section.wyposaZenie-wide {
  grid-column: 1 / -1;
}

.wyposaZenie-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.7rem;
}

.wyposaZenie-icon {
  margin-right: 4px;
}

.wyposaZenie-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wyposaZenie-section ul li {
  font-size: 0.95rem;
  color: var(--dark);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.wyposaZenie-section ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #bbb;
}

.wyposaZenie-note {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

.tla-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tla-chip {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: #3a3a3a;
  font-weight: 500;
}

.ul-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ul-inline li {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
  padding-left: 10px;
}

.ul-inline li::before {
  display: none;
}

/* Regulamin */
.regulamin-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 760px;
}

.regulamin-wrapper h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eee;
}

.regulamin-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--dark);
}

.regulamin-intro {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.regulamin-body > p {
  margin: 0 0 0.6rem 0;
  color: #3a3a3a;
}

.regulamin-section {
  margin-bottom: 0.9rem;
}

.regulamin-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f0f0f0;
}

.regulamin-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.regulamin-section ul li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--dark);
  line-height: 1.7;
}

.regulamin-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #bbb;
}

.regulamin-section a {
  color: var(--dark);
  text-decoration: none;
}
.regulamin-section a:hover { text-decoration: underline; }

.anulowanie-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.anulowanie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.anulowanie-status {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
}

.anulowanie-status.free    { background: #e8f5e9; color: #2e7d32; }
.anulowanie-status.partial { background: #fff8e1; color: #f57f17; }
.anulowanie-status.full    { background: #ffebee; color: #c62828; }

.regulamin-footer {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  font-style: italic;
}

/* Cennik */
.cennik-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cennik-loading { color: #888; font-size: 0.9rem; }

.cennik-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.6rem;
}

.cennik-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.cennik-rate {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.cennik-rate span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.cennik-packages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cennik-package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.cennik-hours {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.cennik-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.slots-note {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

/* Oceny */
.oceny-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.oceny-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.oceny-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.oceny-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin: 0.2rem 0 0 0;
}

.oceny-btn {
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.oceny-btn:hover { background: var(--dark-hover); }

.oceny-map iframe {
  border-radius: 10px;
  display: block;
}

/* Dojazd */
.dojazd-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dojazd-address {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dojazd-address-icon {
  font-size: 2rem;
  line-height: 1;
}

.dojazd-address-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.dojazd-address-street,
.dojazd-address-city {
  font-size: 0.95rem;
  color: #555;
}

.dojazd-info {
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.6;
  margin: 0;
}

.dojazd-map iframe {
  border-radius: 10px;
  display: block;
}

.dojazd-entrance-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.6rem;
}

.dojazd-entrance-placeholder {
  background: var(--bg);
  border: 2px dashed #ddd;
  border-radius: 10px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.dojazd-entrance-placeholder code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
}

.dojazd-entrance img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 10px;
}

/* Gallery */
.gallery-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gallery-empty {
  color: #888;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.gallery-empty code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

header {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

.logo {
  height: 180px;
  width: auto;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.header-text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

header h1 {
  font-family: var(--font-bold);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  text-align: left;
}

.subtitle {
  color: #666;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

h2, h3 {
  font-family: var(--font-bold);
}

.wyposaZenie-section-title,
.cennik-section h3,
.regulamin-section h3,
.dojazd-entrance-label,
.tab-btn {
  font-family: var(--font-bold);
}


/* Calendar */
.calendar-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.calendar-nav h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.calendar-nav button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.calendar-nav button:hover { background: #f0f0f0; }

.legend {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #555;
  flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 0.4rem; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.green  { background: #4caf50; }
.dot.yellow { background: #ffc107; }
.dot.red    { background: #f44336; }

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
  user-select: none;
}

.day-cell:hover { border-color: #999; transform: scale(1.05); }
.day-cell.empty { cursor: default; background: none !important; }
.day-cell.empty:hover { border-color: transparent; transform: none; }

.day-cell.past {
  color: #bbb;
  background: #fafafa;
  cursor: default;
}
.day-cell.past:hover { border-color: transparent; transform: none; }

.day-cell.green  { background: #e8f5e9; color: #2e7d32; }
.day-cell.yellow { background: #fff8e1; color: #f57f17; }
.day-cell.red    { background: #ffebee; color: #c62828; }
.day-cell.no-data { background: var(--bg); color: #3a3a3a; }

.day-cell.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--dark);
}

/* Day panel */
.day-panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 1.2rem;
}

.day-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.day-panel-header h3 { font-size: 1.1rem; font-weight: 600; }

#close-panel {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
  border-radius: 4px;
}

#close-panel:hover { background: #f0f0f0; }

.slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.slot-row.free {
  background: #e8f5e9;
  color: #2e7d32;
}

.slot-row.booked {
  background: #ffebee;
  color: #c62828;
}

.slot-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {

  .container { padding: 1rem 0.75rem; }

  /* Remove rounded corners on cards so they sit flush with screen edges */
  .calendar-wrapper,
  .day-panel,
  .info-card,
  .regulamin-wrapper,
  .wyposaZenie-wrapper,
  .cennik-wrapper,
  .gallery-wrapper,
  .dojazd-wrapper { border-radius: 0; }

  /* Header — stack logo above title */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
  }
  .logo { height: 100px; }
  .header-text {
    position: static;
    align-items: center;
  }
  header h1 { font-size: 1.3rem; }
  .subtitle { font-size: 0.8rem; }

  /* Tabs — scroll horizontally, no wrapping */
  .tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }

  /* Calendar */
  .calendar-wrapper { padding: 1rem; }
  .calendar-nav h2 { font-size: 1rem; }
  .days-grid { gap: 3px; }
  .day-cell { font-size: 0.75rem; border-radius: 6px; }
  .legend { gap: 0.75rem; font-size: 0.75rem; }

  /* Day panel */
  .day-panel { padding: 1rem; }
  .slot-row { padding: 0.55rem 0.75rem; font-size: 0.85rem; }

  /* Info card */
  .info-card { padding: 1rem; font-size: 0.85rem; }
  .phone { font-size: 1rem; }

  /* Cards */
  .regulamin-wrapper,
  .wyposaZenie-wrapper,
  .cennik-wrapper,
  .gallery-wrapper,
  .dojazd-wrapper { padding: 1rem; border-radius: 10px; }

  /* Wyposazenie grid — single column */
  .wyposaZenie-grid { grid-template-columns: 1fr; }

  /* Map */
  .dojazd-map iframe { height: 280px; }

  /* Cennik */
  .cennik-wrapper { max-width: 100%; }

  /* Regulamin */
  .regulamin-wrapper { max-width: 100%; }
  .anulowanie-row { font-size: 0.85rem; }
  .anulowanie-status { font-size: 0.7rem; padding: 2px 8px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}
