/**
 * Modern Stylesheet - Mobile-optimized 2023
 */

/* Test style to verify CSS loading */
.container {
  border: 2px solid transparent;
}

/* Base Styles */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #4f46e5;
  --accent: #ec4899;
  --success: #06b6d4;
  --warning: #fbbf24;
  --danger: #ef4444;
  --light: #f9fafb;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;
  --radius: 5px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-bottom: 90px !important;
  background-color: #f9fafb;
  background-image: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  color: var(--dark);
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Mobile tap highlight */
  padding-top: 60px;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  max-width: 100vw; /* Ensure body doesn't exceed viewport width */
  /*position: relative;*/
}

/* Prevent zoom on input focus */
input, textarea, select {
  font-size: 16px !important; /* Prevents iOS zoom on input focus */
  max-width: 100%;
}

/* Ensure all containers stay within viewport */
.container, .container-fluid {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Prevent any element from causing horizontal scroll */
* {
  /*max-width: 100%;*/
  box-sizing: border-box;
}

/* Fix Bootstrap gutter issues */
.row {
  --bs-gutter-x: 0.5rem;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  --bs-gutter-x: 0.5rem;
}

/* Photo modal styles - ensure it works on all pages */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-modal.show {
  opacity: 1;
  visibility: visible;
}

.photo-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.photo-modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.photo-modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
}

.photo-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  color: #333;
}

.photo-nav-btn:hover {
  background: white;
  transform: scale(1.1);
}

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

.photo-modal-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.swipe-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  z-index: 10001;
  animation: swipeHintFade 3s ease-in-out;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.swipe-hint i {
  margin-right: 6px;
  font-size: 11px;
  animation: swipeHintPulse 2s ease-in-out infinite;
}

@keyframes swipeHintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

@keyframes swipeHintPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.photo-modal-close:hover {
  background: white;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.86) 100%);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 8px 24px -12px rgba(17, 24, 39, 0.18), 0 1px 3px rgba(17, 24, 39, 0.08);
  z-index: 1001;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform, box-shadow, background-color;
  padding: 20px 0;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent));
  opacity: 0.65;
  pointer-events: none;
}

.site-header:hover {
  box-shadow: 0 16px 40px -16px rgba(17, 24, 39, 0.22), 0 2px 6px rgba(17, 24, 39, 0.08);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.footer.footer-hidden {
  /*transform: translateY(100%);*/
  display: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
}

.site-logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(2px 5px 1px rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  transition: transform 0.2s ease, filter 0.2s ease;
  will-change: transform;
}

.site-logo img:hover {
  transform: translateY(-1px) scale(1.03);
}

.site-branding {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.site-text {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  border-radius: 3px;
  transition: var(--transition);
}

.site-title:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.site-title:hover::after {
  width: 100%;
}

.site-slogan {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.2;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background-color: var(--gray-light);
  transform: rotate(5deg);
}

/* Footer Navigation Styles */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  padding: 8px 0;
  box-shadow: 0 -8px 24px -12px rgba(17, 24, 39, 0.18), 0 -1px 3px rgba(17, 24, 39, 0.08);
  z-index: 1000;
  height: 85px;

  border-top: 1px solid rgba(99, 102, 241, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  will-change: background-color, box-shadow;
}

.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.6;
  pointer-events: none;
}

.footer:hover {
  box-shadow: 0 -16px 40px -16px rgba(17, 24, 39, 0.22), 0 -2px 6px rgba(17, 24, 39, 0.08);
}

.footer .row {
  height: 100%;
  margin: 0;
}

.footer .col-4 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.footer-tab {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #94a3b8;
  transition: var(--transition);
  position: relative;
  padding: 8px 4px;
}

.footer-tab::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: var(--transition);
}

.footer-tab:hover::after,
.footer-tab.active::after {
  transform: scaleX(1);
  opacity: 0.9;
}

.footer-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border-radius: 18px;
  /*margin-bottom: 6px;*/
  transition: var(--transition);
  border: 1px solid rgba(17, 24, 39, 0.06);
  position: relative;
  overflow: visible;
}

.footer-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.12);
  opacity: 0;
  transition: var(--transition);
}

