/* India Pin Code Directory - Public Styles */

.ipd-wrapper {
	--ipd-primary: #1a5f7a;
	--ipd-primary-dark: #133f52;
	--ipd-accent: #ff9800;
	--ipd-border: #e0e4e8;
	--ipd-bg-light: #f7f9fb;
	--ipd-text: #22292f;
	max-width: 1360px;
	margin: 0 auto;
	padding: 20px 16px 60px;
	color: var(--ipd-text);
	line-height: 1.6;
}

.ipd-wrapper * { box-sizing: border-box; }

/* ---------------------------------------------------------------
 * Responsive hardening — applies across every section of the plugin
 * so nothing can push the page wider than the viewport on any device,
 * regardless of which WordPress theme it's embedded in.
 * --------------------------------------------------------------- */
.ipd-wrapper {
	overflow-x: hidden;
	display: block !important;
	width: 100% !important;
}
.ipd-wrapper img,
.ipd-wrapper iframe,
.ipd-wrapper svg,
.ipd-wrapper table {
	max-width: 100%;
}
.ipd-wrapper input,
.ipd-wrapper select,
.ipd-wrapper textarea,
.ipd-wrapper button {
	max-width: 100%;
	font-family: inherit;
}

/* ---------------------------------------------------------------
 * Theme compatibility — many themes apply their own global styles to
 * bare lists, headings, tables and links (bullet points, oversized
 * heading margins, alternating table stripes, colored/underlined
 * links) that fight with the plugin's own layout. These resets are
 * scoped strictly to .ipd-wrapper so they never leak into the rest
 * of the site, and only touch properties that commonly clash —
 * anything the plugin wants to look a specific way is still styled
 * explicitly by its own more specific selectors elsewhere, which
 * still win due to higher specificity.
 * --------------------------------------------------------------- */
.ipd-wrapper ul,
.ipd-wrapper ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ipd-wrapper li { margin: 0; }
.ipd-wrapper a { text-decoration: none; }
.ipd-wrapper h1, .ipd-wrapper h2, .ipd-wrapper h3, .ipd-wrapper h4 {
	margin-top: 0;
	font-family: inherit;
	line-height: 1.3;
}
.ipd-wrapper table { border-collapse: collapse; }
.ipd-wrapper table td, .ipd-wrapper table th { background: none; }
/* Re-enable bullets specifically where the plugin actually wants them
 * (the Table of Contents), since the blanket reset above removes them. */
.ipd-toc ul { list-style: disc; }

@media (max-width: 480px) {
	.ipd-wrapper { padding: 14px 12px 40px; }
	.ipd-wrapper h1 { font-size: 22px; }
	.ipd-wrapper h2 { font-size: 18px; }
	.ipd-page-actions { flex-wrap: wrap; gap: 10px; }
	.ipd-copy-pincode-row { flex-wrap: wrap; }
}

