/* FÄRGER ANSVARIGA */
.midsommar-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* färger */
.legend-item.gar-pa .legend-color {
  background: #2271b1;
}

.legend-item.lamnar .legend-color {
  background: #F2D27A;
}
/* tabellhuvud */
table.midsommar th {
    font-size: 80%;
    background: #2271B2;
	color: white;
	vertical-align: bottom;
}

tr.spacer td {
	background: yellow;
	height: 10px;
}

/* går på */
.midsommar-cell.gar-pa {
    color: white;
    background: #2271b1;
    border-left: 8px solid darkgray;
}

/* går av */
.midsommar-cell.lamnar {
  background: #F2D27A;
  border-left: 8px solid #9ca3af;
}

/* ingen ansvar */
.midsommar-cell.ingen {
    background: #ffffff;
    color: #9ca3af;
    opacity: 0.3;
}

/* ta bort WP underline */
#midsommar-modal a {
  box-shadow: none !important;
}
/* Desktop year-nav */
.midsommar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.year-nav {
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #f3f4f6;
  border-radius: 6px;
}

.year-range {
  font-weight: 600;
}

.midsommar-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 20px 0 10px;
}

.nav-left {
  text-align: left;
}

.nav-right {
  text-align: right;
}

.legend-center {
  text-align: center;
}

.midsommar-legend {
  display: inline-flex;
  gap: 20px;
  align-items: center;
}


.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: black;
    text-decoration: none;
    padding: 0;
    border: none;
    background: none;
}

/* hover – subtil underline */
.nav-link:hover {
  text-decoration: underline;
  color: #1d4f7a;
}

.nav-link svg {
    width: 28px;
    height: 28px;
    vertical-align: bottom;
}

.nav-link.prev svg {
  margin-right: 6px;
}

.nav-link.next svg {
  margin-left: 6px;
}
.midsommar-nav a,
.midsommar-nav a:visited,
.midsommar-nav a:hover,
.midsommar-nav a:focus {
  text-decoration: none !important;
}

a.nav-link.prev,
a.nav-link.next {
  box-shadow: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}
/* ❌ stäng-knapp */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #ddd;
  z-index: 10;
}
.modal.is-open {
  display: block;
}
/* =========================
   MOBIL
========================= */

.midsommar-mobile {
  display: none;
}

@media (max-width: 700px) {

  .desktop-only { display: none; }
  .midsommar-mobile { display: block; }

	.mobile-year-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

/* Årsväljaren */
  .mobile-year-picker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
  }

  /* 🔹 default (alla år) */
  .year-btn {
    min-width: 70px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f3f4f6;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.2s ease;
  }

  /* 🔹 aktuellt år */
  .year-btn.active {
    opacity: 0.7;
	color: #333;
    background: #84accd;
    border-color: #2271b1;
    transform: scale(0.95);
  }

  /* 🔹 valt år */
  .year-btn.current-year {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    opacity: 1;
    transform: scale(1.05);
  }

  /* hover (lätt effekt) */
  .year-btn:hover {
    background: #e5e7eb;
  }

  .year-block { display: none; }
  .year-block.active { display: block; }

  .adress {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #f3f4f6;
  }

	 .group {
    margin-top: 15px;
  }

  .label {
    font-weight: 600;
    margin-bottom: 5px;
  }
	
 /* Går på → blå */
.gar-pa .adress {
  background: #2271b1;
  color: #fff;
}

/* Går av → beige */
.lamnar .adress {
  background: #F2D27A;
  color: #fff;
}
	
	.gata {
  font-size: 12px;
  opacity: 1;
		padding-bottom: 5px;
}

.midsommar-mobile .gar-pa .adress .namn {
  color: #fff;
  font-size: 0.9em;
}

.midsommar-mobile .lamnar .adress .namn {
  color: #444444;
  font-size: 0.9em;
}


	.year-block.active h3 {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 10px;
    }
	
.mobile-year-wrapper {
  position: relative;
}

.mobile-year-wrapper::before,
.mobile-year-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}

.mobile-year-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.mobile-year-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}
/* ❌ stäng-knapp */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #ddd;
  z-index: 10;
}

.modal-close:hover {
  background: #f3f4f6;
}
}