/* Pune Tango Directory: matches the punetango.com home page style. */
.ptd {
	--ptd-deep: #3B1145;
	--ptd-magenta: #B0308F;
	--ptd-ink: #241A2B;
	--ptd-muted: #6B5A75;
	--ptd-panel: #F2F2F2;
	--ptd-line: #DDD3E3;
	--ptd-tint: #F5EEF8;
	--ptd-card-line: #E6DCEB;
	--ptd-wordmark-font: var(--wp--preset--font-family--heading, inherit);
	--ptd-cta: linear-gradient(90deg, #7B2FBF, #D85BA8);
	color: var(--ptd-ink);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ptd-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 14px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
}
.admin-bar .ptd-bar { top: 32px; }

.ptd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ptd-chip {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--ptd-line);
	background: #fff;
	color: var(--ptd-ink);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.ptd-chip[aria-pressed="true"] { background: var(--ptd-deep); border-color: var(--ptd-deep); color: #fff; font-weight: 500; }

.ptd-search input {
	min-height: 44px;
	border: 1px solid var(--ptd-line);
	border-radius: 999px;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	width: 240px;
	max-width: 100%;
	box-sizing: border-box;
}

/* Pune: full-bleed deep purple band, like the home page community block. */
.ptd-city--featured { background: var(--ptd-deep); padding: 48px 24px; margin-inline: calc(50% - 50vw); }
.ptd-panel {
	max-width: 1132px;
	margin: 0 auto;
	background: var(--ptd-panel);
	border-radius: 16px;
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.ptd-city--featured .ptd-panel { background: #fff; }

.ptd-city__name { margin: 0; text-align: center; font-weight: 300; font-size: clamp(28px, 4vw, 38px); }
.ptd-city__count { display: inline-block; margin-left: 12px; font-size: 14px; color: var(--ptd-muted); font-weight: 400; vertical-align: middle; }
.ptd-city__intro { margin: 0; text-align: center; color: var(--ptd-muted); }

.ptd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.ptd-card {
	background: #fff;
	border: 1px solid var(--ptd-card-line);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 1px 2px rgba(59, 17, 69, 0.06), 0 4px 16px rgba(59, 17, 69, 0.06);
	transition: border-color 0.15s, box-shadow 0.15s;
	overflow: hidden;
}
.ptd-card:hover { border-color: #CDB8D8; box-shadow: 0 2px 4px rgba(59, 17, 69, 0.08), 0 8px 24px rgba(59, 17, 69, 0.10); }
/* On the white Pune panel, tint the cards slightly so they separate from the panel. */
.ptd-city--featured .ptd-card { background: #FCFAFD; }
.ptd-card p { margin: 0; }

.ptd-card__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* Card image: edge to edge across the top of the card. Background image, so
   no theme or plugin img rules can affect it. */
.ptd-media {
	margin: -24px -24px 4px;
	aspect-ratio: 3 / 2;
	border-radius: 13px 13px 0 0;
	background-repeat: no-repeat;
	background-position: center;
}
.ptd-media--photo { background-size: cover; }
.ptd-media--logo {
	background-color: #fff;
	background-size: contain;
	background-origin: content-box;
	padding: 20px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--ptd-card-line, #E6DCEB);
}
.ptd-media--placeholder { display: flex; align-items: center; justify-content: center; }
.ptd-media--placeholder { padding: 24px 28px; box-sizing: border-box; }
.ptd-wordmark {
	color: #fff;
	font-family: var(--ptd-wordmark-font, inherit); /* Set --ptd-wordmark-font to the theme's heading font to match the card titles. */
	font-weight: 300;
	line-height: 1.1;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
	opacity: 0.95;
}
.ptd-wordmark--l { font-size: 40px; }
.ptd-wordmark--m { font-size: 30px; }
.ptd-wordmark--s { font-size: 24px; }

/* Larger variant for the club page. */
.ptd-media--hero { margin: 0; border-radius: 16px; }
.ptd-media--hero .ptd-wordmark--l { font-size: 64px; }
.ptd-media--hero .ptd-wordmark--m { font-size: 48px; }
.ptd-media--hero .ptd-wordmark--s { font-size: 36px; }
.ptd-card__name { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; }
.ptd-card__area { font-size: 14px; color: var(--ptd-muted); }
.ptd-card__meta { font-size: 14px; background: var(--ptd-tint); color: var(--ptd-deep); border-radius: 8px; padding: 8px 12px; }
.ptd-card__blurb { font-size: 15px; line-height: 1.6; font-weight: 300; }

/* Footer: full-width WhatsApp button, then one row of icons + "View page". Never wraps. */
.ptd-card__actions {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--ptd-card-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ptd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--ptd-cta);
	color: #fff !important;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
}
.ptd-card__links { display: flex; align-items: flex-start; gap: 8px; }
/* Icons can wrap to a second line on narrow cards; "View page" stays put on the right. */
.ptd-card__social { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ptd-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	color: var(--ptd-deep);
	transition: background 0.15s;
}
.ptd-icon:hover { background: var(--ptd-tint); }
.ptd-card__page { flex: none; margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ptd-magenta); text-decoration: none; white-space: nowrap; }
.ptd-card__page:hover { text-decoration: underline; }

.ptd a:focus-visible, .ptd button:focus-visible, .ptd input:focus-visible { outline: 2px solid var(--ptd-magenta); outline-offset: 2px; }
.ptd [hidden] { display: none !important; }
.ptd-empty { text-align: center; color: var(--ptd-muted); }

@media (max-width: 600px) {
	.ptd-panel { padding: 24px 16px; }
	.ptd-search, .ptd-search input { width: 100%; }
}
