body {
  font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
  scroll-behavior: smooth;
}

#map {
  width: 100%;
  height: 480px;
  border-radius: 12px;
}

.decoration-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.decoration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #FF3600;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.directions-btn {
  background-color: #FF3600;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.directions-btn:hover {
  background-color: #e03100;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 54, 0, 0.3);
}

.ar-btn {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.ar-btn:hover { 
  background-color: #3e8e41;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* AR Modal Styles */
.ar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ar-modal-content {
  width: 90%;
  max-width: 800px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.ar-modal video, .ar-modal canvas {
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  background: #000;
}

.close-ar {
  color: white;
  font-size: 30px;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  z-index: 1001;
}

.close-ar:hover {
  color: #FF3600;
}

/* Dark Mode Styles */
.dark {
  background-color: #1a1a1a;
  color: #e5e7eb;
}

.dark .bg-white {
  background-color: #1f2937 !important;
}

.dark .text-gray-900 {
  color: #f3f4f6 !important;
}

.dark .text-gray-600 {
  color: #d1d5db !important;
}

.dark .bg-gray-50 {
  background-color: #111827 !important;
}

.dark .bg-gradient-to-br.from-white.via-orange-50.to-white {
  background: linear-gradient(to bottom right, #1f2937, #1a1a1a, #1f2937) !important;
}

.dark .border-gray-300 {
  border-color: #374151 !important;
}

.dark .bg-white\/80 {
  background-color: rgba(31, 41, 55, 0.8) !important;
}

.dark .bg-gray-100\/50 {
  background-color: rgba(17, 24, 39, 0.5) !important;
}

.dark .hover\:bg-gray-100\/50:hover {
  background-color: rgba(17, 24, 39, 0.5) !important;
}

.dark .hover\:text-gray-900:hover {
  color: #f3f4f6 !important;
}

/* Dark Mode Toggle Switch Styling */
.dark-mode-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.dark-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.dark-mode-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .dark-mode-slider {
  background-color: #FF3600;
}

input:checked + .dark-mode-slider:before {
  transform: translateX(26px);
}

.dark-mode-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: white;
}

.sun-icon {
  left: 6px;
}

.moon-icon {
  right: 6px;
}

/* Dark mode adjustments for specific elements */
.dark .decoration-card {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

.dark .card-image {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
}

.dark .ar-modal-content {
  background-color: #1f2937 !important;
  color: #f3f4f6 !important;
}

.dark .bg-blue-50 {
  background-color: #1f2937 !important;
}

.dark .bg-orange-50 {
  background-color: #7c2d12 !important;
}

/* Map Controls */
.gm-style .gm-style-iw-c {
  border-radius: 12px !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-t::after {
  background: linear-gradient(45deg, #FF3600, #FF6B00) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #map {
    height: 300px;
  }
  
  .card-image {
    height: 150px;
  }
  
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .directions-btn, .ar-btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
  }
  
  .decoration-card {
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  .decoration-card {
    margin: 0 2px;
  }
  
  #map {
    height: 250px;
  }
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #FF3600;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e03100;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #FF6B00;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #FF3600;
}

/* Loading animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.decoration-card {
  animation: fadeIn 0.5s ease-out;
}