:root {
  /* Core colors */
  --primary-color: #e25822;
  --primary-dark: #c14718;
  --primary-light: #ff7a42;
  --accent-color: #2c84d8;
  --accent-dark: #1a6cb8;
  --accent-light: #4a9aea;
  
  /* Text colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  
  /* Gray scale */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-700: #495057;
  --gray-900: #212529;
  
  /* Status colors */
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;

  /* Feature type specific colors */
  --water-color: #0066ff;
  --gate-color: #ff9900;
  --asset-color: #cc3300;
  
  /* Shadows and effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

/* ---------- COMMON ELEMENTS ---------- */
/* Buttons */
button {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button:active {
  transform: translateY(0);
}

/* Form elements */
input[type="text"], 
textarea, 
select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background-color: white;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus, 
textarea:focus, 
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(44, 132, 216, 0.2);
  outline: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Loading & Skeleton UI */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-100);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.skeleton-loader {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  height: 14px;
  margin-bottom: 8px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes slidein {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  70% { transform: scale(2); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

@keyframes map-pulse {
  0% { stroke-opacity: 0.7; stroke-width: 3; }
  50% { stroke-opacity: 0.9; stroke-width: 4; }
  100% { stroke-opacity: 0.7; stroke-width: 3; }
}

@keyframes pulse-marker {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* ---------- APP LAYOUT ---------- */
#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

#app-container.visible {
  opacity: 1;
}

#app-container.map-ready {
  display: flex !important;
}

#content-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
}

/* ---------- NAVBAR ---------- */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--gray-900), #2a2a2a);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-lg);
  height: 60px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1001;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.small-logo {
  height: 40px;
  margin-right: var(--space-md);
}

.nav-logo span {
  font-weight: bold;
  font-size: 18px;
}

/* ---------- SEARCH STYLES ---------- */
/* Search container and input styling */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 var(--space-md);
  flex-grow: 1;
  z-index: 1010; /* Higher than other elements */
}

#address-search {
  width: 100%;
  border-radius: 24px;
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

#address-search:focus {
  background-color: white;
  color: var(--text-dark);
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* Search results dropdown */
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 16px 16px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1009;
  margin-top: -5px; /* Negative margin to overlap slightly */
  border-top: none;
  padding-top: 5px; /* Compensate for the negative margin */
}

/* Modified search input when results are shown */
#address-search.results-visible {
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Result items */
.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray-100);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* Dark theme adjustments */
.dark-theme #search-results {
  background-color: #242526;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .search-result-item {
  border-color: #3a3b3c;
  color: var(--text-light);
}

.dark-theme .search-result-item:hover,
.dark-theme .search-result-item.selected {
  background-color: #3a3b3c;
}

#search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: var(--space-xs);
}

#search-button:hover {
  color: var(--text-light);
}

#address-search:focus + #search-button {
  color: var(--primary-color);
}

/* Search Results - note: using ID instead of class */
#search-results {
  position: fixed;
  top: 60px; /* Match navbar height */
  background: white;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 999; /* Just below navbar */
  max-height: 300px;
  overflow-y: auto;
  border-top: none;
  
  /* Hide scrollbar while allowing scrolling */
  scrollbar-width: none; /* Firefox */
  -webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#search-results::-webkit-scrollbar {
  display: none;
}

/* Center the search results on all screen sizes */
@media screen and (min-width: 769px) {
  #search-results {
    width: 500px;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-md);
    top: 58px; /* Slight adjustment for overlap */
    border-top: 2px solid var(--primary-color);
  }
  
  /* Create a perfect alignment with the search container */
  .search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* For smaller screens, make full width */
@media screen and (max-width: 768px) {
  #search-results {
    left: 0;
    right: 0;
    width: 100%;
  }
  
  /* Adjust spacing for mobile */
  .search-container {
    margin: 0 var(--space-sm);
  }
}

