/* Paarzeit Händlerkarte – Frontend
   Angeglichen an die Anna-Design-Tokens (theme.json). Token-Werte sind hier als
   CSS-Custom-Properties eingefroren; bei Token-Updates die Werte unten nachziehen.
   Radius-Skala strikt: 0 / 4px (semantic-medium) / 100px (semantic-large, Pill).
   Schrift: Nunito Sans (self-hosted vom Theme). Keine Fremd-Fonts, keine CDNs. */

.pz-container {
    /* color.semantic.* (eingefroren) */
    --pz-green:        #373e2c; /* buttons.primary.active (Fokus/Marker) */
    --pz-green-hover:  #8a8e70; /* buttons.primary.inactive */
    /* CTA = Pfirsich (buttons.tertiary), wie Footer-Newsletter „Jetzt anmelden". */
    --pz-cta:          #f1b291; /* buttons.tertiary.inactive (Ruhezustand) */
    --pz-cta-hover:    #d1906d; /* buttons.tertiary.active (Hover) */
    --pz-cta-text:     #3e271e; /* buttons.tertiary.text */
    --pz-text:         #3e271e; /* text.main */
    --pz-inverse:      #fffefa; /* text.inverse / section-website */
    --pz-panel:        #fffbf2; /* page.section-primary */
    --pz-sand:         #e1d8d0; /* buttons.secondary.active */
    --pz-info:         #edebcf; /* page.speechbubble */
    --pz-border:       rgba(73, 43, 32, 0.13);  /* core.transparent-grey */
    --pz-border-hover: rgba(73, 43, 32, 0.35);  /* core.transparent-dark-grey */
    /* borderRadius.semantic: medium 4 / large 100 (Pill) */
    --pz-radius:       4px;
    --pz-radius-pill:  100px;
    --pz-font: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;

    /* B1: Karte auf die Content-Breite der Seite andocken (kein Eigen-Cap),
       damit die Kanten mit Text & Galerie fluchten. */
    max-width: none;
    margin: 0 auto;
    line-height: 1.5;
    font-family: var(--pz-font);
    color: var(--pz-text);
}

.pz-search-wrapper {
    margin-bottom: 24px; /* gap-btw-text-standard */
}

.pz-search-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px; /* gap-small-mobile */
    align-items: center;
    width: 100%;
}

.pz-input-wrapper {
    position: relative;
    flex: 1;
}

.pz-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--pz-green-hover);
    pointer-events: none;
}

.pz-search-bar input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--pz-border);
    border-radius: var(--pz-radius);
    font-family: var(--pz-font);
    font-size: 16px;
    color: var(--pz-text);
    background: var(--pz-inverse);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.pz-search-bar input::placeholder {
    color: var(--pz-border-hover);
}

.pz-search-bar input:focus {
    border-color: var(--pz-green); /* Fokus wie Theme-Textfelder (primary.active) */
    box-shadow: 0 0 0 3px rgba(55, 62, 44, 0.18); /* weicher grüner Ring */
}

.pz-search-bar button {
    padding: 0 24px;
    height: 48px;
    background-color: var(--pz-cta);
    color: var(--pz-cta-text);
    border: none;
    border-radius: var(--pz-radius-pill); /* Pill wie Theme-Buttons */
    cursor: pointer;
    font-family: var(--pz-font);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.pz-search-bar button:hover,
.pz-search-bar button:focus-visible {
    background-color: var(--pz-cta-hover);
}

.pz-search-bar button:disabled {
    background-color: var(--pz-cta);
    opacity: 0.6;
    cursor: wait;
}

#pz-map {
    height: 500px;
    width: 100%;
    border-radius: var(--pz-radius);
    z-index: 1;
    border: 1px solid var(--pz-border);
}

/* Custom Leaflet Zoom Controls – dezent, Token-Farben */
.leaflet-bar {
    border: 1px solid var(--pz-border) !important;
    box-shadow: none !important;
    margin-left: 15px !important;
    margin-top: 15px !important;
}

.leaflet-bar a {
    background-color: var(--pz-inverse) !important;
    color: var(--pz-text) !important;
    border-bottom: 1px solid var(--pz-border) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    transition: background-color 0.2s ease;
}

.leaflet-bar a:first-child {
    border-top-left-radius: var(--pz-radius) !important;
    border-top-right-radius: var(--pz-radius) !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: var(--pz-radius) !important;
    border-bottom-right-radius: var(--pz-radius) !important;
    border-bottom: none !important;
}

.leaflet-bar a:hover {
    background-color: var(--pz-sand) !important;
    color: var(--pz-text) !important;
}

/* Popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--pz-radius) !important;
    padding: 8px !important;
    box-shadow: 0 4px 12px rgba(62, 39, 30, 0.12) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}

.pz-popup-content {
    padding: 12px;
    color: var(--pz-text);
    font-family: var(--pz-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.pz-popup-name {
    margin-bottom: 4px;
    font-weight: 700;
}

.pz-popup-address {
    margin-bottom: 12px;
}

.pz-popup-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.pz-popup-contact a {
    text-decoration: none;
    color: var(--pz-text);
}

.pz-popup-contact a:hover {
    text-decoration: underline;
}

.pz-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--pz-cta);
    color: var(--pz-cta-text) !important;
    text-decoration: none;
    padding: 10px;
    border-radius: var(--pz-radius-pill);
    font-family: var(--pz-font);
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.pz-popup-btn:hover {
    background: var(--pz-cta-hover);
}

@media (max-width: 640px) {
    #pz-map {
        height: 350px;
    }
    .pz-search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .pz-input-wrapper {
        width: 100%;
    }
    #pz-search-btn {
        width: 100%;
    }
}

/* Ergebnisliste (erscheint nach der Suche) */
#pz-results-list {
    margin-top: 20px;
    background: var(--pz-inverse);
    border: 1px solid var(--pz-border);
    border-radius: var(--pz-radius);
    overflow: hidden;
}

.pz-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--pz-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--pz-text);
    font-family: var(--pz-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.pz-result-item:hover {
    background: var(--pz-panel);
}

.pz-result-item:last-child {
    border-bottom: none;
}

.pz-result-name {
    margin-bottom: 2px;
    font-weight: 700;
}

.pz-result-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.pz-contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* „Keine Ergebnisse" – freundliche Sprechblasen-Fläche statt Warn-Gelb */
#pz-no-results {
    margin-top: 12px;
    padding: 16px 20px;
    background: var(--pz-info);
    color: var(--pz-text);
    border-radius: var(--pz-radius);
    border: 1px solid var(--pz-border);
    font-family: var(--pz-font);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pz-dir-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--pz-sand);
    color: var(--pz-text);
    text-decoration: none;
    border-radius: var(--pz-radius-pill);
    font-family: var(--pz-font);
    font-size: 13px;
}

.pz-dir-link:hover {
    background: var(--pz-green-hover);
    color: var(--pz-inverse);
}
