/**
 * Places List — styles for places.php catalog page (pl-* classes)
 */

/* ── Page wrapper ── */
.pl-page #wrap { background: #fff; }
.pl-page #lqd-site-content,
.pl-page .contact,
.pl-page #lqd-contents-wrap { background: #fff !important; }

/* Override Liquid theme center */
#wrap > main .pl-hero:not(#site-footer) h1,
#wrap > main .pl-hero:not(#site-footer) p { text-align: center !important; }
#wrap > main .pl-results:not(#site-footer) h3,
#wrap > main .pl-results:not(#site-footer) p { text-align: left !important; }
#wrap > main .pl-empty p { text-align: center !important; }

/* ── Hero ── */
.pl-hero { background: #fdf6f4; padding: 43px 0 32px; text-align: center; }
.pl-hero h1 { font-size: clamp(22px, 4vw, 30px); color: #222; margin: 0 0 8px; }
.pl-hero p { color: #666; font-size: 15px; margin: 0; }
.pl-hero a { color: #006bd8; }
@media (max-width: 600px) {
    .pl-hero { padding: 20px 0 24px; }
}

/* ── Search & metro row ── */
.pl-toolbar { padding: 24px 0 0; max-width: 640px; margin: 0 auto; }
.pl-toolbar-inner { display: flex; gap: 10px; }
.pl-search-wrap { flex: 1; position: relative; }
.pl-search-wrap input { width: 100%; height: 44px; border: 1px solid #e0d6d0; border-radius: 8px; padding: 0 18px 0 44px; font-size: 14px; background: #fff; }
.pl-search-wrap input:focus { outline: none; border-color: #e25da0; box-shadow: 0 0 0 3px rgba(226,93,160,.1); }
.pl-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #aaa; pointer-events: none; }
.pl-metro-row { margin-top: 10px; display: flex; justify-content: center; }
.pl-metro-select-wrap { width: 260px; position: relative; }
.pl-metro-select { display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; border: 1px solid #e0d6d0; border-radius: 8px; padding: 0 14px; font-size: 14px; background: #fff; cursor: pointer; color: #333; }
.pl-metro-select:focus { outline: none; border-color: #e25da0; box-shadow: 0 0 0 3px rgba(226,93,160,.1); }
.pl-metro-icon { flex-shrink: 0; }
.pl-metro-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pl-metro-chevron { flex-shrink: 0; width: 14px; height: 14px; color: #aaa; transition: transform .2s; }
.pl-metro-select-wrap.is-open .pl-metro-chevron { transform: rotate(180deg); }

.pl-metro-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e0d6d0; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 50; overflow: hidden; }
.pl-metro-select-wrap.is-open .pl-metro-dropdown { display: block; }
.pl-metro-dd-search { padding: 8px 10px; border-bottom: 1px solid rgba(var(--line-color), 0.3); }
.pl-metro-dd-search input { width: 100%; border: 1px solid #e0d6d0; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.pl-metro-dd-search input:focus { outline: none; border-color: #e25da0; }
.pl-metro-dd-list { max-height: 260px; overflow-y: auto; }
.pl-metro-dd-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; font-size: 13px; color: #333; text-decoration: none; transition: background .1s; line-height: 1.15; }
.pl-metro-dd-item:hover { background: #fdf6f4; }
.pl-metro-dd-item.is-active { background: #fdf6f4; font-weight: 600; color: #e25da0; }
.pl-metro-dd-item.is-hidden { display: none; }
.pl-metro-dd-item.is-focused { background: #fdf6f4; }
.pl-metro-dd-cnt { font-size: 11px; color: #aaa; }
@media (max-width: 600px) {
    .pl-metro-select-wrap { width: 100%; }
}

/* ── Active filters ── */
.pl-active-filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 0 0; }
.pl-active-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; background: #fdf6f4; border: 1px solid #e0d6d0; color: #555; text-decoration: none; }
.pl-active-tag svg { width: 14px; height: 14px; }
.pl-active-tag--reset { color: #e25da0; border-color: #e25da0; background: rgba(226,93,160,.06); }
.pl-active-tag--reset:hover { background: rgba(226,93,160,.12); }

/* ── Category filter ── */
.pl-cats { padding: 20px 0 0; }
.pl-cats-label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 10px; font-weight: 600; }
.pl-cats-row { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: center; }
.pl-cat-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; text-decoration: none; color: #555; background: #fdf6f4; border: 2px solid transparent; transition: all .2s; white-space: nowrap; }
.pl-cat-btn:hover { opacity: .85; }
.pl-cat-btn svg { width: 14px; height: 14px; }
.pl-cat-btn.is-active { color: #fff; }
.pl-cat-count { opacity: .6; font-weight: 400; font-size: 12px; }
.pl-cat-btn--all { background: #f0f0f0; color: #555; }
.pl-cat-btn--all.is-active { background: #333; color: #fff; }

/* ── Age filter ── */
.pl-ages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 0 0; }
.pl-age-btn { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; text-decoration: none; color: #e67e22; background: #fff4e6; border: 2px solid #fff; transition: all .2s; }
.pl-age-btn:hover { border-color: #e67e22; }
.pl-age-btn.is-active { background: #e67e22; color: #fff; border-color: #e67e22; }

/* ── Results ── */
.pl-results { padding: 24px 0 60px; }
.pl-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pl-results-count { font-size: 14px; color: #888; }
.pl-results-count strong { color: #222; }

/* ── Cards grid ── */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pl-card { background: #fdf6f4; border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; transition: box-shadow .2s; display: flex; flex-direction: column; text-align: left; }
.pl-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.pl-card-name { font-size: 15px; font-weight: 600; color: #006bd8; margin-bottom: 2px; line-height: 1.3; }
.pl-card-name a { color: #006bd8; text-decoration: none; }
.pl-card-name a:hover { text-decoration: underline; }
.pl-card-sub { font-weight: 400; color: #999; font-size: 13px; }
.pl-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; align-self: flex-start; }
.pl-card-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 500; color: #fff; }
.pl-card-cat svg { width: 12px; height: 12px; }
.pl-age-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; background: #fff4e6; color: #e67e22; border: 2px solid #fff; }
.pl-card-bottom { margin-top: auto; padding-top: 10px; }
.pl-card-addr { font-size: 13px; color: #666; line-height: 1.4; margin-top: 8px; }
.pl-card-metro { font-size: 12px; color: #999; margin-top: 3px; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.pl-card-metro a { color: #999; text-decoration: none; }
.pl-card-metro a:hover { color: #006bd8; }
.pl-metro-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pl-metro-dist { color: #aaa; }
.pl-card-cta { display: inline-block; font-size: 13px; color: #e25da0; text-decoration: none; font-weight: 500; margin-top: 10px; align-self: flex-start; }
.pl-card-cta:hover { text-decoration: underline; }

.pl-empty { text-align: center; padding: 60px 0; }
.pl-empty-icon { width: 64px; height: 64px; color: #ddd; margin: 0 auto 16px; }
.pl-empty p { color: #999; font-size: 15px; margin: 0; }

/* ── Pager ── */
.pl-pager { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.pl-pager a, .pl-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 10px; font-size: 14px; text-decoration: none; color: #555; background: #fdf6f4; border: 1px solid #e0d6d0; transition: all .15s; }
.pl-pager span.current { background: linear-gradient(135deg, #e25da0 0%, #f4845f 100%); color: #fff; border-color: transparent; }
.pl-pager a:hover { border-color: #e25da0; color: #e25da0; }

@media (max-width: 600px) {
    .pl-grid { grid-template-columns: 1fr; gap: 8px; }
    .pl-card { padding: 14px; border-radius: 10px; }
    .pl-card-name { font-size: 13px; }
    .pl-card-sub { font-size: 11px; }
    .pl-card-addr { font-size: 11px; padding-top: 6px; }
    .pl-card-metro { font-size: 11px; }
    .pl-cats-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 6px; margin: 0 -16px; scrollbar-width: none; }
    .pl-cats-row::-webkit-scrollbar { display: none; }
    .pl-cat-btn { flex-shrink: 0; }
    .pl-ages { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding: 14px 16px 0; margin: 0 -16px; scrollbar-width: none; }
    .pl-ages::-webkit-scrollbar { display: none; }
    .pl-age-btn { flex-shrink: 0; }
    .pl-results { padding: 16px 0 40px; }
}