/* Dark theme adjustments */
.dark-theme #search-results {
  background: #242526;
  border-color: #3a3b3c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media screen and (min-width: 769px) {
  .dark-theme #search-results {
    border-top: 2px solid var(--primary-color);
  }
}

.search-result-item {
  padding: 10px 16px; /* Match search input's horizontal padding */
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.2s ease;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* Dark theme adjustments for search */
.dark-theme #address-search.results-visible {
  border-bottom: none;
}

.dark-theme #search-results {
  background: #242526;
  border-color: #3a3b3c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.dark-theme .search-result-item {
  border-color: #3a3b3c;
  color: var(--text-dark);
}

.dark-theme .search-result-item:hover,
.dark-theme .search-result-item.selected {
  background-color: #3a3b3c;
}

.nav-actions {
  display: flex;
  gap: var(--space-sm);
}

.nav-actions button {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  transition: all var(--transition-fast);
}

.nav-actions button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

#theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Search Results */
.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--text-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--gray-300);
  border-top: none;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover, 
.search-result-item.selected {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* Search container with backdrop support */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 var(--space-md);
  flex-grow: 1;
  z-index: 1010;
}

/* Search input with consistent styling */
#address-search {
  width: 100%;
  border-radius: 24px;
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1011;
}

/* Create a floating card appearance */
.search-active::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1005;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.search-active.backdrop-visible::after {
  opacity: 1;
}

/* Floating card for search results */
#search-results {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 16px 16px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 1010;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

#search-results.show {
  transform: translateY(0);
}

/* Card style results */
.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
  color: var(--text-dark);
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary-color);
  padding-left: 20px;
}

/* Material-inspired search */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 var(--space-md);
  flex-grow: 1;
}

#address-search {
  width: 100%;
  border-radius: 4px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  transition: all 0.2s ease;
}

#address-search:focus {
  background-color: white;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/* Results panel that looks like a material card */
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 4px 4px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  z-index: 1009;
  transform-origin: top center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: scaleY(0);
}

#search-results.show {
  opacity: 1;
  transform: scaleY(1);
}

/* Material style result items */
.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.15s;
  position: relative;
  overflow: hidden;
}

.search-result-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: var(--gray-100);
}

.search-result-item:last-child::after {
  display: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--gray-50);
}

.search-result-item.selected {
  color: var(--primary-color);
}

/* ---------- MAP & MARKERS ---------- */
#map-container {
  flex: 1;
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 500;
  overflow: hidden;
}

#map {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 400px;
  z-index: 500;
}

/* Leaflet Overrides */
.leaflet-container {
  width: 100%;
  height: 100%;
}

.leaflet-top, .leaflet-bottom {
  z-index: 800;
}

.leaflet-popup-content {
  text-align: center;
}

.leaflet-popup-content button {
  margin-top: var(--space-xs);
}

/* Property highlight */
.property-highlight {
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-opacity: 0.8;
  fill: var(--primary-color);
  fill-opacity: 0.2;
}

.current-property-highlight {
  animation: map-pulse 2s infinite;
}

/* Feature markers */
.custom-feature-icon {
  background: none;
  border: none;
}

.custom-feature-icon div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.custom-feature-marker {
  background: transparent;
  border: none;
}

.marker-container {
  position: relative;
  width: 40px;
  height: 40px;
}

.marker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 2;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 1;
}

/* Marker color variations */
.water-marker .marker-icon { background-color: var(--water-color); color: white; }
.gate-marker .marker-icon { background-color: var(--gate-color); color: white; }
.asset-marker .marker-icon { background-color: var(--asset-color); color: white; }

.water-marker .marker-pulse { 
  background: rgba(0, 102, 255, 0.4);
  animation: pulse-marker 2s infinite;
}
.gate-marker .marker-pulse { 
  background: rgba(255, 153, 0, 0.4);
  animation: pulse-marker 2s infinite;
}
.asset-marker .marker-pulse { 
  background: rgba(204, 51, 0, 0.4);
  animation: pulse-marker 2s infinite;
}

