/* =====================================================================
   Tomilla.hu – přestylování výběru Magyar Posta (PBH PickMapp widget)
   Vychází z nejkawa.pl (pickmapp-nejkawa-v2.css), liší se texty, piny a odznakem Árukereső.
   Dopravy: 123 „Csomagautomata" = dopravce PBH 150 (automaty + PostaPonty),
            120 „PostaPont" = dopravce PBH 151 (pošty).
   Widget kreslí do DOM stránky (ne iframe), proto stačí CSS.
   Vše je zavřené pod #c-wt-pbh-shipping-wrapper, zbytek webu to neovlivní.
   ===================================================================== */

#c-wt-pbh-shipping-wrapper {
    --nk-brown: #876C43;
    --nk-brown-dark: #6E5734;
    --nk-beige: #E5D5BB;
    --nk-beige-soft: #F5EFE6;
    --nk-ink: #1B1B1B;
    --nk-text: #4A4A4A;
    --nk-muted: #8A8A8A;
    --nk-line: #ECECEC;
    --nk-field: #F2F2F2;
    --nk-radius: 12px;
    --mp-green: #10582C; /* tmavě zelená Magyar Posty (z balónku PBH) */
    position: relative;
    padding: 22px 24px 24px;
    background: #fff;
    font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
    color: var(--nk-ink);
    box-sizing: border-box;
}
#c-wt-pbh-shipping-wrapper *,
#c-wt-pbh-shipping-wrapper *::before,
#c-wt-pbh-shipping-wrapper *::after { box-sizing: border-box; }

/* nadpis modálu – stejný styl jako „Szállítási mód kiválasztása" v pokladně */
#c-wt-pbh-shipping-wrapper::before {
    content: "Átvételi pont kiválasztása";
    display: block;
    padding: 0 56px 18px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px; /* celé px: mapa pod nadpisem nesmí stát na zlomku pixelu, jinak jsou mezi dlaždicemi vidět švy */
    color: var(--nk-ink);
}
/* nadpis podle dopravce v modálu, ne podle názvu dopravy v pokladně (ten neodpovídá obsahu) */
#c-wt-pbh-shipping-wrapper:has(.courierFilter[data-courier="150"])::before { content: "Csomagautomata vagy PostaPont kiválasztása"; }
#c-wt-pbh-shipping-wrapper:has(.courierFilter[data-courier="151"])::before { content: "Posta kiválasztása"; }

/* zavírací křížek Shoptetu – do rohu nad mapu, ne přes ni */
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxContent,
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxLoadedContent {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose {
    top: 16px !important;
    right: 18px !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F2F2F2 !important;
    transition: background-color .15s;
}
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose:hover { background-color: #E5D5BB !important; }

/* odznak Árukereső (vlevo dole, z-index max) leží nad modálem */
body:has(#colorbox[style*="block"] #c-wt-pbh-shipping-wrapper) #ak-widget { display: none !important; }

/* ---------- rozložení: seznam vlevo, mapa vpravo ---------- */
#c-wt-pbh-shipping-wrapper #pickMapp {
    display: flex;
    gap: 20px;
    width: 100% !important;
    height: min(600px, calc(100vh - 190px)) !important;
    overflow: visible;
    font-family: inherit;
}
#c-wt-pbh-shipping-wrapper #pickMapp * { font-family: inherit; }

#c-wt-pbh-shipping-wrapper #mapMenuPbh {
    flex: 0 0 360px;
    width: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    float: none;
    font-size: 14px;
    background: transparent;
}
#c-wt-pbh-shipping-wrapper #mapMenuPbh > .clearPbh { display: none; }

#c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper {
    flex: 1 1 auto;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    float: none;
    border-radius: var(--nk-radius);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--nk-line);
}
#c-wt-pbh-shipping-wrapper #leafletMapPbh { height: 100% !important; width: 100%; }
#c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper:not(:has(#leafletMapPbh)) { display: none; }

