:root {
  --line-green: #06C755;
  --line-green-dark: #05a847;
  --line-green-soft: #E8FBF0;
  --robtua-blue: #1E88E5;
  --robtua-blue-dark: #1565C0;
  --robtua-blue-soft: #EFF6FF;
  --bg-app: #F1F5F9;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-sub: #475569;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.18);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
}

button, input, textarea, select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* =========================================================
   APP SHELL & NAVIGATION RAIL (LINE Desktop + Mobile Bar)
   ========================================================= */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.nav-rail {
  width: 84px;
  background: #0F172A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  z-index: 1000;
  flex-shrink: 0;
  user-select: none;
}

.brand-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-bottom: 18px;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--line-green), #10B981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

.brand-logo-text {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  color: #E2E8F0;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex: 1;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-btn.active {
  background: rgba(6, 199, 85, 0.18);
  color: #4ADE80;
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 4px;
  text-align: center;
}

.unread-pill {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  border: 2px solid #0F172A;
}

.nav-footer {
  margin-top: auto;
  padding-top: 8px;
}

.rail-user-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.rail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--robtua-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* =========================================================
   MAIN VIEWPORT & TABS
   ========================================================= */
.main-viewport {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

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

/* =========================================================
   1. MAP & LIVE RADAR VIEW
   ========================================================= */
.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #E2E8F0;
}