.footer-tab.active .footer-icon {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -4px rgba(99, 102, 241, 0.2);
}

.footer-tab.active .footer-icon::after {
  box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.12);
  opacity: 1;
}

.footer-tab i {
  font-size: 24px;
  color: #64748b;
  transition: var(--transition);
}

.footer-tab.active i {
  color: #ffffff;
}

.footer-tab:hover .footer-icon::after {
  box-shadow: 0 0 0 7px rgba(99, 102, 241, 0.1);
  opacity: 1;
}

.footer-tab.active:hover .footer-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(2px);
}

.footer-label {
  font-size: 12px;
  font-weight: 600;
  /*margin-top: 2px;*/
  color: #64748b;
  transition: var(--transition);
}

.footer-tab.active .footer-label {
  color: var(--primary);
}

.footer-tab:hover .footer-icon {
  background-color: #e2e8f0;
  transform: translateY(2px);
}

/* Message notification badge */
.message-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background-color: #ff3b30;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Fix for footer chat button badge position */
.footer-chat-btn {
  position: relative;
}

.footer-chat-btn .message-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
  letter-spacing: -0.5px;
}

/* Buttons */
.btn {
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: none;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 10px;
}







/* Custom text colors for markers */
.text-purple {
  color: #8b5cf6;
}

.text-pink {
  color: #ec4899;
}

.text-orange {
  color: #f97316;
}

.text-indigo {
  color: #6366f1;
}

.text-teal {
  color: #14b8a6;
}

.text-magenta {
  color: #db2777;
}

.text-red {
  color: #ef4444;
}

.text-light {
  color: #f1f5f9;
}





/* Radius Control */
.form-range {
  width: 100%;
  height: 1.5rem;
  cursor: pointer;
  accent-color: var(--primary);
}

#radius-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

#update-radius {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: none;
}

#update-radius:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
}

/* Place Type Buttons - Updated for Google Place Types */
.place-type-btn {
  font-weight: 600;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  transition: var(--transition);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
  border-width: 2px;
}