/* ---------- vyhledávání ---------- */
#c-wt-pbh-shipping-wrapper #autocomplete-wrapper { flex: none; margin-bottom: 14px; }
#c-wt-pbh-shipping-wrapper #autocomplete-wrapper::before {
    content: "Adja meg a címet, irányítószámot vagy települést";
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: var(--nk-text);
}
#c-wt-pbh-shipping-wrapper #searchPbh {
    display: block;
    float: none;
    width: 100%;
    height: 48px;
    border: 1px solid #DCDCDC;
    border-radius: 8px;
    background-color: var(--nk-field);
    color: var(--nk-ink);
    font-size: 16px;
    color-scheme: light;
    --gmp-mat-color-primary: #876C43;
}
#c-wt-pbh-shipping-wrapper #searchPbh:focus-within {
    border-color: var(--nk-brown);
    box-shadow: 0 0 0 3px rgba(135, 108, 67, .15);
}

/* jeden dopravce = pás s filtrem, šipkami a štítkem nemá co filtrovat */
#c-wt-pbh-shipping-wrapper #menuCouriersPbhWrap { display: none; }

/* ---------- seznam výdejních míst ---------- */
#c-wt-pbh-shipping-wrapper #menuItemsPbh {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0 -6px 0 0;
    padding: 0 6px 0 0;
    top: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D6D6D6 transparent;
}
#c-wt-pbh-shipping-wrapper #menuItemsPbh::-webkit-scrollbar { width: 6px; }
#c-wt-pbh-shipping-wrapper #menuItemsPbh::-webkit-scrollbar-thumb { background: #D6D6D6; border-radius: 3px; }

