/**
 * GPT Map Giỏ Hàng - Luxury Product & Cart Archive Styles
 * Design: Light Luxury Canvas (#FDFDFD), Deep Navy (#0B1D31),
 *         Liquid Glass Apple Style Cards, Brand Orange (#F15E22) Accents.
 *
 * @package GPT_Map
 */

:root,
html[data-color-mode="g"],
[data-color-mode="g"] {
  /* Canvas & Base Tokens — G-MODE: Solar Luxury */
  --gh-bg-main: var(--color-bg, #fffdf9);
  --gh-bg-card-light: var(--color-surface, #ffffff);
  --gh-text-main: var(--color-text, #382013);
  --gh-text-sub: var(--color-text-muted, #75503a);
  --gh-text-muted: var(--color-text-light, #9c7f6e);
  --gh-border-light: var(--color-border, #e8ddd1);
  --gh-border-subtle: var(--color-border-subtle, #f3ebe1);

  /* Brand Accent — Genera Solar Orange & Gold */
  --gh-brand-orange: var(--color-accent, #de852c);
  --gh-brand-orange-hover: var(--color-accent-hover, #b35b18);
  --gh-brand-orange-gradient: var(--gradient-btn-primary, linear-gradient(135deg, #f6b34a 0%, #de852c 50%, #b35b18 100%));
  --gh-brand-orange-glow: var(--shadow-brand, rgba(222, 133, 44, 0.32));
  --gh-brand-gold: var(--color-gold, #f6b34a);

  /* Apple Liquid Glass Material Tokens — Solar Showcase Banner */
  --gh-glass-base: rgba(67, 18, 5, 0.92);
  --gh-glass-gradient: linear-gradient(145deg, rgba(83, 26, 6, 0.96) 0%, rgba(53, 16, 4, 0.98) 100%);
  --gh-glass-border: 1px solid rgba(246, 179, 74, 0.25);
  --gh-glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.20);
  --gh-glass-shadow: 0 12px 36px rgba(67, 18, 5, 0.15);
  --gh-glass-shadow-hover: 0 16px 44px rgba(67, 18, 5, 0.22);
  --gh-glass-glow: radial-gradient(circle, rgba(222, 133, 44, 0.20) 0%, transparent 70%);

  /* Header & Surfaces */
  --gh-header-bg: var(--gmp-header-bg, rgba(67, 18, 5, 0.96));
  --gh-header-border: 1px solid rgba(246, 179, 74, 0.25);
  --gh-header-shadow: 0 4px 20px rgba(67, 18, 5, 0.25);

  /* Porcelain White Cards & Materials */
  --gh-card-bg: var(--color-surface, #ffffff);
  --gh-card-border: var(--color-border, #e8ddd1);
  --gh-card-hover-border: var(--color-accent, #de852c);
  --gh-card-shadow: 0 4px 18px rgba(67, 18, 5, 0.04);
  --gh-card-shadow-hover: 0 12px 28px rgba(67, 18, 5, 0.09);

  /* Card Accents & Meta */
  --gh-card-code: var(--color-primary, #93370d);
  --gh-card-sub: var(--color-text-muted, #75503a);
  --gh-spec-bg: var(--color-surface-warm, #fbf7f2);
  --gh-spec-lab: var(--color-text-light, #9c7f6e);
  --gh-spec-val: var(--color-text, #382013);
  --gh-pricing-bg: linear-gradient(135deg, rgba(246, 179, 74, 0.08) 0%, rgba(222, 133, 44, 0.12) 100%);
  --gh-pricing-border: 1px solid rgba(222, 133, 44, 0.22);
  --gh-pricing-lab: var(--color-text-muted, #75503a);
  --gh-pricing-val: var(--color-primary, #93370d);
  --gh-pricing-m2: var(--color-text-muted, #75503a);
  --gh-hero-meta: var(--color-text-champagne, #f2ebc4);
  --gh-hero-pill-active: rgba(222, 133, 44, 0.22);
  --gh-hero-pill-border: rgba(246, 179, 74, 0.35);

  /* Status Colors (Fallbacks) */
  --gh-emerald: var(--color-success, #10B981);
  --gh-amber: var(--color-warning, #F59E0B);
  --gh-rose: var(--color-danger, #EF4444);
  --gh-slate: var(--color-text-muted, #75503a);

  /* Typography & Layout */
  --gh-font: var(--font-sans, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  --gh-radius-sm: var(--radius-sm, 8px);
  --gh-radius: var(--radius-md, 12px);
  --gh-radius-lg: var(--radius-xl, 18px);
}

html[data-color-mode="c"],
[data-color-mode="c"] {
  /* Canvas & Base Tokens — C-MODE: CASA Original Navy */
  --gh-bg-main: var(--color-bg, #f8fafc);
  --gh-bg-card-light: var(--color-surface, #ffffff);
  --gh-text-main: var(--color-text, #0f172a);
  --gh-text-sub: var(--color-text-muted, #64748b);
  --gh-text-muted: var(--color-text-light, #94a3b8);
  --gh-border-light: var(--color-border, #e2e8f0);
  --gh-border-subtle: var(--color-border-subtle, #f1f5f9);

  /* Brand Accent — CASA Blue & Amber */
  --gh-brand-orange: var(--color-accent, #3454d1);
  --gh-brand-orange-hover: var(--color-accent-hover, #1e40af);
  --gh-brand-orange-gradient: var(--gradient-btn-primary, linear-gradient(135deg, #3454d1 0%, #1e40af 100%));
  --gh-brand-orange-glow: var(--shadow-brand, rgba(52, 84, 209, 0.30));
  --gh-brand-gold: var(--color-gold, #f59e0b);

  /* Apple Liquid Glass Material Tokens — Classic Showcase Banner */
  --gh-glass-base: rgba(14, 34, 61, 0.90);
  --gh-glass-gradient: linear-gradient(145deg, rgba(14, 34, 61, 0.94) 0%, rgba(8, 22, 40, 0.98) 100%);
  --gh-glass-border: 1px solid rgba(255, 255, 255, 0.16);
  --gh-glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
  --gh-glass-shadow: 0 12px 36px rgba(11, 29, 49, 0.14);
  --gh-glass-shadow-hover: 0 16px 44px rgba(11, 29, 49, 0.22);
  --gh-glass-glow: radial-gradient(circle, rgba(52, 84, 209, 0.18) 0%, transparent 70%);

  /* Header & Surfaces */
  --gh-header-bg: var(--gmp-header-bg, rgba(15, 23, 42, 0.96));
  --gh-header-border: 1px solid rgba(255, 255, 255, 0.10);
  --gh-header-shadow: 0 4px 20px rgba(11, 29, 49, 0.15);

  /* Porcelain White Cards & Materials */
  --gh-card-bg: var(--color-surface, #ffffff);
  --gh-card-border: var(--color-border, #e2e8f0);
  --gh-card-hover-border: var(--color-accent, #3454d1);
  --gh-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  --gh-card-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.09);

  /* Card Accents & Meta */
  --gh-card-code: var(--color-primary, #0f172a);
  --gh-card-sub: var(--color-text-muted, #64748b);
  --gh-spec-bg: #f8fafc;
  --gh-spec-lab: #94a3b8;
  --gh-spec-val: #0f172a;
  --gh-pricing-bg: linear-gradient(135deg, rgba(52, 84, 209, 0.06) 0%, rgba(30, 64, 175, 0.10) 100%);
  --gh-pricing-border: 1px solid rgba(52, 84, 209, 0.22);
  --gh-pricing-lab: #64748b;
  --gh-pricing-val: #1e40af;
  --gh-pricing-m2: #64748b;
  --gh-hero-meta: #94B4D8;
  --gh-hero-pill-active: rgba(52, 84, 209, 0.2);
  --gh-hero-pill-border: rgba(52, 84, 209, 0.35);

  /* Status Colors */
  --gh-emerald: var(--color-success, #10B981);
  --gh-amber: var(--color-warning, #F59E0B);
  --gh-rose: var(--color-danger, #EF4444);
  --gh-slate: var(--color-text-muted, #64748B);
}

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

body.gmp-archive-body {
  font-family: var(--gh-font);
  background-color: var(--gh-bg-main);
  color: var(--gh-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Container (Scoped Inside .casa-wrapper) ───────────────────────────── */
.gmp-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.gmp-main-content {
  flex: 1;
  padding-bottom: 60px;
}

/* ── Global Top Navigation Bar (Xuyên Suốt Toàn Web) ────────────────────── */
.gmp-global-header {
  background: var(--gh-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: var(--gh-header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: var(--gh-header-shadow);
}

.gmp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gmp-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gmp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFFFFF;
}

.gmp-brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.gmp-brand-hex {
  width: 36px;
  height: 36px;
  background: var(--gh-brand-orange-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--gh-brand-orange-glow);
}

.gmp-brand-text .gmp-b1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #FFFFFF;
}

.gmp-brand-text .gmp-brand-orange {
  color: var(--gh-brand-orange);
}

.gmp-brand-text .gmp-b2 {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  margin-top: 2px;
}

.gmp-live-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #34D399;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gmp-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: gmpPulseGreen 2s infinite;
}

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

/* Center Navigation Modes */
.gmp-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gmp-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.2s;
}

.gmp-nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.gmp-nav-tab.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Header Action Buttons */
.gmp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmp-btn-header-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  padding: 8px 15px;
  border-radius: var(--gh-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.gmp-btn-header-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ── Hero Showcase Section (Liquid Glass Apple Style) ────────────────────── */
.gmp-hero-section {
  padding: 28px 0 20px;
}

.gmp-hero-card {
  background: var(--gh-glass-gradient);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: var(--gh-glass-border);
  box-shadow: var(--gh-glass-shadow);
  border-radius: var(--gh-radius-lg);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}

.gmp-hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: var(--gh-glass-glow);
  pointer-events: none;
}

.gmp-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.gmp-hero-info {
  flex: 1;
}

.gmp-hero-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gh-card-sub);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmp-badge-star {
  color: var(--gh-brand-gold);
  font-weight: 800;
}

.gmp-sep {
  color: rgba(255, 255, 255, 0.25);
}

.gmp-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.gmp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--gh-hero-meta);
  margin-bottom: 18px;
}

.gmp-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gmp-hero-carts-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gmp-carts-label {
  font-size: 12px;
  color: var(--gh-card-sub);
  font-weight: 600;
}

.gmp-cart-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--gh-card-sub);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gmp-cart-chip.active {
  background: var(--gh-hero-pill-active);
  border-color: var(--gh-hero-pill-border);
  color: var(--gh-brand-gold);
}

.gmp-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
}

.gmp-btn-map-launch {
  background: var(--gh-brand-orange-gradient);
  color: #FFFFFF;
  padding: 15px 26px;
  border-radius: var(--gh-radius);
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--gh-brand-orange-glow);
  transition: all 0.25s;
}

.gmp-btn-map-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--gh-brand-orange-glow);
  filter: brightness(1.08);
}

.gmp-hero-note {
  font-size: 11.5px;
  color: var(--gh-card-sub);
  opacity: 0.85;
  text-align: center;
  line-height: 1.4;
}

/* ── Live Market Stats HUD (Modern Luxury Glass Cards) ─────────────────────── */
.gmp-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gmp-stat-card {
  background: var(--gh-card-bg, #ffffff);
  border: 1px solid var(--gh-border-light, rgba(226, 232, 240, 0.9));
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmp-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gh-brand-orange, #de852c);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.gmp-stat-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--gh-spec-bg, #f8fafc);
  border: 1px solid var(--gh-border-subtle, #e2e8f0);
}

.gmp-stat-card:hover .gmp-stat-icon {
  transform: scale(1.06);
}

.gmp-stat-icon svg,
.gmp-svg-stat-icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Category-Specific Luxury Icon Badges */
.gmp-stat-icon.total {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(30, 64, 175, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #2563eb;
}

.gmp-stat-icon.available {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #10b981;
}

.gmp-stat-icon.reserved {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #f59e0b;
}

.gmp-stat-icon.sold {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(71, 85, 105, 0.12) 100%);
  border: 1px solid rgba(100, 116, 139, 0.22);
  color: #64748b;
}

.gmp-stat-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.gmp-stat-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gh-text-main, #0f172a);
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.gmp-stat-val .unit {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gh-text-sub, #64748b);
  letter-spacing: normal;
}

.gmp-stat-lab {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gh-text-sub, #64748b);
  margin-top: 4px;
  line-height: 1.3;
}

.gmp-rate-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  margin-left: 4px;
}

/* User feedback: gmp-stat-sub is unnecessary */
.gmp-stat-sub {
  display: none !important;
}

/* ── Filter Toolbar Section (Unified Proportional Command Bar) ─────────────── */
.gmp-filter-section {
  margin: 24px 0 24px;
}

.gmp-filter-toolbar {
  background: var(--gh-card-bg, #ffffff);
  border: 1px solid var(--gh-border-light, rgba(226, 232, 240, 0.9));
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  transition: all 0.25s ease;
}

.gmp-search-box {
  position: relative;
  flex: 1 1 280px;
  min-width: 230px;
  max-width: 360px;
}

.gmp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmp-search-box input {
  width: 100%;
  height: 44px;
  background: var(--gh-spec-bg, #f8fafc);
  border: 1px solid var(--gh-border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 0 16px 0 42px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gh-text-main, #0f172a);
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmp-search-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.gmp-search-box input:focus {
  border-color: var(--gh-brand-orange, #de852c);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(222, 133, 44, 0.16);
}

.gmp-filter-group,
.gmp-filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.gmp-select-wrap {
  position: relative;
  flex: 1 1 150px;
  min-width: 135px;
}

.gmp-select {
  width: 100%;
  height: 44px;
  background: var(--gh-spec-bg, #f8fafc);
  border: 1px solid var(--gh-border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 0 34px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gh-text-main, #1e293b);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmp-select:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.gmp-select:focus {
  border-color: var(--gh-brand-orange, #de852c);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(222, 133, 44, 0.16);
}

.gmp-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.gmp-select-wrap:hover .gmp-select-arrow {
  color: #334155;
}

/* View Switcher */
.gmp-view-switch {
  display: inline-flex;
  background: var(--gh-spec-bg, #f1f5f9);
  border: 1px solid var(--gh-border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
  margin-left: auto;
}

.gmp-view-btn {
  background: transparent;
  border: none;
  color: var(--gh-text-sub, #64748b);
  padding: 0 14px;
  height: 36px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.gmp-view-btn svg {
  display: block;
}

.gmp-view-btn:hover {
  color: var(--gh-text-main, #0f172a);
}

.gmp-view-btn.active {
  background: #ffffff;
  color: var(--gh-text-main, #0f172a);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.gmp-view-btn.active {
  background: var(--gh-brand-orange-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--gh-brand-orange-glow);
}

/* Dynamic Status Quick Pills (Synchronized from CPT) */
.gmp-status-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gmp-pill {
  background: var(--gh-card-bg, #ffffff);
  border: 1px solid var(--gh-border-light, #e8ddd1);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gh-text-sub, #75503a);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.gmp-pill:hover {
  border-color: var(--gh-brand-orange);
  color: var(--gh-text-main);
  transform: translateY(-1px);
}

.gmp-pill.active {
  background: var(--color-primary, #93370d);
  border-color: var(--color-primary, #93370d);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(147, 55, 13, 0.22);
}

html[data-color-mode="c"] .gmp-pill.active,
[data-color-mode="c"] .gmp-pill.active {
  background: var(--color-primary, #0f172a);
  border-color: var(--color-primary, #0f172a);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.gmp-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Product Inventory Section ─────────────────────────────────────────── */
.gmp-inventory-section {
  margin-top: 10px;
}

.gmp-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gmp-results-count {
  font-size: 14.5px;
  color: var(--gh-text-main);
  font-weight: 600;
}

.gmp-results-count strong {
  color: var(--gh-brand-orange);
  font-weight: 800;
}

/* ── Grid View: Crisp Luxury Porcelain Cards ────────────────────────────── */
.gmp-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.gmp-unit-card {
  background: var(--gh-card-bg, #ffffff);
  border: 1px solid var(--gh-border-light, #e8ddd1);
  box-shadow: var(--gh-card-shadow, 0 4px 16px rgba(67, 18, 5, 0.04));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmp-unit-card:hover {
  transform: translateY(-4px);
  border-color: var(--gh-brand-orange);
  box-shadow: var(--gh-card-shadow-hover, 0 12px 28px rgba(67, 18, 5, 0.09));
}

.gmp-card-top {
  padding: 18px 20px;
  border-bottom: 1px solid var(--gh-border-subtle, #f3ebe1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gmp-card-code {
  font-size: 20px;
  font-weight: 800;
  color: var(--gh-card-code, var(--color-primary, #93370d));
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmp-card-sub {
  font-size: 12px;
  color: var(--gh-card-sub, var(--color-text-muted, #75503a));
  margin-top: 3px;
  font-weight: 500;
}

/* Dynamic Status Badge */
.gmp-status-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 12px;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.gmp-status-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

.gmp-card-body {
  padding: 18px 20px;
  flex: 1;
}

.gmp-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.gmp-spec-item {
  background: var(--gh-spec-bg, #fbf7f2);
  border: 1px solid var(--gh-border-light, #e8ddd1);
  border-radius: 10px;
  padding: 9px 12px;
}

.gmp-spec-lab {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gh-spec-lab, #9c7f6e);
  letter-spacing: 0.5px;
  font-weight: 700;
}

.gmp-spec-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-spec-val, var(--color-text, #382013));
  margin-top: 2px;
}

.gmp-card-pricing {
  background: var(--gh-pricing-bg, linear-gradient(135deg, rgba(246, 179, 74, 0.08) 0%, rgba(222, 133, 44, 0.12) 100%));
  border: var(--gh-pricing-border, 1px solid rgba(222, 133, 44, 0.22));
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.gmp-pricing-lab {
  font-size: 10px;
  font-weight: 700;
  color: var(--gh-pricing-lab, #75503a);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gmp-pricing-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--gh-pricing-val, var(--color-primary, #93370d));
  letter-spacing: -0.3px;
}

.gmp-pricing-m2 {
  font-size: 11.5px;
  color: var(--gh-pricing-m2, #75503a);
  margin-top: 3px;
  font-weight: 600;
}

.gmp-card-actions {
  padding: 0 20px 18px;
}

.gmp-btn-jump-map {
  background: var(--gh-brand-orange-gradient);
  color: #ffffff;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--gh-brand-orange-glow);
  transition: all 0.25s;
}

.gmp-btn-jump-map:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--gh-brand-orange-glow);
}

/* ── Table View: High-Density Luxury Spreadsheet ────────────────────────── */
.gmp-table-wrap {
  background: var(--gh-card-bg, #ffffff);
  border: 1px solid var(--gh-border-light, #e8ddd1);
  box-shadow: var(--gh-card-shadow, 0 4px 18px rgba(67, 18, 5, 0.04));
  border-radius: 16px;
  overflow-x: auto;
}

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

.gmp-table th {
  background: var(--color-primary, #93370d);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 16px;
  white-space: nowrap;
}

html[data-color-mode="c"] .gmp-table th,
[data-color-mode="c"] .gmp-table th {
  background: var(--color-primary, #0f172a);
}

.gmp-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--gh-text-main);
  border-bottom: 1px solid var(--gh-border-subtle, #f3ebe1);
  white-space: nowrap;
}

.gmp-table-row:hover {
  background: var(--gh-spec-bg, #fbf7f2);
}

.gmp-table-code {
  font-weight: 800;
  color: var(--gh-card-code, var(--color-primary, #93370d));
}

.gmp-table-price {
  color: var(--gh-brand-orange);
  font-weight: 800;
  font-size: 14px;
}

.gmp-btn-table-map {
  background: var(--gh-brand-orange-gradient);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px var(--gh-brand-orange-glow);
  transition: all 0.2s;
}

.gmp-btn-table-map:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Empty State ────────────────────────────────────────────────────────── */
.gmp-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border: 1px solid var(--gh-border-light);
  border-radius: 16px;
  margin-top: 20px;
}

.gmp-empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.gmp-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gh-text-main);
  margin-bottom: 6px;
}

.gmp-empty-sub {
  font-size: 13.5px;
  color: var(--gh-text-muted);
}

/* ── Global Footer ──────────────────────────────────────────────────────── */
.gmp-global-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--gh-border-light);
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--gh-text-muted);
}

/* ── Responsive Adaptations ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gmp-hero-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .gmp-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .gmp-header-nav {
    display: none;
  }
  .gmp-search-box {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .gmp-filter-group,
  .gmp-filter-selects {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .gmp-stats-bar {
    grid-template-columns: 1fr;
  }
  .gmp-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .gmp-filter-group,
  .gmp-filter-selects {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .gmp-select-wrap {
    width: 100%;
    flex: 1 1 100%;
  }
  .gmp-view-switch {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .gmp-view-btn {
    flex: 1;
    justify-content: center;
  }
  .gmp-hero-title {
    font-size: 24px;
  }
  .gmp-hero-card {
    padding: 22px 20px;
  }
  .gmp-topbar-actions {
    display: none;
  }
}

/* ==========================================================================
   LIQUID GLASS AUTH DROPDOWN
   ========================================================================== */
.gmp-auth-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.gmp-auth-dropdown-wrap .gmp-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gmp-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.gmp-caret {
    font-size: 10px;
    opacity: 0.6;
}

.gmp-liquid-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: rgba(14, 34, 61, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(11, 29, 49, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.gmp-auth-dropdown-wrap.active .gmp-liquid-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gmp-login-menu {
    width: 280px;
}

.gmp-menu-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gmp-menu-header strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.gmp-menu-header span {
    display: block;
    color: var(--gh-text-sub);
    font-size: 12px;
    margin-top: 4px;
}

.gmp-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.gmp-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.gmp-menu-item.gmp-logout {
    color: #fca5a5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gmp-menu-item.gmp-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #fef2f2;
}

.gmp-ajax-form {
    padding: 20px;
}

.gmp-form-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.gmp-form-desc {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--gh-text-sub);
}

.gmp-input-group {
    margin-bottom: 12px;
}

.gmp-input-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13.5px;
    transition: all 0.2s;
    outline: none;
}

.gmp-input-group input:focus {
    border-color: var(--gh-brand-orange);
    background: rgba(0, 0, 0, 0.4);
}

.gmp-btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--gh-brand-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.gmp-btn-submit:hover {
    background: #D84A12;
    box-shadow: 0 4px 12px rgba(241, 94, 34, 0.3);
}

.gmp-btn-submit:disabled {
    background: rgba(241, 94, 34, 0.5);
    cursor: not-allowed;
}

.gmp-form-msg {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   TEASER LOCK (GUEST VIEW)
   ========================================================================== */
.gmp-locked-card {
    border-color: rgba(220, 38, 38, 0.15) !important;
}
.gmp-blur-text {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
}

