/* IDbGLAM Place Enhancements */
:root {
	--idb-navy: #13233f;
	--idb-ink: #1d2433;
	--idb-muted: #5b6475;
	--idb-line: #e3e6ec;
	--idb-soft: #f5f6f9;
	--idb-accent: #1f6fd1;
	--idb-logo: 112px;
}

/* ---------- Square logo tile ---------- */
.idb-has-logo {
	position: relative;
	padding-top: calc(var(--idb-logo) * 0.45 + 14px) !important;
}
.idb-has-logo > .idb-logo-tile {
	position: absolute;
	left: 24px;
	top: 0;
	transform: translateY(-55%);
	z-index: 3;
}
.idb-logo-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--idb-logo);
	height: var(--idb-logo);
	padding: 10px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 14px; /* square with soft corners — deliberately not a circle */
	border: 3px solid #fff;
	box-shadow: 0 6px 20px rgba(10, 20, 40, .28), 0 0 0 1px rgba(10, 20, 40, .08);
	overflow: hidden;
}
.idb-logo-tile img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.idb-logo-on-thumb { position: relative; }
.idb-logo-on-thumb > .idb-logo-tile {
	--idb-logo: 64px;
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 6px;
	border-width: 2px;
	border-radius: 10px;
	z-index: 3;
}
@media (max-width: 640px) {
	:root { --idb-logo: 84px; }
	.idb-has-logo > .idb-logo-tile { left: 16px; }
}

/* ---------- Explore online ---------- */
.idb-explore {
	margin: 2.5rem 0 1.5rem;
	padding: 1.75rem;
	border: 1px solid var(--idb-line);
	border-radius: 14px;
	background: #fff;
	color: var(--idb-ink);
}
.idb-explore__eyebrow {
	margin: 0 0 .25rem;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--idb-accent);
	font-weight: 600;
}
.idb-explore__title {
	margin: 0 0 1.1rem;
	font-size: 1.6rem;
	line-height: 1.2;
}
.idb-explore__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	padding-bottom: .8rem;
	border-bottom: 1px solid var(--idb-line);
	margin-bottom: 1.25rem;
}
.idb-explore__tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .5rem .9rem;
	border: 1px solid var(--idb-line);
	border-radius: 999px;
	background: var(--idb-soft);
	color: var(--idb-ink);
	font: inherit;
	font-size: .9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.idb-explore__tab:hover { border-color: #c5cbd6; background: #eef0f5; }
.idb-explore__tab[aria-selected="true"] {
	background: var(--idb-navy);
	border-color: var(--idb-navy);
	color: #fff;
}
.idb-explore__tab:focus-visible { outline: 2px solid var(--idb-accent); outline-offset: 2px; }

.idb-explore__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}
.idb-explore__panel[hidden] { display: none; }
@media (max-width: 760px) {
	.idb-explore { padding: 1.25rem; }
	.idb-explore__panel { grid-template-columns: 1fr; }
}

/* Stack preview above the text whenever the section itself is narrow (e.g. the listing's main column). */
.idb-explore { container-type: inline-size; }
@container (max-width: 700px) {
	.idb-explore__panel { grid-template-columns: 1fr; gap: 1rem; }
}

