body {
  background: #fff;
  color: #212525;
}

a {
  color: #212121;
  background: inherit;
}

a.nohover:hover { color: inherit;  }
.bd-content>h1 {
    margin-top: 2rem;
}


.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
            color: #bbb;
            opacity: 1; /* Firefox */
}

.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
            color: #bbb;
}

.form-control::-ms-input-placeholder { /* Microsoft Edge */
            color: #bbb;
 }

.leaflet-container {
    height: 600px;
    /* width: 940px; */
    max-width: 100%;
    max-height: 100%;
}

.navbar-brand{
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 30px;
}
main #navbarSupportedContent .nav-item {
  font-weight: 500;
}
main #navbarSupportedContent .nav-item .active{
  background-color: #403f3f;
}
main #navbarSupportedContent .nav-item:hover{
  background-color: #403f3f;
}

.bg-dark {
    padding-top: 2px;
    padding-bottom: 2px;
}

.zoom{
    overflow:hidden;
}
.zoom img{
  transition: transform .3s;
  margin: 0 auto;
}

.zoom:hover img{
  transform: scale(1.03);
}

img.lighter{
  transition-duration: .4s;
  transition-property: opacity;
}
img.lighter:hover{
  opacity: 0.7;
}

.event-main-image {
    min-height: 150px;
}
.event-side-image {
    min-height: 190px;
}

@media (min-width: 768px){
    .card-vertical {
        max-height: 250px;
        object-fit: cover;
    }

    .sidebar {
        max-height: 150px;
    }

    .event-vertical {
      max-height: 210px;
      object-fit: cover;
    }

    .event-main-image {
        min-height: 400px;
    }
    .event-side-image {
       min-height: 230px;
    }
}

.bg-wyprawa {
    background-color: #77AB19;
}
.bg-zawody {
    background-color: #FFC300;
}
.bg-szkolenie {
    background-color: #FF5733;
}
.bg-spotkanie {
    background-color: #2A81CB;
}
.bg-przejazd {
    background-color: #9C2BCB;
}
a.fc-daygrid-event{
    border-color: #FFFFFF;
    border-width: 2px;
}
a.fc-daygrid-event-hover, a.fc-daygrid-event:hover {
    filter: brightness(115%);
    border-color: #000000;
}


.profile-menu {
    background: transparent;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #57606a;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background-color: #f6f8fa;
    color: #0969da;
    text-decoration: none;
}

.profile-menu-item.active {
    background-color: #e8f0fe;
    color: #0969da;
    font-weight: 600;
}

.profile-menu-item.active:hover {
    background-color: #d9e7fd;
    color: #0969da;
}

.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.message-alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .messages-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Search overlay */
#searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 140px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
#searchOverlay.open { opacity: 1; pointer-events: all; }

#searchOverlayCard {
  width: min(620px, 92vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}
#searchOverlay.open #searchOverlayCard { transform: none; opacity: 1; }

#searchOverlayHeader {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}
#searchOverlayIcon { color: #9ca3af; flex-shrink: 0; }

#searchOverlayForm { flex: 1; display: flex; align-items: center; gap: .5rem; }

#searchOverlayInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #111;
  font-size: 1.05rem;
  caret-color: #6366f1;
}
#searchOverlayInput::placeholder { color: #9ca3af; }
#searchOverlayInput::-webkit-search-cancel-button { display: none; }

#searchOverlaySubmit {
  background: #212529;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: .45rem .65rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
#searchOverlaySubmit:hover { background: #374151; }
#searchOverlaySubmit:active { transform: scale(0.93); }

#searchOverlayFooter {
  display: flex;
  gap: 1.25rem;
  padding: .55rem 1.25rem;
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
}
#searchOverlayFooter span {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  color: #9ca3af;
}
#searchOverlayFooter kbd {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: .1em .45em;
  font-size: .68rem;
  color: #6b7280;
  font-family: inherit;
  box-shadow: 0 1px 0 #d1d5db;
}
