/* ===== Poster Maps Pro - Custom Styles ===== */

/* --- Glass Effects --- */
.glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass {
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.dark .glass-card {
  background: rgba(40, 40, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- Background Blobs --- */
.blob {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  border-radius: 50%;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 300px; }
}

/* --- Scroll Animations (JS-driven) --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* --- City Tags --- */
.city-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.dark .city-tag {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* --- Slideshow --- */
.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
}
.slideshow-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slideshow-container img.active {
  opacity: 1;
}
.slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.slideshow-dot.active {
  background: #2563EB;
  width: 24px;
  border-radius: 4px;
}
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #2563EB;
  font-size: 20px;
}
.slideshow-nav:hover {
  background: rgba(255,255,255,0.9);
}
.slideshow-nav.prev { left: 8px; }
.slideshow-nav.next { right: 8px; }

/* --- Language Select --- */
.lang-select {
  appearance: none;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  padding: 4px 28px 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%232563EB'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  backdrop-filter: blur(4px);
}
.dark .lang-select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  color: #60A5FA;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2360A5FA'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  z-index: 100;
  transition: right 0.3s ease-in-out;
  padding-top: 80px;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(37,99,235,0.2);
  color: #2563EB;
}
.dark .theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  color: #60A5FA;
}
.theme-toggle:hover {
  transform: scale(1.05);
}

/* --- Sticky Nav --- */
.nav-scrolled .glass {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.dark .nav-scrolled .glass {
  background: rgba(20, 20, 30, 0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* --- Price Card --- */
.price-card {
  transition: all 0.3s;
}
.price-card:hover {
  transform: translateY(-8px);
}
.price-card.recommended {
  border: 2px solid rgba(37, 99, 235, 0.3);
}
.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #2563EB;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 1.5rem 0 1rem;
}

/* --- Price Switcher --- */
.price-switcher {
  display: inline-flex;
  background: rgba(37,99,235,0.08);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}
.price-switcher button {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #2563EB;
  background: transparent;
}
.price-switcher button.active {
  background: white;
  color: #2563EB;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
.dark .price-switcher {
  background: rgba(255,255,255,0.1);
}
.dark .price-switcher button.active {
  background: rgba(37,99,235,0.3);
  color: #60A5FA;
}

/* --- City Search Demo --- */
.city-demo-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid rgba(37,99,235,0.2);
  font-size: 1.125rem;
  outline: none;
  transition: border-color 0.3s;
  background: rgba(255,255,255,0.6);
  color: #1e293b;
}
.city-demo-input:focus {
  border-color: #2563EB;
}
.dark .city-demo-input {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-color: rgba(37,99,235,0.3);
}
.city-demo-input::placeholder {
  color: #94a3b8;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2563EB;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 30px rgba(37,99,235,0.3);
  z-index: 200;
  transition: transform 0.3s ease-out;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* --- Newsletter Input --- */
.newsletter-input-group {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}
.newsletter-input-group input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px 0 0 12px;
  border: 2px solid rgba(37,99,235,0.2);
  border-right: none;
  font-size: 0.875rem;
  outline: none;
  background: rgba(255,255,255,0.6);
  color: #1e293b;
}
.dark .newsletter-input-group input {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-color: rgba(37,99,235,0.3);
}
.newsletter-input-group button {
  padding: 12px 20px;
  border-radius: 0 12px 12px 0;
  background: #2563EB;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-input-group button:hover {
  background: #1D4ED8;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* --- Testimonial Carousel --- */
.testimonial-card {
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* --- Trust Badges --- */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

/* --- FAQ Smooth Toggle --- */
details.glass-card summary::-webkit-details-marker {
  display: none;
}
details.glass-card summary {
  user-select: none;
}
details.glass-card[open] .expand-icon {
  transform: rotate(180deg);
}
.expand-icon {
  transition: transform 0.3s;
}

/* --- Section Dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(37,99,235,0.2), transparent);
}

/* --- Mobile Responsive Extras --- */
@media (max-width: 768px) {
  .slideshow-container {
    aspect-ratio: 1/1;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* --- Print Styles --- */
@media print {
  .glass, .glass-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
  .blob { display: none; }
  nav { display: none; }
}