/* Search location marker */
.search-location-marker {
  background-color: transparent;
}

.pulse-marker {
  width: 20px;
  height: 20px;
  background-color: rgba(226, 88, 34, 0.4);
  border-radius: 50%;
  position: relative;
  animation: pulse 1.5s infinite;
}

.pulse-marker:after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.location-search-tooltip {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
}

/* Custom cursor styles for marker placement */
.cursor-water {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%230066ff" stroke="white" stroke-width="2"/><text x="16" y="21" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="white">W</text></svg>') 16 16, auto;
}

.cursor-gate {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23ff9900" stroke="white" stroke-width="2"/><text x="16" y="21" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="white">G</text></svg>') 16 16, auto;
}

.cursor-asset {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23cc3300" stroke="white" stroke-width="2"/><text x="16" y="21" font-family="Arial" font-size="12" font-weight="bold" text-anchor="middle" fill="white">A</text></svg>') 16 16, auto;
}

/* Invalid placement indicator */
.boundary-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.boundary-error.visible {
  opacity: 1;
}

/* Highlight property boundary during placement */
.property-boundary-highlight {
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-dasharray: 5, 5;
  animation: dash 1s linear infinite;
  fill-opacity: 0.1;
  fill: var(--primary-color);
}

@keyframes dash {
  to {
    stroke-dashoffset: -10;
  }
}

/* ---------- SIDEBAR ---------- */
#sidebar {
  position: absolute;
  left: 10px;
  top: 10px; /* Changed from 70px to line up directly with navbar */
  background-color: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 900;
  width: 350px;
  max-height: calc(100vh - 70px); /* Adjusted to match new top position */
  display: none;
  overflow: hidden;
  transition: all var(--transition-bounce);
}

#sidebar.active {
  display: flex;
  animation: slidein 0.3s forwards;
}

#sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

#sidebar-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--gray-900);
}

.sidebar-header-actions {
  display: flex;
  gap: var(--space-xs);
}

#edit-property {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

#edit-property:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#edit-property i {
  margin-right: 4px;
}

#close-sidebar {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-round);
  transition: all var(--transition-fast);
  padding: 0;
}

#close-sidebar:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

#property-details {
  padding: var(--space-md) var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

/* Property Sections */
.property-section {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.property-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.property-section h3 {
  background-color: var(--gray-100);
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  font-size: 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var (--primary-color);
  font-weight: 600;
}

.property-section > div {
  padding: var(--space-md) var(--space-lg);
}

/* Property Counters */
#property-counters {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.counter-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.counter-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.counter-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.counter-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--gray-900);
  margin: var(--space-sm) 0;
}

.counter-label {
  font-size: 14px;
  color: var(--gray-700);
}

/* Property Info Items - Base styling */
.info-item {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 3px solid var(--gray-300);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
  font-size: 15px;
}

.info-item p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.info-item p small {
  color: var(--gray-500);
  font-size: 12px;
}

/* Feature type indicators */
.info-item.type-water {
  border-left-color: var(--water-color);
}

.info-item.type-gate, .info-item.type-access {
  border-left-color: var(--gate-color);
}

.info-item.type-asset {
  border-left-color: var(--asset-color);
}

/* Priority indicators as badges */
.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent var(--gray-300) transparent transparent;
}

.info-item.priority-high::before {
  border-color: transparent var(--danger) transparent transparent;
}

.info-item.priority-medium::before {
  border-color: transparent var(--warning) transparent transparent;
}

.info-item.priority-low::before {
  border-color: transparent var(--success) transparent transparent;
}

/* Feature type badges */
.info-item .type-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 12px;
  font-weight: bold;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--gray-500);
}

.info-item.type-water .type-badge {
  background-color: var(--water-color);
}

.info-item.type-gate .type-badge, 
.info-item.type-access .type-badge {
  background-color: var(--gate-color);
}

