.coda-google-map {
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #e8eaed;
}

.coda-google-maps-error {
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #664d03;
}

/* Google Maps info window chrome */
.gm-style .gm-style-iw-c {
	padding: 0 !important;
	border-radius: 14px !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

.gm-style .gm-style-iw-ch {
	display: none !important;
}

.gm-style .gm-style-iw-chr {
	position: absolute !important;
	top: 2px !important;
	right: 2px !important;
	z-index: 3;
}

.gm-style .gm-style-iw-chr .gm-ui-hover-effect {
	opacity: 0.72;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.gm-style .gm-style-iw-chr .gm-ui-hover-effect:hover {
	opacity: 1;
}

.gm-style .gm-style-iw-tc::after {
	background: #fff !important;
}

/* Info window card */
.coda-info-window {
	--coda-iw-accent: #3b5bdb;
	--coda-iw-text: #1f2937;
	--coda-iw-muted: #6b7280;
	--coda-iw-border: #e5e7eb;
	--coda-iw-bg: #ffffff;

	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--coda-iw-text);
	width: min(340px, 88vw);
	overflow: hidden;
	background: var(--coda-iw-bg);
	border-radius: 14px;
}

.coda-info-window__media {
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
}

.coda-info-window__media::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 48px;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
	pointer-events: none;
}

.coda-info-window__image {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.coda-info-window__body {
	padding: 18px 20px 20px;
}

.coda-info-window__body::before {
	content: '';
	display: block;
	width: 42px;
	height: 4px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--coda-iw-accent);
}

.coda-info-window:has(.coda-info-window__media) .coda-info-window__body {
	padding-top: 16px;
}

.coda-info-window:has(.coda-info-window__media) .coda-info-window__body::before {
	display: none;
}

.coda-info-window__title {
	margin: 0 0 10px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #111827;
}

.coda-info-window__content {
	font-size: 0.9375rem;
	color: var(--coda-iw-muted);
}

.coda-info-window__content > :first-child {
	margin-top: 0;
}

.coda-info-window__content > :last-child {
	margin-bottom: 0;
}

.coda-info-window__content p {
	margin: 0 0 0.75em;
}

.coda-info-window__content strong {
	color: var(--coda-iw-text);
	font-weight: 600;
}

.coda-info-window__content a {
	color: var(--coda-iw-accent);
	text-decoration: none;
	font-weight: 500;
}

.coda-info-window__content a:hover {
	text-decoration: underline;
}

.coda-info-window__address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--coda-iw-border);
	font-size: 0.8125rem;
	color: var(--coda-iw-muted);
}

.coda-info-window__address-icon {
	flex: 0 0 auto;
	line-height: 1.4;
}

.coda-info-window__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--coda-iw-border);
}

.coda-info-window__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--coda-iw-border);
	background: #fff;
	color: var(--coda-iw-text);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.coda-info-window__action:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	color: #111827;
	text-decoration: none;
	transform: translateY(-1px);
}

.coda-info-window__action--primary {
	background: var(--coda-iw-accent);
	border-color: var(--coda-iw-accent);
	color: #fff;
}

.coda-info-window__action--primary:hover {
	background: #364fc7;
	border-color: #364fc7;
	color: #fff;
}

.coda-info-window__action-icon {
	font-size: 0.95em;
	line-height: 1;
}

@media (max-width: 480px) {
	.coda-info-window {
		width: min(300px, 92vw);
	}

	.coda-info-window__body {
		padding: 16px;
	}

	.coda-info-window__actions {
		flex-direction: column;
	}

	.coda-info-window__action {
		width: 100%;
	}
}

/* Theme accents for info windows */
.coda-info-window--theme-default {
	--coda-iw-accent: #3b5bdb;
}

.coda-info-window--theme-greyscale {
	--coda-iw-accent: #4b5563;
}

.coda-info-window--theme-silver {
	--coda-iw-accent: #5c677d;
}

.coda-info-window--theme-night {
	--coda-iw-accent: #7c909e;
	--coda-iw-text: #1f2937;
	--coda-iw-muted: #4b5563;
}