.place-type-btn.active {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Food & Drink */
.place-type-btn[data-type="restaurant"].active {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

.place-type-btn[data-type="bar"].active {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.place-type-btn[data-type="cafe"].active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.place-type-btn[data-type="bakery"].active {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.place-type-btn[data-type="food"].active {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* Entertainment & Recreation */
.place-type-btn[data-type="park"].active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.place-type-btn[data-type="amusement_park"].active {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.place-type-btn[data-type="aquarium"].active {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: white;
}

.place-type-btn[data-type="art_gallery"].active {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

.place-type-btn[data-type="bowling_alley"].active {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
}

.place-type-btn[data-type="casino"].active {
  background-color: #1e293b;
  border-color: #1e293b;
  color: white;
}

.place-type-btn[data-type="movie_theater"].active {
  background-color: #f97316;
  border-color: #f97316;
  color: white;
}

.place-type-btn[data-type="museum"].active {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
}

.place-type-btn[data-type="night_club"].active {
  background-color: #6366f1;
  border-color: #6366f1;
  color: white;
}

.place-type-btn[data-type="stadium"].active {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
}

.place-type-btn[data-type="zoo"].active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

/* Accommodation */
.place-type-btn[data-type="lodging"].active,
.place-type-btn[data-type="hotel"].active {
  background-color: #1e293b;
  border-color: #1e293b;
  color: white;
}

/* Fitness & Health */
.place-type-btn[data-type="gym"].active {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: white;
}

.place-type-btn[data-type="spa"].active {
  background-color: #ec4899;
  border-color: #ec4899;
  color: white;
}

.place-type-btn[data-type="health"].active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

/* Shopping */
.place-type-btn[data-type="shopping_mall"].active,
.place-type-btn[data-type="store"].active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Education & Culture */
.place-type-btn[data-type="library"].active {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

.place-type-btn[data-type="school"].active,
.place-type-btn[data-type="university"].active {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: white;
}

/* Transportation */
.place-type-btn[data-type="airport"].active,
.place-type-btn[data-type="bus_station"].active,
.place-type-btn[data-type="subway_station"].active,
.place-type-btn[data-type="train_station"].active {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
}

/* Business */
.place-type-btn[data-type="bank"].active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.place-type-btn[data-type="post_office"].active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Religious */
.place-type-btn[data-type="church"].active,
.place-type-btn[data-type="mosque"].active,
.place-type-btn[data-type="synagogue"].active {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
}

/* Government */
.place-type-btn[data-type="city_hall"].active,
.place-type-btn[data-type="courthouse"].active {
  background-color: #1e293b;
  border-color: #1e293b;
  color: white;
}

.place-type-btn[data-type="police"].active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Healthcare */
.place-type-btn[data-type="hospital"].active {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

.place-type-btn[data-type="pharmacy"].active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.place-type-btn[data-type="dentist"].active,
.place-type-btn[data-type="doctor"].active {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: white;
}

.place-type-btn[data-type="all"].active {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

/* Location List Items */
.list-group-item {
  border: none;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.list-group-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Checked in place styling */
.list-group-item.checked-in {
  border-left: 4px solid #10b981;
  background-color: rgba(16, 185, 129, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-group-item.checked-in:hover {
  background-color: rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
}

.list-group-item .place-name {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.list-group-item .place-distance {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.list-group-item .place-users {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Recent check-ins clickable styling */
.list-group-item a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.list-group-item a:hover {
  color: var(--primary);
  text-decoration: none;
}

.list-group-item a:hover strong {
  color: var(--primary) !important;
}

.list-group-item a:active {
  transform: scale(0.98);
}

/* User Cards - Now using list-group-item structure */
.user-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.user-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.user-avatar-container {
  flex-shrink: 0;
}

.user-info-container {
  flex: 1;
  min-width: 0;
}

/* Ensure list-group-item styling works for user items */
.users-list-container .list-group-item {
  border: none;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.users-list-container .list-group-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.95);
}

.user-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  flex-shrink: 0;
}

.user-card .user-name {
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.3px;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* Ensure avatar styling works in list-group-item structure */
.users-list-container .list-group-item .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  flex-shrink: 0;
}

.users-list-container .list-group-item .user-name {
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.3px;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.user-card .user-info {
  color: var(--gray);
  font-size: 0.9rem;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Match chat page button styling */
.user-actions .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.user-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-actions .btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.user-actions .btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.user-actions .btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.user-actions .btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Users list container */
.users-list-container {
  padding: 1rem;
}

/* Conversations list container */
.conversations-list-container {
  padding: 1rem;
  overflow-y: auto;
  max-height: 500px;
}

/* Nearby users list container */
.nearby-users-list-container {
  padding: 1rem;

}

/* Place photos grid */
.place-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Place photos container for home page */
.place-photos-container {
  margin-top: 0.75rem;
}

.place-photos-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.place-photo {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.place-photo:hover {
  transform: scale(1.05);
}

.place-photos-loading {
  width: 80px;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  flex-shrink: 0;
}

.place-photo-loading {
  aspect-ratio: 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius);
}

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

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.photo-item {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.photo-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: white;
  padding: 2rem 1.25rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Chat Styles */
.chat-container {
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: transparent;
}

.chat-input {
  display: flex;
  border-top: 1px solid var(--gray-light);
  padding: 0.85rem;
  background-color: rgba(255, 255, 255, 0.95);
}

.chat-input input {
  flex-grow: 1;
  border: 1px solid var(--gray-light);
  border-radius: 24px 0 0 24px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  background-color: white;
  transition: var(--transition);
}

.chat-input input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  outline: none;
}

.chat-input button {
  border-radius: 0 24px 24px 0;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input button:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.message {
  margin-bottom: 1.25rem;
  max-width: 80%;
  position: relative;
}

.message-sent {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  border-radius: 20px 20px 0 20px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.message-received {
  margin-right: auto;
  background-color: #f3f4f6;
  border-radius: 20px 20px 20px 0;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.message-time {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.4rem;
  text-align: right;
  font-weight: 500;
}

/* Loading Indicator */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  color: var(--gray);
  font-weight: 500;
}

.loading .spinner-border {
  margin-right: 0.85rem;
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--secondary);
}

/* Form Elements */
.form-control {
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--gray-light);
  background-color: white;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  outline: none;
}

/* Alert Styles */
.alert {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.alert-success {
  background-color: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.alert-success::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background-color: #0891b2;
  color: white;
  border-radius: 50%;
  margin-right: 12px;
  font-weight: bold;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.alert-danger::before {
  content: "!";
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background-color: #b91c1c;
  color: white;
  border-radius: 50%;
  margin-right: 12px;
  font-weight: bold;
}



/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--gray-light);
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.95);
}

.modal-title {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.modal-body {
  padding: 1.75rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-light);
  padding: 1.5rem;
  background-color: rgba(249, 250, 251, 0.7);
}

/* Avatar Enhancement */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  font-weight: 600;
}

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

/* Avatar size variants */
.avatar-sm {
  width: 40px;
  height: 40px;
}

/* Floating scroll-to-input button (shared across chat views) */
.scroll-to-input-btn {
  position: fixed;
  bottom: 120px; /* keep above bottom nav/input */
  right: 20px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.scroll-to-input-btn.show {
  display: inline-flex;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  
  .check-in-btn {
    display: none !important;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chat-container {
    height: 100%;
  }
  
  .card-body {
    padding: 1rem;
  }

  /* User cards mobile optimization */
  .user-card {
    padding: 1rem;
  }
  
  .user-card-content {
    gap: 0.75rem;
  }
  
  .user-card .avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .user-card .user-name {
    font-size: 0.95rem;
  }
  
  /* List-group-item mobile optimization for user items */
  .users-list-container .list-group-item {
    padding: 1rem;
  }
  
  .users-list-container .list-group-item .avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .users-list-container .list-group-item .user-name {
    font-size: 0.95rem;
  }
  
  .user-actions {
    margin-top: 0.5rem;
  }
  
  .user-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  /* Match chat page button styling on mobile */
  .user-actions .btn-outline-secondary,
  .user-actions .btn-outline-primary {
    border-width: 1px;
  }
  
  /* Place photos grid mobile */
  .place-photos-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  
  .place-photo {
    width: 70px;
    height: 52px;
  }
  
  .place-photos-loading {
    width: 70px;
    height: 52px;
  }
  
  /* Users list container mobile */
  .users-list-container {
    padding: 0.75rem;
  }
  
  /* Chat containers mobile */
  .conversations-list-container,
  .nearby-users-list-container {
    padding: 0.75rem;
  }

  /* Increase bottom padding to account for footer */
  body {
    padding-bottom: 90px;
    padding-top: 60px;
  }
  
  /* Adjust site branding for tablets */
  .site-title {
    font-size: 16px;
  }
  
  .site-slogan {
    font-size: 11px;
  }
  
  /* Photo modal navigation for tablets */
  .photo-nav-btn {
    display: none !important; /* Hide arrows on tablets too */
  }
  
  .photo-modal-navigation {
    display: none !important; /* Hide navigation container on tablets */
  }
  
  .photo-modal-counter {
    bottom: 20px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  /* Add swipe hint for tablets */
  .photo-modal-content {
    cursor: grab;
  }
  
  .photo-modal-content:active {
    cursor: grabbing;
  }
  
  /* Discreet swipe hint on tablets */
  .swipe-hint {
    bottom: 75px;
    padding: 7px 14px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.55);
  }
  
  .swipe-hint i {
    font-size: 10px;
    margin-right: 5px;
  }
}

@media (max-width: 576px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  .place-type-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* User cards small mobile optimization */
  .user-card {
    padding: 0.75rem;
  }
  
  .user-card-content {
    gap: 0.5rem;
  }
  
  .user-card .avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .user-card .user-name {
    font-size: 0.9rem;
  }
  
  /* List-group-item small mobile optimization for user items */
  .users-list-container .list-group-item {
    padding: 0.75rem;
  }
  
  .users-list-container .list-group-item .avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .users-list-container .list-group-item .user-name {
    font-size: 0.9rem;
  }
  
  .user-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .user-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    width: 100%;
  }
  
  /* Match chat page button styling on small mobile */
  .user-actions .btn-outline-secondary,
  .user-actions .btn-outline-primary {
    border-width: 1px;
    margin-bottom: 0.25rem;
  }
  
  /* Place photos grid small mobile */
  .place-photos-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.25rem;
  }
  
  .place-photo {
    width: 60px;
    height: 45px;
  }
  
  .place-photos-loading {
    width: 60px;
    height: 45px;
  }
  
  /* Users list container small mobile */
  .users-list-container {
    max-height: 350px;
    padding: 0.5rem;
  }
  
  /* Chat containers small mobile */
  .conversations-list-container,
  .nearby-users-list-container {

    padding: 0.5rem;

  }
  
  /* Footer adjustments for very small screens */
  .footer {
    height: 95px;
  }
  
  .footer-icon {
    width: 48px;
    height: 48px;
  }
  
  .footer-tab i {
    font-size: 22px;
  }
  
  .footer-label {
    font-size: 12px;
  }
 
  /* Adjust site branding for mobile */
  .site-slogan {
    display: none; /* Hide slogan on very small screens */
  }
  
  .site-title {
    font-size: 30px;
    position: relative;
    left: -33px;
  }

  .site-title::first-letter {
    opacity: 0;
  }
  
  .site-text {
    margin-left: 8px;
  }
  
  /* Photo modal navigation for phones */
  .photo-nav-btn {
    display: none !important; /* Hide arrows on mobile */
  }
  
  .photo-modal-navigation {
    display: none !important; /* Hide navigation container on mobile */
  }
  
  .photo-modal-counter {
    bottom: 15px;
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .photo-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  /* Add swipe hint for mobile */
  .photo-modal-content {
    cursor: grab;
  }
  
  .photo-modal-content:active {
    cursor: grabbing;
  }
  
  /* More discreet swipe hint on mobile */
  .swipe-hint {
    bottom: 70px;
    padding: 6px 12px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .swipe-hint i {
    font-size: 10px;
    margin-right: 4px;
  }

}

/* Mobile Menu Styles */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1010;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: white;
  z-index: 1020;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-header h5 {
  margin: 0;
  font-weight: 600;
}

.close-mobile-menu {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu-content {
  padding: 20px;
}

.menu-item {
  margin-bottom: 25px;
}

.menu-item h6 {
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.menu-item h6 i {
  margin-right: 10px;
  color: var(--primary);
}

/* QR Code Container */
.qrcode-container {
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: fit-content;
  margin: 0 auto;
  min-height: 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* QR Code Wrapper */
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Download QR Code Button */
.download-qr-btn {
  background-color: #6366f1;
  border-color: #6366f1;
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.download-qr-btn:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.download-qr-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.download-qr-btn i {
  margin-right: 4px;
}

/* Copy Link Container */
.copy-link-container {
  display: flex;
  align-items: center;
}

.site-url {
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  padding: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--gray-light);
}

.copy-link-btn {
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  white-space: nowrap;
}

/* Search Container */
.search-container {
  position: relative;
  margin-bottom: 15px;
}

/* Enhanced Search Section */
.search-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-header {
  text-align: center;
}

.search-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.search-subtitle {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
}

/* Enhanced Place Search Input */
#place-search {
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none;
  border-radius: 0 0 0 0;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #1e293b;
  position: relative;
}

#place-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

#place-search::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 0.8;
  transition: all 0.3s ease;
}

#place-search:focus::placeholder {
  opacity: 0.5;
  transform: translateX(5px);
}

#place-search::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 0.8;
}

/* Enhanced Search Input Group */
.search-container .input-group {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.search-container .input-group:hover {
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.12), 0 6px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
}

.search-container .input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 12px 35px rgba(99, 102, 241, 0.15);
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Add subtle glow effect */
.search-container .input-group::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.search-container .input-group:focus-within::before {
  opacity: 1;
}

.search-container .input-group-text {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, var(--secondary) 100%);
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px 0 0 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-container .input-group-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.search-container .input-group:hover .input-group-text::before {
  left: 100%;
}

.search-container .input-group-text i {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Add subtle animation to the search icon */
.search-container .input-group:focus-within .input-group-text i {
  animation: searchPulse 2s infinite;
}

@keyframes searchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Clear Search Button Enhancement */
#clear-search {
  border-radius: 0 16px 16px 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle background pattern */
#clear-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
}

/* Hover effects */
#clear-search:hover::before {
  opacity: 1;
  transform: scale(1);
}

#clear-search:hover {
  color: white;
  border-left-color: transparent;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

/* Icon styling */
#clear-search i {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

#clear-search:hover i {
  transform: scale(1.15) rotate(180deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Focus states */
#clear-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Active state */
#clear-search:active {
  transform: scale(0.95);
}

/* Smooth appearance animation */
#clear-search {
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Pulse effect when first appears */
#clear-search.just-appeared {
  animation: clearButtonAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes clearButtonAppear {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.6);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .search-section {
    padding: 1.25rem;
  }
  
  .search-title {
    font-size: 1.25rem;
  }
  
  .search-subtitle {
    font-size: 0.9rem;
  }
  
  #place-search {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
  
  .search-container .input-group-text {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
  
  .search-container .input-group-text i {
    font-size: 1.1rem;
  }
  
  #clear-search {
    padding: 1rem 1.25rem;
    min-width: 55px;
  }
}

@media (max-width: 576px) {
  .search-section {
    padding: 1rem;
  }
  
  .search-title {
    font-size: 1.1rem;
  }
  
  .search-subtitle {
    font-size: 0.85rem;
  }
  
  #place-search {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }
  
  .search-container .input-group-text {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }
  
  .search-container .input-group-text i {
    font-size: 1rem;
  }
  
  #clear-search {
    padding: 0.875rem 1rem;
    min-width: 50px;
  }
  
  #clear-search i {
    font-size: 0.9rem;
  }
}

.search-predictions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  max-height: 0;
  overflow: hidden;
  /* Remove display: none to allow proper transitions */
}

.search-predictions.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 350px;
  overflow-y: auto;
}

.prediction-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.prediction-item:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.prediction-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.prediction-address {
  font-size: 12px;
  color: #64748b;
}

.prediction-highlight {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  font-weight: bold;
  padding: 1px 2px;
  border-radius: 3px;
}

.prediction-loading,
.prediction-no-results,
.prediction-error {
  padding: 15px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.prediction-loading {
  color: var(--primary);
}

.prediction-no-results {
  color: #64748b;
  font-style: italic;
}

.prediction-error {
  color: #dc3545;
}

/* Places List Styling */

.place-item {
  transition: all 0.3s ease;
  transform-origin: center;
}

.place-item:hover {
  transform: translateY(-2px);
}

/* Animation for search results */
@keyframes highlightFade {
  0% { background-color: rgba(99, 102, 241, 0.2); }
  100% { background-color: transparent; }
}

.highlight-match {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-weight: bold;
  padding: 0 2px;
  border-radius: 3px;
  display: inline-block;
  animation: highlightFade 1.5s ease-out forwards;
}

/* Modern UI Enhancements */
.badge {
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.badge-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
}

.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
  margin-top: 0.25em;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-outline-white {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.5px;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Dark mode hints (base classes that could be used to add dark mode) */
.dark-mode-ready [data-theme="dark"] {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #4f46e5;
  --accent: #ec4899;
  --success: #06b6d4;
  --warning: #fbbf24;
  --danger: #ef4444;
  --light: #f9fafb;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  color-scheme: dark;
}

.footer-icon-crown {
  position: relative;
  top: -75px;
  right: -25px;
  pointer-events: none;
}

.footer-icon-crown i{
  font-size: 1.1em;
  color: #FFD700 !important;
  z-index: 2;
  text-shadow: 0 1px 4px #fff, 0 0 2px #FFD700;
}

.site-logo-wrapper {
  position: relative;
  display: inline-block;
}

/* Disabled chat button styles */
.chat-btn:disabled,
.chat-btn[disabled] {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important; /* Allow click for toast message */
}

.chat-btn:disabled:hover,
.chat-btn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Profile chat button disabled styles */
#profile-chat-btn:disabled,
#profile-chat-btn[disabled] {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important; /* Allow click for toast message */
}

#profile-chat-btn:disabled:hover,
#profile-chat-btn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}
