.button,
a.register-button,
span.inactive-button {
  display: inline-block;
  margin: 1rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  padding: 1rem 1.25rem;
  text-align: center;
  text-wrap: balance;
  color: #fff;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.4);
  background-color: rgba(165, 1, 1, 0);
  background-image: linear-gradient(#8d0000, rgba(165, 1, 1, 0));
  background-color: #a50101;
  box-shadow: 0 0 0 1px #900;
  border: 1px solid #bc4040;
  border-width: 1px 0 0;
  border-radius: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: background-color 0.3s ease;
}
.button:after,
a.register-button:after,
span.inactive-button:after {
  display: none;
}
.button:hover,
a.register-button:hover,
span.inactive-button:hover,
.button:focus,
a.register-button:focus,
span.inactive-button:focus {
  text-decoration: none;
  background-color: #b90101;
}
.button.gold,
a.gold.register-button,
span.gold.inactive-button {
  color: #000;
  background-color: rgba(255, 204, 0, 0);
  background-image: linear-gradient(#fc0, rgba(255, 204, 0, 0));
  background-color: #e0b400;
  border: 1px solid #e0b400;
  text-shadow: 1px 1px rgba(255, 255, 255, 0.4);
  box-shadow: 0 0.125rem 0.25rem #b38f00;
}
.button.gold:hover,
a.gold.register-button:hover,
span.gold.inactive-button:hover,
.button.gold:focus,
a.gold.register-button:focus,
span.gold.inactive-button:focus {
  text-decoration: none;
  background-color: #ffd014;
}
.button.small,
a.small.register-button,
span.small.inactive-button {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
}
/* Mobile-first: Single column layout */
.resception {
  border-radius: 0.125rem;
  border: 1px solid #ddd;
  transition: opacity 0.3s ease;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 160px;
}

.resception.hi {
  border: 1px solid #fc0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile: Headings section */
.resception .headings {
  grid-column: 1;
  grid-row: 1;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: background 0.3s ease;
}

.resception .headings .info {
  padding: 1rem;
  margin-bottom: 2.25rem;
}

.resception.on .headings {
  background: #fc0;
}

.resception .headings h4 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #333;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.resception.on .headings h4 {
  color: #000;
}

.resception .headings .location {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin: 0 0 1rem 0;
}

.resception .headings img {
  height: auto;
  opacity: 0.25;
  filter: grayscale(0.6);
  transition: all 0.5s ease;
  align-self: flex-start;
  position: absolute;
  top: 0;
}

/* Mobile: Content area */
.resception .content-area {
  grid-column: 1;
  grid-row: 2;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resception .actions {
  margin-top: 1rem;
}

/* Tablet and up: Two-column layout with diagonal separator */
@media (min-width: 768px) {
  .resception {
    grid-template-columns: 280px 1fr;
    grid-template-rows: none;
    min-height: 250px;
  }

  /* Diagonal separator */
  .resception:before {
    content: "";
    position: absolute;
    left: 270px;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f8f8f8 50%, transparent 50%);
    z-index: 1;
    transition: background 0.3s ease;
  }

  .resception.on:before {
    background: linear-gradient(135deg, #fc0 0%, #fc0 50%, transparent 50%);
  }

  .resception .headings {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    overflow: hidden;
  }

  .resception .headings h4 {
    font-size: 1.4rem;
    z-index: 2;
    position: relative;
  }

  .resception .headings .location {
    font-size: 1rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
  }

  .resception .headings img {
    width: 100%;
    max-width: none;
    opacity: 0.5;
    filter: grayscale(0.4);
    transition: all 0.5s ease;
    z-index: 1;
    object-fit: contain;
    object-position: center;
    position: static;
  }

  .resception .content-area {
    grid-column: 2;
    grid-row: auto;
    padding: 1.5rem;
  }

  .resception.on .headings img {
    opacity: 0.8;
    filter: grayscale(0);
  }

  .resception:hover .headings img {
    opacity: 0.6;
    filter: grayscale(0.2);
  }
}
.resception p {
  font-size: 0.9rem;
}
.resception .edit-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.resception.hide {
  display: none;
}
/* Mobile-first: Single column layout */
.resceptions {
  padding: 1rem;
}

.filters {
  margin-bottom: 1.5rem;
}

.resception {
  margin-bottom: 1rem;
}

/* Tablet and up: Better spacing */
@media (min-width: 768px) {
  .filters {
    margin-bottom: 2rem;
  }

  .resception {
    margin-bottom: 1.5rem;
  }
}
.details {
  font-size: 1rem;
  display: grid;
  grid-template-columns: 5.25rem auto;
  margin: 0;
}
.details dt {
  text-transform: uppercase;
  font-weight: 700;
  width: 5.25rem;
}
.details dd {
  margin-top: 0.05rem;
  margin-bottom: 0.2rem;
}
#resceptionsmap {
  min-height: 400px;
}
.filters {
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(0.5rem);
}
.filters select {
  appearance: none;
  border: 1px solid #333;
  border-radius: 2px;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0);
  width: 100%;
}
.filters select:focus {
  outline: none;
}
.filters label {
  position: relative;
  height: 2rem;
}

a.register-button,
span.inactive-button {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  clear: both;
  display: block;
  margin-bottom: 0;
}
span.inactive-button {
  background: #ddd;
  color: #000;
  font-size: 0.9rem;
  font-weight: 300;
  text-shadow: none;
  border: none;
  box-shadow: none;
}
span.inactive-button:hover {
  background: #ddd;
}

/* Large screens: Side-by-side map and list layout */
@media (min-width: 1120px) {
  .resceptions-wrapper {
    display: flex;
    min-height: calc(100vh - 3.75rem);
  }

  #resceptionsmap {
    width: calc(50% + 1rem);
    height: calc(100vh - 3.75rem);
  }

  #resceptionsmap.fixed {
    position: fixed !important;
    top: 3.75rem;
    width: calc(50% - 0.5rem);
  }

  #resceptionsmap.fixed + .resceptions {
    margin-left: calc(50% - 0.5rem);
  }

  .resceptions {
    width: 50%;
  }

  /* Admin bar adjustments */
  .admin-bar #resceptionsmap {
    height: calc(100vh - 5.75rem);
  }

  .admin-bar #resceptionsmap.fixed {
    top: 5.75rem;
  }
}