#c-wt-pbh-shipping-wrapper .menuItemPbh {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin: 0 0 6px;
    padding: 12px;
    border: 1px solid var(--nk-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, background-color .15s;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh:hover { background: #FAF8F4; border-color: var(--nk-beige); }
#c-wt-pbh-shipping-wrapper #menuItemsPbh .menuItemPbh.active {
    background: var(--nk-beige-soft);
    border-color: var(--nk-brown);
}
#c-wt-pbh-shipping-wrapper .menuItemPbh > .clearPbh,
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopType,
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopPbhDeliveryPriceList { display: none; }

/* obří balónek → malá zelená dlaždice s poštovním rohem Magyar Posty (stejný motiv jako špendlík) */
#c-wt-pbh-shipping-wrapper .parcelshopIconPbh {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 10px;
    object-fit: none;
    object-position: -9999px -9999px;
    background: var(--mp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='1' stroke-linejoin='round' transform='translate(20 20.5) scale(0.4448) translate(-93.15 -14.05)'%3E%3Cpath d='M76.79 0C76.93 0 77.08 0.06 77.14 0.11C77.20 0.17 77.58 0.53 77.68 0.60C77.78 0.67 77.87 0.76 78.08 0.78C78.29 0.79 78.92 0.73 79.09 0.73C79.26 0.73 79.42 0.77 79.51 0.84C79.61 0.92 80.02 1.31 80.11 1.39C80.19 1.48 80.28 1.63 80.05 1.68C79.82 1.72 79.43 1.77 79.29 1.81C79.15 1.85 79.12 1.94 79.20 2.04C79.33 2.20 79.68 2.62 79.80 2.78C79.91 2.94 79.95 3.06 79.73 3.13C79.53 3.20 78.95 3.37 78.75 3.42C78.56 3.48 78.39 3.50 78.26 3.34C78.18 3.25 77.67 2.63 77.59 2.52C77.51 2.41 77.32 2.34 77.12 2.38C76.92 2.43 76.32 2.63 76.15 2.68C75.96 2.74 75.84 2.70 75.72 2.62C75.62 2.55 75.20 1.99 75.11 1.77C75.00 1.52 75.09 1.42 75.24 1.36C75.35 1.32 75.95 1.13 76.13 1.11C76.26 1.10 76.24 0.98 76.15 0.90C76.05 0.81 75.83 0.56 75.71 0.45C75.62 0.37 75.61 0.17 75.84 0.11C76.06 0.06 76.60 0 76.79 0ZM80.77 7.82C80.97 7.73 81.58 7.67 81.79 7.68C82.07 7.70 82.24 7.78 82.37 8.02C82.79 8.84 83.31 10.34 83.53 11.73C83.80 13.44 83.94 14.64 83.89 16.41C83.88 16.67 83.66 16.93 83.34 16.95C83.02 16.97 82.39 16.95 82.11 16.88C81.92 16.84 81.68 16.64 81.68 16.32C81.68 15.25 81.74 13.43 81.55 12.27C81.36 11.05 81.16 9.73 80.63 8.34C80.54 8.10 80.62 7.89 80.77 7.82'/%3E%3Cpath d='M71.96 14.82C71.79 14.68 71.71 14.45 71.74 14.17C71.98 11.10 73.64 8.53 75.00 7.16C76.92 5.24 79.66 3.88 82.59 3.88C85.52 3.88 88.18 5.14 90.10 7.06C92.01 8.98 93.41 11.99 93.41 14.31C93.41 15.08 93.30 15.65 92.38 16.19C91.45 16.74 89.60 17.82 86.15 18.14C88.17 17.24 89.39 16.31 90.04 15.54C90.69 14.78 90.59 14.26 90.48 13.78C90.36 13.30 90.14 10.82 87.81 8.49C85.84 6.51 83.66 6.26 82.22 6.23C80.21 6.19 78.02 7.02 76.30 8.74C74.03 11.03 73.31 13.50 73.09 15.08C73.03 15.47 72.86 15.44 72.67 15.36C72.47 15.27 71.96 14.82 71.96 14.82Z'/%3E%3Cpath d='M115.83 18.20C114.50 17.21 113.26 15.79 111.95 14.40C107.12 9.30 104.57 3.84 106.22 2.27C107.87 0.70 113.13 3.57 117.96 8.68C122.79 13.79 125.71 18.94 124.06 20.51C123.70 20.85 123.14 21.07 122.40 21.19C116.78 22.13 110.58 24.91 105.85 28.12C110.43 26.02 116.94 23.73 124.05 23.80C125.27 23.81 126.53 23.43 127.18 22.77C129.63 20.32 126.32 13.67 120.18 7.50C114.03 1.34 107.01 -1.61 104.50 0.90C103.93 1.47 103.61 2.27 103.61 3.23C103.61 3.66 103.57 4.24 103.57 4.59C103.57 12.11 96.63 24.05 82.90 24.05C76.13 24.05 71.95 21.12 69.35 18.57C66.92 16.19 65.91 13.74 65.17 11.63C64.93 10.96 64.78 9.90 64.51 9.45C64.29 9.10 64.03 8.79 63.31 8.79C62.38 8.79 61.34 9.27 60.19 10.08C59.05 10.89 58.26 12.01 58.26 12.67C58.26 12.91 58.40 13.12 58.60 13.17C58.68 13.19 58.76 13.18 58.72 13.09C58.67 13.00 58.57 12.73 58.93 12.24C59.20 11.86 60.05 11.07 61.74 10.87C62.48 10.79 62.89 10.85 63.35 12.07C63.76 13.15 64.66 16.52 67.59 20.29C70.65 24.23 75.90 28.00 82.83 28.00C94.70 28.00 101.14 19.57 104.00 10.96C104.26 10.17 104.69 8.60 104.70 7.96C104.71 7.87 104.72 7.88 104.76 7.95C104.80 8.02 104.90 8.18 104.94 8.27C106.8 12.24 111.58 16.91 115.83 18.20Z'/%3E%3C/g%3E%3C/svg%3E") center / 40px no-repeat;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh.active .parcelshopIconPbh {
    background-color: var(--nk-brown);
}

#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopPbh {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhName {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nk-ink);
    overflow-wrap: anywhere;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhAddress {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--nk-text);
}
#c-wt-pbh-shipping-wrapper .parcelshopDistanceList {
    float: none;
    width: auto;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nk-brown);
}

