.md-app {
  display: grid;
  gap: 20px;
}

.md-filter-block select {
  width: 100%;
}

.md-richtext {
  margin: 0 0 12px;
}

.md-richtext strong:first-child {
  display: block;
  margin-bottom: 6px;
}

.md-richtext p {
  margin: 0 0 8px;
}

.md-richtext ul,
.md-richtext ol {
  margin: 0 0 8px 20px;
  padding: 0;
}

.md-richtext li {
  margin-bottom: 4px;
}

.md-richtext a {
  color: var(--md-accent-color, #e61955);
  text-decoration: underline;
}

/* Filters wrapper/card */
.md-filters-wrapper {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  position: relative;
}

.md-filters-card-header {
  background: var(--md-accent-color, #e61955);
  padding: 18px 20px;
  border-radius: 12px 12px 0 0;
}

.md-filters-card-header h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.md-filters {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.md-filter-block {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.md-filter-title {
  margin-bottom: 4px;
  color: var(--md-accent-color, #e61955);
  font-size: 16px;
}

.md-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
}

@media (max-width: 767px) {
  .md-results {
    grid-template-columns: 1fr;
  }
}

.md-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Choices.js */
.choices {
  margin-bottom: 10px;
  overflow: visible;
  position: relative;
}

.choices__inner {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  padding: 7px 12px;
}

.choices[data-type*="select-one"] .choices__inner {
  padding: 7px 34px 7px 12px;
}

.choices[data-type*="select-one"]::after {
  border-color: var(--md-accent-color, #e61955) transparent transparent transparent;
}

.choices.is-open[data-type*="select-one"]::after {
  border-color: transparent transparent var(--md-accent-color, #e61955) transparent;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  z-index: 9999;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
}

/* Selected language tags */
.choices__list--multiple .choices__item {
  background: var(--md-accent-color, #e61955) !important;
  border: 1px solid var(--md-accent-color, #e61955) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}

/* X inside selected language tags */
.choices__list--multiple .choices__item .choices__button {
  border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  opacity: 1;
}

/* Hover/highlighted option */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: color-mix(in srgb, var(--md-accent-color, #e61955) 15%, white);
  color: var(--md-accent-color, #e61955);
}

/* Filter actions */
.md-filter-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#md-reset {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 180px;
  padding: 12px 20px;
  background: var(--md-accent-color, #e61955) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 8px;
  line-height: 1.2;
}

#md-reset::after {
  display: none !important;
}

/* Status and results count */
.md-status,
.md-count {
  font-weight: 600;
}

/* Map */
.md-map {
  width: 100%;
  min-height: 620px;
  border-radius: 12px;
  overflow: hidden;
}

#md-map {
  min-height: 620px;
  background: #f3f3f3;
}

/* Results grid */
.md-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Cards */
.md-card {
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.md-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700 !important;
  color: var(--md-accent-color, #e61955) !important;
  text-align: center;
}

.md-card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.md-card-actions button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 180px;
  padding: 12px 20px;
  background: var(--md-accent-color, #e61955) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 8px;
  line-height: 1.2;
}

.md-card-actions button::after {
  display: none !important;
}

/* Hidden location note */
.md-location-note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #7a1f1f;
}

/* Badges */
.md-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.md-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}

.md-badge-blue {
  background: #eef5ff;
  border-color: #cfe0ff;
  color: #1e4fa3;
}

.md-badge-green {
  background: #edf9f0;
  border-color: #c6ebd0;
  color: #1d6b36;
}

.md-badge-pink {
  background: #fff0f5;
  border-color: #f6c9d8;
  color: #a63a62;
}

.md-badge-purple {
  background: #f4efff;
  border-color: #dbccff;
  color: #6540a8;
}

.md-badge-orange {
  background: #fff4e8;
  border-color: #ffd6ad;
  color: #a85c12;
}

.md-badge-red {
  background: #fff0f0;
  border-color: #ffc9c9;
  color: #b42318;
}

.md-badge-burgundy {
  background: #fdf0f3;
  border-color: #f3c4d0;
  color: #8a1f45;
}

.md-badge-rainbow {
  background: linear-gradient(90deg, #ffe3e3, #fff0c2, #e7ffd9, #dff4ff, #efe2ff);
  border-color: #d8c7ff;
  color: #5b3f96;
}

.md-badge-cyan {
  background: #ecfbff;
  border-color: #bfeaf4;
  color: #16697a;
}

.md-badge-yellow {
  background: #fffbe8;
  border-color: #f7e7a8;
  color: #8a6a00;
}

/* InfoWindow */
.md-infowindow h4 {
  margin: 0 0 10px;
  font-weight: 700 !important;
  color: var(--md-accent-color, #e61955) !important;
  text-align: center;
}

.md-infowindow p {
  margin: 0 0 8px;
}

.md-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.md-pagination-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.md-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid var(--md-accent-color, #e61955);
  border-radius: 8px;
  background: #fff;
  color: var(--md-accent-color, #e61955);
  font-weight: 700;
  cursor: pointer;
}

.md-page-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--md-accent-color, #e61955) 15%, white);
}

.md-page-btn.is-active {
  background: var(--md-accent-color, #e61955);
  color: #fff;
}

.md-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}