/* ===== Reset + base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FFE100;
  --primary-dark: #000000;
  --primary-light: #FFF8B0;
  --text-primary: #D97706;

  --secondary-color: #000000;
  --text-color: #000000;
  --text-light: rgba(0, 0, 0, 0.65);

  --bg-color: #FFFFFF;
  --white: #FFFFFF;

  --border-color: rgba(0, 0, 0, 0.12);

  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--text-primary); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.p-2 { padding: 1rem; }

/* ===== Buttons (używane w headerze) ===== */
.btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ===== Main / Sections ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.section { display: none; }

.section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Cards ===== */
.card {
  background: #FFFDD0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== Table (registration fees) ===== */
table {
  width: 100%;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

table thead {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

table th,
table td {
  padding: 1rem;
  text-align: left;
}

table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* ===== Lists spacing (żeby można było usunąć inline style) ===== */
.list-indented {
  margin-left: 1.5rem;
}

.list-tight {
  line-height: 2;
}

/* ===== Hotels list (żeby można było usunąć inline style) ===== */
.hotels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.small-note {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ===== Transportation block (gradient box) ===== */
.transport-block {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 2rem;
  border-radius: 0.5rem;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  margin-bottom: 3rem;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--white);
  padding: 2rem;
}

.slide-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
}

.slide-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.slide-btn:hover {
  background: var(--white);
}

.slide-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 2000;
  animation: slideIn 0.3s ease-out;
}

.toast.show { display: block; }
.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive (page only) ===== */
@media (max-width: 768px) {
  main { padding: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .slide img { height: 280px; }

  .toast {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }
}


#tourismSlideshow .slide-content h3,
#tourismSlideshow .slide-content p {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* lepsza czytelność */
}