/* rozbalená položka: „více informací" + hlavní tlačítko */
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail[style*="block"] { display: flex !important; }
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail {
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}
#c-wt-pbh-shipping-wrapper .parcelshopDetail > .clearPbh { display: none; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo { float: none; margin: 0; flex: none; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo span {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--nk-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo span:hover { color: var(--nk-brown-dark); }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo img { display: none; }

#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail {
    display: block;
    flex: 1 1 auto;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--nk-brown) !important;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: .2px;
    text-align: center;
    transition: background-color .15s;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp::first-letter,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail::first-letter { text-transform: uppercase; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp:hover,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail:hover { background: var(--nk-brown-dark) !important; border: 0; }

/* ---------- detail výdejního místa ---------- */
#c-wt-pbh-shipping-wrapper #menudetailPbh {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    position: relative;
    padding: 16px;
    border: 1px solid var(--nk-line);
    border-radius: var(--nk-radius);
    background: #fff;
    overflow-y: auto;
    font-size: 14px;
    color: var(--nk-text);
    scrollbar-width: thin;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh[style*="block"] {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 12px;
    align-items: start;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh > .clearPbh { display: none; }
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopDetailFull,
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopPbhPickUpDetail { grid-column: 1 / -1; }
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopIconPbh {
    background-color: var(--nk-brown);
}
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbh { float: none; width: auto; padding-right: 32px; align-self: center; }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhName { font-size: 17px; }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhDeliveryPrice,
#c-wt-pbh-shipping-wrapper #menudetailPbh .icons { display: none; }
#c-wt-pbh-shipping-wrapper .parcelshopClose {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    float: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nk-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1B1B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 16px no-repeat;
    cursor: pointer;
}
#c-wt-pbh-shipping-wrapper .parcelshopClose:hover { background-color: var(--nk-beige); }
#c-wt-pbh-shipping-wrapper .parcelshopDetailFull { margin: 14px 0 0; font-size: 14px; color: var(--nk-text); }
#c-wt-pbh-shipping-wrapper .parcelshopNavigate {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nk-line);
}
#c-wt-pbh-shipping-wrapper .parcelshopNavigate a {
    font-weight: 600;
    color: var(--nk-brown);
    text-underline-offset: 3px;
}
#c-wt-pbh-shipping-wrapper .parcelshopNavigate a:hover { color: var(--nk-brown-dark); }
#c-wt-pbh-shipping-wrapper .parcelshopDistanceDetail { float: none; font-weight: 600; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh .opening_hours { margin-bottom: 6px; font-weight: 700; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh table { width: 100%; font-size: 14px !important; border-collapse: collapse; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td { padding: 5px 0; border-bottom: 1px solid #F3F3F3; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td:first-child { width: auto !important; text-transform: capitalize; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td:last-child { text-align: right; font-weight: 600; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhPickUpDetail {
    position: sticky;
    bottom: 0;
    align-self: end;
    /* bílý pruh nad lepivým tlačítkem, ať pod ním neprosvítá tabulka; bez rozmazání – Safari kreslí rozmazaný bílý stín černě */
    box-shadow: 0 -12px 0 #fff, 0 16px 0 #fff;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopDetailFull { margin-bottom: 16px; }

/* ---------- mapa ---------- */
/* podklad mapy zůstává barevný OSM (Dominik 2. 10.: „ne šedá"), pozadí = barva pevniny v OSM */
#c-wt-pbh-shipping-wrapper .leaflet-container { background: #F2EFE9; font-family: inherit; }

