/* Sofort-Suche (Autocomplete + Suchseite) & 2-Klick OpenStreetMap-Karten */

/* --- Autocomplete Dropdown --- */
.lm-ac-wrap { position: relative; display: inline-block; }
html.m-on .m-menu-search .lm-ac-wrap,
.lm-search-page-form .lm-ac-wrap { display: block; flex: 1; min-width: 0; }
html.m-on .m-menu-search .lm-ac-wrap input[type="text"] { width: 100%; }

.lm-ac-box {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d5ccb8;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(24, 36, 52, 0.18);
  z-index: 2500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
  text-align: left;
}
.lm-ac-box[hidden] { display: none !important; }
html.m-on .m-menu-search .lm-ac-box:not([hidden]) {
  display: block !important;
  width: calc(100vw - 32px);
  max-width: 648px;
  max-height: 58vh;
  overflow-x: hidden;
  box-sizing: border-box;
}
.lm-search-page-form .lm-ac-box {
  width: 100%;
  overflow-x: hidden;
}
.lm-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #efe9dc;
  text-decoration: none !important;
  color: #243447 !important;
  font-weight: normal !important;
  background: #fff;
}
.lm-ac-item:last-child { border-bottom: 0; }
.lm-ac-item:hover,
.lm-ac-item.lm-ac-active { background: #f5f8fc !important; color: #1d4ed8 !important; }
.lm-ac-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  background: #e8f0f7;
  flex: none;
}
.lm-ac-text { flex: 1; min-width: 0; }
.lm-ac-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #24405c;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-ac-meta {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-ac-more {
  display: block;
  padding: 9px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700 !important;
  color: #b43a56 !important;
  background: #fcf9f2;
  text-decoration: none !important;
}
.lm-ac-more:hover,
.lm-ac-more.lm-ac-active { background: #f5efe0 !important; }

/* --- Suchergebnis-Seite (suche.php) --- */
.lm-search-box-card {
  width: 798px;
  box-sizing: border-box;
  background: #f9f7f2;
  border: 1px solid #dfd7c5;
  border-radius: 8px;
  padding: 14px;
  margin: 8px 5px 14px;
}
.lm-search-page-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lm-search-page-form input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #bfb6a4;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: #222;
}
.lm-search-page-form button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #b43a56;
  border-radius: 6px;
  background: #b43a56;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.lm-search-count {
  width: 798px;
  box-sizing: border-box;
  margin: 8px 5px 10px;
  font-size: 13px;
  color: #555;
}
.lm-search-list {
  width: 798px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 5px 16px;
}
.lm-search-hit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f4f3f4;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 10px 12px;
  text-decoration: none !important;
  color: #333 !important;
  font-weight: normal !important;
}
.lm-search-hit:hover { border-color: #719dc2; background: #eef4fa; }
.lm-search-hit-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
  flex: none;
  background: #e3ecf5;
}
.lm-search-hit-body { flex: 1; min-width: 0; }
.lm-search-hit-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #2c5d8f;
  margin-bottom: 2px;
}
.lm-search-hit-reg {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #a8324e;
  background: #fff1cc;
  padding: 1px 7px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.lm-search-hit-snip {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}
.lm-search-hit-snip mark {
  background: #ffe58f;
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
}
.lm-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.lm-search-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #d5ccb8;
  border-radius: 14px;
  font-size: 12.5px;
  color: #2c5d8f !important;
  text-decoration: none !important;
}
.lm-search-tag:hover { background: #e8f0f7; }

html.m-on .lm-search-box-card { width: auto !important; margin: 8px 0 16px; border-radius: 14px; background: #fff; border-color: #eadfc3; }
html.m-on .lm-search-count { width: auto !important; margin: 8px 0 10px; }
html.m-on .lm-search-page-form input[type="search"] { height: 46px; border-radius: 23px; padding: 0 16px; font-size: 16px; }
html.m-on .lm-search-page-form button { height: 46px; border-radius: 23px; padding: 0 18px; font-size: 15px; }
html.m-on .lm-search-list { width: auto !important; margin: 0 0 18px; }
html.m-on .lm-search-hit { background: #fff; border-color: #eadfc3; border-radius: 14px; padding: 12px; }

/* --- 2-Klick / OpenStreetMap Kartenbox (.lm-map) --- */
.lm-map {
  display: block;
  margin-top: 6px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf2f9 0%, #f5f8fb 55%, #e8f1ea 100%);
}
.lm-map-placeholder {
  display: block;
  padding: 26px 18px;
  text-align: center;
  color: #2b3a4a;
}
.lm-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #ffffff;
  color: #b43a56;
  box-shadow: 0 2px 8px rgba(36, 64, 92, 0.14);
  margin-bottom: 8px;
}
.lm-map-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #24405c;
}
.lm-map-coords {
  display: block;
  font-size: 12px;
  color: #5d6773;
  margin-top: 2px;
}
.lm-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 8px;
}
.lm-map-load {
  padding: 8px 16px;
  border: 0;
  border-radius: 20px;
  background: #2c5d8f;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lm-map-load:hover { background: #214971; }
.lm-map-ext {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid #c2cfdd;
  border-radius: 20px;
  background: #ffffff !important;
  color: #2c5d8f !important;
  font-size: 12.5px;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.lm-map-ext:hover { background: #f0f5fa !important; }
.lm-map-note {
  display: block;
  font-size: 11px;
  color: #687380;
}
.lm-map-frame {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}
.lm-map-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid #dde4ec;
  font-size: 12px;
}
.lm-map-foot a { color: #2c5d8f !important; font-weight: 600 !important; }
html.m-on .lm-map-frame { height: 320px; }

/* --- Übersichtlich gegliederte Camping-Seite (camping.php) --- */
.lm-camp-wrap {
  width: 798px;
  box-sizing: border-box;
  float: left;
  margin: 4px 5px 12px;
}
.lm-camp-card {
  background: #f8f6f1;
  border: 1px solid #d6cebe;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  line-height: 1.55;
}
.lm-camp-spotlight {
  background: linear-gradient(180deg, #fffdf8 0%, #f6f3ea 100%);
  border: 1px solid #cbb994;
  box-shadow: 0 2px 10px rgba(44, 64, 92, 0.07);
}
.lm-camp-wrap h2 {
  font: bold 1.25em Tahoma, Arial, Helvetica, sans-serif;
  color: #24405c;
  text-transform: none;
  margin: 18px 0 10px;
}
.lm-camp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e3dccd;
}
.lm-camp-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  background: #ffffff !important;
  border: 1px solid #cfc5b1;
  color: #2c5d8f !important;
  font-size: 12px;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.lm-camp-pill:hover { background: #e8f0f7 !important; border-color: #719dc2; }
.lm-camp-pill-star {
  background: #fff1cc !important;
  border-color: #e0be68;
  color: #7a4f08 !important;
}
.lm-camp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lm-camp-title {
  margin: 0 !important;
  font-size: 1.35em !important;
  color: #24405c !important;
}
.lm-camp-sub {
  display: block;
  font-size: 12.5px;
  color: #5d646e;
  margin-top: 3px;
}
.lm-camp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #b43a56;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 6px;
}
.lm-camp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lm-camp-cta {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 18px;
  background: #b43a56 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px;
  text-decoration: none !important;
}
.lm-camp-cta:hover { background: #912c44 !important; color: #ffffff !important; }
.lm-camp-cta-sec {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 18px;
  background: #ffffff !important;
  border: 1px solid #c2cfdd;
  color: #2c5d8f !important;
  font-weight: 700 !important;
  font-size: 12px;
  text-decoration: none !important;
}
.lm-camp-cta-sec:hover { background: #eef4fa !important; }
.lm-camp-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.lm-camp-fig {
  margin: 0;
  background: #fff;
  border: 1px solid #dfd8c8;
  border-radius: 6px;
  overflow: hidden;
}
.lm-camp-fig img {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.lm-camp-cap {
  display: block;
  padding: 5px 8px;
  font-size: 11.5px;
  color: #4f5661;
  background: #fff;
  text-align: center;
}
.lm-camp-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5decb;
  border-radius: 6px;
}
.lm-camp-hl {
  font-size: 12.5px;
  line-height: 1.45;
  color: #2f3742;
}
.lm-camp-hl strong { color: #24405c; }
.lm-camp-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.lm-camp-pcard {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8f6f1;
  border: 1px solid #d6cebe;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none !important;
  color: #333 !important;
  font-weight: normal !important;
}
.lm-camp-pcard:hover { background: #eef4fa; border-color: #719dc2; }
.lm-camp-pcard img {
  width: 92px !important;
  height: 69px !important;
  object-fit: cover;
  border-radius: 6px !important;
  flex: none;
  margin: 0 !important;
  float: none !important;
}
.lm-camp-pcard-t strong {
  display: block;
  font-size: 13.5px;
  color: #2c5d8f;
  margin-bottom: 2px;
}
.lm-camp-pcard-t span {
  display: block;
  font-size: 12px;
  color: #555;
  line-height: 1.35;
}
.lm-camp-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.lm-camp-regbox {
  background: #f8f6f1;
  border: 1px solid #d6cebe;
  border-radius: 8px;
  padding: 12px 14px;
}
.lm-camp-regbox h3 {
  margin: 0 0 8px !important;
  padding-bottom: 6px;
  border-bottom: 2px solid #ffcc66;
  font: bold 1.1em Tahoma, Arial, Helvetica, sans-serif !important;
  color: #24405c !important;
}
.lm-camp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-camp-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 5px 0;
  border-bottom: 1px solid #eae3d4;
  font-size: 12.5px;
}
.lm-camp-list li:last-child { border-bottom: 0; }
.lm-camp-town {
  font-size: 11.5px;
  color: #6b7280;
}
.lm-camp-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  background: #e8f0f7;
  color: #2c5d8f;
  font-size: 10.5px;
  font-weight: 700;
}
.lm-camp-tag-top {
  background: #fff1cc;
  color: #8a5600;
}

@media (max-width: 820px) {
  .lm-camp-wrap { float: none !important; width: auto !important; margin: 0 !important; }
  .lm-camp-card, .lm-camp-regbox, .lm-camp-pcard { background: #ffffff; border-color: #eadfc3; border-radius: 14px; }
  .lm-camp-highlights, .lm-camp-portraits, .lm-camp-regions { grid-template-columns: 1fr; }
  .lm-camp-hl, .lm-camp-list li { font-size: 15px; }
  .lm-camp-town { font-size: 13px; }
  .lm-camp-sub { font-size: 14px; }
  .lm-camp-cta, .lm-camp-cta-sec { padding: 10px 16px; font-size: 14.5px; border-radius: 22px; }
  .lm-camp-nav { display: none; }
}
@media (max-width: 480px) {
  .lm-camp-photos { grid-template-columns: 1fr; }
}
html.m-on .lm-camp-photos img.m-dup { display: block !important; }
