html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary, #6c757d);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Section styling */
section {
  scroll-margin-top: 80px; /* Account for fixed navbar */
}

/* Active navigation highlighting */
.nav-link.active {
  color: #007bff !important;
  font-weight: 600;
}

/* Hero section full height */
#Index {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
  position: relative;
  height: 100vh;
  min-height: 600px;
}

#Index h1, #Index p {
  color: white;
}

/* Hero section content positioning */
#Index .container {
  position: relative;
  z-index: 3;
}

/* Hero map styling */
#heroMap {
  filter: brightness(0.7) contrast(1.2);
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}



/* Enhanced form styling */
.bg-opacity-95 {
  backdrop-filter: blur(10px);
}

/* Stats styling */
#Index .text-white h4 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Icon styling */
.fas {
  transition: transform 0.2s ease;
}

.fas:hover {
  transform: scale(1.1);
}

/* Shortlist styling */
.shortlist-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1050;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.shortlist-panel.show {
  right: 0;
}

.shortlist-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.shortlist-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.shortlist-footer {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 0.5rem;
  background: #f8f9fa;
}

.shortlist-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
  transition: box-shadow 0.2s ease;
}

.shortlist-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shortlist-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.btn-remove {
  background: #f8f9fa;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background-color: #000000;
  color: #ffffff;
  transform: scale(1.1);
}

.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Shortlist button in navbar */
#shortlist-toggle {
  position: relative;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#shortlist-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#shortlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive design for shortlist */
@media (max-width: 768px) {
  .shortlist-panel {
    width: 100%;
    right: -100%;
  }
}

/* Section transitions */
section {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Ensure proper section stacking */
#how-it-works {
  position: relative;
  z-index: 2;
  background: #f8f9fa;
}

/* Ensure hero section is properly contained */
#Index {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  section {
    scroll-margin-top: 60px;
  }
  
  #Index {
    min-height: 100vh;
    padding: 2rem 0;
  }
}

/* Sticky navbar enhancement */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}