/* Additions to the old site's CSS for things the new site does differently. */

/* Filters are native selects laid over the old buttons: the button stays as it was, the list opens natively. */
.cc-select { position: relative; cursor: pointer; margin: 0; }
.cc-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; font-size: 16px; }
.cc-select .title { pointer-events: none; }

/* Leaflet markers in the site colours (no image files needed) */

/* footer of the old site */
.cc-footer { display: block !important; background: #391266; color: #fff; text-align: center; padding: 22px 16px; font-family: 'Montserrat-Regular', Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.cc-footer p { margin: 0; }
.cc-footer a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cc-footer a:hover { color: #ff8500; } }
.cc-footer p { margin: 0 0 4px; }
.cc-footer .cc-footer-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 12px; }
.cc-footer .cc-footer-l a { color: #ff8500; font-family: 'Montserrat-Bold', Arial, sans-serif; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.cc-footer .cc-footer-c { font-size: 15px; }
.cc-footer .cc-footer-n, .cc-footer p:last-child { font-size: 13px; opacity: .85; }

/* home: SEO text and «Часті питання» */
.cc-seo { background: #fff; padding: 50px 0 40px; }
.cc-seo .container-fluid { max-width: 900px; }
.cc-seo .main-h2 { margin-bottom: 24px; }
.cc-seo-text { margin-bottom: 40px; font-size: 15px; line-height: 1.7; color: #333; }
.cc-faq details { border-bottom: 1px solid #e3d8b4; padding: 14px 0; }
.cc-faq summary { cursor: pointer; font-family: 'Montserrat-Bold', Arial, sans-serif; color: #883faa; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 22px; color: #c4b870; }
.cc-faq details[open] summary::after { content: '−'; }
.cc-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #333; }

/* «Заклади» and «Події»: a plain list first, the map on the right only after «Дивитись на карті» (map-nav.cc-nomap ↔ cc-withmap) */
.cc-nomap .map-search, .cc-nomap ~ .map-switcher { display: none !important; }
.cc-nomap .search-cols { position: relative; width: auto; max-width: 1240px; margin: 60px auto 0; }
.cc-nomap .map-nav-col { position: static; width: auto; max-width: 1240px; margin: 0 auto; overflow: visible; padding: 20px 20px 50px; }
.cc-nomap #event-list-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cc-nomap #event-list-container > li { width: auto !important; float: none !important; margin: 0 !important; }
.cc-nomap #event-list-container > li.search-section { grid-column: 1 / -1; }
.cc-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cc-listbar .results p { margin: 0; }
.cc-map-toggle { display: inline-flex; align-items: center; gap: 8px; background: #883faa; color: #fff; border: 0; padding: 10px 18px; font-family: 'Montserrat-Regular', Arial, sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; cursor: pointer; }
.cc-map-toggle:hover { background: #6f2f8d; }
.cc-map-toggle::before { content: ''; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: #c4b870; transform: rotate(-45deg); }
.cc-withmap .cc-map-toggle { background: #fff; color: #883faa; box-shadow: inset 0 0 0 1px #883faa; }
/* places: the category filter on the left of the list */
.cc-places.cc-nomap .search-cols { display: none; }
.cc-places.cc-nomap .map-nav-col { display: flex; gap: 30px; align-items: flex-start; margin-top: 60px; }
.cc-places .cc-places-main { flex: 1; min-width: 0; }
.cc-filter { flex: 0 0 240px; position: sticky; top: 80px; background: #fff; padding: 18px 20px; }
.cc-filter h4 { margin: 0 0 12px; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 15px; text-transform: uppercase; color: #333; }
.cc-filter a { display: block; padding: 7px 0; color: #333; border-bottom: 1px solid #f0ead4; text-decoration: none; font-size: 14px; }
.cc-filter a:hover, .cc-filter a.active { color: #883faa; }
.cc-filter a.active { font-family: 'Montserrat-Bold', Arial, sans-serif; }
.cc-withmap .cc-filter { display: none; }
@media (max-width: 800px) {
  .cc-places.cc-nomap .map-nav-col { display: block; }
  .cc-filter { position: static; margin-bottom: 16px; }
  .cc-filter a { display: inline-block; border: 1px solid #e3d8b4; padding: 4px 10px; margin: 0 6px 6px 0; }
}
/* the whole afisha card opens the event */
.list-afisha .thmb-link, .see-also .thmb-link { display: block; }
body:has(.cc-withmap) .cc-footer { display: none !important; }

/* sport.zp.ua: a heading for search engines where the old page had none */
.cc-hidden-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cc-near, .cc-empty { margin: 10px 0; }
.type2-page .page-map .cc-page-map { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; height: 300px !important; margin-top: 15px; }
.type2-page .path { margin: 20px 0 15px; }
/* phones: filters in a panel that slides up from the bottom («Фільтри» button), as in mobile apps; no hover effects */
.cc-filter-open, .cc-filter-close, .cc-filter-bg { display: none; }
@media (max-width: 800px) {
  .cc-filter { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1002; max-height: 80vh; overflow-y: auto; margin: 0; padding: 20px 16px 28px; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); }
  .cc-filter.open { display: block; animation: cc-sheet-up .25s ease-out; }
  .cc-filter a:hover { color: #333; }
  .cc-filter a.active { color: #883faa; }
  .cc-filter-close { display: block; position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: #555; }
  .cc-filter-bg.open { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(0, 0, 0, .45); }
}
@keyframes cc-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-filter.open { animation: none; } }


/* map as on cultura.city (zpcultura.discover.ua): drop pins, round clusters, popup cards, round zoom, «Поруч зі мною» */
/* Leaflet map in the site colours (no image files needed): drop pins, round clusters, popup cards, round zoom, «Поруч зі мною» */
.cc-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #391266; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(40, 16, 58, .35); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; box-sizing: border-box; }
.cc-pin span { width: 10px; height: 10px; border-radius: 50%; background: #fff1e0; }
.cc-pin.on { background: #ff8500; transform: rotate(-45deg) scale(1.25); }
@media (hover: hover) and (pointer: fine) {
.leaflet-marker-icon:hover .cc-pin { background: #ff8500; transform: rotate(-45deg) scale(1.25); }
}
.cc-pin.on span { background: #fff; }
.cc-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #391266; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(57, 18, 102, .25), 0 4px 12px rgba(40, 16, 58, .3); font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 15px; box-sizing: border-box; transition: transform .2s, background .2s; }@media (hover: hover) and (pointer: fine) {
.leaflet-marker-icon:hover .cc-cluster { transform: scale(1.08); }
}
.cc-cluster.on { background: #ff8500; transform: scale(1.12); box-shadow: 0 0 0 7px rgba(255, 133, 0, .35), 0 4px 12px rgba(40, 16, 58, .3); }
.cc-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(40, 16, 58, .25); }
.cc-popup .leaflet-popup-content { margin: 0; width: 230px !important; font-family: Arial, sans-serif; line-height: 1.35; }
.cc-popup .leaflet-popup-tip { box-shadow: none; }
.cc-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 26px; height: 26px; line-height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #391266; font-size: 18px; z-index: 2; }
.ccm-img { display: block; height: 120px; background: #fff1e0 center / cover no-repeat; }
.ccm-b { padding: 12px 14px 14px; }
.ccm-tag { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: #fff1e0; color: #2a0d4b; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 11px; }
.ccm-b a.ccm-t { display: block; color: #391266; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 14px; line-height: 1.3; text-decoration: none; }@media (hover: hover) and (pointer: fine) {
.ccm-b a.ccm-t:hover { text-decoration: underline; }
}
.cc-popup .ccm-b p { margin: 5px 0 0; font-size: 12.5px; color: #6b6b6b; }
.cc-popup .ccm-b p.ccm-s { color: #333; font-weight: bold; }
.ccm-b a.ccm-more { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: #391266; color: #fff; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 12px; text-decoration: none; }@media (hover: hover) and (pointer: fine) {
.ccm-b a.ccm-more:hover { background: #2a0d4b; color: #fff; }
}
#cc-map .leaflet-bar { border: 0; box-shadow: none; }
#cc-map .leaflet-top.leaflet-left { display: flex; flex-direction: column; gap: 8px; }
#cc-map .leaflet-top.leaflet-left .leaflet-control { margin-top: 0; }
#cc-map .leaflet-top.leaflet-left .leaflet-control:first-child { margin-top: 12px; }
#cc-map .leaflet-bar a { width: 38px; height: 38px; line-height: 36px; margin-bottom: 8px; border: 0; border-radius: 50%; background: #fff; color: #391266; font-size: 20px; box-shadow: 0 3px 10px rgba(40, 16, 58, .2); }@media (hover: hover) and (pointer: fine) {
#cc-map .leaflet-bar a:hover { background: #fff1e0; }
}
.cc-locate { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 0 0 10px !important; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(40, 16, 58, .22); cursor: pointer; }
.cc-locate span { width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23883faa' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23883faa'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") center / contain no-repeat; }
.cc-near::before { content: ''; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 3px solid #391266; box-shadow: 0 0 0 3px rgba(255, 133, 0, .6); box-sizing: border-box; }@media (hover: hover) and (pointer: fine) {
.cc-locate:hover { background: #fff1e0; }
}
.cc-locate.busy, .cc-near.busy { opacity: .6; cursor: progress; }
.ccp-dist { position: absolute; bottom: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: #ff8500; color: #fff; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.leaflet-interactive.cc-me { fill: #391266; stroke: #ff8500; }
.cc-far { position: absolute; left: 50%; top: 14px; z-index: 1000; transform: translateX(-50%); width: max-content; max-width: calc(100% - 120px); padding: 10px 16px; border-radius: 14px; background: #2b1438; color: #fff; font-size: 14px; line-height: 1.35; text-align: center; box-shadow: 0 8px 22px rgba(40, 16, 58, .35); }
@media (max-width: 800px) { .cc-far { top: auto; bottom: 90px; max-width: calc(100% - 32px); } }
.search-item .thumbnail { position: relative; }

/* phones: one bar at the bottom «Фільтри · N | На карті» (as on cultura.city); with the map on, the map fills the screen */
.ccm-bar { display: none; }
@media (max-width: 800px) {
  .ccm-bar { position: fixed; left: 50%; bottom: 18px; z-index: 1000; display: flex; transform: translateX(-50%); border-radius: 999px; background: #391266; box-shadow: 0 10px 28px rgba(40, 16, 58, .4); overflow: hidden; }
  .ccm-bar button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border: 0; background: transparent; color: #fff; font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; }
  .ccm-bar button + button { border-left: 1px solid rgba(255, 255, 255, .18); }
  .ccm-filters::before { content: ''; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4'/%3E%3C/svg%3E") center / contain no-repeat; }
  .ccm-filters b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff8500; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
  .ccm-map::before { content: ''; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E") center / contain no-repeat; }
  .ccm-map .ccm-map-off, .ccm-onmap .ccm-map .ccm-map-on { display: none; }
  .ccm-onmap .ccm-map .ccm-map-off { display: inline; }
  .ccm-onmap .ccm-map::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
  .cc-places .cc-listbar .cc-map-toggle { display: none; }
  .cc-places.cc-withmap .map-nav-col, .cc-places.cc-withmap .search-cols, .cc-places.cc-withmap ~ .map-switcher { display: none !important; }
  body:has(.ccm-bar) .cc-footer { padding-bottom: 90px; }
  .cc-places.cc-withmap .map-search { display: block !important; position: fixed; top: 50px; left: 0; right: 0; bottom: 0; width: 100% !important; height: auto !important; z-index: 5; }
}