/* Mini browser window */
.idb-explore__preview {
	display: block;
	border: 1px solid var(--idb-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--idb-soft);
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(10, 20, 40, .10);
	transition: transform .2s, box-shadow .2s;
}
.idb-explore__preview:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 20, 40, .16); }
.idb-explore__chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: #eceef3;
	border-bottom: 1px solid var(--idb-line);
}
.idb-explore__chrome i {
	width: 9px; height: 9px; border-radius: 50%;
	background: #cfd4dd; display: inline-block;
}
.idb-explore__addr {
	flex: 1;
	margin-left: 8px;
	padding: 3px 10px;
	border-radius: 6px;
	background: #fff;
	font-size: .75rem;
	color: var(--idb-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idb-explore__shot {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(110deg, #f0f2f6 30%, #e6e9ef 50%, #f0f2f6 70%) 0 0 / 200% 100%;
	animation: idb-shimmer 1.4s linear infinite;
}
.idb-explore__shot.is-ready, .idb-explore__shot.is-failed { animation: none; background: #fff; }
.idb-explore__shot img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: top center;
	opacity: 0; transition: opacity .3s;
}
.idb-explore__shot.is-ready img { opacity: 1; }
.idb-explore__loading {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: .8rem; color: var(--idb-muted);
}
.idb-explore__shot.is-ready .idb-explore__loading { display: none; }
.idb-explore__shot.is-failed .idb-explore__loading { font-size: 0; }
.idb-explore__shot.is-failed .idb-explore__loading::after { content: "Preview unavailable — click to open the page"; font-size: .8rem; }
@keyframes idb-shimmer { to { background-position: -200% 0; } }

.idb-explore__site {
	margin: .25rem 0 .2rem;
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--idb-muted);
}
.idb-explore__pagetitle { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.3; }
.idb-explore__desc { margin: 0 0 1rem; color: var(--idb-muted); font-size: .95rem; line-height: 1.55; }
.idb-explore__desc:empty { display: none; }
.idb-explore__cta {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .6rem 1.1rem;
	border-radius: 8px;
	background: var(--idb-navy);
	color: #fff !important;
	font-weight: 600; font-size: .92rem;
	text-decoration: none !important;
}
.idb-explore__cta:hover { background: #0b1830; }
.idb-explore__note { margin: .6rem 0 0; font-size: .78rem; color: var(--idb-muted); }

/* ---------- Relocated "Discover more from…" box ---------- */
.idb-subscribe-moved {
	margin-top: 2rem !important;
	padding-top: 1.75rem;
	border-top: 1px solid var(--idb-line);
}

/* ---------- Unclaimed listing layout ---------- */
.idbglam-unclaimed .idb-explore--wide { margin: 2rem 0 0; }
.idb-near-compact { margin-top: 2rem; }
.idb-near-compact .idbg-nc-card {
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: stretch;
}
.idb-near-compact .idbg-nc-img { aspect-ratio: auto !important; min-height: 130px; height: 100%; }
@media (max-width: 600px) {
	.idb-near-compact .idbg-nc-card { grid-template-columns: 120px minmax(0, 1fr); }
}

/* Placeholder for repeated card photos */
.idbg-pimg .idb-ph {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: #172A3A;
	background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 60%);
}
.idbg-pimg .idb-ph b {
	color: #fff;
	font: 700 22px/1.2 Georgia, serif;
	letter-spacing: .02em;
	text-align: center;
	padding: 0 1rem;
	opacity: .9;
}

/* Visit box: duplicate hours row, and the category/search overlay on the small map */
.idb-dup-hidden { display: none !important; }
.geodir-map-wrap .geodir-map-cat-filter-wrap { display: none !important; }

/* ---------- Shared listing layout (v1.3) ---------- */
/* Hold the listing until the script has arranged it; reveal anyway after 2.5s. */
body.single-gd_place:not(.idb-ready) .elementor-location-single { opacity: 0; animation: idb-reveal 0s 2.5s forwards; }
body.idb-ready .elementor-location-single { opacity: 1; transition: opacity .15s; }
@keyframes idb-reveal { to { opacity: 1; } }

.idb-band {
	display: flex; align-items: center; gap: 14px;
	margin: 18px 0 6px; padding: 14px 18px;
	border: 1px solid; border-radius: 12px;
	font-size: 14px; line-height: 1.5;
}
.idb-band--basic { background: #FDF5E6; border-color: #E6C887; color: #5A3F0E; }
.idb-band--full  { background: #EAF5ED; border-color: #A6D1B2; color: #1B482A; }
.idb-band__icon {
	flex: none; width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	background: #fff; border: 1.5px solid currentColor;
	font-size: 18px; font-weight: 700;
}
.idb-band__title { display: block; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.idb-band__text { display: block; }
.idb-band__cta {
	margin-left: auto; flex: none;
	padding: 10px 16px; border-radius: 8px;
	background: #172A3A; color: #fff !important;
	font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap;
}
.idb-band__cta:hover { background: #0e1c28; }
@media (max-width: 700px) {
	.idb-band { flex-wrap: wrap; }
	.idb-band__cta { margin-left: 52px; }
}

.idb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 28px;
	align-items: start;
	margin-top: 18px;
}
.idb-layout > .idb-main > * { max-width: 100%; }
@media (max-width: 900px) { .idb-layout { grid-template-columns: minmax(0, 1fr); } }

.idb-side > * + * { margin-top: 16px !important; }
.idb-card {
	border: 1px solid #D6D9DD !important;
	border-radius: 12px !important;
	background: #fff;
	padding: 16px 18px !important;
	box-sizing: border-box;
	width: 100% !important;
}
.idb-card__h, .idb-side .idb-about h2 {
	margin: 0 0 10px !important;
	font-size: 18px !important; line-height: 1.25;
}
.idb-card__k {
	margin: 12px 0 6px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: #6B7A86;
}
.idb-card ul { list-style: none; margin: 0; padding: 0; }
.idb-details li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #EEF0F3; font-size: 14px; }
.idb-details li:first-child { border-top: 0; }
.idb-details li > span { color: #6B7A86; flex: none; }
.idb-details li a { text-align: right; overflow-wrap: anywhere; }
.idb-details li.idb-details__wide { display: block; }
.idb-details li.idb-details__wide > span { display: block; margin-bottom: 2px; }
.idb-plan li { border-top: 1px solid #EEF0F3; }
.idb-plan li:first-child { border-top: 0; }
.idb-plan li a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; text-decoration: none; color: #172A3A; }
.idb-plan li a:hover { text-decoration: underline; }
.idb-card__note { margin: 10px 0 0; font-size: 12px; color: #6B7A86; }
.idb-side .idb-about { font-size: 14px; line-height: 1.6; }
.idb-near-side .idbg-nc { margin: 0; }
