/* ============================================
   BOLA PARTNERS - Venue map & submission
   ============================================ */

.bp-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Hero */
.bp-hero {
  text-align: center;
  margin-bottom: 32px;
}

.bp-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.bp-hero p {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Search bar */
.bp-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.bp-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--on-surface);
}

.bp-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bp-search-input::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.bp-location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--on-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.bp-location-btn:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.04);
}

.bp-location-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.bp-location-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Map */
.bp-map-wrap {
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

#partners-map {
  height: 400px;
  width: 100%;
  z-index: 1;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  font-family: inherit !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.bp-popup-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.bp-popup-info {
  color: var(--on-surface-variant);
  font-size: 13px;
  margin-bottom: 8px;
}

.bp-popup-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bp-popup-links a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.bp-popup-links a:hover {
  text-decoration: underline;
}

/* Venue list */
.bp-venue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.bp-venue-card {
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bp-venue-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.bp-venue-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}

.bp-venue-info {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-bottom: 6px;
}

.bp-venue-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bp-venue-meta a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.bp-venue-meta a:hover {
  text-decoration: underline;
}

.bp-venue-distance {
  font-size: 13px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.bp-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.6;
}

.bp-venue-count {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

/* Divider */
.bp-divider {
  border: none;
  border-top: 1.5px solid var(--outline-variant);
  margin: 40px 0;
}

/* Submission form */
.bp-form-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.bp-form-section > p {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bp-form {
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.bp-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  display: block;
  margin-bottom: 6px;
}

.bp-form label .bp-optional {
  font-weight: 400;
  color: var(--on-surface-variant);
  font-size: 13px;
}

.bp-form input,
.bp-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--on-surface);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.bp-form input:focus,
.bp-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bp-form input::placeholder,
.bp-form textarea::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.bp-form textarea {
  min-height: 80px;
  resize: vertical;
}

.bp-form input.bp-error,
.bp-form textarea.bp-error {
  border-color: var(--error);
}

.bp-error-msg {
  font-size: 13px;
  color: var(--error);
  margin-top: -12px;
  margin-bottom: 16px;
}

.bp-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.bp-submit-btn:hover {
  background: #2563eb;
}

.bp-submit-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Success state */
.bp-success {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.bp-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.bp-success p {
  font-size: 14px;
  color: #047857;
  line-height: 1.6;
}

/* FAQ */
.bp-faq {
  margin-bottom: 32px;
}

.bp-faq h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.bp-faq details {
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.bp-faq summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.bp-faq .answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .bp-search {
    flex-direction: column;
  }

  .bp-location-btn {
    justify-content: center;
  }

  #partners-map {
    height: 320px;
  }

  .bp-venue-card {
    flex-direction: column;
  }

  .bp-venue-distance {
    padding-top: 0;
  }

  .bp-form {
    padding: 16px;
  }

  .bp-filters {
    flex-direction: column;
  }
}

/* Filters */
.bp-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bp-filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 160px;
}

.bp-filter-select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Team flags in popups */
.bp-popup-teams {
  display: flex;
  gap: 4px;
  margin: 4px 0 6px;
}

.bp-team-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* Team flags in venue list */
.bp-venue-teams {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.bp-team-flag-sm {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
}