.map-top-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.search-bar-glass {
  pointer-events: auto;
  width: min(100%, 540px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 4px 6px 4px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-bar-glass input {
  flex: 1;
  min-width: 80px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  outline: none;
  color: var(--text-main);
}

.map-cat-select {
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.btn-post-quick {
  background: linear-gradient(135deg, var(--robtua-blue), var(--robtua-blue-dark));
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.category-chips-scroll {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.cat-chip.active {
  background: var(--robtua-blue);
  color: #fff;
  border-color: var(--robtua-blue);
}

.radar-toggle-chip.active {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
}

.map-fab-stack {
  position: absolute;
  right: 16px;
  bottom: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-fab {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-fab-gps {
  background: #fff;
  color: var(--robtua-blue);
  font-size: 22px;
}

/* Custom Map Price Markers */
.robtua-pin-wrap {
  background: transparent;
  border: none;
}

.robtua-price-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.robtua-price-pin:hover {
  transform: translate(-50%, -55%) scale(1.08);
  z-index: 999 !important;
}

.pin-house { background: #1E88E5; }
.pin-condo { background: #8E24AA; }
.pin-land { background: #2E7D32; }
.pin-commercial { background: #EF6C00; }
.pin-job { background: #D81B60; }
.pin-resume { background: #3949AB; }
.pin-radar-user {
  background: #06C755;
  padding: 3px 9px;
}

.map-preview-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 550;
  width: min(92vw, 440px);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  padding: 12px;
  gap: 12px;
  align-items: center;
}

.map-preview-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
}

.map-preview-body {
  flex: 1;
  min-width: 0;
}

.map-preview-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-preview-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--robtua-blue);
  margin-top: 2px;
}

.map-preview-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* =========================================================
   2. LINE-STYLE SOCIAL MESSENGER LAYOUT
   ========================================================= */
.chat-layout {
  display: flex;
  width: 100%;
  height: 100%;
  background: #fff;
}

.chat-sidebar {
  width: 360px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  flex-shrink: 0;
}

.chat-sidebar-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-light);
}

.chat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chat-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-brand-title h2 {
  font-size: 19px;
  font-weight: 700;
}

.online-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-green);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.2);
}

.icon-pill-btn {
  background: var(--line-green-soft);
  color: var(--line-green-dark);
  border: 1px solid rgba(6, 199, 85, 0.3);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.chat-subtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.chat-subtab {
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chat-subtab.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.subtab-badge {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
}

.subtab-badge-green {
  background: var(--line-green);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
}

.chat-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 7px 12px;
}

.chat-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
}

.chat-list-scroll {
  flex: 1;
  overflow-y: auto;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.12s ease;
}

.conv-item:hover {
  background: #F8FAFC;
}

.conv-item.active {
  background: var(--line-green-soft);
}

.conv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.conv-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.conv-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--line-green);
  border: 2px solid #fff;
}

.conv-body {
  flex: 1;
  min-width: 0;
}

.conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.conv-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.conv-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  gap: 8px;
}

.conv-preview {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread {
  background: var(--line-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

/* Right Pane: Active Chat Room */
.chat-room-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #8CABD9; /* Classic LINE soothing blue-gray chat background */
}

.chat-room-empty {
  flex: 1;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.empty-chat-illustration {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--line-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 16px;
}

.empty-chat-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.chat-room-active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-room-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.chat-partner-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-room-tools {
  display: flex;
  gap: 8px;
}

.tool-btn {
  border: 1px solid var(--border-light);
  background: #fff;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tool-btn-call {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
}

.chat-property-banner {
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.chat-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 78%;
}

.msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-row.theirs {
  align-self: flex-start;
}

.msg-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.msg-row.mine .msg-bubble {
  background: #85E249; /* LINE classic bright green bubble */
  color: #0F172A;
  border-bottom-right-radius: 4px;
}

.msg-row.theirs .msg-bubble {
  background: #FFFFFF;
  color: #0F172A;
  border-bottom-left-radius: 4px;
}

.msg-meta {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.2;
}

.msg-row.mine .msg-meta {
  align-items: flex-end;
}

.msg-img {
  max-width: 240px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.chat-typing-bar {
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 16px;
  font-size: 12px;
  color: var(--text-sub);
}

.chat-sticker-tray {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 10px 14px;
}

.quick-reply-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.quick-reply-row button {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.sticker-grid button {
  font-size: 24px;
  padding: 6px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  cursor: pointer;
}

.chat-composer {
  background: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-light);
}

.composer-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.chat-composer input[type="text"] {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
}

.btn-send-msg {
  background: var(--line-green);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   3. FEED, SAVED & PROFILE PAGES
   ========================================================= */
.page-container {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.narrow-container {
  max-width: 680px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
}

.page-header p {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-top: 2px;
}

.page-header-actions {
  display: flex;
  gap: 10px;
}

.feed-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 60px;
}

.prop-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.prop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prop-card-img-wrap {
  position: relative;
  height: 175px;
  background: #E2E8F0;
}

.prop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-badge-type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.prop-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.prop-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--robtua-blue);
}

.prop-card-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
}

/* Buttons */
.btn-line-green {
  background: var(--line-green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary-blue {
  background: var(--robtua-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-blue {
  background: #fff;
  color: var(--robtua-blue);
  border: 1px solid var(--robtua-blue);
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   MODALS & TOASTS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #fff;
  border-radius: 22px;
  width: min(94vw, 480px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-sub);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 14.5px;
  outline: none;
  background: #F8FAFC;
}

.form-input:focus {
  border-color: var(--robtua-blue);
  background: #fff;
}

.pin-input-large {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 10px;
}

.toast-stack {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* =========================================================
   MOBILE RESPONSIVE (< 768px)
   ========================================================= */
@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }

  .nav-rail {
    order: 2;
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 4px 8px;
    justify-content: space-around;
  }

  .brand-badge, .nav-footer {
    display: none;
  }

  .nav-items {
    flex-direction: row;
    justify-content: space-around;
    gap: 2px;
  }

  .nav-btn {
    flex: 1;
    padding: 6px 2px;
  }

  .main-viewport {
    order: 1;
    height: calc(100vh - 64px);
  }

  .chat-sidebar {
    width: 100%;
  }

  .chat-room-pane {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 600;
  }

  .chat-layout.mobile-room-open .chat-room-pane {
    display: flex;
  }

  .btn-back-mobile {
    display: inline-block;
  }

  .map-preview-card {
    bottom: 14px;
  }
}

/* =========================================================
   4. SMART LOCATION SEARCH, PIN PICKER, CLUSTERS & WEBRTC CALL
   ========================================================= */
.map-geo-suggestions {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  pointer-events: auto;
  margin-top: 4px;
}

.geo-sug-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
}

.geo-sug-item:last-child {
  border-bottom: none;
}

.geo-sug-item:hover {
  background: #EFF6FF;
  color: var(--robtua-blue);
}

.map-pin-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 650;
  font-size: 38px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.map-pin-picker-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  padding: 10px 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.robtua-cluster-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #0F172A, #1E3A8A);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
  cursor: pointer;
}

.msg-location-card {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 10px 14px;
  max-width: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.msg-location-card:hover {
  border-color: var(--robtua-blue);
}

.msg-translate-pill {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #CBD5E1;
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10.5px;
  color: #475569;
  cursor: pointer;
}

.msg-translate-pill:hover {
  background: #EFF6FF;
  color: var(--robtua-blue);
}

.webrtc-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.webrtc-call-card {
  background: linear-gradient(160deg, #0F172A, #1E293B);
  color: #fff;
  width: min(92vw, 360px);
  border-radius: 28px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.webrtc-call-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06C755, #049B40);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 0 0 8px rgba(6, 199, 85, 0.2);
}

.webrtc-call-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.webrtc-call-status {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 28px;
}

.webrtc-call-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.call-btn-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.call-btn-accept {
  background: #06C755;
}

.call-btn-hangup {
  background: #EF4444;
}

.call-btn-mute {
  background: #334155;
}


