/* Fonts – Montserrat everywhere (EN: import family) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

:root {
  --font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  --card-h: 550px;
  /* EN: default card height; override per card if needed */
  --img-h: 210px;
  /* EN: fixed hero height */
  --mid-h: 220px;
  /* EN: minimum middle block height */
}

/* EN: ensure padding doesn't enlarge boxes */
.event-card,
.event-card * {
  box-sizing: border-box;
}

/* === Card container (flex column keeps the button inside) === */
.event-card.highlighted {
  background-color: #e8f7e1;
  /* light green background */
  border-color: #a3d57a;
  box-shadow: 0 0 12px rgba(123, 176, 69, 0.4);
}

.event-card {
  width: 100%;
  max-width: 450px;
  height: var(--card-h);
  background: #fff;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  text-align: left;
  /* EN: all texts left-aligned */
}

/* === Hero image (fixed height background) === */
.event-hero {
  position: relative;
  height: var(--img-h);
  flex: 0 0 var(--img-h);
  /* EN: fixed track in flex layout */
  background: #ddd center/cover no-repeat;
  /* EN: set real image via inline background-image */
}

/* === Date badge (glued to top-left, two lines) === */
.date-badge {
  position: absolute;
  top: 0;
  left: 0;
  /* EN: touch top and left edges */
  background: #7bb045;
  color: #fff;
  display: grid;
  grid-template-rows: auto auto;
  /* EN: months (small) over days (big) */
  align-items: center;
  padding: 8px 12px 10px 12px;
  line-height: 1;
}

.date-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* EN: left=start month, right=end month */
  column-gap: 8px;
  font-weight: 700;
  font-size: 12px;
  /* EN: smaller top line */
  letter-spacing: 0.5px;
}

.date-months .mon-left {
  justify-self: start;
}

.date-months .mon-right {
  justify-self: end;
}

.date-months .hidden {
  display: none;
}

.date-days {
  margin-top: 4px;
  font-weight: 700;
  font-size: 28px;
  /* EN: bigger bottom line with day range */
  letter-spacing: 0.5px;
}

/* === Address row === */
.event-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: #495057;
  font-size: 14px;
  border-top: 1px solid #f1f3f5;
  flex: 0 0 auto;
  /* EN: do not grow */
}

.event-address .pin {
  width: 18px;
  text-align: center;
}

/* === Middle block (grows; description scrolls) === */
.event-middle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 18px 0 18px;
  min-height: var(--mid-h);
  /* EN: configurable minimum */
  flex: 1 1 auto;
  /* EN: takes remaining vertical space */
}

.event-tag {
  color: #7bb045;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  text-transform: uppercase;
}

.event-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.15;
}

.event-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #6b7280;
  overflow-y: auto;
  /* EN: scrollbar on long text */
  padding-right: 6px;
  /* EN: room for scrollbar */
  flex: 1 1 auto;
}

/* Optional: nicer thin scrollbars (WebKit) */
.event-desc::-webkit-scrollbar {
  width: 10px;
}

.event-desc::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.event-desc::-webkit-scrollbar-thumb {
  background: #cdd5df;
}

/* === Bottom area (button stays inside) === */
.event-bottom {
  padding: 10px 18px 16px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}

/* === Green "zobacz" button === */
.btn-see {
  display: inline-block;
  background: #7bb045;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  transition: transform 0.08s ease, background 0.2s ease;
  text-transform: uppercase;
  /* exactly 'zobacz' */
}

.btn-see:hover {
  background: #6aa03e;
  transform: translateY(-1px);
}

.btn-see:active {
  transform: translateY(0);
}

/* === Carousel layout wrapper === */
.carousel-wrap {
  position: relative;
  width: 100%;
}

/* Reserve space below for controls we move under the track */
.carousel-bottom-spacer {
  height: 44px;
  /* match control button size so nothing overlaps */
}

/* Make slides' inner content stretch nicely */
.events-carousel .mantine-Carousel-slide,
.events-carousel [class*="mantine-Carousel-slide"] {
  display: flex;
  justify-content: center;
  /* card centered in its slide */
}

/* === Controls below & centered === */
/* Comment (EN): keep space for the controls underneath */
.carousel-wrap {
  position: relative;
  padding-bottom: 64px;
  /* room for controls below */
  overflow: visible;
}

/* Comment (EN): center controls under the track */
.events-carousel .mantine-Carousel-controls {
  position: static !important;
  /* from absolute to normal flow */
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  pointer-events: auto;
  /* ensure clickable if parent had overlay */
}

/* === Square elegant arrow buttons === */
/* Comment (EN): square button base */
.events-carousel .mantine-Carousel-control {
  position: static !important;
  /* ensure no top/left offsets apply */
  width: 44px;
  height: 44px;
  border-radius: 10px;
  /* slightly rounded square */
  border: 1px solid var(--carousel-ctrl-border, #2f2f2f);
  background: var(--carousel-ctrl-bg, #121212);
  color: var(--carousel-ctrl-fg, #ffffff);
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  transform: none !important;
  opacity: 1 !important;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease,
    color 120ms ease, border-color 120ms ease;
}

/* Comment (EN): arrow icon inherits color and gets consistent size */
.events-carousel .mantine-Carousel-control svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  /* use button color */
}

/* Comment (EN): hover/active styles */
.events-carousel .mantine-Carousel-control:hover {
  background: var(--carousel-ctrl-bg-hover, #1b1b1b);
  border-color: var(--carousel-ctrl-border-hover, #3b3b3b);
  box-shadow: 0 4px 14px rgb(0 0 0 / 28%);
}

.events-carousel .mantine-Carousel-control:active {
  transform: translateY(1px);
}

/* Comment (EN): disabled state */
.events-carousel .mantine-Carousel-control[disabled] {
  opacity: 0.4 !important;
  cursor: not-allowed;
  box-shadow: none;
}

/* === Light/Dark palette tweaks (optional) === */
@media (prefers-color-scheme: light) {
  .events-carousel .mantine-Carousel-control {
    --carousel-ctrl-bg: #ffffff;
    --carousel-ctrl-fg: #111111;
    --carousel-ctrl-border: #d6d6d6;
    --carousel-ctrl-bg-hover: #f4f4f4;
    --carousel-ctrl-border-hover: #c8c8c8;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  }
}

/* === Misc: make slides fill track height === */
.events-carousel .mantine-Carousel-slide {
  height: 100%;
}