/* Anjingku.com — map app, pins, place directory, vouchers.
   Category colours come from the logo palette: blue #2563EB · orange #FF7A2B · purple #7C3AED · pink #F2457D */

/* ===================== map app (/peta) ===================== */
body.page-map { overflow: hidden; }
body.page-map .site-footer { display: none; }
body.page-map main { height: calc(100dvh - var(--hdr)); }
.mapapp { display: grid; grid-template-columns: minmax(380px, 470px) 1fr; height: 100%; background: #fff; }
.mp-panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; position: relative; z-index: 2; }
.mp-filters { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.mp-search { display: grid; grid-template-columns: 1fr minmax(120px, 168px); gap: 8px; }
.mp-in { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1.5px solid transparent; border-radius: 999px; padding: 0 14px; height: 44px; color: var(--mut); transition: .15s; }
.mp-in:focus-within { border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px var(--p-50); }
.mp-in input, .mp-in select { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.mp-in select { cursor: pointer; appearance: none; text-overflow: ellipsis; }
.mp-in input::placeholder { color: #9A8DB0; font-weight: 500; }
.mp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.mp-chips::-webkit-scrollbar { display: none; }
.chip { --tc: var(--p); flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: .15s; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.chip:hover { border-color: var(--tc); }
.chip.on { background: var(--tc); border-color: var(--tc); color: #fff; }
.chip.on i { background: #fff; }
.chip[data-t="*"] i { display: none; }
.chip[data-t="*"].on { background: var(--ink); border-color: var(--ink); }
.mp-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.mp-select { display: flex; align-items: center; gap: 8px; color: var(--mut); font-weight: 600; }
.mp-select select { border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 12px; font-weight: 700; color: var(--ink); font-size: 13px; }
.mp-link { background: none; border: 0; color: var(--p); font-weight: 700; cursor: pointer; padding: 6px 4px; font-size: 13px; }
.mp-head { padding: 14px 16px 6px; }
.mp-head h2 { font-size: 1.15rem; margin: 0; }
.mp-head p { margin: 2px 0 0; font-size: 13px; }
.mp-list { flex: 1; overflow-y: auto; padding: 6px 16px 18px; display: grid; gap: 12px; align-content: start; overscroll-behavior: contain; }
.mp-foot { margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--mut); background: var(--soft); }
.mp-empty { text-align: center; padding: 36px 12px; }
.mp-empty-ico { font-size: 38px; }

/* result cards */
.mc { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mc:hover, .mc.is-on { border-color: var(--p); box-shadow: 0 6px 22px -12px rgba(38, 7, 63, .35); }
.mc.is-on { background: var(--p-50); }
.mc-img { position: relative; display: block; width: 112px; height: 112px; border-radius: 13px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.mc-img img { width: 100%; height: 100%; object-fit: cover; }
.mc-img .badge { position: absolute; left: 6px; top: 6px; font-size: 10.5px; padding: 3px 8px; }
.mc-emoji { font-size: 40px; }
.mc-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 30px; }
.mc-type { --tc: var(--p); font-size: 12px; font-weight: 800; color: var(--tc); }
.mc h3 { font-size: 1.02rem; margin: 0; display: flex; align-items: center; gap: 6px; line-height: 1.25; }
.mc h3 a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc h3 a:hover { color: var(--p); }
.mc .sex { width: 20px; height: 20px; font-size: 12px; flex-shrink: 0; }
.mc-sub { margin: 0; font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-price { margin: 2px 0 0; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.mc-price-sm { font-size: .88rem; color: var(--green); }
.mc-meta { margin: auto 0 0; font-size: 12.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-v { margin: 2px 0 0; font-size: 12.5px; font-weight: 800; color: var(--coral); }
.mc .heart { top: 8px; right: 8px; width: 34px; height: 34px; box-shadow: var(--sh); }
.mc.is-booked .mc-img img { filter: grayscale(.5); }
.mc .verified { margin-left: 2px; font-size: 12px; }

/* map side */
.mp-map { position: relative; min-height: 0; background: #E9E4F1; }
#mpMap { position: absolute; inset: 0; z-index: 1; font-family: var(--font); }
.mp-ctl { position: absolute; z-index: 500; }
.mp-ctl-top { top: 14px; left: 50%; transform: translateX(-50%); }
.mp-follow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; color: var(--ink); box-shadow: var(--sh); cursor: pointer; white-space: nowrap; }
.mp-follow input { accent-color: var(--p); width: 16px; height: 16px; }
.mp-redo { position: absolute; z-index: 500; top: 62px; left: 50%; transform: translateX(-50%); background: var(--p); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: var(--sh-lg); }
.mp-locate { position: absolute; z-index: 500; right: 12px; bottom: 120px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 13.5px; color: var(--ink); box-shadow: var(--sh); cursor: pointer; }
.mp-locate:hover { color: var(--p); }
.mp-loading { position: absolute; z-index: 500; left: 14px; top: 14px; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--mut); box-shadow: var(--sh); }
.mp-toggle { display: none; }
.mp-map .leaflet-control-zoom { border: 0; box-shadow: var(--sh); border-radius: 14px; overflow: hidden; }
.mp-map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); font-weight: 700; }
.leaflet-container a { color: var(--p); }
.leaflet-control-attribution { font-size: 10.5px; }

/* pins — price bubbles for dogs, round badges for services, numbered clusters */
.pin { background: none; border: 0; }
.pin > span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; }
.pin-dog > span { position: relative; margin-top: -7px; background: var(--p); color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(38, 7, 63, .35); transition: transform .12s, background .12s; }
.pin-dog > span::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: var(--p); border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg); transition: background .12s; }
.pin-dog.is-feat > span { background: var(--coral); }
.pin-dog.is-feat > span::after { background: var(--coral); }
.pin-dog.is-booked > span { background: #7E6F93; }
.pin-dog.is-booked > span::after { background: #7E6F93; }
.pin-place > span { --tc: var(--p); transform: translate(-50%, -50%); width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; background: #fff; border: 3px solid var(--tc); border-radius: 50%; box-shadow: 0 3px 10px rgba(38, 7, 63, .3); transition: transform .12s; }
.pin-place.is-feat > span { box-shadow: 0 0 0 4px rgba(255, 122, 43, .35), 0 3px 10px rgba(38, 7, 63, .3); }
.pin:hover, .pin.is-hover, .pin:focus-visible { z-index: 9999 !important; }
.pin-dog:hover > span, .pin-dog.is-hover > span { background: var(--ink); transform: translate(-50%, -100%) scale(1.12); }
.pin-dog:hover > span::after, .pin-dog.is-hover > span::after { background: var(--ink); }
.pin-place:hover > span, .pin-place.is-hover > span { transform: translate(-50%, -50%) scale(1.2); }
.pin-cluster { background: none; }
.pin-cluster > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, #7C3AED, #F2457D); border: 3px solid #fff; box-shadow: 0 3px 12px rgba(38, 7, 63, .4); }
.pin-cluster.big > span { background: linear-gradient(135deg, #2563EB, #7C3AED); font-size: 15px; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: none; }

/* popup */
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--sh-lg); }
.leaflet-popup-content { margin: 0; width: auto !important; min-width: 250px; font-family: var(--font); line-height: 1.4; }
.leaflet-popup-close-button { z-index: 3; top: 8px !important; right: 8px !important; width: 28px !important; height: 28px !important; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink) !important; font-size: 20px !important; line-height: 26px !important; padding: 0 !important; text-align: center; }
.pp-img { display: grid; place-items: center; height: 130px; background: var(--soft); overflow: hidden; font-size: 48px; }
.pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-b { padding: 12px 14px 14px; display: grid; gap: 3px; }
.pp-t { font-size: 1.02rem; color: var(--ink); }
.pp-t a { color: var(--ink); }
.pp-ver { color: var(--green); font-size: 13px; }
.pp-s, .pp-m { font-size: 13px; color: var(--mut); }
.pp-price { font-size: 1.1rem; color: var(--ink); }
.pp-v { font-size: 12.5px; font-weight: 800; color: var(--coral); }
.pp-a { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pp-a .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 13.5px; }

/* ===================== directory + place pages ===================== */
.plc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.plc { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; transition: .15s; }
.plc:hover { border-color: var(--p); box-shadow: var(--sh); }
.plc-img { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--soft); }
.plc-img img { width: 100%; height: 100%; object-fit: cover; }
.plc-emoji { font-size: 40px; }
.plc-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plc-type, .mc-type { --tc: var(--p); font-size: 12px; font-weight: 800; color: var(--tc); }
.plc h3 { font-size: 1.02rem; margin: 0; display: flex; align-items: center; gap: 4px; }
.plc h3 a { color: var(--ink); }
.plc-tag { margin: 0; font-size: 13px; color: var(--mut); }
.plc-meta { margin: 0; font-size: 12.5px; color: var(--mut); display: flex; gap: 4px; align-items: center; }
.plc-price { margin: 0; font-size: 13px; font-weight: 800; color: var(--green); }
.plc-v { font-size: 12.5px; font-weight: 800; color: var(--coral); }
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.type-tabs .chip { text-decoration: none; }
.type-tabs a.chip.on { color: #fff; }

.pd { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
.pd-cover { border-radius: 24px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 84px; }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-type { --tc: var(--p); display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 12%, #fff); color: var(--tc); }
.pd h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 6px; }
.pd-info { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.pd-info li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.pd-info .ico { color: var(--p); margin-top: 3px; }
.pd-desc { white-space: pre-line; }
.pd-side { position: sticky; top: calc(var(--hdr) + 18px); display: grid; gap: 16px; }
.pd-card { border: 1.5px solid var(--line); border-radius: 22px; padding: 18px; background: #fff; }
.pd-card h3 { margin-bottom: 10px; }
.pd-actions { display: grid; gap: 10px; }
#pdMap { height: 240px; border-radius: 16px; z-index: 1; }
.vc { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border: 2px dashed var(--p-300); border-radius: 18px; padding: 14px 16px; background: linear-gradient(135deg, #FFF7F2, #F7F2FD); position: relative; }
.vc + .vc { margin-top: 12px; }
.vc-off { font-weight: 800; font-size: 1.35rem; line-height: 1.05; color: var(--coral); text-align: center; min-width: 78px; }
.vc-off small { display: block; font-size: 11px; color: var(--mut); font-weight: 700; margin-top: 3px; }
.vc h4 { margin: 0 0 2px; font-size: 1rem; }
.vc p { margin: 0; font-size: 12.5px; color: var(--mut); }
.vc-claim { margin-top: 8px; }
.vc-code { display: none; align-items: center; gap: 8px; margin-top: 8px; }
.vc-code code { font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 12px; color: var(--ink); }
.vc.open .vc-code { display: flex; }
.vc.open .vc-claim { display: none; }
.vc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.vc-place { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; display: block; }

/* pet friendly */
.pf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 34px; }
.pf-cat { --tc: var(--p); display: grid; gap: 2px; padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--tc) 9%, #fff); border: 1.5px solid color-mix(in srgb, var(--tc) 28%, #fff); color: var(--ink); transition: .15s; }
.pf-cat:hover { transform: translateY(-2px); border-color: var(--tc); color: var(--ink); }
.pf-emoji { font-size: 30px; line-height: 1.2; }
.pf-cat b { font-size: 1.02rem; }
.pf-cat small { color: var(--mut); font-weight: 600; }
.pf-sec { margin-top: 38px; }
.pf-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-cities a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; background: #fff; }
.pf-cities a span { background: var(--p-50); color: var(--p); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.pf-cities a:hover { border-color: var(--p); }
.pf-box { margin: 20px 0; padding: 16px 18px; border-radius: 18px; background: var(--green-50); border: 1.5px solid #BFE6D4; }
.pf-box h2 { font-size: 1.1rem; margin-bottom: 6px; color: #0B5E40; }
.pf-box p { margin-bottom: 8px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0; padding: 0; }
.pf-tags li { display: inline-flex; gap: 5px; align-items: center; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: #0B5E40; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: var(--text); }

/* submit form */
.sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
#pickMap { height: 340px; border-radius: 18px; border: 1.5px solid var(--line); z-index: 1; }
.pick-hint { font-size: 13px; color: var(--mut); margin: 8px 0 0; }
.pick-ok { color: var(--green); font-weight: 700; }
.pick-pin { background: none; border: 0; }
.pick-pin > span { display: block; transform: translate(-50%, -100%); font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }

/* home promo */
.mapstrip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); }
.mapstrip-t { padding: 34px 36px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.mapstrip-t h2 { color: #fff; margin: 0; }
.mapstrip-t p { margin: 0; color: #CFC3E0; max-width: 460px; }
.mapstrip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.mapstrip-chips a { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .1); color: #fff; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13.5px; border: 1.5px solid rgba(255, 255, 255, .18); }
.mapstrip-chips a:hover { background: #fff; color: var(--ink); }
.mapstrip-art { position: relative; min-height: 240px; background: #E9E4F1; overflow: hidden; }
.mapstrip-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===================== responsive ===================== */
@media (max-width: 1024px) {
  .pd { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .sub-grid { grid-template-columns: 1fr; }
  .mapstrip { grid-template-columns: 1fr; }
  .mapstrip-art { min-height: 180px; order: -1; }
}
@media (max-width: 860px) {
  body.page-map main { height: calc(100dvh - var(--hdr) - 62px - env(safe-area-inset-bottom)); }
  .mapapp { display: block; position: relative; }
  .mp-panel, .mp-map { position: absolute; inset: 0; border: 0; }
  .mapapp[data-view="list"] .mp-map { visibility: hidden; }
  .mapapp[data-view="map"] .mp-panel { visibility: hidden; }
  .mp-toggle { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 600; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 14.5px; box-shadow: var(--sh-lg); cursor: pointer; }
  .mp-locate { bottom: 76px; }
  .mp-locate span { display: none; }
  .mp-locate { padding: 11px; }
  .mp-list { padding-bottom: 84px; }
  .mc { grid-template-columns: 96px 1fr; }
  .mc-img { width: 96px; height: 96px; }
  .mp-ctl-top { top: 10px; }
}
@media (max-width: 520px) {
  .mp-search { grid-template-columns: 1fr; }
  .vc-grid { grid-template-columns: 1fr; }
  .plc { grid-template-columns: 88px 1fr; }
  .plc-img { width: 88px; height: 88px; }
  .mapstrip-t { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pin > span, .chip, .mc { transition: none; }
}
