/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #1a1a1a;
}

/* Full-screen map */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Header overlay */
.main-header-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 360px;
  width: auto;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Hover depth effect */
.main-header-overlay:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Main content - optimized spacing */
.header-content {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-content h1 {
  align-items: center;
  color: #1a1a1a;
  display: flex;
  font-family: initial;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: initial;
  line-height: 1.3;
  gap: 10px;
  margin: 0 0 8px 0;
  position: relative;

}

.header-content h1 svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
  flex-shrink: 0;
}

.subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  font-weight: 400;
}

.header-content .trust-badges .trust-badge {
  padding: 4px 8px;
}

/* Buttons - compact layout */
.header-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 72px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
}

/* Button colors */
#homeBtn {
  background: #2c3e50;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

#homeBtn:hover {
  background: #34495e;
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

#shareBtn {
  background: #2ecc71;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

#shareBtn:hover {
  background: #27ae60;
  box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

/* Navigation panel */
.nav-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
}

.nav-button {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background-color: white;
}

.nav-button.active {
  background-color: #3498db;
  color: white;
}

.nav-button i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Icon colors */
.icon-where {
  color: #0077b6;
}

.icon-car {
  color: #3498db;
}

.icon-transport {
  color: #9b59b6;
}

.icon-parking {
  color: #f39c12;
}

.icon-attractions {
  color: gold;
}

.icon-location {
  color: #9b59b6;
}

.nav-button.active .icon-where,
.nav-button.active .icon-car,
.nav-button.active .icon-transport,
.nav-button.active .icon-parking,
.nav-button.active .icon-attractions,
.nav-button.active .icon-location {
  color: white;
}

/* Special My Location button */
#locationBtn {
  background-color: rgba(155, 89, 182, 0.1);
  border: 2px solid #9b59b6;
}

#locationBtn:hover {
  background-color: rgba(155, 89, 182, 0.2);
}

#locationBtn.active {
  background-color: #9b59b6;
  border-color: #9b59b6;
}

/* Remove route button */
.remove-route-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.remove-route-btn:hover {
  background-color: #c0392b;
}

/* User location notification */
.user-location-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
  animation: slideUp 0.5s ease, pulseGlow 2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-location-notification i {
  font-size: 1.4rem;
}

.user-location-notification span {
  font-weight: 500;
  font-size: 0.95rem;
}

.notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.user-location-notification.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(155, 89, 182, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(155, 89, 182, 0);
  }
}

/* Share modal */
.share-modal {
  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: 2000;
  backdrop-filter: blur(5px);
}

.share-modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlide 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlide {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-content p {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.share-btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.share-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.share-btn.email {
  background: linear-gradient(135deg, #ea4335, #d14836);
  color: white;
}

.share-btn.link {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.share-btn.sms {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.modal-btn.cancel {
  background: #f8f9fa;
  color: #7f8c8d;
  border: 1px solid #dee2e6;
}

.modal-btn.cancel:hover {
  background: #e9ecef;
}

/* Custom marker styles */
.custom-marker {
  background-color: #3498db;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Headquarters marker - professional blue */
.marker-pulse {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #0077b6;
  border: 3px solid white;
  box-shadow: 0 0 0 rgba(0, 119, 182, 0.9);
  animation: markerPulse 2s infinite;
}

.marker-toll {
  background-color: #f39c12;
}

.marker-user {
  background-color: #9b59b6;
  border: 3px solid white;
  animation: userPulse 2s infinite;
}

@keyframes markerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(0, 119, 182, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
  }
}

@keyframes userPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(155, 89, 182, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(155, 89, 182, 0);
  }
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2ecc71;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.error {
  background: #e74c3c;
}

.notification.info {
  background: #3498db;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Info panel */
.info-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 6px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  opacity: 1;
}

.info-panel.hidden {
  transform: translateX(calc(100% + 20px));
  opacity: 0;
}

aside.info-panel {
  height: 48%;
  display: flex;
  flex-direction: column;
}

.scrollable-content {
  flex: 1;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f3f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #495057;
  padding: 0;
  margin: 0;
}

.close-btn:hover {
  background: #e9ecef;
  transform: scale(1.05);
  color: #212529;
}

.close-btn:active {
  transform: scale(0.95);
}

.close-btn svg {
  width: 16px;
  height: 16px;
}

#infoTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2b2d42;
  padding-right: 30px;
}

#infoTitle svg {
  width: 20px;
  height: 20px;
  color: #4361ee;
  flex-shrink: 0;
}

#infoContent {
  background: rgba(67, 97, 238, 0.05);
  border-left: 3px solid #4361ee;
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #2b2d42;
}

#routeDetails {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #495057;
  border: 1px solid #e9ecef;
}

#routeDetails:empty {
  display: none;
}

/* Animation for route details */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#routeDetails:not(:empty) {
  animation: fadeIn 0.3s ease forwards;
}