.info-item.type-asset .type-badge {
  background-color: var(--asset-color);
}

/* Priority Labels */
.priority-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: var(--space-xs);
}

.priority-tag.high {
  background-color: var(--danger);
  color: white;
}

.priority-tag.medium {
  background-color: var(--warning);
  color: white;
}

.priority-tag.low {
  background-color: var(--success);
  color: white;
}

.info-item.priority-high {
  border-left-color: var(--danger);
}

.info-item.priority-medium {
  border-left-color: var(--warning);
}

.info-item.priority-low {
  border-left-color: var(--success);
}

/* Feature types */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  color: white;
  font-weight: bold;
}

/* Feature icon colors */
.water-icon {
  background-color: var(--water-color);
}

.gate-icon, .access-icon {
  background-color: var(--gate-color);
}

.asset-icon {
  background-color: var(--asset-color);
}

/* Feature buttons */
.feature-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.feature-btn {
  padding: var(--space-sm) var(--space-md);
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--gray-900);
  font-weight: 500;
  transition: all var(--transition-bounce);
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--gray-200);
}

.feature-btn .feature-icon {
  width: 24px;
  height: 24px;
  margin-right: var(--space-sm);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.feature-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.feature-btn.active .feature-icon {
  border: 2px solid white;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var (--radius-sm);
  background-color: white;
}

.feature-list li {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background var(--transition-fast), transform 0.1s ease;
}

.feature-list li:hover {
  background-color: var(--gray-100);
}

.feature-list li:active {
  transform: scale(0.98);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .feature-icon {
  width: 28px;
  height: 28px;
  margin-right: var (--space-sm);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.feature-name {
  flex-grow: 1;
  margin-right: var(--space-sm);
  color: var(--gray-900);
  font-weight: 500;
}

.feature-actions {
  display: flex;
  gap: var (--space-xs);
}

.edit-list-feature, 
.remove-feature {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-round);
  transition: all var(--transition-fast);
  padding: 0;
}

.edit-list-feature:hover {
  color: var(--accent-color);
  background-color: rgba(44, 132, 216, 0.1);
}

.remove-feature:hover {
  color: var(--danger);
  background-color: rgba(231, 76, 60, 0.1);
}

.no-features {
  color: var(--gray-500);
  font-style: italic;
  text-align: center;
  padding: var(--space-lg);
  cursor: default;
}

/* Priority Styling */
.priority-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: var(--space-xs);
}

/* Style only the tags with background color, not the entire cards */
.priority-tag.high {
  background-color: var(--danger);
  color: white;
}

.priority-tag.medium {
  background-color: var(--warning);
  color: white;
}

.priority-tag.low {
  background-color: var(--success);
  color: white;
}

/* Apply only border colors to the card itself */
.info-item.priority-high {
  border-left-color: var(--danger);
}

.info-item.priority-medium {
  border-left-color: var(--warning);
}

.info-item.priority-low {
  border-left-color: var(--success);
}

/* Ensure dark theme styles match */
.dark-theme .priority-tag.high {
  background-color: var(--danger);
}

.dark-theme .priority-tag.medium {
  background-color: var(--warning);
}

.dark-theme .priority-tag.low {
  background-color: var(--success);
}

/* ---------- MOBILE NAVIGATION ---------- */
#back-to-map {
  display: none;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  margin-right: var(--space-xs);
  cursor: pointer;
  font-size: 14px;
}

#back-to-map i {
  margin-right: 4px;
}

#map-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-round);
  width: 56px;
  height: 56px;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- MODALS & DIALOGS ---------- */
/* Feature Dialog Styles */
.feature-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

.dialog-content {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  animation: scaleIn 0.2s forwards;
}

.dialog-content h3 {
  margin-top: 0;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-200);
}

/* Form styling */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--gray-700);
}

.form-buttons {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.form-buttons button {
  min-width: 100px;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
}

#save-feature-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
}