/* Breadcrumb */
.ipd-breadcrumb {
	font-size: 13px;
	margin-bottom: 18px;
	color: #667;
}
.ipd-breadcrumb a { color: var(--ipd-primary); text-decoration: none; }
.ipd-breadcrumb a:hover { text-decoration: underline; }
.ipd-breadcrumb-sep { margin: 0 4px; color: #aab; }
.ipd-breadcrumb-current { color: #556; }

/* Search form */
/* width/display forced: without this, an ancestor that treats this
 * wrapper as a flex/grid item (a common pattern in page builders like
 * Elementor) can let it shrink-wrap down to its content's minimum
 * size instead of claiming the column's full width — which is
 * exactly what produces one extremely narrow vertical strip with
 * every element wrapping onto its own line, even letter-by-letter,
 * no matter what flex-direction/flex-wrap is set on the elements
 * inside it. Forcing a real block-level, full-width box here fixes
 * that at the source. */
.ipd-search-form-wrap {
	display: block !important;
	width: 100% !important;
	margin: 20px auto 32px;
	padding: 0;
	max-width: none;
	background: var(--ipd-search-bar-bg, transparent);
	box-sizing: border-box;
}
.ipd-filter-pills, .ipd-filter-pill, .ipd-filter-pill select, .ipd-search-row { box-sizing: border-box; }
@media (max-width: 480px) {
	.ipd-search-form-wrap,
	.ipd-filter-pills,
	.ipd-search-row {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}
	.ipd-filter-style-boxed,
	.ipd-filter-style-modern {
		padding: 14px;
	}
}
/* !important here is deliberate: page builders (Elementor especially)
 * and some themes load their own generic container/flexbox CSS that
 * can otherwise silently override an un-flagged display:flex, which
 * is exactly what was causing every element to stack vertically no
 * matter where [ipd_search_bar]/[ipd_filter_bar] were placed. These
 * two properties are the entire reason this is a horizontal row, so
 * they're locked down regardless of surrounding page/theme CSS. */
.ipd-search-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
	position: relative;
}
.ipd-search-input,
.ipd-search-form select {
	padding: 12px 16px;
	border: 1.5px solid var(--ipd-border);
	border-radius: 8px;
	font-size: var(--ipd-searchbar-font-size, 15px);
	min-height: var(--ipd-searchbar-height, 48px);
	flex: 1 1 220px;
	min-width: 140px !important;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ipd-search-input {
	background: var(--ipd-search-bar-input-bg, #fff);
	color: var(--ipd-search-bar-text, inherit);
}
.ipd-search-input::placeholder { color: var(--ipd-search-bar-placeholder, #9aa3ac); opacity: 1; }
.ipd-search-input:focus,
.ipd-search-form select:focus {
	outline: none;
	border-color: var(--ipd-primary);
	box-shadow: 0 0 0 3px rgba(26,95,122,.1);
}
/* flex-grow:0 (not 1) deliberately — with a growing input, it would
 * consume all free space in the row, leaving nothing for
 * justify-content:center to distribute, so the group would always
 * hug the left edge regardless of centering. A bounded, non-growing
 * width lets the whole input+buttons group center as a unit. */
.ipd-search-main .ipd-search-input { flex: 0 1 420px; }
.ipd-search-btn,
.ipd-filter-apply-btn {
	border: none;
	border-radius: 8px;
	padding: 12px var(--ipd-searchbar-btn-pad-x, 24px);
	font-size: var(--ipd-searchbar-font-size, 15px);
	min-height: var(--ipd-searchbar-height, 48px);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(26,95,122,.18);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	/* Buttons must NEVER shrink below their own text's width or wrap
	 * their label onto multiple lines — without this, a narrow parent
	 * (or, previously, the zoom-based scaling that's since been
	 * reverted) could crush these down to a sliver with the label
	 * wrapping one letter per line ("S / e / a / r / c / h"). flex:
	 * 0 0 auto means "size to content, never grow or shrink". */
	flex: 0 0 auto !important;
	white-space: nowrap !important;
}
.ipd-search-btn { background: var(--ipd-search-btn-bg, var(--ipd-primary)); color: var(--ipd-search-btn-text, #fff); }
.ipd-filter-apply-btn { background: var(--ipd-filter-btn-bg, var(--ipd-primary)); color: var(--ipd-filter-btn-text, #fff); }
.ipd-search-btn:hover,
.ipd-filter-apply-btn:hover { filter: brightness(0.92); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,95,122,.26); }

.ipd-autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 6px;
	z-index: 40;
	max-height: 320px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.ipd-autocomplete-results a {
	display: block;
	padding: 10px 14px;
	color: var(--ipd-text);
	text-decoration: none;
	border-bottom: 1px solid var(--ipd-bg-light);
	font-size: 14px;
}
.ipd-autocomplete-results a:hover { background: var(--ipd-bg-light); }

.ipd-search-results { margin-top: 10px; }
.ipd-search-loading { color: #778; font-style: italic; padding: 10px 0; }
.ipd-search-validation-error {
	color: #c0362c;
	text-align: center;
	padding: 14px 0;
	font-size: 14px;
	font-weight: 600;
	margin: 8px 0 0;
}

/* Grid lists (states, districts, popular, recent, other offices, nearby) */
.ipd-grid-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px 16px;
	list-style: none;
	margin: 12px 0 24px;
	padding: 0;
}
.ipd-grid-list li { border-bottom: 1px dashed var(--ipd-border); padding-bottom: 6px; }
.ipd-grid-list a { color: var(--ipd-primary); text-decoration: none; font-size: 14.5px; }
.ipd-grid-list a:hover { text-decoration: underline; }

.ipd-alpha-browse { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.ipd-alpha-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--ipd-shortcode-bg-color, #fff);
	border: 1px solid var(--ipd-border);
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(20,40,60,.06);
	color: var(--ipd-shortcode-text-color, var(--ipd-primary));
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.ipd-alpha-link:hover {
	background: var(--ipd-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20,40,60,.14);
}

/* Single pincode page */
.ipd-pincode-header h1 { margin-bottom: 4px; font-size: 28px; }
.ipd-pincode-subtitle { color: #667; margin-top: 0; }
.ipd-view-counter { display: inline-block; margin-left: 12px; font-size: 13px; color: #8a94a0; }
.ipd-page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 20px; }
.ipd-country-logo { max-height: var(--ipd-country-logo-height, 56px); max-width: var(--ipd-country-logo-width, 160px); width: auto; height: auto; object-fit: contain; margin-left: auto; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.ipd-print-btn {
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
}
.ipd-copy-table-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ipd-primary-dark);
	cursor: pointer;
	margin-right: 10px;
	transition: background .15s ease, border-color .15s ease;
}
.ipd-copy-table-btn:hover { background: var(--ipd-bg-light); border-color: var(--ipd-primary); }
.ipd-share-buttons { display: flex; gap: 12px; }
.ipd-share-buttons a { font-size: 13px; color: var(--ipd-primary); text-decoration: none; }
.ipd-share-buttons a:hover { text-decoration: underline; }

.ipd-detail-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.ipd-detail-table th,
.ipd-detail-table td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--ipd-table-border, var(--ipd-border));
	font-size: 15px;
}
.ipd-detail-table th { width: 220px; color: var(--ipd-table-header-text, #556); font-weight: 600; background: var(--ipd-table-header-bg, var(--ipd-bg-light)); }

/* ---------------------------------------------------------------
 * Table Design templates (Layout & Design > Detail Table Design).
 * Independent of the overall page layout — pick one style here, then
 * customize its border/header/stripe colors below it. "Default"
 * keeps the plain look above; the other four restyle the very same
 * markup, so switching templates never requires touching any data.
 *
 * !important throughout: the "Page Layout" styles above/below (Card,
 * Grid, Minimal, Modern) already set their own .ipd-detail-table
 * border/background rules with higher specificity (two classes vs.
 * one), so without !important a Table Design choice would silently
 * have no visible effect on any page layout except the default
 * Classic one. Table Design is the more specific, more deliberately
 * chosen setting here, so it should always win.
 * --------------------------------------------------------------- */

/* Striped — alternating row background for easier scanning. */
.ipd-table-design-striped tbody tr:nth-child(even) td,
.ipd-table-design-striped tbody tr:nth-child(even) th {
	background: var(--ipd-table-stripe, #f8f9fb) !important;
}

/* Bordered — a full grid line around every cell. */
.ipd-table-design-bordered { border: 1px solid var(--ipd-table-border, var(--ipd-border)) !important; }
.ipd-table-design-bordered th,
.ipd-table-design-bordered td {
	border: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
}

/* Minimal — no visible borders at all, just generous spacing. */
.ipd-table-design-minimal th,
.ipd-table-design-minimal td {
	border-bottom: none !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}
.ipd-table-design-minimal th { background: none !important; }
.ipd-table-design-minimal tbody tr:not(:last-child) td,
.ipd-table-design-minimal tbody tr:not(:last-child) th {
	border-bottom: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
	opacity: .9;
}

/* Card Rows — each row becomes its own elevated rounded card. */
.ipd-table-design-card { border-collapse: separate !important; border-spacing: 0 10px !important; }
.ipd-table-design-card tr {
	display: table-row !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(20,40,60,.06);
	border-radius: 8px;
}
.ipd-table-design-card th,
.ipd-table-design-card td {
	display: table-cell !important;
	border: none !important;
	border-top: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
	border-bottom: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
}
.ipd-table-design-card th {
	background: var(--ipd-table-header-bg, var(--ipd-bg-light)) !important;
	color: var(--ipd-table-header-text, #556) !important;
	border-left: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
	border-radius: 8px 0 0 8px;
}
.ipd-table-design-card td {
	border-right: 1px solid var(--ipd-table-border, var(--ipd-border)) !important;
	border-radius: 0 8px 8px 0;
}

.ipd-map-embed { margin: 24px 0; }
.ipd-map-embed iframe { border-radius: 8px; }
.ipd-map-note { font-size: 12px; color: #889; }

.ipd-not-found { text-align: center; padding: 40px 0; }

/* Directory listing table */
.ipd-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--ipd-border);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(20,40,60,.05);
	-webkit-overflow-scrolling: touch;
}
.ipd-listing-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 560px; }
.ipd-listing-table th,
.ipd-listing-table td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--ipd-border);
	text-align: left;
	font-size: 14px;
}
.ipd-listing-table thead th {
	background: var(--ipd-bg-light);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #667;
	font-weight: 700;
	border-bottom: 2px solid var(--ipd-border);
}
.ipd-listing-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.ipd-listing-table tbody tr:hover { background: rgba(26,95,122,.05); }
.ipd-listing-table tbody tr:last-child td { border-bottom: none; }
.ipd-listing-table a { color: var(--ipd-primary); text-decoration: none; font-weight: 600; }
.ipd-listing-table a:hover { text-decoration: underline; }
.ipd-result-count { color: #667; font-size: 14px; margin: 0 0 12px; }

.ipd-see-more-wrap { text-align: center; margin: 20px 0; }
.ipd-see-more-btn {
	background: #fff;
	border: 1.5px solid var(--ipd-primary);
	color: var(--ipd-primary);
	border-radius: 999px;
	padding: 10px 28px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .12s ease;
}
.ipd-see-more-btn:hover { background: var(--ipd-primary); color: #fff; transform: translateY(-1px); }
.ipd-see-more-btn:disabled { opacity: .6; cursor: default; transform: none; }

.ipd-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.ipd-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--ipd-border);
	border-radius: 6px;
	color: var(--ipd-primary);
	text-decoration: none;
	font-size: 13.5px;
}
.ipd-page-link.is-current { background: var(--ipd-primary); color: #fff; border-color: var(--ipd-primary); }

/* Pincode card shortcode */
.ipd-pincode-card {
	border: 1px solid var(--ipd-border);
	border-radius: 8px;
	padding: 18px 20px;
	background: var(--ipd-bg-light);
	margin: 16px 0;
}
.ipd-card-title { margin: 0 0 10px; font-size: 18px; }
.ipd-card-title a { color: var(--ipd-primary-dark); text-decoration: none; }
.ipd-card-meta { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; }
.ipd-card-meta li { margin-bottom: 4px; }
.ipd-card-link { color: var(--ipd-accent); font-weight: 600; text-decoration: none; font-size: 14px; }

/* Dark mode support (follows OS preference automatically) */
@media (prefers-color-scheme: dark) {
	.ipd-wrapper {
		--ipd-border: #333c44;
		--ipd-bg-light: #1c2126;
		--ipd-text: #e7ebee;
		--ipd-primary: #63b6d8;
		--ipd-primary-dark: #8fd0ee;
	}
	.ipd-autocomplete-results { background: #14181b; }
	.ipd-search-input, .ipd-search-form select { background: #14181b; color: #e7ebee; }
}

/* Print styles */
@media print {
	.ipd-search-again, .ipd-page-actions, .ipd-breadcrumb, .ipd-nearby-pincodes { display: none !important; }
}

/* ---------------------------------------------------------------
 * Modern filter UI redesign
 * --------------------------------------------------------------- */
.ipd-search-modern .ipd-search-main { align-items: stretch; }
.ipd-search-input-wrap { position: relative; flex: 1 1 320px; display: flex !important; flex-direction: row !important; align-items: center; }
.ipd-search-input-wrap .ipd-search-input { width: 100%; padding-left: 40px; padding-right: 34px; }
.ipd-search-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	opacity: .6;
	pointer-events: none;
}
.ipd-search-clear-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #99a;
	cursor: pointer;
	padding: 0 4px;
}
.ipd-search-clear-btn:hover { color: #556; }

.ipd-location-row { margin: 8px 0 4px; }
.ipd-location-cta { color: #c0362c; font-weight: 600; font-size: 14px; margin: 10px 0; }
.ipd-location-cta .ipd-location-btn-inline {
	background: none;
	border: none;
	color: #c0362c;
	text-decoration: underline;
	font-weight: 700;
	cursor: pointer;
	font-size: inherit;
	padding: 0;
}
.ipd-no-results-block { text-align: center; padding: 20px 0; }
.ipd-submit-missing-cta { margin: 6px 0 0; }
.ipd-open-missing-pincode-modal {
	background: var(--ipd-primary);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ipd-open-missing-pincode-modal:hover { background: var(--ipd-primary-dark); }

@media (max-width: 782px) {
	.ipd-filter-pills { display: flex !important; }
}

@media (max-width: 640px) {
	.ipd-detail-table th { width: 140px; font-size: 13.5px; }
	.ipd-detail-table td { font-size: 13.5px; }
	/* Mobile-only: stack vertically for readability on narrow screens.
	 * !important so this reliably wins here too, the same as the
	 * always-horizontal desktop rule above. */
	.ipd-search-row.ipd-search-main { flex-direction: column !important; gap: 10px; align-items: stretch; }
	.ipd-search-input, .ipd-search-form select, .ipd-search-btn, .ipd-filter-apply-btn { width: 100%; }
	.ipd-search-input-wrap { max-width: 100%; }
	.ipd-location-btn { width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------
 * Live location search
 * --------------------------------------------------------------- */
.ipd-location-btn {
	background: #fff;
	border: 1px solid var(--ipd-border);
	color: var(--ipd-primary);
	border-radius: 6px;
	padding: 12px 16px;
	cursor: pointer;
	font-size: var(--ipd-searchbar-font-size, 14px);
	min-height: var(--ipd-searchbar-height, 48px);
	white-space: nowrap !important;
	flex: 0 0 auto !important;
}
.ipd-location-btn:hover { background: var(--ipd-bg-light); }
.ipd-location-status { font-size: 13px; color: #667; margin: 6px 0 0; }

/* ---------------------------------------------------------------
 * Copy pin code
 * --------------------------------------------------------------- */
.ipd-copy-pincode-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; position: relative; }
.ipd-copy-pincode-value { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--ipd-primary-dark); }
.ipd-copy-btn {
	background: var(--ipd-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13.5px;
	cursor: pointer;
	transition: transform .1s ease;
}
.ipd-copy-btn:active { transform: scale(.96); }
.ipd-copy-toast {
	background: #1e7a34;
	color: #fff;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 12px;
	opacity: 0;
	transition: opacity .2s ease;
}
.ipd-copy-toast.is-visible { opacity: 1; }

/* ---------------------------------------------------------------
 * Post office image + QR code
 * --------------------------------------------------------------- */
.ipd-office-image-wrap { margin: 18px 0; }
.ipd-office-image { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.ipd-card-image { max-width: 100%; height: auto; border-radius: 6px; margin-bottom: 10px; }
.ipd-qr-code-block { margin: 24px 0; text-align: center; max-width: 220px; }
.ipd-qr-code-image { border: 1px solid var(--ipd-border); border-radius: 6px; padding: 8px; background: #fff; }
.ipd-qr-note { font-size: 11.5px; color: #889; margin-top: 6px; }

/* ---------------------------------------------------------------
 * Sidebar layout
 * --------------------------------------------------------------- */
.ipd-content-columns { display: flex; gap: 32px; align-items: flex-start; }
.ipd-main-column { flex: 1 1 auto; min-width: 0; }
.ipd-sidebar-column {
	flex: 0 0 var(--ipd-sidebar-width, 300px);
	width: var(--ipd-sidebar-width, 300px);
	/* Flex items default to min-width:auto, which lets oversized
	 * content (e.g. a [ipd_recent_pincodes] marquee card that's wider
	 * than the sidebar) force this column wider than its flex-basis —
	 * pushing the whole .ipd-content-columns row out of alignment and
	 * "moving" the sidebar. min-width:0 (already used on
	 * .ipd-main-column above) makes the column honor its own width and
	 * simply scroll/wrap any oversized content internally instead. */
	min-width: 0;
	max-width: var(--ipd-sidebar-width, 300px);
	overflow-wrap: break-word;
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	border-radius: 8px;
	padding: 20px;
}
.ipd-sidebar-column h3 { margin-top: 0; font-size: 15px; }
.ipd-sidebar-left { font-size: var(--ipd-sidebar-left-font-size, 14px); }
.ipd-sidebar-right { font-size: var(--ipd-sidebar-right-font-size, 14px); }

/* Sidebar design styles (admin-selectable under Layout & Design) */
.ipd-sidebar-style-card {
	box-shadow: 0 10px 28px rgba(20,40,60,.10);
	border-color: transparent;
}
.ipd-sidebar-style-minimal {
	background: transparent;
	border: none;
	padding: 0 0 0 4px;
}
.ipd-sidebar-style-bordered {
	background: #fff;
	border: none;
	border-left: 4px solid var(--ipd-primary);
	border-radius: 4px;
}
.ipd-sidebar-style-colored h3 {
	background: linear-gradient(135deg, var(--ipd-primary), var(--ipd-accent));
	color: #fff;
	margin: -20px -20px 14px;
	padding: 14px 20px;
	border-radius: 8px 8px 0 0;
	font-size: 14px;
}
.ipd-sidebar-style-colored { padding-top: 0; overflow: hidden; }

@media (max-width: 900px) {
	.ipd-content-columns { flex-direction: column; }
	.ipd-sidebar-column { flex-basis: auto; width: 100%; max-width: 100%; }
}

/* ---------------------------------------------------------------
 * Width & dark-mode overrides driven by admin settings
 * --------------------------------------------------------------- */
.ipd-width-boxed { max-width: 900px; border: 1px solid var(--ipd-border); border-radius: 10px; padding: 24px 28px; margin-top: 20px; }
.ipd-dark-on { --ipd-border: #333c44; --ipd-bg-light: #1c2126; --ipd-text: #e7ebee; background: #10131a; }
.ipd-dark-on .ipd-search-input, .ipd-dark-on .ipd-search-form select { background: #14181b; color: #e7ebee; }

/* ---------------------------------------------------------------
 * Page layout variants (Classic / Modern / Card / Grid / Minimal /
 * Business / Directory / Blog). These are deliberately built from
 * shared components with CSS-level differences, keeping the plugin
 * lightweight rather than shipping eight full duplicate templates.
 * --------------------------------------------------------------- */
.ipd-layout-modern .ipd-pincode-header { background: linear-gradient(135deg, var(--ipd-primary), var(--ipd-primary-dark)); color: #fff; padding: 28px; border-radius: 12px; margin-bottom: 24px; }
.ipd-layout-modern .ipd-pincode-header h1,
.ipd-layout-modern .ipd-pincode-subheading,
.ipd-layout-modern .ipd-pincode-subtitle { color: #fff; }
.ipd-layout-modern .ipd-detail-table { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

.ipd-layout-card .ipd-detail-table { border: none; }
.ipd-layout-card .ipd-detail-table tr { display: block; background: #fff; border: 1px solid var(--ipd-border); border-radius: 8px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.ipd-layout-card .ipd-detail-table th, .ipd-layout-card .ipd-detail-table td { display: block; border: none; padding: 6px 16px; }
.ipd-layout-card .ipd-detail-table th { background: none; font-size: 12px; text-transform: uppercase; color: #889; padding-bottom: 0; }

.ipd-layout-grid .ipd-detail-table,
.ipd-layout-grid .ipd-detail-table tbody { display: block; }
.ipd-layout-grid .ipd-detail-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ipd-layout-grid .ipd-detail-table tr { display: block; background: var(--ipd-bg-light); border-radius: 8px; padding: 10px 14px; }
.ipd-layout-grid .ipd-detail-table th, .ipd-layout-grid .ipd-detail-table td { display: block; border: none; padding: 2px 0; }
.ipd-layout-grid .ipd-detail-table th { font-size: 12px; color: #889; }

.ipd-layout-minimal .ipd-detail-table th { background: none; border-bottom: none; }
.ipd-layout-minimal .ipd-detail-table td { border-bottom: none; }
.ipd-layout-minimal .ipd-detail-table tr { border-bottom: 1px solid var(--ipd-border); }
.ipd-layout-minimal .ipd-page-actions, .ipd-layout-minimal .ipd-breadcrumb { opacity: .8; }

.ipd-layout-business .ipd-pincode-header { border-left: 6px solid var(--ipd-accent); padding-left: 18px; }
.ipd-layout-business .ipd-pincode-header h1 { font-size: 32px; font-weight: 800; }

.ipd-layout-directory .ipd-detail-table th { width: 180px; }

.ipd-layout-blog .ipd-pincode-header h1 { font-size: 26px; font-style: italic; }
.ipd-layout-blog .ipd-detail-table { font-size: 14px; }

/* ---------------------------------------------------------------
 * Delivery status badge
 * --------------------------------------------------------------- */
.ipd-delivery-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 600;
}
.ipd-delivery-yes { background: #e5f6e8; color: #1e7a34; }
.ipd-delivery-no { background: #fdeaea; color: #c0362c; }

/* ---------------------------------------------------------------
 * Tags
 * --------------------------------------------------------------- */
.ipd-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ipd-tag-chip {
	display: inline-block;
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	border-radius: 14px;
	padding: 4px 12px;
	font-size: 12.5px;
	color: var(--ipd-primary-dark);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.ipd-tag-chip:hover {
	background: var(--ipd-primary);
	color: #fff;
	border-color: var(--ipd-primary);
}

/* ---------------------------------------------------------------
 * FAQ section
 * --------------------------------------------------------------- */
.ipd-faq-section { margin: 24px 0; }
.ipd-faq-item {
	margin-bottom: 10px;
	border: 1px solid var(--ipd-border);
	border-radius: 10px;
	overflow: hidden;
}
.ipd-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	background: var(--ipd-bg-light);
	border: none;
	text-align: left;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ipd-text);
	cursor: pointer;
	font-family: inherit;
}
.ipd-faq-question:hover { background: #eef1f4; }
.ipd-faq-question-text { flex: 1 1 auto; }
.ipd-faq-toggle-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ipd-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}
.ipd-faq-question[aria-expanded="true"] .ipd-faq-toggle-icon { background: var(--ipd-accent); }
.ipd-faq-answer { margin: 0; color: #445; padding: 14px 16px; background: #fff; }

/* ---------------------------------------------------------------
 * Collapsible section accordion — wraps the whole Automatic SEO
 * Content block and the whole FAQ block, each collapsed by default
 * and independently expandable, so this content is available for
 * search engines and interested readers without taking up page
 * space by default. (The individual FAQ question/answer accordion
 * above is a separate, nested level of collapsing inside this.)
 * --------------------------------------------------------------- */
.ipd-collapsible-section {
	margin: 24px 0;
	border: 1px solid var(--ipd-border);
	border-radius: 10px;
	overflow: hidden;
}
.ipd-collapsible-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	background: var(--ipd-bg-light);
	border: none;
	text-align: left;
	padding: 16px 18px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ipd-text);
	cursor: pointer;
	font-family: inherit;
}
.ipd-collapsible-toggle:hover { background: #eef1f4; }
.ipd-collapsible-toggle-text { flex: 1 1 auto; }
.ipd-collapsible-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ipd-primary);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	transition: transform .15s ease;
}
.ipd-collapsible-toggle[aria-expanded="true"] .ipd-collapsible-icon { background: var(--ipd-accent); transform: rotate(45deg); }
.ipd-collapsible-panel { padding: 20px 20px 6px; background: #fff; }
.ipd-collapsible-panel .ipd-faq-item:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
 * Ad slots
 * --------------------------------------------------------------- */
.ipd-ad-slot { margin: 18px 0; text-align: center; overflow-x: auto; }
.ipd-ad-rotator { position: relative; min-height: 1px; }
.ipd-ad-slide { display: none; }
.ipd-ad-slide.is-active { display: block; animation: ipd-ad-fade-in .35s ease; }
@keyframes ipd-ad-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.ipd-ad-media { max-width: 100%; height: auto; display: inline-block; border-radius: 6px; }
.ipd-ad-link { display: inline-block; text-decoration: none; }
.ipd-ad-header_banner, .ipd-ad-footer_banner { max-width: 100%; }
.ipd-ad-sidebar_banner { margin-top: 0; margin-bottom: 20px; }

/* ---------------------------------------------------------------
 * Auth forms
 * --------------------------------------------------------------- */
.ipd-auth-form-wrap { max-width: 400px; margin: 0 auto; }
.ipd-social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ipd-social-btn {
	display: block;
	text-align: center;
	padding: 10px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid var(--ipd-border);
	color: var(--ipd-text);
}
.ipd-google-btn:hover { background: #f7f7f7; }
.ipd-microsoft-btn:hover { background: #f7f7f7; }
.ipd-auth-divider { text-align: center; font-size: 12.5px; color: #889; margin: 10px 0; }
.ipd-auth-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.ipd-auth-tab-btn { flex: 1; background: none; border: 1px solid var(--ipd-border); padding: 8px; cursor: pointer; border-radius: 6px; }
.ipd-auth-tab-btn.is-active { background: var(--ipd-primary); color: #fff; border-color: var(--ipd-primary); }
.ipd-auth-panel { display: none; flex-direction: column; gap: 10px; }
.ipd-auth-panel.is-active { display: flex; }
.ipd-auth-form input, .ipd-auth-form textarea { padding: 10px; border: 1px solid var(--ipd-border); border-radius: 6px; }
.ipd-auth-message, .ipd-submission-message { font-size: 13px; }
.ipd-auth-error { background: #fdeaea; color: #c0362c; padding: 10px 14px; border-radius: 6px; }

/* ---------------------------------------------------------------
 * Clean, professional submission form (the default look — no
 * glassmorphism/blur, just a well-spaced card with clear labels).
 * --------------------------------------------------------------- */
.ipd-submission-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 480px;
}
.ipd-submission-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #445;
	margin-bottom: 6px;
}
.ipd-submission-form input,
.ipd-submission-form textarea,
.ipd-submission-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ipd-border);
	border-radius: 8px;
	font-size: 14.5px;
	background: #fff;
	color: var(--ipd-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ipd-submission-form input:focus,
.ipd-submission-form textarea:focus,
.ipd-submission-form select:focus {
	outline: none;
	border-color: var(--ipd-primary);
	box-shadow: 0 0 0 3px rgba(26,95,122,.12);
}
.ipd-submission-form input::placeholder,
.ipd-submission-form textarea::placeholder { color: #9aa3ac; }

.ipd-submission-wrap:not(.ipd-glass-form),
.ipd-submission-wrap > div:not(.ipd-glass-form) {
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 14px;
	padding: 28px 30px;
	box-shadow: 0 4px 18px rgba(20,40,60,.06);
}
.ipd-submission-wrap h2 { margin-top: 0; font-size: 19px; }
.ipd-submission-intro { color: #667; font-size: 13.5px; margin-bottom: 6px; }

/* ---------------------------------------------------------------
 * Glassmorphism submission form theme (optional — colors/gradient/
 * blur are injected as CSS variables by IPD_Public::
 * output_custom_styles()). Only applies when explicitly enabled.
 * --------------------------------------------------------------- */
.ipd-glass-form {
	padding: 26px 28px;
	position: relative;
}
.ipd-glass-form .ipd-submission-form input,
.ipd-glass-form .ipd-submission-form textarea,
.ipd-glass-form .ipd-submission-form select {
	background: rgba(255,255,255,.75);
	border: 1px solid rgba(255,255,255,.6);
	color: #1a1a2e !important;
}
.ipd-glass-form .ipd-submission-form input::placeholder,
.ipd-glass-form .ipd-submission-form textarea::placeholder { color: #6b7280; opacity: 1; }
.ipd-glass-form h2,
.ipd-glass-form .ipd-submission-intro { color: inherit; }
.ipd-modal-box.ipd-glass-form .ipd-modal-header,
.ipd-modal-box.ipd-glass-form .ipd-modal-footer { border-color: rgba(255,255,255,.35); }
.ipd-modal-box.ipd-glass-form .ipd-modal-grid input,
.ipd-modal-box.ipd-glass-form .ipd-modal-grid select,
.ipd-modal-box.ipd-glass-form textarea {
	background: rgba(255,255,255,.75);
	border: 1px solid rgba(255,255,255,.6);
	color: #1a1a2e !important;
}
.ipd-modal-box.ipd-glass-form .ipd-modal-grid input::placeholder,
.ipd-modal-box.ipd-glass-form textarea::placeholder { color: #6b7280; opacity: 1; }
.ipd-modal-box.ipd-glass-form .ipd-modal-grid label { color: inherit; }

/* ---------------------------------------------------------------
 * Pin Code Card Marquee [ipd_pincode_marquee]
 * --------------------------------------------------------------- */
.ipd-marquee-outer { position: relative; }
.ipd-marquee-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ipd-border);
	box-shadow: 0 3px 10px rgba(20,40,60,.14);
	color: var(--ipd-primary);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ipd-marquee-nav:hover { background: var(--ipd-primary); color: #fff; transform: translateY(-50%) scale(1.08); }
.ipd-marquee-nav-prev { left: -6px; }
.ipd-marquee-nav-next { right: -6px; }
@media (max-width: 640px) {
	.ipd-marquee-nav { width: 32px; height: 32px; font-size: 17px; }
	.ipd-marquee-nav-prev { left: -2px; }
	.ipd-marquee-nav-next { right: -2px; }
}

.ipd-marquee-wrap {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 0 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	/* No mask-image edge-fade here (a previous version had one): its
	 * gradient stops (24px / calc(100% - 24px)) can become invalid or
	 * overlapping if this element is ever measured at a very small or
	 * zero width during an early/lazy render pass — common with
	 * Elementor's asset optimization — which can make the entire
	 * element resolve to fully transparent instead of just fading its
	 * edges. Reliable visibility matters more than that cosmetic
	 * polish. */
}
.ipd-marquee-wrap::-webkit-scrollbar { display: none; }

.ipd-marquee-track {
	display: flex;
	gap: var(--ipd-marquee-spacing, 18px);
	width: max-content;
}
.ipd-marquee-track.ipd-marquee-animating {
	animation-name: ipd-marquee-scroll-ltr;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.ipd-marquee-wrap:hover .ipd-marquee-track.ipd-marquee-animating {
	animation-play-state: paused;
}
@keyframes ipd-marquee-scroll-ltr {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes ipd-marquee-scroll-rtl {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}
.ipd-marquee-track.ipd-marquee-rtl { animation-name: ipd-marquee-scroll-rtl; }

.ipd-marquee-card {
	flex: 0 0 var(--ipd-marquee-card-width, 300px);
	width: var(--ipd-marquee-card-width, 300px);
	min-height: var(--ipd-marquee-card-height, 220px);
	border-radius: var(--ipd-marquee-radius, 18px);
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #f0e4d8;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ipd-marquee-shadow-on .ipd-marquee-card { box-shadow: 0 6px 20px rgba(80,50,20,.08); }

/* Custom HTML card design: blank slate — no built-in background,
 * border, padding, or fixed sizing — so the admin's own pasted
 * design has full control instead of fighting the default card box. */
.ipd-marquee-card.ipd-marquee-card-custom {
	background: none;
	border: none;
	padding: 0;
	width: auto;
	min-height: 0;
	flex: 0 0 auto;
}
.ipd-marquee-shadow-on .ipd-marquee-card.ipd-marquee-card-custom { box-shadow: none; }

/* Mobile-only height reduction for Custom HTML Card Design — the
 * admin's own pasted design can be taller than ideal on small
 * screens; capping (and letting any overflow scroll rather than
 * spill into neighboring cards) keeps mobile compact without
 * touching the Desktop/Tablet appearance at all. */
@media (max-width: 640px) {
	.ipd-marquee-card.ipd-marquee-card-custom {
		max-height: 220px;
		overflow-y: auto;
	}
}

.ipd-marquee-card-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ecd9c6; }
.ipd-marquee-icon {
	background: #fbe4ea;
	border-radius: 10px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.ipd-marquee-pincode { font-size: 24px; font-weight: 800; color: #ef6a1f; text-decoration: none; letter-spacing: .5px; }
.ipd-marquee-type-badge {
	background: #fde3d0;
	color: #b5591a;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
}
.ipd-marquee-copy-btn {
	margin-left: auto;
	background: #eef2fb;
	color: #35507a;
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.ipd-marquee-copy-btn:hover { background: #dfe6f7; }

.ipd-marquee-card-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ipd-marquee-row { display: flex; justify-content: space-between; gap: 10px; }
.ipd-marquee-label { color: #97907d; opacity: .65; text-transform: uppercase; font-size: 11px; letter-spacing: .3px; white-space: nowrap; }
.ipd-marquee-value { text-align: right; font-weight: 600; color: #2b2620; }
.ipd-marquee-pill {
	background: #f3f0ea;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 11.5px;
}

/* Theme: Dark Mode */
.ipd-marquee-theme-dark .ipd-marquee-card { background: #1c1f24; border-color: #2c3138; }
.ipd-marquee-theme-dark .ipd-marquee-card-top { border-bottom-color: #333940; }
.ipd-marquee-theme-dark .ipd-marquee-value { color: #e7ebee; }
.ipd-marquee-theme-dark .ipd-marquee-label { color: #8b95a0; }
.ipd-marquee-theme-dark .ipd-marquee-pill { background: #262b31; color: #d7dce1; }
.ipd-marquee-theme-dark .ipd-marquee-copy-btn { background: #2a3f5f; color: #cfe0ff; }

/* Theme: Glassmorphism */
.ipd-marquee-theme-glass .ipd-marquee-card {
	background: rgba(255,255,255,.35);
	border: 1px solid rgba(255,255,255,.5);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Theme: Gradient */
.ipd-marquee-theme-gradient .ipd-marquee-card {
	background: linear-gradient(135deg, var(--ipd-marquee-gradient-from, #fff7f0), var(--ipd-marquee-gradient-to, #ffe8d6));
	border: none;
}

/* Theme: Minimal */
.ipd-marquee-theme-minimal .ipd-marquee-card { background: transparent; border: none; box-shadow: none; padding: 12px 4px; }
.ipd-marquee-theme-minimal .ipd-marquee-card-top { border-bottom-color: #eee; }

@media (max-width: 640px) {
	.ipd-marquee-card { flex-basis: 240px; width: 240px; }
}

/* ---------------------------------------------------------------
 * Popular Pin Code Directory cards (directory homepage)
 * --------------------------------------------------------------- */
.ipd-popular-directories-intro { color: #667; font-size: 14px; margin-top: 4px; }
.ipd-popular-directory-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin: 16px 0 28px;
}
.ipd-popular-directory-card {
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 12px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ipd-popular-directory-head { display: flex; align-items: center; justify-content: space-between; }
.ipd-popular-directory-pincode { font-size: 18px; font-weight: 800; color: var(--ipd-primary-dark); }
.ipd-popular-directory-count {
	background: var(--ipd-bg-light);
	color: #667;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
}
.ipd-popular-directory-location { font-size: 13px; color: #778; margin: 0 0 6px; }
.ipd-popular-directory-offices { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.ipd-popular-directory-offices li { padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.ipd-popular-directory-offices li::before { content: "📍"; font-size: 11px; }
.ipd-popular-directory-more { font-size: 12px; color: #99a; margin: 2px 0 8px; }
.ipd-popular-directory-link { margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--ipd-primary); text-decoration: none; }
.ipd-popular-directory-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
 * Submit Missing Pin Code popup modal (front-end)
 * --------------------------------------------------------------- */
.ipd-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20,25,30,.55);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ipd-modal-overlay.is-open { display: flex; }
.ipd-modal-box {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ipd-modal-box.ipd-glass-form {
	/* The glassmorphism background/blur lives on the ::before layer
	 * (see IPD_Public::output_custom_styles()) — this modal box's own
	 * opaque white background must be removed here, otherwise it sits
	 * directly behind that layer and gets blurred into an indistinct
	 * white haze instead of the actual page behind the modal, which is
	 * exactly what caused the "blurred background, fields not visible"
	 * bug. The fields themselves stay solid/readable via the explicit
	 * background+color already set on .ipd-modal-grid input etc. below.
	 */
	background: transparent;
}
.ipd-modal-small { max-width: 560px; }
.ipd-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid #ececef; }
.ipd-modal-header h2 { margin: 0; font-size: 18px; }
.ipd-modal-close-btn { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #888; }
.ipd-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.ipd-modal-intro { font-size: 13.5px; color: #667; margin: 0 0 14px; }
.ipd-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.ipd-modal-grid label,
.ipd-modal-notes-label { display: flex; flex-direction: column; font-size: 12.5px; color: #556; gap: 4px; margin-top: 12px; }
.ipd-modal-grid input,
.ipd-modal-notes-label textarea {
	padding: 9px 11px;
	border: 1px solid var(--ipd-border);
	border-radius: 6px;
	font-size: 13.5px;
}
.ipd-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #ececef; }
.ipd-missing-pincode-message { font-size: 13px; margin-top: 10px; }

@media (max-width: 640px) {
	.ipd-modal-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
 * Consistent "mini card" grid — used by Other Post Offices, Nearby
 * Pin Codes, Recently Viewed, Browse by Country, Browse by State
 * --------------------------------------------------------------- */
.ipd-mini-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 14px 0 24px;
}
.ipd-mini-card-grid.ipd-custom-card-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.ipd-custom-card-link { display: block; text-decoration: none; color: inherit; }
.ipd-mini-card {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ipd-shortcode-bg-color, #ffffff);
	border: 1px solid var(--ipd-border);
	border-radius: 10px;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--ipd-shortcode-text-color, var(--ipd-text));
	font-size: 13.5px;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ipd-mini-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20,40,60,.10);
	border-color: var(--ipd-primary);
}
.ipd-country-list .ipd-mini-card,
.ipd-country-list .ipd-photo-card {
	background: var(--ipd-country-list-bg-color, var(--ipd-shortcode-bg-color, #ffffff));
}
.ipd-mini-card-icon { font-size: var(--ipd-shortcode-icon-size, 20px); flex-shrink: 0; }
.ipd-mini-card-logo { width: var(--ipd-state-logo-size, 28px); height: var(--ipd-state-logo-size, 28px); object-fit: contain; flex-shrink: 0; border-radius: 3px; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.ipd-mini-card-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------
 * Other Post Offices / Nearby Pin Codes carousel — reuses the Pin
 * Code Card marquee's own scroll/nav-button behaviour (no autoscroll,
 * see data-autoscroll="0" in single-pincode.php) once there are
 * enough cards that a plain grid would run long. A plain
 * .ipd-mini-card keeps its compact pill look even inside the
 * fixed-width track; a custom card gets the same blank-slate
 * treatment it gets everywhere else.
 * --------------------------------------------------------------- */
.ipd-mini-card-track .ipd-mini-card-in-track.ipd-mini-card {
	width: var(--ipd-marquee-card-width, 260px);
	min-height: 0;
}

/* ---------------------------------------------------------------
 * Icon-only share buttons
 * --------------------------------------------------------------- */
.ipd-share-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	color: #556;
	text-decoration: none;
	transition: transform .12s ease, background .12s ease, color .12s ease;
}
.ipd-share-icon-btn svg { display: block; }
.ipd-share-icon-btn:hover { transform: translateY(-2px); color: #fff; }
.ipd-share-facebook:hover { background: #1877f2; }
.ipd-share-twitter:hover { background: #000000; }
.ipd-share-whatsapp:hover { background: #25d366; }

/* ---------------------------------------------------------------
 * "Open the Submission Form" reopen link (red, clickable)
 * --------------------------------------------------------------- */
.ipd-reopen-submission-text { margin: 10px 0 20px; }
.ipd-reopen-submission-text a {
	color: #c0362c;
	font-weight: 700;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.ipd-reopen-submission-text a:hover { color: #931f18; }

/* ---------------------------------------------------------------
 * Home Page-only submission form enhancement (item 2 of the v1.6
 * request — scoped strictly to .ipd-is-homepage so the popup and the
 * [ipd_submit_pincode] page elsewhere keep their existing look)
 * --------------------------------------------------------------- */
.ipd-is-homepage .ipd-search-form-wrap {
	background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(240,244,255,.9));
	border: 1px solid rgba(255,255,255,.6);
	border-radius: 18px;
	padding: 22px 24px;
	box-shadow: 0 12px 34px rgba(20,40,60,.08);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.ipd-is-homepage .ipd-search-btn {
	background: linear-gradient(135deg, var(--ipd-primary), var(--ipd-accent));
	border: none;
}
.ipd-is-homepage .ipd-search-main {
	justify-content: center;
}
.ipd-is-homepage .ipd-search-input-wrap {
	flex-grow: 0;
}
@media (max-width: 480px) {
	.ipd-is-homepage .ipd-search-form-wrap { padding: 16px; border-radius: 14px; }
}

.ipd-search-input-wrap { flex: 1 1 320px; max-width: 420px; }

/* ---------------------------------------------------------------
 * Location stat cards (Districts/States with the Most Listings)
 * reuse the marquee card shell defined above, no extra rules needed
 * beyond the shared .ipd-marquee-card styling.
 * --------------------------------------------------------------- */

/* ---------------------------------------------------------------
 * Filter Design system (v1.8) — supersedes all earlier filter CSS
 * above via cascade order. Five selectable styles (Boxed, Inline,
 * Card, Minimal, Pills), chosen under SEO & Settings > Filter Design
 * or per-shortcode via [ipd_search_form filter_style="..."].
 *
 * Sizing bakes the Desktop/Tablet/Mobile Scale multiplier directly
 * into each property's real pixel value (see IPD_Public::
 * output_custom_styles() and the calc(Npx * var(--ipd-filter-scale-
 * ratio,1)) rules further down for the styles with their own
 * compact base sizing) — NOT a CSS zoom or transform on the
 * container. An earlier attempt used zoom here for simplicity, but
 * in real testing that broke this row's own flex layout (fields and
 * buttons collapsing to near-zero width and stacking vertically
 * instead of sitting in a row), so scaling is back to this proven,
 * property-by-property approach.
 *
 * Defensive resets (box-sizing, appearance, max-width:100%) are
 * included throughout so the filter renders consistently inside any
 * WordPress theme instead of inheriting the theme's own form-field
 * styling.
 * --------------------------------------------------------------- */
.ipd-filter-pills,
.ipd-filter-pills * { box-sizing: border-box; }

.ipd-filter-pills {
	/* !important: see the matching note on .ipd-search-row above — a
	 * page builder's or theme's own container CSS can otherwise
	 * silently turn this into a vertical stack. */
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center;
	gap: var(--ipd-filter-spacing, 14px) !important;
	width: 100%;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
.ipd-filter-pill {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	flex: 1 1 var(--ipd-filter-width, 220px) !important;
	/* Tied to the same Filter Field Width setting as flex-basis above
	 * (not a separate hardcoded number) — a hardcoded 160px floor here
	 * used to silently override any configured width below 160px,
	 * which is exactly why the Filter Field Width slider looked like
	 * it "wasn't responding" for smaller values. */
	min-width: var(--ipd-filter-width, 90px) !important;
	max-width: 100% !important;
}
.ipd-filter-pill label {
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: .5px !important;
	font-weight: 700 !important;
	color: var(--ipd-filter-label, #8a94a0);
}
.ipd-filter-pill select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100% !important;
	max-width: 100% !important;
	font-size: var(--ipd-filter-font-size, 15px) !important;
	font-family: inherit;
	cursor: pointer;
	background-color: var(--ipd-filter-dropdown-bg, #fff);
	color: var(--ipd-filter-dropdown-text, inherit);
	border-color: var(--ipd-filter-border, var(--ipd-border));
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 34px !important;
}
.ipd-filter-apply-btn,
.ipd-filter-reset-btn {
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap !important;
	flex: 0 0 auto !important;
	background: var(--ipd-reset-btn-bg, #fff);
	color: var(--ipd-reset-btn-text, #8a94a0);
}

/* ---- Style: Boxed (default) — soft lavender panel, large boxes ---- */
.ipd-filter-style-boxed {
	background: var(--ipd-filter-bar-bg, #f2f0fb);
	border: 1px solid var(--ipd-filter-border, #e7e3f7);
	border-radius: 16px;
	padding: 22px;
	align-items: flex-start;
}
.ipd-filter-style-boxed .ipd-filter-pill label { color: var(--ipd-filter-label, #8a86a8) !important; padding-left: 2px; }
.ipd-filter-style-boxed .ipd-filter-pill select {
	height: var(--ipd-filter-height, 90px) !important;
	border-radius: 14px;
	border: 1px solid var(--ipd-filter-border, #ece9f9);
	background-color: var(--ipd-filter-dropdown-bg, #fff);
	padding: 14px 16px;
	color: var(--ipd-filter-dropdown-text, #2b2740);
	box-shadow: 0 2px 6px rgba(70,50,120,.04);
}
.ipd-filter-style-boxed .ipd-filter-pill select:hover,
.ipd-filter-style-boxed .ipd-filter-pill select:focus {
	border-color: #cfc7f0;
	box-shadow: 0 4px 14px rgba(70,50,120,.10);
	outline: none;
}
.ipd-filter-style-boxed .ipd-filter-apply-btn {
	height: calc(44px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 26px;
	font-size: calc(14px * var(--ipd-filter-scale-ratio, 1));
	font-weight: 700;
	background: var(--ipd-filter-btn-bg, linear-gradient(135deg, #f6a35e, #f2751f));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
	box-shadow: 0 6px 16px rgba(242,117,31,.28);
	align-self: flex-end;
}
.ipd-filter-style-boxed .ipd-filter-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242,117,31,.35); }
.ipd-filter-style-boxed .ipd-filter-reset-btn {
	height: calc(44px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 20px;
	background: var(--ipd-reset-btn-bg, #fff);
	border: 1px solid var(--ipd-filter-border, #e2ddf5);
	color: var(--ipd-reset-btn-text, #8a86a8);
	align-self: flex-end;
}

/* ---- Style: Inline — single slim bar, minimal visual weight ---- */
.ipd-filter-style-inline {
	align-items: center;
	background: transparent;
	border: none;
	border-top: 1px solid var(--ipd-border);
	border-bottom: 1px solid var(--ipd-border);
	padding: 12px 0;
	gap: 20px !important;
}
.ipd-filter-style-inline .ipd-filter-pill { flex-direction: row !important; align-items: center; gap: 8px !important; min-width: auto !important; }
.ipd-filter-style-inline .ipd-filter-pill label { color: var(--ipd-filter-label, #667); white-space: nowrap; }
.ipd-filter-style-inline .ipd-filter-pill select {
	height: calc(36px * var(--ipd-filter-scale-ratio, 1)) !important;
	border: none;
	border-bottom: 2px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 0;
	background-color: var(--ipd-filter-dropdown-bg, transparent);
	padding: 4px 28px 4px 4px !important;
	color: var(--ipd-filter-dropdown-text, var(--ipd-text));
	font-size: calc(15px * var(--ipd-filter-scale-ratio, 1));
}
.ipd-filter-style-inline .ipd-filter-pill select:focus { border-bottom-color: var(--ipd-primary); outline: none; }
.ipd-filter-style-inline .ipd-filter-apply-btn {
	height: calc(36px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 6px;
	padding: 0 18px;
	background: var(--ipd-filter-btn-bg, var(--ipd-primary));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
	font-size: calc(13px * var(--ipd-filter-scale-ratio, 1));
}
.ipd-filter-style-inline .ipd-filter-reset-btn {
	height: calc(36px * var(--ipd-filter-scale-ratio, 1));
	border: none;
	background: var(--ipd-reset-btn-bg, none);
	color: var(--ipd-reset-btn-text, #889);
	font-size: calc(13px * var(--ipd-filter-scale-ratio, 1));
	text-decoration: underline;
}

/* ---- Style: Card — each field its own elevated white tile ---- */
.ipd-filter-style-card {
	background: transparent;
	border: none;
	padding: 4px;
}
.ipd-filter-style-card .ipd-filter-pill {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 4px 14px rgba(20,40,60,.08);
	border: 1px solid var(--ipd-border);
}
.ipd-filter-style-card .ipd-filter-pill label { color: var(--ipd-filter-label, #99a); margin-bottom: 2px; }
.ipd-filter-style-card .ipd-filter-pill select {
	height: calc(40px * var(--ipd-filter-scale-ratio, 1)) !important;
	border: none;
	background-color: var(--ipd-filter-dropdown-bg, transparent);
	padding: 4px 28px 4px 0 !important;
	color: var(--ipd-filter-dropdown-text, var(--ipd-text));
	font-weight: 600;
	font-size: calc(15px * var(--ipd-filter-scale-ratio, 1));
}
.ipd-filter-style-card .ipd-filter-apply-btn {
	height: calc(44px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 10px;
	padding: 0 24px;
	background: var(--ipd-filter-btn-bg, linear-gradient(135deg, var(--ipd-primary), var(--ipd-accent)));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
	font-weight: 700;
	align-self: center;
}
.ipd-filter-style-card .ipd-filter-reset-btn {
	height: calc(44px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 10px;
	padding: 0 18px;
	background: var(--ipd-reset-btn-bg, #fff);
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	color: var(--ipd-reset-btn-text, #889);
	align-self: center;
}

/* ---- Style: Minimal — no container, just clean underlined fields ---- */
.ipd-filter-style-minimal {
	background: none;
	border: none;
	padding: 6px 0;
	align-items: flex-end;
}
.ipd-filter-style-minimal .ipd-filter-pill label { color: var(--ipd-filter-label, #99a); }
.ipd-filter-style-minimal .ipd-filter-pill select {
	height: calc(38px * var(--ipd-filter-scale-ratio, 1)) !important;
	border: none;
	border-bottom: 1px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 0;
	background-color: var(--ipd-filter-dropdown-bg, transparent);
	color: var(--ipd-filter-dropdown-text, inherit);
	padding: 4px 28px 6px 0 !important;
	font-size: calc(15px * var(--ipd-filter-scale-ratio, 1));
}
.ipd-filter-style-minimal .ipd-filter-pill select:focus { border-bottom: 2px solid var(--ipd-primary); outline: none; }
.ipd-filter-style-minimal .ipd-filter-apply-btn {
	height: calc(38px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 6px;
	padding: 0 20px;
	background: var(--ipd-filter-btn-bg, var(--ipd-primary));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
}
.ipd-filter-style-minimal .ipd-filter-reset-btn {
	height: calc(38px * var(--ipd-filter-scale-ratio, 1));
	background: var(--ipd-reset-btn-bg, none);
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 6px;
	padding: 0 16px;
	color: var(--ipd-reset-btn-text, #889);
}

/* ---- Style: Pills — compact rounded pill selects ---- */
.ipd-filter-style-pills {
	background: var(--ipd-filter-bar-bg, var(--ipd-bg-light));
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 999px;
	padding: 8px 12px;
	align-items: center;
	gap: 8px !important;
}
.ipd-filter-style-pills .ipd-filter-pill { flex-direction: row !important; align-items: center; min-width: auto !important; gap: 0 !important; }
.ipd-filter-style-pills .ipd-filter-pill label { display: none; }
.ipd-filter-style-pills .ipd-filter-pill select {
	height: calc(34px * var(--ipd-filter-scale-ratio, 1)) !important;
	border-radius: 999px;
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	background-color: var(--ipd-filter-dropdown-bg, #fff);
	color: var(--ipd-filter-dropdown-text, inherit);
	padding: 0 28px 0 14px !important;
	font-size: calc(13px * var(--ipd-filter-scale-ratio, 1)) !important;
}
.ipd-filter-style-pills .ipd-filter-apply-btn {
	height: calc(34px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 18px;
	background: var(--ipd-filter-btn-bg, linear-gradient(135deg, var(--ipd-primary), var(--ipd-accent)));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
	font-size: calc(13px * var(--ipd-filter-scale-ratio, 1));
}
.ipd-filter-style-pills .ipd-filter-reset-btn {
	height: calc(34px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 14px;
	background: var(--ipd-reset-btn-bg, #fff);
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	color: var(--ipd-reset-btn-text, #889);
	font-size: calc(13px * var(--ipd-filter-scale-ratio, 1));
}

/* ---- Responsive behaviour shared by all styles ---- */
@media (max-width: 900px) {
	.ipd-filter-style-inline .ipd-filter-pill,
	.ipd-filter-style-minimal .ipd-filter-pill { flex-direction: column !important; align-items: stretch; }
}
@media (max-width: 640px) {
	.ipd-filter-pill { flex: 1 1 100% !important; min-width: 0 !important; }
	.ipd-filter-style-pills .ipd-filter-pill { flex: 1 1 45% !important; }
	.ipd-filter-apply-btn, .ipd-filter-reset-btn { width: 100%; align-self: stretch !important; }
	.ipd-filter-pills { padding: 14px !important; }
}

/* ---------------------------------------------------------------
 * Touch-friendly minimum control sizes on small screens (item 5/6:
 * mobile optimization + general responsive compatibility)
 * --------------------------------------------------------------- */
@media (max-width: 782px) {
	.ipd-filter-pill select,
	.ipd-filter-apply-btn,
	.ipd-filter-reset-btn,
	.ipd-search-btn,
	.ipd-location-btn,
	.ipd-copy-btn,
	.ipd-marquee-copy-btn,
	.ipd-open-missing-pincode-modal {
		min-height: 42px;
	}
	.ipd-share-icon-btn { width: 40px; height: 40px; }
	.ipd-alpha-link { width: 40px; height: 40px; }
	.ipd-popular-directory-cards,
	.ipd-mini-card-grid,
	.ipd-stat-cards--v2 { gap: 10px; }
}

/* ---------------------------------------------------------------
 * "More About [Office Name]" auto-generated content section
 * --------------------------------------------------------------- */
.ipd-auto-seo-content {
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	border-radius: 12px;
	padding: 20px 22px;
	margin: 22px 0;
}
.ipd-auto-seo-content h2 {
	margin-top: 0;
	font-size: 17px;
	color: var(--ipd-primary-dark);
}
.ipd-auto-seo-content h2:not(:first-child) { margin-top: 26px; }
.ipd-auto-seo-content h3 { font-size: 15px; color: var(--ipd-primary-dark); margin: 20px 0 8px; }
.ipd-auto-seo-content h4 { font-size: 14px; color: var(--ipd-primary-dark); margin: 16px 0 6px; }
.ipd-auto-seo-content p {
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #445;
}
.ipd-auto-seo-content p:last-child { margin-bottom: 0; }
.ipd-auto-seo-content a { color: var(--ipd-primary); }
.ipd-auto-seo-content ul.ipd-quick-facts,
.ipd-auto-seo-content ul.ipd-common-mistakes,
.ipd-auto-seo-content ol.ipd-quick-steps {
	margin: 0 0 12px;
	padding-left: 22px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #445;
}
.ipd-auto-seo-content ul.ipd-quick-facts li,
.ipd-auto-seo-content ul.ipd-common-mistakes li,
.ipd-auto-seo-content ol.ipd-quick-steps li {
	margin-bottom: 6px;
}
.ipd-auto-content-image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 6px 0 16px;
}

/* Auto-generated Table of Contents */
.ipd-toc {
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 13.5px;
}
.ipd-toc-title { display: block; margin-bottom: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #889; }
.ipd-toc ul { margin: 0; padding-left: 20px; }
.ipd-toc li { margin-bottom: 4px; }
.ipd-toc a { color: var(--ipd-primary); text-decoration: none; }
.ipd-toc a:hover { text-decoration: underline; }

/* Fallback placeholder image (records with no uploaded photo) */

/* ---------------------------------------------------------------
 * Sidebar clickable menu boxes (Recently Added / Browse by Country /
 * Popular Pin Codes / Browse by State) — 4 selectable box styles,
 * colors driven by CSS variables set in IPD_Public::output_custom_styles()
 * --------------------------------------------------------------- */
.ipd-sidebar-column .ipd-mini-card-grid,
.ipd-sidebar-column .ipd-grid-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-template-columns: none;
}

/* Style: Flat — plain text links, no box at all */
.ipd-sidebar-boxes-flat .ipd-mini-card,
.ipd-sidebar-boxes-flat .ipd-grid-list a {
	background: none;
	border: none;
	padding: 4px 0;
	color: inherit;
	text-decoration: underline;
}
.ipd-sidebar-boxes-flat .ipd-mini-card:hover,
.ipd-sidebar-boxes-flat .ipd-grid-list a:hover { color: var(--ipd-sidebar-box-hover-bg, var(--ipd-primary)); }

/* Style: Card — boxed with icon (default; reuses the shared mini-card look) */
.ipd-sidebar-boxes-card .ipd-mini-card,
.ipd-sidebar-boxes-card .ipd-grid-list a {
	display: flex;
	background: var(--ipd-sidebar-box-bg, #fff);
	color: var(--ipd-sidebar-box-text, inherit);
	border: 1px solid var(--ipd-border);
	border-radius: 8px;
	padding: 8px 10px;
	text-decoration: none;
	transition: background .12s ease, color .12s ease;
}
.ipd-sidebar-boxes-card .ipd-mini-card:hover,
.ipd-sidebar-boxes-card .ipd-grid-list a:hover {
	background: var(--ipd-sidebar-box-hover-bg, var(--ipd-primary));
	color: var(--ipd-sidebar-box-hover-text, #fff);
}

/* Style: Pill — rounded chip links */
.ipd-sidebar-boxes-pill .ipd-mini-card,
.ipd-sidebar-boxes-pill .ipd-grid-list a {
	display: inline-flex;
	background: var(--ipd-sidebar-box-bg, #fff);
	color: var(--ipd-sidebar-box-text, inherit);
	border: 1px solid var(--ipd-border);
	border-radius: 999px;
	padding: 6px 14px;
	text-decoration: none;
	font-size: 13px;
	transition: background .12s ease, color .12s ease;
}
.ipd-sidebar-boxes-pill .ipd-mini-card:hover,
.ipd-sidebar-boxes-pill .ipd-grid-list a:hover {
	background: var(--ipd-sidebar-box-hover-bg, var(--ipd-primary));
	color: var(--ipd-sidebar-box-hover-text, #fff);
}

/* Style: Bordered — left accent line, no full box */
.ipd-sidebar-boxes-bordered .ipd-mini-card,
.ipd-sidebar-boxes-bordered .ipd-grid-list a {
	display: block;
	background: var(--ipd-sidebar-box-bg, transparent);
	color: var(--ipd-sidebar-box-text, inherit);
	border: none;
	border-left: 3px solid var(--ipd-border);
	padding: 6px 10px;
	text-decoration: none;
	transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.ipd-sidebar-boxes-bordered .ipd-mini-card:hover,
.ipd-sidebar-boxes-bordered .ipd-grid-list a:hover {
	border-left-color: var(--ipd-sidebar-box-hover-bg, var(--ipd-primary));
	color: var(--ipd-sidebar-box-hover-bg, var(--ipd-primary));
	background: var(--ipd-sidebar-box-bg, transparent);
}

/* ---------------------------------------------------------------
 * Style: Dropdown Filter Bar — a single connected, pill-shaped bar
 * with each dropdown as a segment (thin dividers between them) and
 * the Apply button fused to the end. Width, spacing inside the bar,
 * segment ("box") size, and button design are all admin-configurable
 * under SEO & Settings > Filter Design.
 * --------------------------------------------------------------- */
.ipd-filter-style-dropdownbar {
	display: flex !important;
	align-items: stretch !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	max-width: var(--ipd-filter-bar-width, 900px);
	margin: 0 auto;
	background: var(--ipd-filter-bar-bg, #fff);
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(20,40,60,.06);
	padding: 0 0 0 var(--ipd-filter-spacing, 14px);
}
.ipd-filter-style-dropdownbar .ipd-filter-pill {
	flex-direction: row !important;
	align-items: center;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	border-right: 1px solid var(--ipd-filter-border, var(--ipd-border));
	padding-right: var(--ipd-filter-spacing, 14px);
}
.ipd-filter-style-dropdownbar .ipd-filter-pill:last-of-type { border-right: none; }
.ipd-filter-style-dropdownbar .ipd-filter-pill label { display: none; }
.ipd-filter-style-dropdownbar .ipd-filter-pill select {
	height: var(--ipd-filter-height, 54px) !important;
	max-height: none;
	border: none;
	background-color: var(--ipd-filter-dropdown-bg, transparent);
	padding: 0 26px 0 var(--ipd-filter-spacing, 14px) !important;
	font-size: var(--ipd-filter-font-size, 14px) !important;
	color: var(--ipd-filter-dropdown-text, var(--ipd-text));
}
.ipd-filter-style-dropdownbar .ipd-filter-apply-btn {
	flex: 0 0 auto;
	border-radius: 0 999px 999px 0 !important;
	height: auto !important;
	align-self: stretch;
	padding: 0 28px !important;
}
.ipd-filter-style-dropdownbar .ipd-filter-reset-btn {
	flex: 0 0 auto;
	background: var(--ipd-reset-btn-bg, none);
	border: none;
	color: var(--ipd-reset-btn-text, #99a);
	font-size: 12.5px;
	text-decoration: underline;
	align-self: center;
	margin-left: 10px;
}
@media (max-width: 782px) {
	.ipd-filter-style-dropdownbar {
		flex-wrap: wrap !important;
		border-radius: 16px;
		padding: 8px;
	}
	.ipd-filter-style-dropdownbar .ipd-filter-pill {
		border-right: none;
		border-bottom: 1px solid var(--ipd-border);
		flex: 1 1 100% !important;
		padding: 6px 0;
	}
	.ipd-filter-style-dropdownbar .ipd-filter-apply-btn {
		border-radius: 999px !important;
		width: 100%;
		margin-top: 8px;
	}
	.ipd-filter-style-dropdownbar .ipd-filter-reset-btn { margin: 6px auto 0; }
}

/* ---- Filter button design (applies across every filter style) ---- */
.ipd-filter-btn-style-solid { background: var(--ipd-primary); color: #fff; border: none; }
.ipd-filter-btn-style-solid:hover { background: var(--ipd-primary-dark); }
.ipd-filter-btn-style-gradient { background: linear-gradient(135deg, var(--ipd-primary), var(--ipd-accent)); color: #fff; border: none; }
.ipd-filter-btn-style-outline { background: transparent; color: var(--ipd-primary); border: 2px solid var(--ipd-primary); }
.ipd-filter-btn-style-outline:hover { background: var(--ipd-primary); color: #fff; }
.ipd-filter-btn-style-icon {
	background: var(--ipd-primary);
	color: #fff;
	border: none;
	border-radius: 50% !important;
	width: 44px;
	height: 44px !important;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

/* ---------------------------------------------------------------
 * Submission form banner (admin-editable text/color, above the form)
 * --------------------------------------------------------------- */
.ipd-submission-banner {
	overflow: hidden;
	white-space: nowrap;
	padding: 10px 16px;
	border-radius: 10px 10px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: -1px;
}
.ipd-submission-wrap .ipd-submission-banner { border-radius: 10px 10px 0 0; }
.ipd-modal-box .ipd-submission-banner { border-radius: 0; margin: 0; }
.ipd-submission-banner-text { display: inline-block; }
.ipd-submission-banner-running .ipd-submission-banner-text {
	display: inline-block;
	padding-left: 100%;
	animation: ipd-banner-scroll 16s linear infinite;
}
@keyframes ipd-banner-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

/* ---------------------------------------------------------------
 * Auto-displayed disclaimer (bottom of every pin code page)
 * --------------------------------------------------------------- */
.ipd-disclaimer {
	margin-top: 24px;
	padding: 14px 16px;
	background: #fdf8ee;
	border: 1px solid #f0e2bb;
	border-radius: 8px;
	font-size: 12.5px;
	color: #6b5a2a;
	line-height: 1.6;
}

/* ---------------------------------------------------------------
 * City Famous Places (shown below the detail table)
 * --------------------------------------------------------------- */
.ipd-famous-places { margin: 22px 0; }
.ipd-famous-places h2 { font-size: 17px; margin-bottom: 12px; }
.ipd-famous-places-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}
.ipd-famous-place-card {
	background: #fff;
	border: 1px solid var(--ipd-border);
	border-radius: 10px;
	overflow: hidden;
	transition: transform .12s ease, box-shadow .12s ease;
}
.ipd-famous-place-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,40,60,.10); }
.ipd-famous-place-image { width: 100%; height: 130px; object-fit: cover; display: block; }
.ipd-famous-place-info { padding: 10px 12px; }
.ipd-famous-place-info h3 { margin: 0 0 6px; font-size: 14px; }
.ipd-famous-place-map-link { font-size: 12.5px; color: var(--ipd-primary); text-decoration: none; margin-right: 10px; }
.ipd-famous-place-source-link { font-size: 12.5px; color: #889; text-decoration: none; }

/* When there are more than 3 Famous Places cards, they move into the
 * same horizontal slider/carousel (prev/next arrows) used elsewhere
 * on the page, instead of the plain grid above. */
.ipd-famous-places-track { align-items: stretch; }
.ipd-famous-places-track .ipd-famous-place-card.ipd-marquee-card {
	width: 220px;
	height: auto;
	flex: 0 0 auto;
	margin: 0;
}
.ipd-famous-place-source-link:hover { text-decoration: underline; }
.ipd-famous-place-map-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
 * Photo Card display style for Browse by Country / Browse by State
 * (alternative to the compact icon mini-cards). Desktop auto-adjusts
 * the number of columns to fit the available width; mobile always
 * shows exactly 2 per row.
 * --------------------------------------------------------------- */
.ipd-photo-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	margin: 14px 0;
}
.ipd-photo-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	background: var(--ipd-bg-light);
	border: 1px solid var(--ipd-border);
	box-shadow: 0 4px 14px rgba(20,40,60,.06);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ipd-photo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,40,60,.14); }
.ipd-photo-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ipd-photo-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: #aab;
}
.ipd-photo-card-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 12px;
	background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
}
@media (max-width: 640px) {
	.ipd-photo-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ipd-photo-card-label { font-size: 12.5px; padding: 8px 10px; }
}

/* ---------------------------------------------------------------
 * Style: Modern — a soft, rounded, icon-labeled design (search bar
 * with an icon + Search button + "My Location" all in one pill,
 * then a light panel below with labeled Country/State/District/City
 * pill selects, a blue gradient Apply Filters button, a light Reset
 * button, and a small trust-badge line underneath).
 * --------------------------------------------------------------- */
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-main,
.ipd-search-main.ipd-search-style-modern {
	background: var(--ipd-search-bar-bg, #fff);
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
	box-shadow: 0 10px 30px rgba(20,40,90,.10);
	align-items: center;
	flex-wrap: nowrap;
}
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-input-wrap {
	flex: 1 1 auto;
	max-width: none;
}
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-input {
	border: none;
	background: var(--ipd-search-bar-input-bg, transparent);
	box-shadow: none;
	padding-left: 8px;
}
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-input-icon { left: 0; }
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-btn {
	border-radius: 999px;
	background: var(--ipd-search-btn-bg, linear-gradient(135deg, #2f6fed, #1f4fd1));
	color: var(--ipd-search-btn-text, #fff);
	box-shadow: 0 6px 16px rgba(37,90,220,.3);
	white-space: nowrap;
}
.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-location-btn {
	border-radius: 999px;
	background: #eef2fb;
	color: #2f52c0;
	border: none;
	white-space: nowrap;
}

.ipd-filter-style-modern {
	background: var(--ipd-filter-bar-bg, #fff);
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	border-radius: 20px;
	padding: 26px;
	box-shadow: 0 10px 30px rgba(20,40,90,.08);
	margin-top: 14px;
	align-items: flex-end;
}
.ipd-filter-style-modern .ipd-filter-pill { min-width: 170px; }
.ipd-filter-style-modern .ipd-filter-pill label {
	display: flex;
	align-items: center;
	gap: 6px;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: .5px;
	color: var(--ipd-filter-label, #8890a0);
	font-weight: 700;
}
.ipd-filter-style-modern .ipd-filter-pill[data-field="country"] label::before { content: "🌐"; font-size: 13px; }
.ipd-filter-style-modern .ipd-filter-pill[data-field="state"] label::before { content: "👤"; font-size: 13px; }
.ipd-filter-style-modern .ipd-filter-pill[data-field="district"] label::before { content: "🏢"; font-size: 13px; }
.ipd-filter-style-modern .ipd-filter-pill[data-field="city"] label::before { content: "📍"; font-size: 13px; }
.ipd-filter-style-modern .ipd-filter-pill {
	/* Overrides the base .ipd-filter-pill's fixed-pixel flex-basis,
	 * which becomes a HEIGHT basis (not width) whenever an ancestor
	 * rule flips this row to flex-direction: column (e.g. the mobile
	 * .ipd-search-row override) — that combination, plus a fully
	 * rounded pill shape, is what turned each field into a tall oval
	 * instead of a compact rounded box. "auto" never does that. */
	flex: 1 1 auto !important;
	height: auto !important;
	max-height: none;
}
.ipd-filter-style-modern .ipd-filter-pill select {
	display: block;
	height: calc(52px * var(--ipd-filter-scale-ratio, 1)) !important;
	max-height: none !important;
	min-height: 0 !important;
	line-height: calc(50px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 14px;
	border: 1px solid var(--ipd-filter-border, var(--ipd-border));
	background-color: var(--ipd-filter-dropdown-bg, #fbfbfe);
	color: var(--ipd-filter-dropdown-text, inherit);
	padding: 0 34px 0 18px !important;
	font-weight: 600;
	font-size: calc(15px * var(--ipd-filter-scale-ratio, 1));
	box-sizing: border-box;
}
.ipd-filter-style-modern .ipd-filter-apply-btn {
	height: calc(52px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 28px;
	background: var(--ipd-filter-btn-bg, linear-gradient(135deg, #2f6fed, #1f4fd1));
	border: none;
	color: var(--ipd-filter-btn-text, #fff);
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(37,90,220,.3);
}
.ipd-filter-style-modern .ipd-filter-reset-btn {
	height: calc(52px * var(--ipd-filter-scale-ratio, 1));
	border-radius: 999px;
	padding: 0 22px;
	background: var(--ipd-reset-btn-bg, #eef1f6);
	border: none;
	color: var(--ipd-reset-btn-text, #667);
	font-weight: 600;
}

@media (max-width: 640px) {
	.ipd-search-form-wrap:has(.ipd-filter-style-modern) .ipd-search-main { flex-wrap: wrap; border-radius: 22px; padding: 14px; }
	.ipd-filter-style-modern { border-radius: 16px; padding: 18px; }
	.ipd-filter-style-modern .ipd-filter-pill { min-width: 0; flex: 1 1 100% !important; }
}

/* ---------------------------------------------------------------
 * Filter Design > Border Radius — one numeric control that overrides
 * every style's own default corner rounding (Boxed, Inline, Card,
 * Minimal, Pills, Dropdown Bar, Modern all have their own baked-in
 * radius above) — including their background CONTAINERS (the Boxed
 * lavender panel, each Card tile), not just the dropdowns/buttons
 * inside them. Defaults to 0 (square) — increase for more rounded
 * corners. The doubled class selector (.ipd-filter-pills.ipd-filter-
 * pills) is a deliberate specificity boost — plain single-class
 * selectors here would lose to the more specific per-style rules
 * above (e.g. .ipd-filter-style-pills .ipd-filter-pill select), so
 * this repeats the class to safely out-rank all of them while still
 * applying globally.
 * --------------------------------------------------------------- */
.ipd-filter-pills.ipd-filter-pills,
.ipd-filter-pills.ipd-filter-pills .ipd-filter-pill,
.ipd-filter-pills.ipd-filter-pills .ipd-filter-pill select,
.ipd-filter-pills.ipd-filter-pills .ipd-filter-apply-btn,
.ipd-filter-pills.ipd-filter-pills .ipd-filter-reset-btn {
	border-radius: var(--ipd-filter-border-radius, 0px) !important;
}

/* ---------------------------------------------------------------
 * Mobile Layout Fix — Search Bar & Filter. Kept last so it always
 * wins the cascade, but deliberately light-touch: it only guarantees
 * the outer containers can never overflow the screen and that the
 * main search row stacks on narrow screens. It does NOT force every
 * button/input to width:100% — that blanket approach fought with
 * several per-style mobile rules elsewhere in this file (Dropdown Bar,
 * Modern, Pills each define their own mobile behavior) and was the
 * actual cause of pieces of the layout going missing/overlapping on
 * phones. Each filter style's own @media block (see "Style: ..."
 * sections above) remains the single source of truth for its own
 * mobile appearance.
 * --------------------------------------------------------------- */
@media (max-width: 782px) {
	.ipd-search-form-wrap,
	.ipd-search-row,
	.ipd-filter-pills {
		max-width: 100% !important;
		box-sizing: border-box;
	}
	.ipd-search-input-wrap {
		max-width: 100% !important;
		flex-basis: 100%;
	}
}

/* ---------------------------------------------------------------
 * Standalone shortcodes ([ipd_search_bar], [ipd_filter_bar],
 * [ipd_use_my_location]) — no imposed outer margin/spacing, so they
 * can be pasted into any theme/page without pushing surrounding
 * content around. The functional wrapper divs themselves are kept
 * (JS relies on them to place status messages and results), only
 * the imposed spacing is removed.
 * --------------------------------------------------------------- */
.ipd-search-bar-standalone,
.ipd-filter-bar-standalone,
.ipd-use-my-location-standalone {
	margin: 0;
	padding: 0;
	max-width: none;
	overflow: visible;
}

/* ---------------------------------------------------------------
 * Browse by Country — "Flag Card" display style: rounded card with
 * the country's flag, bold underlined name, a "X,XXX+ codes" count,
 * and a circular arrow button. Auto-adjusts column count to the
 * available width on desktop/tablet, and always shows exactly 2
 * per row on mobile.
 * --------------------------------------------------------------- */
.ipd-flag-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
	margin: 16px 0;
}
/* Running/scrolling version (Display style: Flag Card) — cards sit in
 * the shared marquee flex-track instead of the static grid above, so
 * each needs a fixed width rather than the grid's auto-fill columns. */
.ipd-flag-card-track {
	gap: 18px;
}
.ipd-flag-card-track .ipd-flag-card.ipd-marquee-card {
	width: 200px;
	flex: 0 0 auto;
}
.ipd-flag-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--ipd-shortcode-bg-color, #fff);
	border: 1.5px solid #ece9f9;
	border-radius: 16px;
	padding: 22px 16px 20px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	/* Forces the card to always be fully visible and in its natural
	 * position — guards against a theme's or another plugin's own
	 * scroll-reveal/lazy-load animation (common libraries fade+slide
	 * in newly-visible cards/images) mistakenly applying its "hidden
	 * until revealed" starting state to these cards. transform is
	 * NOT !important here (unlike opacity) specifically so the
	 * :hover lift effect right below still works — it wins for the
	 * hover state simply by appearing later in the cascade. */
	opacity: 1 !important;
	transform: none;
}
.ipd-flag-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(90,70,180,.12);
	border-color: var(--ipd-primary);
}
.ipd-flag-card-flag {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.ipd-flag-card-flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Flags are flat, high-contrast color blocks, not photos — most
	 * admin-uploaded flag icon sets are small (16-32px) and get
	 * upscaled into this larger display box, which looked blurry
	 * under the browser's default smooth/bicubic interpolation.
	 * crisp-edges keeps the boundaries between color bands sharp
	 * instead of anti-aliasing them into a blur. */
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}
.ipd-flag-card-placeholder { font-size: 26px; }
.ipd-flag-card-name {
	font-weight: 700;
	font-size: 15.5px;
	color: var(--ipd-shortcode-text-color, var(--ipd-text));
	text-decoration: underline;
	margin-bottom: 6px;
}
.ipd-flag-card-count {
	font-size: 12.5px;
	color: #8890a0;
	margin-bottom: 16px;
}
.ipd-flag-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ipd-bg-light);
	color: var(--ipd-primary);
	font-size: 14px;
	transition: background .15s ease, color .15s ease;
}
.ipd-flag-card:hover .ipd-flag-card-arrow { background: var(--ipd-primary); color: #fff; }

@media (max-width: 640px) {
	.ipd-flag-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ipd-flag-card { padding: 16px 10px 14px; }
	.ipd-flag-card-flag { width: 52px; height: 36px; margin-bottom: 10px; }
	.ipd-flag-card-name { font-size: 14px; }
	.ipd-flag-card-count { font-size: 11.5px; margin-bottom: 12px; }
	.ipd-flag-card-arrow { width: 28px; height: 28px; }
}

/* ---------------------------------------------------------------
 * Custom HTML Design — generic "blank slate" wrapper used by every
 * section that supports it (Browse by Country/State, Popular Pin
 * Code Directories, Browse Alphabetically, Districts/States with
 * the Most Listings, and the Recently Viewed Running Card). No
 * default background/border/padding is imposed so the admin's own
 * pasted design has full, unfought control — same principle as the
 * Pin Code Card marquee's own custom-card blank slate.
 * --------------------------------------------------------------- */
.ipd-custom-html-list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.ipd-custom-html-item {
	flex: 0 0 auto;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
}
/* Theme/site isolation wrapper (see IPD_Custom_Html::wrap()) — CSS
 * containment means this block's own layout and paint can never
 * affect anything outside it (the theme's header/footer/container,
 * the sidebar, or any other section), regardless of what the pasted
 * HTML/CSS does internally. Combined with the selector-scoping
 * IPD_Custom_Html::scope_styles() applies to any <style> tag inside,
 * a Custom HTML Design is fully sandboxed to its own corner of the
 * page. */
.ipd-custom-html-isolated {
	contain: layout style;
}

/* ---------------------------------------------------------------
 * Responsive Card Design — every Custom HTML Design card (the Pin
 * Code Card marquee's custom design, and each of the Shortcode
 * Designs list/card sections) automatically scales its text down on
 * Tablet and Mobile screens via font-size (not zoom or transform —
 * testing found zoom breaks flex layouts elsewhere in the plugin, so
 * font-size is the safe mechanism here too). Any padding/icon sizing
 * in the admin's own custom CSS written in em/rem units will scale
 * along with it automatically; px-based sizing in a pasted design
 * stays fixed. Desktop always shows the admin's design at its
 * original 100% size; --ipd-card-font-scale only gets a value inside
 * the Tablet/Mobile @media blocks in IPD_Public::
 * output_custom_styles(), so it falls back to 100% at desktop widths.
 * --------------------------------------------------------------- */
.ipd-marquee-card-custom,
.ipd-custom-html-item {
	font-size: var(--ipd-card-font-scale, 100%);
}
/* Inside the auto-scrolling marquee track (Recently Viewed Running
 * Card), items must behave like any other track child rather than
 * wrapping onto a new line. */
.ipd-marquee-track .ipd-custom-html-item {
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------
 * Submission Form — Mobile Scale (SEO & Settings > Submission Form
 * Design). Scales the whole [ipd_submit_pincode] form and the
 * "Submit Missing Pin Code" popup on small screens only, independent
 * of the desktop design — fixes the mobile layout not matching the
 * size the admin actually wants there.
 * --------------------------------------------------------------- */
@media (max-width: 782px) {
	.ipd-submission-wrap,
	.ipd-modal-box.ipd-modal-small {
		transform: scale(var(--ipd-form-mobile-scale, 1));
		transform-origin: top center;
	}
}