/* Leaflet routing styles */
.leaflet-routing-container {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved routing lines for visibility */
.leaflet-routing-line {
  stroke-width: 6 !important;
  stroke-opacity: 0.9 !important;
}

.leaflet-routing-alt {
  max-height: 200px;
}

.leaflet-routing-collapse-btn {
  display: none;
}

/* Custom routing line styles */
.route-line-car {
  stroke: #3498db !important;
  stroke-width: 6 !important;
  stroke-opacity: 0.9 !important;
  stroke-dasharray: none !important;
}

.route-line-public-transport {
  stroke: #2ecc71 !important;
  stroke-width: 6 !important;
  stroke-opacity: 0.9 !important;
  stroke-dasharray: 10, 5 !important;
}

.route-line-user {
  stroke: #9b59b6 !important;
  stroke-width: 6 !important;
  stroke-opacity: 0.9 !important;
  stroke-dasharray: 5, 5 !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .main-header-overlay {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
    padding: 14px;
    border-radius: 14px;
  }

  .header-content h1 {
    font-size: 1.3rem;
  }

  .action-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .action-btn svg {
    width: 16px;
    height: 16px;
  }

  .btn-text {
    display: none;
  }

  .action-btn i {
    font-size: 1.1rem;
    margin: 0;
  }

  .nav-panel {
    top: auto;
    bottom: 30px;
    right: 10px;
    left: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 76%;
    max-width: none;
    justify-content: center;
    gap: 8px;
  }

  .nav-button {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 0.85rem;
    justify-content: center;
  }

  /* My Location button on mobile */
  #locationBtn {
    min-width: 160px;
    background-color: rgba(155, 89, 182, 0.15);
  }

  .user-location-notification {
    bottom: 80px;
    left: 10px;
    right: 10px;
    transform: none;
    width: calc(100% - 20px);
    justify-content: center;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

  .info-panel {
    width: 280px;
    top: 10px;
    right: 10px;
    padding: 20px;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  .main-header-overlay {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 12px;
  }

  .header-content h1 {
    font-size: 1.2rem;
    gap: 8px;
  }

  .header-content h1 svg {
    width: 20px;
    height: 20px;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .header-actions {
    gap: 10px;
  }

  .action-btn {
    padding: 9px 12px;
    gap: 6px;
  }

  .nav-button {
    min-width: 130px;
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .nav-button i {
    font-size: 1rem;
  }

  #locationBtn {
    min-width: 140px;
  }

  aside.info-panel {
    display:none;
    width: calc(100% - 20px);
    max-width: none;
    right: 10px;
    left: 10px;
  }

  .photo-gallery.enhanced-gallery {
    display:none;
  }

}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .info-panel {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.3),
      0 6px 10px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  #infoTitle {
    color: #f7fafc;
  }

  #infoContent {
    background: rgba(67, 97, 238, 0.1);
    color: #e2e8f0;
    border-left-color: #4361ee;
  }

  #routeDetails {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e0;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f7fafc;
  }
}



/* Missing Data Alert Styles */
.missing-data-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  border: 2px solid #ff6b6b;
}

.missing-data-alert.hidden {
  display: none;
}

.missing-data-content {
  padding: 25px;
  text-align: center;
}

.missing-data-content i {
  font-size: 3rem;
  color: #ff6b6b;
  margin-bottom: 15px;
  display: block;
}

.missing-data-content h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
}

.missing-data-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.missing-item {
  display: inline-block;
  background: #ffeaea;
  color: #d63031;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.missing-data-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.missing-data-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 120px;
}

.missing-data-actions .btn-primary {
  background: #3498db;
  color: white;
}

.missing-data-actions .btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.missing-data-actions .btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.missing-data-actions .btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .missing-data-alert {
    width: 95%;
    max-width: 320px;
  }

  .missing-data-actions {
    flex-direction: column;
  }

  .missing-data-actions .btn {
    width: 100%;
  }
}


/* Fly-to buttons container - fixed positioned above the map */
.flyto-buttons-container {
  position: absolute;
  top: 20px;               /* Adjust based on your header height */
  left: 0;
  right: 0;
  z-index: 1000;           /* High z-index to stay above map */
  display: flex;
  justify-content: center;
  padding: 0px 20px;
  pointer-events: none;    /* Allow clicks to pass through to map if needed, but buttons themselves will be clickable */
}

/* Inner wrapper with background and rounded corners */
.flyto-buttons-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
/*   background: rgba(255, 255, 255, 0.95); */
  /*backdrop-filter: blur(8px);*/ /* Modern blur effect */
  padding: 12px 24px;
/*   border-radius: 18px; */
/*   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); */
/*   border: 1px solid rgba(255, 255, 255, 0.3); */
  max-width: 90%;
  pointer-events: auto;    /* Re-enable clicking on buttons */
}

/* Individual fly-to button */
.flyto-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 40px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.flyto-button i {
  color: #e74c3c; /* Red pin icon */
  font-size: 16px;
}

.flyto-button:hover {
  background: #f8f9fa;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
  color: #007bff;
}

.flyto-button:hover i {
  color: #007bff;
}

.flyto-button:focus {
  outline: 3px solid rgba(0, 123, 255, 0.3);
  outline-offset: 2px;
}

.flyto-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .flyto-buttons-container {
    top: 10px;
    padding: 5px 10px;
  }

  .flyto-buttons-wrapper {
    padding: 8px 16px;
    border-radius: 40px;
    gap: 8px;
    max-width: 95%;
  }

  .flyto-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .flyto-button i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {

  .flyto-buttons-container {
    top: 164px;
    padding: 2px 6px;
  }

  .flyto-buttons-wrapper {
    width: 100%;
    border-radius: 30px;
  }

  .flyto-button {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .flyto-button i {
    margin-right: 4px;
  }

  .flyto-button-text {
    white-space: normal;
    word-break: break-word;
    max-width: 80px;
  }
}

/* Dark mode support (if your site uses prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
  .flyto-buttons-wrapper {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .flyto-button {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
  }

  .flyto-button:hover {
    background: #3d3d3d;
    border-color: #007bff;
  }
}

/* Optional: Adjust top position if your header has a different height */
/* If you have a fixed header, you might need to increase top value */
/* e.g., .flyto-buttons-container { top: 80px; } */




/* Improve the star marker for nearby attractions */
.custom-marker.marker-attraction {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #f1c40f; /* Gold background */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.custom-marker.marker-attraction i {
  line-height: 1;
}

.custom-marker.marker-attraction:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
