/* LocalRank Pro - Executive Dark SaaS Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Executive Obsidian Slate Palette */
  --bg-body: #0A0E17;
  --bg-sidebar: #0E1422;
  --bg-card: #131D31;
  --bg-card-hover: #18243D;
  --bg-input: #0A0E18;
  --bg-input-focus: #0D1424;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-active: rgba(59, 130, 246, 0.4);
  
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.28);
  --secondary: #0284C7;
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.22);
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #38BDF8;

  --sidebar-w: 260px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.015em;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(14, 165, 233, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(16, 185, 129, 0.04), transparent);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px 16px;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #0284C7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-text span {
  font-size: 0.7rem;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--font-sans);
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 18px 12px 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.14);
  color: #60A5FA;
  font-weight: 600;
  border-left: 3px solid #3B82F6;
}

.nav-item .badge {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.connection-status {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #E2E8F0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 30px 40px 60px;
  max-width: 1540px;
}

/* Header Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 3px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  background: linear-gradient(135deg, #047857, #065F46);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 4px;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.55);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.kpi-val {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
}

.kpi-sub.up { color: var(--success); }
.kpi-sub.warn { color: var(--warning); }

/* Card Containers */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 3px;
  line-height: 1.45;
}

/* Tabs */
.tab-content {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 11px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.form-control:focus {
  background: var(--bg-input-focus);
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-control::placeholder {
  color: #64748B;
  opacity: 0.9;
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Special Highlight Cards */
.ai-autonomous-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.seo-meta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Leaflet Map & Geo-grid Styles */
#geoMap {
  height: 480px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  z-index: 10;
}

.custom-rank-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.custom-rank-pin:hover {
  transform: scale(1.25);
  z-index: 9999 !important;
}

.pin-top3 {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.pin-mid {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.pin-low {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.pin-center {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: 3px solid #67E8F9;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.9);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges & Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.primary {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Code Snippet Box */
.code-box {
  background: #060911;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #E2E8F0;
  overflow-x: auto;
  position: relative;
  max-height: 360px;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
}
.copy-btn:hover {
  background: var(--primary);
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1E293B;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar { width: 80px; padding: 16px 8px; }
  .brand-text, .nav-item span, .nav-section-title, .sidebar-footer { display: none; }
  .main-content { margin-left: 80px; padding: 20px; }
  .brand { justify-content: center; }
  .nav-item { justify-content: center; padding: 12px; }
}

/* ==========================================
   GOOGLE MAP UPDATES STUDIO & PREVIEW STYLES
   ========================================== */
.gmb-hero-banner {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(52, 168, 83, 0.1) 50%, rgba(18, 26, 44, 0.9) 100%);
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.gmb-hero-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gmb-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.35);
  font-size: 1.8rem;
}

.gmb-editor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .gmb-editor-grid {
    grid-template-columns: 1fr;
  }
}

.gmb-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gmb-topic-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gmb-topic-chip:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.gmb-topic-chip.active {
  background: linear-gradient(135deg, #4285F4, #1a73e8);
  border-color: #4285F4;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
}

.gmb-image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gmb-image-preset-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  border: 2px solid transparent;
  transition: var(--transition);
  background: #111;
}

.gmb-image-preset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmb-image-preset-card:hover {
  transform: scale(1.03);
  border-color: rgba(66, 133, 244, 0.6);
}

.gmb-image-preset-card.active {
  border-color: #4285F4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4);
}

.gmb-image-preset-card.active::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  background: #4285F4;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.gmb-preset-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1:1 GOOGLE MAPS PREVIEW CARD */
.gmb-preview-sticky {
  position: sticky;
  top: 20px;
}

.gmb-maps-card {
  background: #ffffff;
  color: #202124;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid #dadce0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  transition: var(--transition);
}

.gmb-maps-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmb-maps-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #6366F1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid #e8eaed;
  flex-shrink: 0;
}

.gmb-maps-biz-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gmb-verified-badge {
  color: #1a73e8;
  font-size: 0.9rem;
}

.gmb-maps-meta {
  font-size: 0.76rem;
  color: #70757a;
  margin-top: 1px;
}

.gmb-maps-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f1f3f4;
  position: relative;
  overflow: hidden;
}

.gmb-maps-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmb-maps-body {
  padding: 14px 16px;
}

.gmb-maps-headline {
  font-size: 1rem;
  font-weight: 600;
  color: #202124;
  line-height: 1.35;
  margin-bottom: 8px;
}

.gmb-maps-text {
  font-size: 0.85rem;
  color: #3c4043;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.gmb-maps-text::-webkit-scrollbar {
  width: 4px;
}
.gmb-maps-text::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

.gmb-maps-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gmb-maps-cta-btn {
  background: #1a73e8;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.gmb-maps-cta-btn:hover {
  background: #1557b0;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.4);
  transform: translateY(-1px);
}

.gmb-maps-url-target {
  font-size: 0.72rem;
  color: #70757a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

/* PUBLISHED UPDATES FEED */
.gmb-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: var(--transition);
}

.gmb-history-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.gmb-history-thumb {
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.gmb-history-content {
  flex: 1;
  min-width: 0;
}

.gmb-history-headline {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gmb-history-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.gmb-history-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