#save-feature-btn:hover {
  background-color: var(--primary-dark);
}

#cancel-feature-btn {
  background-color: var(--gray-200);
  color: var (--gray-700);
  border: 1px solid var(--gray-300);
}

#cancel-feature-btn:hover {
  background-color: var(--gray-300);
}

/* ---------- LOGIN STYLES ---------- */
#login-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

.login-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease-out;
}

#logo {
  height: 80px;
  margin-bottom: var(--space-md);
}

.login-title {
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
  font-size: 24px;
}

.login-subtitle {
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
  font-size: 14px;
}

#sso-login-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all var(--transition-medium);
}

#sso-login-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.login-progress {
  display: none;
  margin-top: var(--space-lg);
}

.login-progress.active {
  display: block;
}

.login-progress-bar {
  height: 4px;
  background-color: var(--primary-color);
  width: 0%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

.login-progress-text {
  margin-top: var(--space-sm);
  color: var(--gray-700);
  font-size: 14px;
}

.support-text {
  margin-top: var(--space-lg);
  font-size: 13px;
  color: var(--gray-700);
}

.support-text a {
  color: var(--primary-color);
  text-decoration: none;
}

/* ---------- DEMO FOOTER ---------- */
.demo-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: var(--space-md);
  text-align: center;
  font-size: 14px;
  z-index: 2000;
  animation: fadeIn 0.3s;
}

.demo-footer p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media screen and (max-width: 768px) {
  .nav-logo span {
    display: none;
  }
  
  .search-container {
    margin: 0 var(--space-sm);
  }
  
  #navbar {
    padding: var(--space-xs) var(--space-md);
  }
  
  .nav-actions button {
    padding: var(--space-xs);
    font-size: 16px;
  }
  
  .nav-actions button i {
    margin-right: 0;
  }
  
  .nav-actions button span {
    display: none;
  }
  
  #sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 10px; 
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    height: calc(100vh - 70px); 
    max-height: calc(100vh - 70px);
    border-radius: var (--radius-lg);
    z-index: 1001;
  }
  
  #sidebar.map-view {
    transform: translateY(100%);
  }
  
  #property-counters {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }
  
  .counter-item {
    min-width: 100px;
    flex: 0 0 auto;
  }
  
  #back-to-map {
    display: flex;
  }
  
  #map-toggle {
    display: flex;
  }
  
  .property-section h3 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .property-section h3::after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.3s;
  }
  
  .property-section.collapsed h3::after {
    transform: rotate(-90deg);
  }
  
  .property-section.collapsed .section-content {
    display: none;
  }
  
  .feature-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dialog-content {
    width: 95%;
    padding: var(--space-md);
  }
}

/* Adjust results width for larger screens */
@media screen and (min-width: 769px) {
  #search-results {
    /* left: 50%; */
    transform: translateX(-50%);
    width: 500px; /* Match max-width of search container */
    max-width: 90%;
    border-radius: var(--radius-md);
    top: 58px; /* Slight adjustment for overlap */
    border-top: 2px solid var(--primary-color);
  }
}

/* Dark theme adjustments for full-width search results */
@media screen and (min-width: 769px) {
  .dark-theme #search-results {
    border-top: 2px solid var(--primary-color);
  }
}

/* ---------- DARK THEME ---------- */
.dark-theme {
  --text-dark: #e4e6eb;
  --text-light: #f5f5f5;
  --gray-100: #3a3b3c;
  --gray-200: #4e4f50;
  --gray-300: #6a6c6d;
  --gray-500: #9a9c9e;
  --gray-700: #b0b3b8;
  --gray-900: #e4e6eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.dark-theme body {
  background-color: #18191a;
  color: var(--text-dark);
}

.dark-theme #login-container {
  background: linear-gradient(135deg, #1c1e21 0%, #26282c 100%);
}