/* špendlíky: štíhlý zelený pin s poštovním rohem (logo z posta.hu), hrot přesně na místě */
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon {
    width: 34px !important;
    height: 44px !important;
    margin-left: -17px !important;
    margin-top: -43px !important;
    object-fit: none;
    object-position: -9999px -9999px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 42.5c-.6 0-1.2-.3-1.5-.8C10.6 34.9 2 25.6 2 16.5a15 15 0 0 1 30 0c0 9.1-8.6 18.4-13.5 25.2-.3.5-.9.8-1.5.8z' fill='%2310582C' stroke='%23fff' stroke-width='2'/%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round' transform='translate(17 16.8) scale(0.3443) translate(-93.15 -14.05)'%3E%3Cpath d='M76.79 0C76.93 0 77.08 0.06 77.14 0.11C77.20 0.17 77.58 0.53 77.68 0.60C77.78 0.67 77.87 0.76 78.08 0.78C78.29 0.79 78.92 0.73 79.09 0.73C79.26 0.73 79.42 0.77 79.51 0.84C79.61 0.92 80.02 1.31 80.11 1.39C80.19 1.48 80.28 1.63 80.05 1.68C79.82 1.72 79.43 1.77 79.29 1.81C79.15 1.85 79.12 1.94 79.20 2.04C79.33 2.20 79.68 2.62 79.80 2.78C79.91 2.94 79.95 3.06 79.73 3.13C79.53 3.20 78.95 3.37 78.75 3.42C78.56 3.48 78.39 3.50 78.26 3.34C78.18 3.25 77.67 2.63 77.59 2.52C77.51 2.41 77.32 2.34 77.12 2.38C76.92 2.43 76.32 2.63 76.15 2.68C75.96 2.74 75.84 2.70 75.72 2.62C75.62 2.55 75.20 1.99 75.11 1.77C75.00 1.52 75.09 1.42 75.24 1.36C75.35 1.32 75.95 1.13 76.13 1.11C76.26 1.10 76.24 0.98 76.15 0.90C76.05 0.81 75.83 0.56 75.71 0.45C75.62 0.37 75.61 0.17 75.84 0.11C76.06 0.06 76.60 0 76.79 0ZM80.77 7.82C80.97 7.73 81.58 7.67 81.79 7.68C82.07 7.70 82.24 7.78 82.37 8.02C82.79 8.84 83.31 10.34 83.53 11.73C83.80 13.44 83.94 14.64 83.89 16.41C83.88 16.67 83.66 16.93 83.34 16.95C83.02 16.97 82.39 16.95 82.11 16.88C81.92 16.84 81.68 16.64 81.68 16.32C81.68 15.25 81.74 13.43 81.55 12.27C81.36 11.05 81.16 9.73 80.63 8.34C80.54 8.10 80.62 7.89 80.77 7.82'/%3E%3Cpath d='M71.96 14.82C71.79 14.68 71.71 14.45 71.74 14.17C71.98 11.10 73.64 8.53 75.00 7.16C76.92 5.24 79.66 3.88 82.59 3.88C85.52 3.88 88.18 5.14 90.10 7.06C92.01 8.98 93.41 11.99 93.41 14.31C93.41 15.08 93.30 15.65 92.38 16.19C91.45 16.74 89.60 17.82 86.15 18.14C88.17 17.24 89.39 16.31 90.04 15.54C90.69 14.78 90.59 14.26 90.48 13.78C90.36 13.30 90.14 10.82 87.81 8.49C85.84 6.51 83.66 6.26 82.22 6.23C80.21 6.19 78.02 7.02 76.30 8.74C74.03 11.03 73.31 13.50 73.09 15.08C73.03 15.47 72.86 15.44 72.67 15.36C72.47 15.27 71.96 14.82 71.96 14.82Z'/%3E%3Cpath d='M115.83 18.20C114.50 17.21 113.26 15.79 111.95 14.40C107.12 9.30 104.57 3.84 106.22 2.27C107.87 0.70 113.13 3.57 117.96 8.68C122.79 13.79 125.71 18.94 124.06 20.51C123.70 20.85 123.14 21.07 122.40 21.19C116.78 22.13 110.58 24.91 105.85 28.12C110.43 26.02 116.94 23.73 124.05 23.80C125.27 23.81 126.53 23.43 127.18 22.77C129.63 20.32 126.32 13.67 120.18 7.50C114.03 1.34 107.01 -1.61 104.50 0.90C103.93 1.47 103.61 2.27 103.61 3.23C103.61 3.66 103.57 4.24 103.57 4.59C103.57 12.11 96.63 24.05 82.90 24.05C76.13 24.05 71.95 21.12 69.35 18.57C66.92 16.19 65.91 13.74 65.17 11.63C64.93 10.96 64.78 9.90 64.51 9.45C64.29 9.10 64.03 8.79 63.31 8.79C62.38 8.79 61.34 9.27 60.19 10.08C59.05 10.89 58.26 12.01 58.26 12.67C58.26 12.91 58.40 13.12 58.60 13.17C58.68 13.19 58.76 13.18 58.72 13.09C58.67 13.00 58.57 12.73 58.93 12.24C59.20 11.86 60.05 11.07 61.74 10.87C62.48 10.79 62.89 10.85 63.35 12.07C63.76 13.15 64.66 16.52 67.59 20.29C70.65 24.23 75.90 28.00 82.83 28.00C94.70 28.00 101.14 19.57 104.00 10.96C104.26 10.17 104.69 8.60 104.70 7.96C104.71 7.87 104.72 7.88 104.76 7.95C104.80 8.02 104.90 8.18 104.94 8.27C106.8 12.24 111.58 16.91 115.83 18.20Z'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
}
/* vybraný bod: větší a v hnědé webu */
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon[src*="map_widget_filter"],
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon.bouncing {
    width: 42px !important;
    height: 54px !important;
    margin-left: -21px !important;
    margin-top: -53px !important;
    z-index: 1000 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 42.5c-.6 0-1.2-.3-1.5-.8C10.6 34.9 2 25.6 2 16.5a15 15 0 0 1 30 0c0 9.1-8.6 18.4-13.5 25.2-.3.5-.9.8-1.5.8z' fill='%23876C43' stroke='%23fff' stroke-width='2'/%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round' transform='translate(17 16.8) scale(0.3443) translate(-93.15 -14.05)'%3E%3Cpath d='M76.79 0C76.93 0 77.08 0.06 77.14 0.11C77.20 0.17 77.58 0.53 77.68 0.60C77.78 0.67 77.87 0.76 78.08 0.78C78.29 0.79 78.92 0.73 79.09 0.73C79.26 0.73 79.42 0.77 79.51 0.84C79.61 0.92 80.02 1.31 80.11 1.39C80.19 1.48 80.28 1.63 80.05 1.68C79.82 1.72 79.43 1.77 79.29 1.81C79.15 1.85 79.12 1.94 79.20 2.04C79.33 2.20 79.68 2.62 79.80 2.78C79.91 2.94 79.95 3.06 79.73 3.13C79.53 3.20 78.95 3.37 78.75 3.42C78.56 3.48 78.39 3.50 78.26 3.34C78.18 3.25 77.67 2.63 77.59 2.52C77.51 2.41 77.32 2.34 77.12 2.38C76.92 2.43 76.32 2.63 76.15 2.68C75.96 2.74 75.84 2.70 75.72 2.62C75.62 2.55 75.20 1.99 75.11 1.77C75.00 1.52 75.09 1.42 75.24 1.36C75.35 1.32 75.95 1.13 76.13 1.11C76.26 1.10 76.24 0.98 76.15 0.90C76.05 0.81 75.83 0.56 75.71 0.45C75.62 0.37 75.61 0.17 75.84 0.11C76.06 0.06 76.60 0 76.79 0ZM80.77 7.82C80.97 7.73 81.58 7.67 81.79 7.68C82.07 7.70 82.24 7.78 82.37 8.02C82.79 8.84 83.31 10.34 83.53 11.73C83.80 13.44 83.94 14.64 83.89 16.41C83.88 16.67 83.66 16.93 83.34 16.95C83.02 16.97 82.39 16.95 82.11 16.88C81.92 16.84 81.68 16.64 81.68 16.32C81.68 15.25 81.74 13.43 81.55 12.27C81.36 11.05 81.16 9.73 80.63 8.34C80.54 8.10 80.62 7.89 80.77 7.82'/%3E%3Cpath d='M71.96 14.82C71.79 14.68 71.71 14.45 71.74 14.17C71.98 11.10 73.64 8.53 75.00 7.16C76.92 5.24 79.66 3.88 82.59 3.88C85.52 3.88 88.18 5.14 90.10 7.06C92.01 8.98 93.41 11.99 93.41 14.31C93.41 15.08 93.30 15.65 92.38 16.19C91.45 16.74 89.60 17.82 86.15 18.14C88.17 17.24 89.39 16.31 90.04 15.54C90.69 14.78 90.59 14.26 90.48 13.78C90.36 13.30 90.14 10.82 87.81 8.49C85.84 6.51 83.66 6.26 82.22 6.23C80.21 6.19 78.02 7.02 76.30 8.74C74.03 11.03 73.31 13.50 73.09 15.08C73.03 15.47 72.86 15.44 72.67 15.36C72.47 15.27 71.96 14.82 71.96 14.82Z'/%3E%3Cpath d='M115.83 18.20C114.50 17.21 113.26 15.79 111.95 14.40C107.12 9.30 104.57 3.84 106.22 2.27C107.87 0.70 113.13 3.57 117.96 8.68C122.79 13.79 125.71 18.94 124.06 20.51C123.70 20.85 123.14 21.07 122.40 21.19C116.78 22.13 110.58 24.91 105.85 28.12C110.43 26.02 116.94 23.73 124.05 23.80C125.27 23.81 126.53 23.43 127.18 22.77C129.63 20.32 126.32 13.67 120.18 7.50C114.03 1.34 107.01 -1.61 104.50 0.90C103.93 1.47 103.61 2.27 103.61 3.23C103.61 3.66 103.57 4.24 103.57 4.59C103.57 12.11 96.63 24.05 82.90 24.05C76.13 24.05 71.95 21.12 69.35 18.57C66.92 16.19 65.91 13.74 65.17 11.63C64.93 10.96 64.78 9.90 64.51 9.45C64.29 9.10 64.03 8.79 63.31 8.79C62.38 8.79 61.34 9.27 60.19 10.08C59.05 10.89 58.26 12.01 58.26 12.67C58.26 12.91 58.40 13.12 58.60 13.17C58.68 13.19 58.76 13.18 58.72 13.09C58.67 13.00 58.57 12.73 58.93 12.24C59.20 11.86 60.05 11.07 61.74 10.87C62.48 10.79 62.89 10.85 63.35 12.07C63.76 13.15 64.66 16.52 67.59 20.29C70.65 24.23 75.90 28.00 82.83 28.00C94.70 28.00 101.14 19.57 104.00 10.96C104.26 10.17 104.69 8.60 104.70 7.96C104.71 7.87 104.72 7.88 104.76 7.95C104.80 8.02 104.90 8.18 104.94 8.27C106.8 12.24 111.58 16.91 115.83 18.20Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* shluky */
#c-wt-pbh-shipping-wrapper .marker-cluster,
#c-wt-pbh-shipping-wrapper .marker-cluster-small,
#c-wt-pbh-shipping-wrapper .marker-cluster-medium,
#c-wt-pbh-shipping-wrapper .marker-cluster-large { background-color: rgba(135, 108, 67, .22); }
#c-wt-pbh-shipping-wrapper .marker-cluster div {
    background-color: var(--nk-brown);
    color: #fff;
    font: 700 13px/30px "Source Sans 3", Arial, sans-serif;
}
#c-wt-pbh-shipping-wrapper .marker-cluster span { line-height: 30px; }

