/* 12REPS City Guide. Every rule is scoped to .r12cg so the theme is untouched.
   :not(#r12cg-x) on form fields lifts them above the theme's broad input:not(...) rule. */
.r12cg {
	--r12-ink: #1a1a1a;
	--r12-text: #4a4a4a;
	--r12-muted: #6f6a62;
	--r12-gold: #c4a574;
	--r12-gold-deep: #7d6638;
	--r12-sand: #f5ede0;
	--r12-sand-2: #e5d4b8;
	--r12-line: #e8e4dc;
	--r12-bg: #fafafa;
	--r12-white: #ffffff;
	--r12-green: #4f7a5a;
	--r12-red: #a84334;
	--r12-radius: 18px;
	--r12-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 12px 32px rgba(26, 26, 26, .06);
	--r12-head: "Poppins", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r12-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--r12-text);
	font-family: var(--r12-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.r12cg:not(.r12cg-layer) {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 24px 72px;
}
.r12cg *, .r12cg *::before, .r12cg *::after { box-sizing: border-box; }
.r12cg [hidden] { display: none !important; }
.r12cg svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r12cg h1, .r12cg h2, .r12cg h3, .r12cg p { margin: 0; padding: 0; }
.r12cg h1, .r12cg h2, .r12cg h3 { font-family: var(--r12-head); color: var(--r12-ink); text-transform: none; }
.r12cg button, .r12cg input, .r12cg textarea { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.r12cg button { margin: 0; cursor: pointer; box-shadow: none; text-decoration: none; }
.r12cg button:focus-visible, .r12cg input:focus-visible, .r12cg textarea:focus-visible, .r12cg a:focus-visible, .r12cg [tabindex]:focus-visible {
	outline: 2px solid var(--r12-gold); outline-offset: 2px;
}
.r12cg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.r12cg .r12cg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
	font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.r12cg .r12cg-btn-lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.r12cg .r12cg-btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.r12cg .r12cg-btn-primary { background: var(--r12-ink); border-color: var(--r12-ink); color: #fff; }
.r12cg .r12cg-btn-primary:hover, .r12cg .r12cg-btn-primary:focus { background: #333; border-color: #333; color: #fff; transform: translateY(-1px); }
.r12cg .r12cg-btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.r12cg .r12cg-btn-dark { background: var(--r12-ink); border-color: var(--r12-ink); color: #fff; border-radius: 10px; }
.r12cg .r12cg-btn-dark:hover, .r12cg .r12cg-btn-dark:focus { background: #333; border-color: #333; color: #fff; }
.r12cg .r12cg-btn-ghost { background: var(--r12-white); border-color: var(--r12-line); color: var(--r12-ink); }
.r12cg .r12cg-btn-ghost:hover, .r12cg .r12cg-btn-ghost:focus { background: var(--r12-sand); border-color: var(--r12-sand-2); color: var(--r12-ink); }
.r12cg .r12cg-btn-light { background: #fff; border-color: #fff; color: var(--r12-ink); }
.r12cg .r12cg-btn-light:hover, .r12cg .r12cg-btn-light:focus { background: var(--r12-sand); border-color: var(--r12-sand); color: var(--r12-ink); transform: translateY(-1px); }
.r12cg .r12cg-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.r12cg .r12cg-link {
	padding: 0; border: 0; background: none; color: var(--r12-gold-deep);
	font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.r12cg .r12cg-link:hover, .r12cg .r12cg-link:focus { background: none; color: var(--r12-ink); }

/* Hero */
.r12cg-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.r12cg-hero.has-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; margin-bottom: 36px; }
.r12cg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.r12cg .r12cg-hero-actions a.r12cg-btn { text-decoration: none; }
.r12cg-anchor { display: block; position: relative; top: -90px; visibility: hidden; }
.r12cg-photo { margin: 0; overflow: hidden; border-radius: 20px; background: var(--r12-sand); }
.r12cg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r12cg-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.55fr 1fr; gap: 12px; height: clamp(380px, 40vw, 520px); }
.r12cg-mosaic .r12cg-photo-0 { grid-column: 1 / 3; }
.r12cg-mosaic[data-count="1"] { grid-template-rows: 1fr; }
.r12cg-mosaic[data-count="2"] .r12cg-photo-1 { grid-column: 1 / 3; }
.r12cg-eyebrow { margin-bottom: 14px !important; color: var(--r12-gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.r12cg .r12cg-title { max-width: 680px; font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.r12cg-intro { max-width: 560px; margin-top: 16px !important; color: var(--r12-text); font-size: 17px; line-height: 1.6; }

/* Notice */
.r12cg-notice {
	display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; padding: 16px 18px;
	border: 1px solid var(--r12-sand-2); border-radius: 14px; background: var(--r12-sand); color: #5a4a2c;
}
.r12cg-notice svg { width: 22px; height: 22px; margin-top: 1px; color: var(--r12-gold-deep); }
.r12cg-notice p { font-size: 14px; line-height: 1.55; }
.r12cg-notice strong { color: var(--r12-ink); }

/* App layout */
.r12cg-app {
	display: grid;
	grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	grid-template-areas: "controls map" "list map";
	height: clamp(640px, 86vh, 920px);
	border: 1px solid var(--r12-line); border-radius: var(--r12-radius); overflow: hidden;
	background: var(--r12-white); box-shadow: var(--r12-shadow);
}
.r12cg-controls { grid-area: controls; display: grid; gap: 12px; padding: 18px; border-right: 1px solid var(--r12-line); border-bottom: 1px solid var(--r12-line); }
.r12cg-mapwrap { grid-area: map; position: relative; min-height: 0; background: #ece8e0; }
.r12cg-listbox { grid-area: list; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--r12-line); }

.r12cg-search { position: relative; display: block; margin: 0; }
.r12cg-search svg { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--r12-muted); pointer-events: none; }
.r12cg .r12cg-search input:not(#r12cg-x) {
	width: 100%; height: 46px; margin: 0; padding: 0 16px 0 44px;
	border: 1px solid var(--r12-line); border-radius: 12px; background: var(--r12-bg); color: var(--r12-ink); font-size: 14px; outline: 0; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.r12cg .r12cg-search input:not(#r12cg-x):focus { border-color: var(--r12-gold); background: #fff; box-shadow: 0 0 0 3px rgba(196, 165, 116, .2); }
.r12cg-control-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.r12cg-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.r12cg-chips::-webkit-scrollbar { display: none; }
.r12cg .r12cg-chip {
	min-height: 36px; padding: 0 14px; border: 1px solid var(--r12-line); border-radius: 999px;
	background: #fff; color: var(--r12-text); font-size: 13px; font-weight: 600; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.r12cg .r12cg-chip:hover, .r12cg .r12cg-chip:focus { background: var(--r12-sand); border-color: var(--r12-sand-2); color: var(--r12-ink); }
.r12cg .r12cg-chip[aria-pressed="true"] { background: var(--r12-ink); border-color: var(--r12-ink); color: #fff; }

.r12cg-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 10px; }
.r12cg .r12cg-panel-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.r12cg-count { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: var(--r12-sand); color: var(--r12-gold-deep); font-size: 12px; font-weight: 700; }

.r12cg-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 10px; scrollbar-width: thin; scrollbar-color: var(--r12-sand-2) transparent; }
.r12cg-card {
	display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; width: 100%;
	margin: 0 0 4px; padding: 12px; border: 1px solid transparent; border-radius: 14px;
	background: transparent; text-align: left; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.r12cg-card:hover { background: var(--r12-bg); }
.r12cg-card.is-active { background: var(--r12-sand); border-color: var(--r12-sand-2); }
.r12cg-thumb { display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border-radius: 12px; background: var(--r12-sand); color: var(--r12-gold-deep); }
.r12cg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r12cg-thumb svg { width: 28px; height: 28px; stroke-width: 1.6; }
.r12cg-card { position: relative; }
.r12cg-card-body { min-width: 0; }
.r12cg .r12cg-card-btn {
	display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: var(--r12-ink);
	font: inherit; font-weight: 700; text-align: left; line-height: inherit;
}
.r12cg .r12cg-card-btn:hover, .r12cg .r12cg-card-btn:focus { background: none; color: var(--r12-ink); }
.r12cg .r12cg-card-btn::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.r12cg .r12cg-card-btn:focus-visible { outline: 0; }
.r12cg .r12cg-card-btn:focus-visible::after { outline: 2px solid var(--r12-gold); outline-offset: -2px; }
.r12cg .r12cg-directions { position: relative; z-index: 1; }
.r12cg .r12cg-card h3 { margin: 1px 0 3px; font-family: var(--r12-body); font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.r12cg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--r12-muted); font-size: 12px; font-weight: 600; }
.r12cg-tag { padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--r12-line); color: var(--r12-text); font-size: 11px; font-weight: 700; }
.r12cg-review { color: var(--r12-text); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r12cg-review.is-empty { color: var(--r12-muted); font-style: italic; }
.r12cg .r12cg-directions {
	display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
	color: var(--r12-gold-deep); font-size: 12px; font-weight: 700; text-decoration: none;
}
.r12cg .r12cg-directions:hover { color: var(--r12-ink); text-decoration: underline; }
.r12cg .r12cg-directions svg { width: 13px; height: 13px; stroke-width: 2.2; }

.r12cg-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--r12-line); color: var(--r12-muted); font-size: 13px; }

.r12cg-empty { padding: 36px 18px; text-align: center; }
.r12cg-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--r12-sand); color: var(--r12-gold-deep); }
.r12cg-empty-icon svg { width: 26px; height: 26px; }
.r12cg .r12cg-empty h3 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.r12cg-empty p { max-width: 280px; margin: 0 auto 18px !important; color: var(--r12-muted); font-size: 13px; line-height: 1.55; }

.r12cg-skeleton { display: grid; gap: 10px; padding: 8px; }
.r12cg-skeleton span { height: 80px; border-radius: 14px; background: linear-gradient(90deg, #f3f0ea, #faf8f4, #f3f0ea); background-size: 200% 100%; animation: r12cg-shimmer 1.4s infinite linear; }
@keyframes r12cg-shimmer { to { background-position: -200% 0; } }

/* Map */
.r12cg-map { position: absolute; inset: 0; }
.r12cg .leaflet-container { font-family: var(--r12-body); background: #ece8e0; }
.r12cg .leaflet-tile-pane { filter: saturate(1.12) contrast(1.02); }
.r12cg .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--r12-shadow); }
.r12cg .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; border-color: var(--r12-line); color: var(--r12-ink); }
.r12cg .leaflet-control-attribution { padding: 2px 8px; border-radius: 8px 0 0 0; background: rgba(255, 255, 255, .85); color: var(--r12-muted); font-size: 10px; }
.r12cg .leaflet-control-attribution a { color: var(--r12-gold-deep); }
.r12cg .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--r12-shadow); }
.r12cg .leaflet-popup-content { margin: 12px 16px; font-size: 13px; line-height: 1.45; }
.r12cg .leaflet-popup-content strong { display: block; margin-bottom: 2px; color: var(--r12-ink); font-size: 14px; }
.r12cg .leaflet-popup-content span { color: var(--r12-muted); }
.r12cg .leaflet-container a.leaflet-popup-close-button { color: var(--r12-muted); }

.r12cg-pin { position: relative; width: 36px; height: 46px; transition: transform .18s ease; transform-origin: 50% 100%; }
.r12cg-pin svg { width: 36px; height: 46px; display: block; stroke: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .28)); }
.r12cg-pin .r12cg-pin-body { fill: var(--r12-ink); }
.r12cg-pin .r12cg-pin-cup { fill: none; stroke: var(--r12-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r12cg-pin.is-cart .r12cg-pin-body { fill: #4a3b22; }
.r12cg-pin.is-active { transform: scale(1.18); }
.r12cg-pin.is-active .r12cg-pin-body { fill: var(--r12-gold-deep); }
.r12cg-pin.is-active .r12cg-pin-cup { stroke: #fff; }
.r12cg-pin.is-new .r12cg-pin-body { fill: var(--r12-green); }
.r12cg-me { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #3d6fb6; box-shadow: 0 0 0 6px rgba(61, 111, 182, .22); }

.r12cg-status {
	position: absolute; z-index: 500; top: 14px; left: 14px;
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
	border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--r12-shadow);
	color: var(--r12-ink); font-size: 12px; font-weight: 700;
}
.r12cg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r12-gold); }
.r12cg-status.is-live .r12cg-dot { background: var(--r12-green); box-shadow: 0 0 0 4px rgba(79, 122, 90, .18); }
.r12cg-status.is-error .r12cg-dot { background: var(--r12-red); }

/* Ritual and call to action */
.r12cg-ritual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; margin-top: 72px; }
.r12cg-ritual:not(:has(.r12cg-ritual-photo)) { grid-template-columns: minmax(0, 720px); }
.r12cg-ritual-photo { aspect-ratio: 4 / 3; }
.r12cg .r12cg-ritual h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.r12cg-ways { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.r12cg-ways li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 0; }
.r12cg-ways li::before { content: none; }
.r12cg-way-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--r12-sand); color: var(--r12-gold-deep); }
.r12cg-way-icon svg { width: 22px; height: 22px; }
.r12cg .r12cg-ways h3 { margin-bottom: 2px; font-family: var(--r12-body); font-size: 16px; font-weight: 700; }
.r12cg-ways p { color: var(--r12-text); font-size: 15px; line-height: 1.55; }
.r12cg-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 36px 40px;
	border-radius: var(--r12-radius); background: var(--r12-ink); color: #d9d4cb;
}
.r12cg .r12cg-cta h2 { margin-bottom: 6px; color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.r12cg-cta p { max-width: 560px; font-size: 15px; line-height: 1.55; }
/* Community gallery */
.r12cg-gallery { margin-top: 72px; }
.r12cg-gallery-head { max-width: 640px; margin-bottom: 24px; }
.r12cg .r12cg-gallery h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.r12cg-gallery-head > p:last-child { margin-top: 10px !important; color: var(--r12-text); font-size: 15px; line-height: 1.55; }
.r12cg-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.r12cg .r12cg-shot {
	position: relative; display: block; width: 100%; margin: 0; padding: 0; overflow: hidden;
	aspect-ratio: 4 / 3; border: 0; border-radius: 16px; background: var(--r12-sand); text-align: left; cursor: pointer;
}
.r12cg .r12cg-shot:hover, .r12cg .r12cg-shot:focus { background: var(--r12-sand); }
.r12cg-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.r12cg-shot:hover img { transform: scale(1.04); }
.r12cg-shot-cap {
	position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 34px 14px 12px;
	background: linear-gradient(to top, rgba(20, 18, 15, .78), rgba(20, 18, 15, 0)); color: #fff;
}
.r12cg-shot-cap strong { overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.r12cg-shot-cap span { color: rgba(255, 255, 255, .82); font-size: 12px; font-weight: 600; }
.r12cg-gallery-foot { display: flex; justify-content: center; margin-top: 22px; }
.r12cg-gallery-foot:has(> [hidden]) { display: none; }

.r12cg-credit { margin-top: 20px !important; color: var(--r12-muted); font-size: 12px; }
.r12cg .r12cg-credit a { color: inherit; text-decoration: underline; }

/* Modal */
.r12cg-layer { position: relative; z-index: 100000; }
.r12cg-backdrop {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(20, 18, 15, .5); backdrop-filter: blur(2px);
	animation: r12cg-fade .18s ease;
}
@keyframes r12cg-fade { from { opacity: 0; } }
.r12cg-modal {
	width: min(560px, 100%); max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain;
	padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
	animation: r12cg-rise .22s ease;
}
@keyframes r12cg-rise { from { opacity: 0; transform: translateY(12px); } }
.r12cg-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.r12cg .r12cg-modal-head h2 { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.r12cg-modal-head p { margin-top: 6px !important; color: var(--r12-muted); font-size: 14px; }
.r12cg .r12cg-close {
	display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--r12-line); border-radius: 50%; background: #fff; color: var(--r12-ink);
}
.r12cg .r12cg-close:hover, .r12cg .r12cg-close:focus { background: var(--r12-sand); border-color: var(--r12-sand-2); color: var(--r12-ink); }

.r12cg-field { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.r12cg-field > label, .r12cg-field legend, .r12cg-label { padding: 0; color: var(--r12-ink); font-size: 13px; font-weight: 700; }
.r12cg-optional { color: var(--r12-muted); font-weight: 500; }
.r12cg .r12cg-input:not(#r12cg-x) {
	width: 100%; min-height: 46px; margin: 0; padding: 11px 14px;
	border: 1px solid var(--r12-line); border-radius: 12px; background: #fff; color: var(--r12-ink); font-size: 14px; line-height: 1.4;
	outline: 0; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.r12cg .r12cg-input:not(#r12cg-x):focus { border-color: var(--r12-gold); box-shadow: 0 0 0 3px rgba(196, 165, 116, .2); }
.r12cg .r12cg-input.is-invalid:not(#r12cg-x) { border-color: var(--r12-red); }
.r12cg .r12cg-textarea:not(#r12cg-x) { min-height: 88px; resize: vertical; }
.r12cg-hint { color: var(--r12-muted); font-size: 12px; line-height: 1.4; }
.r12cg-counter { justify-self: end; }

.r12cg-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--r12-bg); border: 1px solid var(--r12-line); }
.r12cg-segment label { position: relative; margin: 0; cursor: pointer; }
.r12cg-segment input { position: absolute; opacity: 0; pointer-events: none; }
.r12cg-segment span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--r12-text); font-size: 13px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.r12cg-segment input:checked + span { background: #fff; color: var(--r12-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.r12cg-segment input:focus-visible + span { outline: 2px solid var(--r12-gold); outline-offset: 1px; }

.r12cg-geo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.r12cg .r12cg-geo .r12cg-btn { min-height: 46px; }
.r12cg-pickmap { position: relative; height: 220px; border: 1px solid var(--r12-line); border-radius: 14px; overflow: hidden; background: #ece8e0; }
.r12cg-pickmap.is-invalid { border-color: var(--r12-red); }
.r12cg-pick-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.r12cg-pick-row .r12cg-hint.is-set { color: var(--r12-green); font-weight: 700; }

.r12cg-drop {
	position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px;
	border: 1.5px dashed var(--r12-sand-2); border-radius: 14px; background: #fdfbf7; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.r12cg-drop:hover, .r12cg-drop.is-over { border-color: var(--r12-gold); background: var(--r12-sand); }
.r12cg-drop:focus-within { outline: 2px solid var(--r12-gold); outline-offset: 2px; }
.r12cg-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.r12cg-drop-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--r12-sand); color: var(--r12-gold-deep); }
.r12cg-drop-icon svg { width: 24px; height: 24px; }
.r12cg-drop-preview { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.r12cg-drop-preview:not([hidden]) + .r12cg-drop-icon { display: none; }
.r12cg-drop-text { display: grid; gap: 2px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--r12-muted); line-height: 1.45; }
.r12cg-drop-text strong { color: var(--r12-ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.r12cg-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 6px; padding: 14px; border-radius: 12px; background: var(--r12-sand); color: #5a4a2c; font-size: 13px; line-height: 1.5; cursor: pointer; }
.r12cg-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--r12-ink); }
.r12cg-confirm.is-invalid { box-shadow: inset 0 0 0 1.5px var(--r12-red); }
.r12cg .r12cg-search input::-webkit-search-decoration { -webkit-appearance: none; }
.r12cg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.r12cg-error { margin-top: 12px !important; padding: 10px 12px; border-radius: 10px; background: #fbeeeb; color: var(--r12-red); font-size: 13px; line-height: 1.45; }
.r12cg-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.r12cg-modal-foot .r12cg-btn-primary { min-width: 170px; }

.r12cg-done { padding: 16px 4px 4px; text-align: center; }
.r12cg-done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e6efe8; color: var(--r12-green); }
.r12cg-done-icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.r12cg .r12cg-done h2 { margin-bottom: 8px; font-size: 24px; font-weight: 600; outline: 0; }
.r12cg-done p { max-width: 360px; margin: 0 auto 22px !important; color: var(--r12-muted); font-size: 14px; line-height: 1.55; }

.r12cg-toast {
	position: fixed; z-index: 100001; left: 50%; bottom: 24px; max-width: min(420px, calc(100vw - 32px));
	padding: 12px 18px; border-radius: 999px; background: var(--r12-ink); color: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; text-align: center;
	opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.r12cg-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Tablet and phone */
@media (max-width: 900px) {
	.r12cg:not(.r12cg-layer) { padding: 36px 16px 56px; }
	.r12cg-hero, .r12cg-hero.has-photos { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
	.r12cg-hero .r12cg-btn { width: 100%; }
	.r12cg-hero-actions { margin-top: 22px; }
	.r12cg-mosaic { height: 300px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
	.r12cg-mosaic .r12cg-photo-1, .r12cg-mosaic .r12cg-photo-2 { display: none; }
	.r12cg-mosaic .r12cg-photo-0 { grid-column: auto; }
	.r12cg-ritual { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
	.r12cg-cta { flex-direction: column; align-items: stretch; margin-top: 56px; padding: 28px 22px; }
	.r12cg-cta .r12cg-btn { width: 100%; }
	.r12cg-gallery { margin-top: 56px; }
	.r12cg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.r12cg-shot-cap { padding: 28px 10px 10px; }
	.r12cg-shot-cap strong { font-size: 13px; }
	.r12cg-app {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 480px auto;
		grid-template-areas: "controls" "map" "list";
		height: auto;
	}
	.r12cg-controls { border-right: 0; }
	.r12cg-listbox { border-right: 0; border-top: 1px solid var(--r12-line); }
	.r12cg-list { max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
	.r12cg-intro { font-size: 16px; }
	.r12cg-app { grid-template-rows: auto 440px auto; border-radius: 16px; }
	.r12cg-mosaic { height: 240px; }
	.r12cg-control-row { flex-wrap: wrap; }
	.r12cg-backdrop { align-items: flex-end; padding: 0; }
	.r12cg-modal { width: 100%; max-height: 94vh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
	.r12cg .r12cg-modal-head h2 { font-size: 22px; }
	.r12cg-pickmap { height: 200px; }
	.r12cg-modal-foot { flex-direction: column-reverse; }
	.r12cg-modal-foot .r12cg-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.r12cg *, .r12cg *::before, .r12cg *::after { animation: none !important; transition: none !important; }
}
