/* Padelmad clubs directory — scoped styles (all under .pmc-).
   Neutral + green accent; inherits theme fonts. */

:root {
	--pmc-green: #1f7a4d;
	--pmc-green-dark: #155c39;
	--pmc-ink: #1d2327;
	--pmc-muted: #5b6770;
	--pmc-line: #e3e7ea;
	--pmc-bg-soft: #f5f7f8;
	--pmc-radius: 10px;
}

.pmc-directory { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.pmc-directory__form { position: sticky; top: 20px; background: var(--pmc-bg-soft); border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius); padding: 16px; }
.pmc-directory__main { min-width: 0; }

@media (max-width: 820px) {
	.pmc-directory { grid-template-columns: 1fr; }
	.pmc-directory__form { position: static; }
}

/* Filters */
.pmc-filters { display: flex; flex-direction: column; gap: 14px; }
.pmc-field { display: flex; flex-direction: column; gap: 5px; }
.pmc-field > label, .pmc-field legend { font-weight: 600; font-size: 0.85rem; color: var(--pmc-ink); }
.pmc-field select, .pmc-field input[type="search"] { width: 100%; padding: 8px 10px; border: 1px solid var(--pmc-line); border-radius: 7px; background: #fff; font-size: 0.95rem; }
.pmc-field--checks { border: 0; padding: 0; margin: 0; }
.pmc-field--checks legend { margin-bottom: 4px; }
.pmc-check { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--pmc-ink); padding: 2px 0; cursor: pointer; }
.pmc-check input[disabled] { opacity: .4; }
.pmc-check:has(input[disabled]) { color: var(--pmc-muted); }
.pmc-count { color: var(--pmc-muted); font-size: 0.8rem; }
.pmc-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.pmc-apply { background: var(--pmc-green); color: #fff; border: 0; padding: 9px 16px; border-radius: 7px; font-weight: 600; cursor: pointer; }
.pmc-apply:hover { background: var(--pmc-green-dark); }
.pmc-clear { color: var(--pmc-muted); text-decoration: underline; font-size: 0.9rem; }
.pmc-noscript { font-size: 0.8rem; color: var(--pmc-muted); margin: 8px 0 0; }

/* Results header + map */
.pmc-results-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pmc-showing { font-weight: 600; color: var(--pmc-ink); margin: 0; }
.pmc-map { width: 100%; height: 380px; border-radius: var(--pmc-radius); border: 1px solid var(--pmc-line); margin-bottom: 20px; z-index: 0; }
.pmc-map--single { height: 300px; }
.pmc-loading .pmc-results { opacity: .5; transition: opacity .15s; }

/* Cards grid */
.pmc-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pmc-results--related { margin-top: 10px; }
.pmc-card { border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pmc-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--pmc-bg-soft); overflow: hidden; }
.pmc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pmc-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.pmc-badge { position: absolute; top: 8px; left: 8px; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; color: #fff; background: var(--pmc-muted); }
.pmc-badge--warn { background: #b8860b; }
.pmc-badge--soon { background: #2e6da4; }
.pmc-badge--draft { background: #777; left: auto; right: 8px; }
.pmc-badge--verified { position: static; display: inline-block; background: var(--pmc-green); margin-left: 8px; vertical-align: middle; }
.pmc-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pmc-card__title { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.pmc-card__title a { text-decoration: none; color: var(--pmc-ink); }
.pmc-card__meta { color: var(--pmc-muted); font-size: 0.85rem; margin: 0; }
.pmc-card__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pmc-card__facts li { background: var(--pmc-bg-soft); border-radius: 6px; padding: 3px 8px; font-size: 0.8rem; color: var(--pmc-ink); }
.pmc-card__actions { margin-top: auto; display: flex; gap: 8px; padding-top: 8px; flex-wrap: wrap; }

/* Buttons */
.pmc-btn { display: inline-block; padding: 8px 12px; border-radius: 7px; font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.pmc-btn--ghost { border: 1px solid var(--pmc-line); color: var(--pmc-ink); }
.pmc-btn--book { background: var(--pmc-green); color: #fff; }
.pmc-btn--book:hover { background: var(--pmc-green-dark); }
.pmc-btn--primary { background: var(--pmc-green); color: #fff; }
.pmc-btn--lg { padding: 12px 18px; font-size: 1rem; }
.pmc-no-results { color: var(--pmc-muted); padding: 30px 0; }

/* Pagination */
.pmc-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pmc-page { min-width: 36px; text-align: center; padding: 7px 10px; border: 1px solid var(--pmc-line); border-radius: 7px; text-decoration: none; color: var(--pmc-ink); }
.pmc-page.is-current { background: var(--pmc-green); color: #fff; border-color: var(--pmc-green); }

/* Single club */
.pmc-single__inner, .pmc-archive__inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.pmc-preview-flag { background: #fff4d6; border: 1px solid #e6c200; color: #7a5c00; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; }
.pmc-single__hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--pmc-radius); }
.pmc-single__title { margin: 16px 0 4px; }
.pmc-single__location { color: var(--pmc-muted); margin: 0 0 12px; }
.pmc-single__grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 820px) { .pmc-single__grid { grid-template-columns: 1fr; } }
.pmc-keyfacts ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pmc-keyfacts li { background: var(--pmc-bg-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.pmc-keyfacts li span { font-size: 0.75rem; color: var(--pmc-muted); text-transform: uppercase; letter-spacing: .03em; }
.pmc-keyfacts li strong { font-size: 1.2rem; }
.pmc-amenities__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pmc-amenities__list li { background: var(--pmc-bg-soft); border-radius: 6px; padding: 4px 10px; font-size: 0.85rem; }
.pmc-hours table { width: 100%; border-collapse: collapse; }
.pmc-hours th, .pmc-hours td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--pmc-line); font-size: 0.9rem; }
.pmc-gearup { background: var(--pmc-bg-soft); border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius); padding: 18px 20px; margin: 24px 0; }
.pmc-gearup h2 { margin-top: 0; }
.pmc-contact { background: var(--pmc-bg-soft); border-radius: var(--pmc-radius); padding: 16px; margin-top: 16px; }
.pmc-contact h2 { margin-top: 0; font-size: 1.05rem; }
.pmc-notice { padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
.pmc-notice--warn { background: #fff4d6; }
.pmc-notice--soon { background: #e7f1fb; }
.pmc-back { margin-top: 16px; }
.pmc-archive__intro { color: var(--pmc-muted); max-width: 760px; margin-bottom: 20px; }
.pmc-related { margin-top: 30px; }
