/* ============================================================
   zgr-location.css
   Location Verification Modal/Page
   ============================================================ */

/* Location modal container */
.zgr-location-modal {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #fff;
	border-radius: 0.5rem;
	max-width: 100%;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Location modal should render its own shell (logo/ads/close/header) */
.zgr-modal-box--location {
	padding: 0;
	border-radius: 0.5rem;
	max-width: 37em;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
}

.zgr-modal-box--location .zgr-modal-logo,
.zgr-modal-box--location .zgr-modal-ad-placeholder,
.zgr-modal-box--location > .zenger-modal-close {
	display: none !important;
}

.zgr-modal-box--location .zgr-modal-body {
	margin: 0;
}

.zgr-modal-box--location .zenger-modal-content {
	margin-top: 0;
}

.zgr-location-modal-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 1.5rem 0.75rem;
	background: #fff;
	flex-shrink: 0;
}

.zgr-location-modal-logo-img {
	width: 128px;
	height: auto;
	display: block;
}

/* Header with icon and title */
.zgr-location-modal-header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
	background: white;
	flex-shrink: 0;
}

.zgr-location-modal-header-content {
	display: flex;
	align-items: start;
	gap: 12px;
	flex: 1;
}

.zgr-location-modal-icon {
	width: 24px;
	height: 24px;
	color: #122b50;
	margin-top: 4px;
	flex-shrink: 0;
}

.zgr-location-modal-title {
	font-size: 1.125rem;
	font-weight: 500;
	color: #222222;
	margin: 0;
}

.zgr-location-modal-subtitle {
	font-size: 0.975rem;
	color: #6b7280;
	margin: 0.25rem 0 0 0;
}

.zgr-location-modal-close {
	padding: 0.5rem;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: #6b7280;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.zgr-location-modal-close:hover {
	background: #f3f4f6;
}

.zgr-location-modal-close svg {
	width: 20px;
	height: 20px;
}

/* Body content */
.zgr-location-modal-body {
	padding: 1.5rem;
	overflow-y: auto;
}

/* Ad placeholders */
.zgr-location-ad-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
	border: 2px dashed #d1d5db;
	border-radius: 0.5rem;
	width: 99%;
	max-width: 100%;
	height: 180px;
	margin: 1.5rem 0;
}

.zgr-location-ad-placeholder-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 1rem;
	max-width: 28rem;
}

.zgr-location-ad-placeholder-title {
	color: #6b7280;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

.zgr-location-ad-placeholder-subtitle {
	color: #6b7280;
	font-size: 0.75rem;
	font-style: italic;
	margin: 0.5rem 0 0 0;
}

/* Info boxes */
.zgr-location-info-box {
	background: #F4F5F7;
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.zgr-location-info-box-title {
	font-size: 0.875rem;
	font-weight: 500;
	color: #222222;
	margin: 0 0 0.5rem 0;
}

.zgr-location-info-box-text {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.zgr-location-info-box-item {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0.25rem 0;
}

.zgr-location-info-box-item--mono {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Map container */
.zgr-location-map-container {
	margin-bottom: 1.5rem;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 2px solid #e5e7eb;
}

.zgr-location-map-container iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

/* Coordinates grid */
.zgr-location-coordinates-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.zgr-location-coordinate-box {
	background: #F4F5F7;
	padding: 1rem;
	border-radius: 0.5rem;
}

.zgr-location-coordinate-label {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.zgr-location-coordinate-value {
	color: #222222;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 1.25rem;
	margin: 0;
}

/* Footer logo */
.zgr-location-modal-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.zgr-location-modal-footer-logo {
	width: 128px;
	height: auto;
	flex-shrink: 0;
}

/* Entity page specific styles */
.zgr-entity-page-container .zgr-location-modal {
	max-width: 100%;
}

.zgr-entity-page-container .zgr-location-modal-body {
	padding: 0;
}

/* Ensure proper spacing in entity page */
.zgr-entity-page-container .zgr-location-info-box:last-child {
	margin-bottom: 0;
}