/* ovládání mapy */
#c-wt-pbh-shipping-wrapper .leaflet-touch .leaflet-bar,
#c-wt-pbh-shipping-wrapper .leaflet-bar {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
#c-wt-pbh-shipping-wrapper .leaflet-bar a {
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-bottom-color: var(--nk-line);
    color: var(--nk-ink);
    font-size: 20px;
    font-weight: 400;
}
#c-wt-pbh-shipping-wrapper .leaflet-bar a:hover { background: var(--nk-beige-soft); }
#c-wt-pbh-shipping-wrapper .leaflet-control-attribution {
    padding: 2px 8px;
    border-radius: 8px 0 0 0;
    background: rgba(255, 255, 255, .8) !important;
    font-size: 10px;
    color: var(--nk-muted);
}
#c-wt-pbh-shipping-wrapper .leaflet-control-attribution a { color: var(--nk-text); }

/* „nic poblíž nenalezeno" + načítání */
#c-wt-pbh-shipping-wrapper .menuPbhLoader { border-color: var(--nk-brown) #0000; border-width: 5px; width: 40px; margin: 40px auto; }

/* ---------- mobil: hledání → mapa → seznam ---------- */
@media (max-width: 768px) {
    /* chat SupportBox má z-index nad modálem a na telefonu zakrývá seznam */
    body:has(#colorbox[style*="block"] #c-wt-pbh-shipping-wrapper) #supportBox-iframe { display: none !important; }
    #c-wt-pbh-shipping-wrapper { padding: 16px 16px 0; height: 100%; display: flex; flex-direction: column; }
    #c-wt-pbh-shipping-wrapper::before { font-size: 19px; line-height: 24px; padding-bottom: 12px; flex: none; }
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose { top: 10px !important; right: 12px !important; }
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxContent,
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxLoadedContent { border-radius: 0; }

    #c-wt-pbh-shipping-wrapper #pickMapp {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        flex-direction: column;
        gap: 0;
    }
    #c-wt-pbh-shipping-wrapper #mapMenuPbh { display: contents; }
    #c-wt-pbh-shipping-wrapper #autocomplete-wrapper { order: 1; margin-bottom: 10px; }
    #c-wt-pbh-shipping-wrapper #autocomplete-wrapper::before { font-size: 12px; line-height: 16px; margin-bottom: 4px; }
    #c-wt-pbh-shipping-wrapper #searchPbh { height: 44px; }
    #c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper,
    #c-wt-pbh-shipping-wrapper #mapMobilePbh {
        order: 2;
        flex: none;
        height: 34vh !important;
        min-height: 200px;
        margin: 0 0 10px !important;
        border-radius: var(--nk-radius);
        overflow: hidden;
    }
    #c-wt-pbh-shipping-wrapper #mapMobilePbh:not(:has(#leafletMapPbh)) { display: none; }
    #c-wt-pbh-shipping-wrapper #filtertPbhWrap { order: 3; }
    #c-wt-pbh-shipping-wrapper #menuItemsPbh,
    #c-wt-pbh-shipping-wrapper #menudetailPbh { order: 4; margin: 0; padding-bottom: 16px; }
    #c-wt-pbh-shipping-wrapper #menuItemsPbh { margin-right: -6px; }
    #c-wt-pbh-shipping-wrapper #menudetailPbh { margin-bottom: 16px; padding-bottom: 16px; }
    #c-wt-pbh-shipping-wrapper .menuItemPbh { padding: 10px 12px; }
}
