/* ===================== RESET & VARIABLES ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --polish-red: #d40000;
  --soft-gray: #f2f2f2;
  --light-gold: #d4af37;
  --white: #ffffff;
  --text: #222;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--soft-gray);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* ===================== HEADER & NAV ===================== */
.site-header {
  background: var(--polish-red);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.logo { font-weight: 700; font-size: 1.2rem; color: white; text-decoration: none; }
.logo span { font-weight: 600; }

.main-nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}
.main-nav a:hover { background: rgba(255,255,255,0.2); }
.main-nav a.active { background: rgba(255,255,255,0.3); font-weight: 700; }

.lang-switch a {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}
.lang-switch a.active { background: white; color: var(--polish-red); font-weight: 700; }

/* ===================== HERO ===================== */
.hero { background: var(--white); padding: 2rem 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-img:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  background: var(--polish-red);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin: 0.3rem;
  border: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; border: 2px solid var(--polish-red); color: var(--polish-red); }

/* ===================== GRIDS ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.flip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 1rem; }
.people-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; margin-top: 1.5rem; }

/* ===================== CARDS ===================== */
.card, .timeline-box, .must-card, .person-card, .attraction-card, .contact-card, .contact-info-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-img, .hero-img, .timeline-img, .person-img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.card:hover .card-img, .hero-img:hover, .must-card:hover, .person-card:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }

/* ===================== TIMELINE ===================== */
.timeline { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.timeline-item { background: var(--white); padding: 1rem; border-left: 6px solid var(--polish-red); border-radius: 6px; }
.timeline-box { cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.timeline-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.35s ease;
  background: #fff7f7;
  margin-top: 0.5rem;
  border-left: 4px solid var(--polish-red);
  border-radius: 6px;
  padding: 0 1rem;
}
.toggle:checked ~ .timeline-details { max-height: 300px; opacity: 1; padding: 0.8rem 1rem; }

/* ===================== FLIP CARD ===================== */
.flip-card { background: transparent; perspective: 1000px; }
.flip-inner { position: relative; width: 100%; height: 160px; transform-style: preserve-3d; transition: transform 0.6s ease; }
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 1rem;
}
.flip-front { background: var(--polish-red); color: white; }
.flip-back { background: white; color: var(--text); transform: rotateY(180deg); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .grid-3, .flip-grid, .people-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .timeline-bubble { width: 90%; }
}

/* ===================== MAP DOTS — WORKING ===================== */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* dopasowane do mapy */
  margin: 2rem auto;
}

.map-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.map-point {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--polish-red);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
  z-index: 10;
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.map-point::after {
  content: attr(data-text);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: white;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-point:hover::after {
  opacity: 1;
}