.dark-theme .login-card,
.dark-theme .property-section,
.dark-theme .counter-item,
.dark-theme .dialog-content,
.dark-theme #sidebar {
  background-color: #242526;
}

.dark-theme .search-result-item,
.dark-theme .feature-list {
  background-color: #242526;
  color: var(--text-dark);
}

.dark-theme .search-result-item:hover,
.dark-theme .search-result-item.selected,
.dark-theme .feature-list li:hover {
  background-color: #3a3b3c;
}

.dark-theme input[type="text"],
.dark-theme textarea,
.dark-theme select {
  background-color: #3a3b3c;
  border-color: #4e4f50;
  color: var(--text-dark);
}

.dark-theme .property-section h3 {
  background-color: rgba(0, 0, 0, 0.2);
}

.dark-theme .info-item {
  background-color: rgba(226, 88, 34, 0.1);
}

.dark-theme #edit-property,
.dark-theme #map-toggle,
.dark-theme #back-to-map {
  background-color: var(--primary-color);
  color: white;
}

/* Dark theme adjustments */
.dark-theme .info-item {
  background-color: #242526;
  border-left-color: #4e4f50;
}

.dark-theme .info-item::before {
  border-color: transparent #4e4f50 transparent transparent;
}

.dark-theme .priority-tag.high {
  background-color: rgba(231, 76, 60, 0.2);
}

.dark-theme .priority-tag.medium {
  background-color: rgba(243, 156, 18, 0.2);
}

.dark-theme .priority-tag.low {
  background-color: rgba(46, 204, 113, 0.2);
}

/* Welcome Experience */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.welcome-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.welcome-features {
  display: flex;
  justify-content: space-around;
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.welcome-feature {
  flex: 1 1 160px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--gray-100);
  transition: transform var(--transition-fast);
}

.welcome-feature:hover {
  transform: translateY(-5px);
}

.welcome-feature i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.welcome-feature h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.welcome-feature p {
  font-size: 14px;
  color: var(--gray-700);
}

#welcome-start {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-md) var(--space-xl);
  font-size: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
}

#welcome-start:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s;
}

/* Add these map transition styles at the end of your existing CSS file */

