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;
}

/* Top navbar: search and the account menu are 36px high, "Dodaj wydarzenie" is a small (31px) button */
.nav-search-btn,
.mobile-nav-list .nav-search-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
}
@media (min-width: 992px) {
  .nav-search-btn {
    height: 36px;
    padding: 0 .75rem !important;
    border-radius: var(--ui-radius);
  }
  .nav-search-btn:hover {
    background: rgba(255, 255, 255, .1);
  }
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 31px;
  padding: 0 .7rem;
  background: var(--ui-accent);
  border-radius: var(--ui-radius-sm);
  color: #fff;
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ui-accent-hover);
  color: #fff;
}
.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 36px;
  padding: 0 .4rem 0 .2rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-account-toggle:hover,
.nav-account-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.nav-account-toggle.dropdown-toggle::after {
  margin-left: 0;
  border-top-width: .3em;
  border-right-width: .3em;
  border-left-width: .3em;
}
.nav-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ui-accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
}
.nav-account-avatar-guest {
  background: rgba(255, 255, 255, .15);
}
.nav-account-menu {
  min-width: 220px;
  margin-top: .4rem !important;
  padding: .35rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-menu);
  font-size: .9rem;
}
.nav-account-menu .dropdown-item {
  padding: .5rem .75rem;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-2);
}
.nav-account-menu .dropdown-item:hover,
.nav-account-menu .dropdown-item:focus {
  background: var(--ui-hover);
  color: var(--ui-text);
}
.nav-account-menu .dropdown-divider {
  margin: .35rem 0;
  border-color: var(--ui-divider);
}
.nav-account-menu-header {
  display: flex;
  flex-direction: column;
  padding: .45rem .75rem .35rem;
  color: var(--ui-text);
}
.nav-account-menu-label {
  font-size: .75rem;
  color: var(--ui-text-subtle);
}

.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;
    /* the width/height attributes carry the photo's real size, so the box is reserved without cropping;
       cover only matters when min-height makes a very wide photo taller than it is */
    height: auto;
    object-fit: cover;
}
.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;
}


/* Toasts: Django messages, closed automatically by app_helpers.js; shown on /manage/organizer/styleguide */
.ui-toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 32px);
}

.ui-toast {
    --ui-toast-tone: var(--ui-accent);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border: 1px solid var(--ui-border);
    border-left: 4px solid var(--ui-toast-tone);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-menu);
    color: var(--ui-text);
    font-size: 14px;
    line-height: 20px;
    transition: opacity .2s ease, transform .2s ease;
}

.ui-toast-success { --ui-toast-tone: var(--ui-success); }
.ui-toast-warning { --ui-toast-tone: var(--ui-warning); }
.ui-toast-error { --ui-toast-tone: var(--ui-danger); }

.ui-toast.is-hiding {
    opacity: 0;
    transform: translateX(8px);
}

.ui-toast-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.ui-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: var(--ui-radius-sm);
    background: transparent;
    color: var(--ui-text-subtle);
    font-size: 20px;
    line-height: 22px;
}

.ui-toast-close:hover {
    background: var(--ui-hover);
    color: var(--ui-text);
}

.ui-toast-close:focus-visible {
    outline: 2px solid var(--ui-accent-ring);
    outline-offset: 1px;
}

@media (max-width: 768px) {
    .ui-toasts {
        left: 16px;
        right: 16px;
        width: auto;
        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;
}
@media (min-width: 992px) and (max-width: 1198.98px) {
    .mobile-nav-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Mobile slide-in menu (offcanvas) */
@media (max-width: 991.98px) {
  .mobile-nav-body {
    display: flex;
    flex-direction: column;
  }
  .mobile-nav-offcanvas {
    width: min(320px, 85vw);
    background: #f6f6f6;
  }
  .mobile-nav-offcanvas .offcanvas-header {
    border-bottom: 1px solid #e5e5e5;
    background: #212525;
  }
  .mobile-nav-offcanvas .offcanvas-body {
    padding: 0;
  }
  .mobile-nav-list {
    width: 100%;
  }
  .mobile-nav-list .nav-item {
    border-bottom: 1px solid #e5e5e5;
  }
  .mobile-nav-list .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: #212121;
    font-weight: 600;
    letter-spacing: .02em;
    background: #f6f6f6;
  }
  .mobile-nav-list .nav-link.active {
    color: #fff;
    background-color: #403f3f;
  }
  .mobile-nav-list .nav-link:hover {
    background-color: #ececec;
  }
  .mobile-nav-list-secondary {
    align-items: stretch;
  }
  .mobile-nav-list-secondary .nav-link {
    justify-content: flex-start;
  }
  .mobile-nav-cta {
    color: #77AB19;
    font-weight: 700;
  }
  .mobile-nav-auth-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #e5e5e5;
    padding: 16px 12px;
  }
  .mobile-nav-auth-bar a {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #212121;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
  }
}
