@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #212121;
  --primary-dark: #424242;
  --primary-light: #616161;
  --secondary: #9E9E9E;
  --accent: #F5F5F5;
  --accent-light: #ede9fe;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #93c5fd;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

::selection {
  background: var(--primary);
  color: white;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP SHELL ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(37,99,235,0.2));
}

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: -2px;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.btn-add span {
  font-size: 18px;
  font-weight: 300;
}

/* ===== TAB NAV ===== */
.tab-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===== MAIN ===== */
.app-main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  margin-bottom: 20px;
}

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

.search-box {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg-card);
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.filter-toggle {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-toggle:hover {
  border-color: var(--text-muted);
}

.filter-toggle.has-filters {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
  margin-top: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.price-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.price-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.amenity-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amenity-filter-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.amenity-filter-btn:hover {
  border-color: var(--accent);
}

.amenity-filter-btn.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.clear-filters-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border: none;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clear-filters-btn:hover {
  background: var(--danger);
  color: white;
}

/* ===== SPACE GRID ===== */
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ===== SPACE CARD ===== */
.space-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

.space-card:nth-child(1) { animation-delay: 0s; }
.space-card:nth-child(2) { animation-delay: 0.05s; }
.space-card:nth-child(3) { animation-delay: 0.1s; }
.space-card:nth-child(4) { animation-delay: 0.15s; }
.space-card:nth-child(5) { animation-delay: 0.2s; }
.space-card:nth-child(6) { animation-delay: 0.25s; }
.space-card:nth-child(7) { animation-delay: 0.3s; }
.space-card:nth-child(8) { animation-delay: 0.35s; }
.space-card:nth-child(9) { animation-delay: 0.4s; }
.space-card:nth-child(10) { animation-delay: 0.45s; }
.space-card:nth-child(11) { animation-delay: 0.5s; }
.space-card:nth-child(12) { animation-delay: 0.55s; }

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

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.space-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  font-size: 48px;
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card-hours {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-meta {
  margin-bottom: 10px;
}

.wifi-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.wifi-ultra {
  background: #dcfce7;
  color: #166534;
}

.wifi-fast {
  background: #d1fae5;
  color: #065f46;
}

.wifi-good {
  background: #fef9c3;
  color: #854d0e;
}

.wifi-basic {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.card-amenities {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.amenity-chip {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s;
}

.amenity-chip:hover {
  background: var(--primary-light);
}

.amenity-more {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 4px;
}

/* ===== SKELETON ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-img {
  height: 180px;
  background: var(--bg-elevated);
}

.skeleton-text {
  height: 14px;
  margin: 12px 16px;
  background: var(--bg-elevated);
  border-radius: 6px;
}

.skeleton-text.wide { width: 70%; }
.skeleton-text.medium { width: 50%; }
.skeleton-text.narrow { width: 30%; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== MAP ===== */
.map-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
}

.map-notice {
  padding: 8px 14px;
  background: var(--warning-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--warning);
  margin-bottom: 12px;
}

.map-wrapper {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 400px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.3s ease;
}

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

.detail-modal {
  width: 100%;
  max-width: 600px;
}

.form-modal {
  width: 100%;
  max-width: 640px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: var(--bg-elevated);
  transform: scale(1.1);
}

/* ===== DETAIL MODAL ===== */
.detail-gallery {
  position: relative;
}

.detail-main-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
}

.gallery-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.15s;
}

.gallery-btn:hover {
  transform: scale(1.2);
}

.gallery-count {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.detail-no-photo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  font-size: 56px;
}

.detail-body {
  padding: 24px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.info-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.price-value {
  color: var(--success);
  font-weight: 700;
}

.detail-section {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-tag {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.detail-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.coord-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.detail-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.confirm-delete {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--danger);
}

.btn-danger-sm {
  padding: 5px 12px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel-sm {
  padding: 5px 12px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}

/* ===== FORM ===== */
.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  padding: 24px 24px 0;
}

.space-form {
  padding: 16px 24px 24px;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg-card);
  transition: all 0.15s ease;
  outline: none;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== AMENITY PICKER ===== */
.amenity-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amenity-pick-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.amenity-pick-btn:hover {
  border-color: var(--accent);
}

.amenity-pick-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 500;
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-add-btn {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  padding: 8px;
}

.photo-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
}

.btn-primary {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  padding: 10px 20px;
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-content {
    padding: 12px 16px 0;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .btn-add {
    padding: 8px 14px;
    font-size: 13px;
  }

  .tab-nav {
    padding: 0 16px;
  }

  .app-main {
    padding: 16px;
  }

  .space-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .filter-top {
    flex-wrap: wrap;
  }

  .search-box {
    max-width: none;
    flex-basis: 100%;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .detail-main-photo {
    height: 200px;
  }

  .map-container {
    height: calc(100vh - 160px);
  }
}

@media (max-width: 400px) {
  .brand-icon {
    font-size: 26px;
  }

  .brand-title {
    font-size: 16px;
  }

  .card-image {
    height: 150px;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to CoWork Finder — your personal directory of co-working spaces. The main view shows all spaces as browsable cards with photos, prices, WiFi speed, and amenities.", "view": "user", "highlight_selector": ".space-grid", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Click '+ Add Space' to add a new co-working space. Fill in the name, address, coordinates (for map placement), hours, pricing, WiFi speed, and select amenities from the picker.", "view": "user", "highlight_selector": ".btn-add", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Upload photos of the space using the photo upload area. Each photo is stored permanently and displayed in the space card and detail view.", "view": "user", "highlight_selector": ".photo-upload-area", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Use the search bar to find spaces by name or address. Click the Filters button to narrow results by price range or required amenities.", "view": "user", "highlight_selector": ".filter-bar", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Switch to Map View to see all spaces with coordinates plotted as interactive markers. Click a marker to see a popup with key details, then click through to the full detail view.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Click any space card to open its full detail view with photo gallery, complete info grid, amenity tags, and description. From here you can edit or delete the space.", "view": "user", "highlight_selector": ".space-card", "wait_for": "user_interaction"}
]
-->

.geo-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: var(--radius);
  font-size: 13px;
}

.near-me-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.near-me-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.near-me-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.distance-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.map-loading {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  margin-bottom: 14px;
}

.auth-status-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.auth-status-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-status-value.signed-in {
  color: var(--success);
}

.auth-status-value.signed-out {
  color: var(--warning);
}

.auth-action-btn,
.review-auth-cta {
  white-space: nowrap;
}

.verified-reviews-banner,
.review-management-panel {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.verified-reviews-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.verified-reviews-icon {
  font-size: 20px;
  line-height: 1;
}

.verified-reviews-banner strong {
  display: block;
  margin-bottom: 2px;
}

.verified-reviews-banner p,
.review-management-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.review-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.verification-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.verification-pill.verified {
  background: var(--success-light);
  color: var(--success);
}

.verification-pill.unverified {
  background: var(--warning-light);
  color: var(--warning);
}

.review-management-status {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--success-light);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.review-author {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .auth-status-card,
  .review-management-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-action-btn,
  .review-auth-cta {
    width: 100%;
  }
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
}

.reaction-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.reaction-emoji {
  font-size: 14px;
}

.reaction-label {
  font-weight: 500;
}

.reaction-count {
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.favorites-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.favorites-summary {
  font-size: 13px;
  color: var(--text-muted);
}

.favorites-collection-view {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.favorites-collection-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.favorites-collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.favorite-collection-card {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}

.favorite-collection-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.favorite-collection-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.favorite-collection-meta {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  z-index: 2;
}

.favorite-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  transform: scale(1.05);
}

.favorite-btn.favorited {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

.favorite-icon {
  font-size: 16px;
  line-height: 1;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.favorite-collection-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.favorite-share-btn {
  padding: 5px 10px;
  font-size: 11px;
}

.share-feedback {
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: var(--radius);
  font-size: 13px;
}

.map-popup-share-link {
  margin: 6px 0 0;
  font-size: 11px;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
}

.recommendation-panel {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.recommendation-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.recommendation-copy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.recommendation-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.recommendation-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  min-height: 96px;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
}

.recommendation-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.recommendation-generate-btn {
  align-self: stretch;
  min-width: 180px;
}

.recommendation-explanation {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--secondary);
  font-size: 13px;
  border: 1px solid #ddd6fe;
}

.recommendation-results {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.recommendation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
}

.recommendation-card-main {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}

.recommendation-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.recommendation-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.recommendation-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.recommendation-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.recommendation-reason {
  font-size: 13px;
  color: var(--text-secondary);
}

.recommendation-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

.recommendation-use-btn {
  padding: 5px 12px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .recommendation-input-row {
    grid-template-columns: 1fr;
  }

  .recommendation-generate-btn {
    min-width: 0;
    width: 100%;
  }
}