/* Map transition and loading elements */
.map-overlay-message {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 1000;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.message-subtitle {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

.map-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(226, 88, 34, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

.loading-text {
  font-size: 16px;
  color: #333;
}

.dark-theme .map-loading-indicator {
  background-color: rgba(36, 37, 38, 0.9);
}

.dark-theme .loading-text {
  color: #e4e6eb;
}

/* Search location marker pulse animation */
.search-location-marker .pulse-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(226, 88, 34, 0.6);
  border: 2px solid white;
  box-shadow: 0 0 0 rgba(226, 88, 34, 0.4);
  animation: pulse 1.5s infinite;
}

.location-search-tooltip {
  background: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
}

.dark-theme .location-search-tooltip {
  background: #242526;
  color: #e4e6eb;
}

/* Geolocation control styling */
.geolocation-btn {
  font-size: 18px;
  text-align: center;
  line-height: 30px;
  width: 30px;
  height: 30px;
}

/* Fade animation for message transitions */
.fade-out {
  opacity: 0 !important;
}

.fade-in {
  opacity: 1 !important;
}

/* Community Guide styles */
.guide-panel {
  position: absolute;
  right: 10px;
  top: 70px;
  width: 350px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  display: none;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  transition: transform 0.3s var(--transition-bounce), opacity 0.3s ease;
  transform: translateX(100%);
  opacity: 0;
}

.guide-panel.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

.guide-header h2 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.guide-header h2 i {
  color: var(--primary-color);
}

.guide-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.guide-step {
  display: none;
}

.guide-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.guide-step h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 16px;
}

.guide-step p {
  margin-bottom: var(--space-md);
  font-size: 14px;
  line-height: 1.5;
}

.guide-step ol, .guide-step ul {
  padding-left: 20px;
  margin-bottom: var(--space-md);
}

.guide-step li {
  margin-bottom: var(--space-xs);
  font-size: 14px;
  line-height: 1.5;
}

.guide-info {
  background-color: var(--info-light);
  border-left: 3px solid var(--info-color);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.guide-info i {
  color: var(--info-color);
}

.guide-hint {
  background-color: var(--warning-light);
  border-left: 3px solid var(--warning);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.guide-hint i {
  color: var(--warning);
}

.guide-success {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--success-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.guide-success i {
  color: var(--success);
  font-size: 24px;
}

.guide-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.guide-progress {
  font-size: 14px;
  color: var(--gray-600);
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-button:hover {
  background-color: var(--primary-dark);
}

.secondary-button {
  background-color: var(--gray-200);
  color: var(--gray-700);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-button:hover {
  background-color: var(--gray-300);
}

/* Step indicators */
.guide-panel.step-intro .guide-step[data-step="intro"],
.guide-panel.step-search .guide-step[data-step="search"],
.guide-panel.step-edit .guide-step[data-step="edit"],
.guide-panel.step-save .guide-step[data-step="save"],
.guide-panel.step-complete .guide-step[data-step="complete"] {
  display: block;
}

/* Highlight elements based on current step */
.highlight-element {
  position: relative;
}

.highlight-element::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  animation: pulse 1.5s infinite;
  pointer-events: none;
  z-index: 900;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

/* Dark theme adjustments */
.dark-theme .guide-panel {
  background-color: #242526;
  color: var(--text-light);
}

.dark-theme .guide-header {
  border-bottom-color: #3a3b3c;
}

.dark-theme .guide-actions {
  border-top-color: #3a3b3c;
}

.dark-theme .guide-info {
  background-color: rgba(33, 150, 243, 0.1);
}

.dark-theme .guide-hint {
  background-color: rgba(255, 152, 0, 0.1);
}

.dark-theme .guide-success {
  background-color: rgba(76, 175, 80, 0.1);
}

.dark-theme .secondary-button {
  background-color: #3a3b3c;
  color: var(--text-light);
}

.dark-theme .secondary-button:hover {
  background-color: #4e4f50;
}

/* Mobile Menu Enhancements */
#mobile-menu-button {
  display: none;
  background: transparent;
  border: none !important;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-xs);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  margin-left: var(--space-xs);
  align-items: center;
  justify-content: center;
}

#mobile-menu-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

#mobile-menu-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: var(--gray-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  overflow: hidden;
  width: 200px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

#mobile-menu-dropdown.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-decoration: none;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item i {
  margin-right: var(--space-md);
  width: 20px;
  text-align: center;
}

.mobile-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Adjust the responsive breakpoints */
@media screen and (max-width: 768px) {
  /* Existing mobile styles... */
  
  .nav-logo span {
    display: none;
  }
  
  /* Improve search container spacing */
  .search-container {
    margin: 0 var(--space-sm);
    flex-grow: 1;
    max-width: none; /* Allow full width */
  }
  
  /* Fix button hiding - be more specific */
  .nav-actions button:not(#mobile-menu-button):not(#theme-toggle) {
    display: none !important;
  }
  
  /* Show only theme toggle and mobile menu button in main navbar */
  #theme-toggle, 
  #mobile-menu-button {
    display: flex !important;
  }
  
  /* Ensure address results are visible */
  #search-results {
    width: calc(100% - 20px);
    max-height: 50vh;
    left: 10px;
    right: 10px;
    top: 58px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  
  .search-result-item {
    padding: 12px 16px;
    white-space: normal; /* Allow text wrapping */
    line-height: 1.3;
  }
}

/* Allow theme toggle to remain visible in the navbar */
@media screen and (max-width: 768px) {
  .nav-actions {
    display: flex;
    gap: var(--space-xs);
  }
}

/* Dark theme adjustments */
.dark-theme #mobile-menu-dropdown {
  background-color: #242526;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}