/* Inter Font */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Thin.woff2') format('woff2'),
       url('../fonts/Inter/Inter-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-ExtraLight.woff2') format('woff2'),
       url('../fonts/Inter/Inter-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Light.woff2') format('woff2'),
       url('../fonts/Inter/Inter-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Regular.woff2') format('woff2'),
       url('../fonts/Inter/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Medium.woff2') format('woff2'),
       url('../fonts/Inter/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-SemiBold.woff2') format('woff2'),
       url('../fonts/Inter/Inter-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Bold.woff2') format('woff2'),
       url('../fonts/Inter/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-ExtraBold.woff2') format('woff2'),
       url('../fonts/Inter/Inter-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Montserrat Font */

/* Changa Font (local) */
@font-face {
  font-family: 'Changa';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Changa/2-cm9JNi2YuVOUckY5y-au8.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Changa';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Changa/2-cm9JNi2YuVOUckaJy-au8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Changa';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Changa/2-cm9JNi2YuVOUckZpy-.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --theme-font-family: 'Inter', 'Changa', sans-serif;
}

body {
  font-family: var(--theme-font-family);
  font-weight: 300;
}

/* Water floating animation for intro widget media */
.water-float-media {
  animation: waterFloat 5s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes waterFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  10% {
    transform: translateY(0) scale(1) rotate(-1deg);
  }
  25% {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
  }
  50% {
    transform: translateY(-18px) scale(1.01) rotate(-1deg);
  }
  75% {
    transform: translateY(-10px) scale(1.04) rotate(1deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(-1deg);
  }
}

/* Header scroll shrinking effect */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.header-scrolled nav {
  padding: 0.75rem 1.5rem !important;
}

.header-scrolled #main-logo {
  height: 2.5rem !important;
}

@media (min-width: 1024px) {
  .header-scrolled nav {
    padding: 0.75rem 2rem !important;
  }
}

/* Packages Carousel Styles */
[data-carousel-type] {
  padding-bottom: 3rem;
}

[data-carousel-type] .swiper-slide {
  height: auto;
  display: flex;
}

[data-carousel-type] .swiper-slide .product-block {
  width: 100%;
}

[data-carousel-type] .swiper-button-next,
[data-carousel-type] .swiper-button-prev {
  color: #be185d;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  transition-delay: 0s;
}

[data-carousel-type]:hover .swiper-button-next,
[data-carousel-type]:hover .swiper-button-prev {
  opacity: 1;
  transform: scale(1);
  transition-delay: 500ms;
}

[data-carousel-type] .swiper-button-next:hover,
[data-carousel-type] .swiper-button-prev:hover {
  background: #be185d;
  color: white;
  transform: scale(1.1);
  transition-delay: 0s;
}

[data-carousel-type] .swiper-button-next::after,
[data-carousel-type] .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

[data-carousel-type] .swiper-pagination {
  bottom: 0;
}

[data-carousel-type] .swiper-pagination-bullet {
  background: #d1d5db;
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

[data-carousel-type] .swiper-pagination-bullet-active {
  background: #be185d;
  transform: scale(1.2);
}

@media (min-width: 768px) {
  [data-carousel-type] .swiper-button-next,
  [data-carousel-type] .swiper-button-prev {
    width: 52px;
    height: 52px;
  }
  
  [data-carousel-type] .swiper-button-next::after,
  [data-carousel-type] .swiper-button-prev::after {
    font-size: 20px;
  }
}
[data-carousel-type]:after {
  z-index: 5;
  backdrop-filter: blur(10px);
  content: '';
  display: block;
  width: 100vw;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
  position: absolute;
  bottom: -20px;
  top: -20px;
  right: 100%;
}
[data-carousel-type]:before {
  z-index: 5;
  backdrop-filter: blur(10px);
  content: '';
  display: block;
  width: 100vw;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
  position: absolute;
  bottom: -20px;
  top: -20px;
  left: 100%;
}

/* ===== STATS COUNTER WIDGET STYLES ===== */

/* Stats Container Animation */
.stats-container {
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

/* Stat Item Base Styles */
.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Animated State */
.stat-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.stat-item.animate-in:hover {
    transition-delay: 0s !important;
}

/* Stat Item Background Effect */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

/* Stat Number Animation */
.stat-number {
  transition: all 0.3s ease;
  display: inline-block;
}

.stat-number.counting {
  color: inherit;
  animation: pulse 1s ease-in-out infinite;
}

.stat-number.complete {
  transform: scale(1);
}

/* Staggered Animation Delays - Only for Initial Entrance */
.stat-item:nth-child(1) { transition-delay: 0ms; }
.stat-item:nth-child(2) { transition-delay: 100ms; }
.stat-item:nth-child(3) { transition-delay: 200ms; }
.stat-item:nth-child(4) { transition-delay: 300ms; }
.stat-item:nth-child(5) { transition-delay: 400ms; }
.stat-item:nth-child(6) { transition-delay: 500ms; }

/* Remove Delays After Animation Completes */
.stat-item.animate-in {
  transition-delay: 0ms !important;
}

/* Pulse Animation for Counting */
@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.02); 
  }
}

/* Count Up Animation */
@keyframes countUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.stat-number.animate {
  animation: countUp 0.6s ease-out;
}

/* Hover Effects Enhancement */
.stat-item:hover .stat-number {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Icon Container Hover Effect */
.stat-item:hover .stat-icon-container {
  transform: scale(1.05) rotate(2deg);
  transition: transform 0.3s ease;
}

/* SVG Icon Sizing */
.stat-item svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .stat-item {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-item svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ==============================================
   iOS-Inspired Map Popup Modal Styles
   ============================================== */

/* Popup Overlay */
.branch-map-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-map-popup.show {
  opacity: 1;
  visibility: visible;
}

.branch-map-popup.closing {
  opacity: 0;
  visibility: hidden;
}

/* iOS-style Overlay Background */
.branch-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* iOS-style Modal Container */
.branch-map-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.branch-map-popup.show .branch-map-modal {
  transform: scale(1) translateY(0);
}

.branch-map-popup.closing .branch-map-modal {
  transform: scale(0.95) translateY(-10px);
}

/* iOS-style Modal Header */
.branch-map-modal-header {
  background: rgba(247, 247, 247, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1D1D1F;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px 24px 0 0;
}

.branch-map-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branch-map-modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.4px;
  color: #1D1D1F;
}

.branch-map-modal-header .branch-map-pin {
  width: 20px;
  height: 20px;
  color: #007AFF;
  animation: none; /* Remove bounce for cleaner iOS look */
}

/* iOS-style Close Button */
.branch-map-close {
  background: rgba(120, 120, 128, 0.16);
  border: none;
  color: #8E8E93;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-map-close:hover {
  background: rgba(120, 120, 128, 0.24);
  transform: scale(1.05);
}

.branch-map-close:active {
  transform: scale(0.95);
}

.branch-map-close svg {
  width: 16px;
  height: 16px;
}

/* Modal Body */
.branch-map-modal-body {
  flex: 1;
  position: relative;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.5);
}

.branch-map-content-popup {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.branch-map-content-popup iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

/* iOS Loading State */
.branch-map-modal-body .branch-map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
  gap: 16px;
}

.branch-map-modal-body .branch-map-loading p {
  color: #8E8E93;
  font-size: 15px;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.24px;
}

/* iOS Spinner */
.map-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(142, 142, 147, 0.2);
  border-top: 2px solid #007AFF;
  border-radius: 50%;
  animation: iosSpinner 1s linear infinite;
}

@keyframes iosSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* iOS-style Modal Footer */
.branch-map-modal-footer {
  background: rgba(247, 247, 247, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 0 0 24px 24px;
}

/* iOS-style External Link Button */
.branch-map-external-btn {
  background: #007AFF;
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.24px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.branch-map-external-btn:hover {
  background: #0056CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
  text-decoration: none;
  color: white;
}

.branch-map-external-btn:active {
  transform: scale(0.98);
}

/* iOS-style Close Button in Footer */
.branch-map-close-btn {
  background: rgba(120, 120, 128, 0.16);
  color: #8E8E93;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.24px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-map-close-btn:hover {
  background: rgba(120, 120, 128, 0.24);
}

.branch-map-close-btn:active {
  transform: scale(0.98);
}

/* iOS Fallback Design */
.branch-map-content-popup .branch-map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.branch-map-content-popup .branch-map-fallback-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: #007AFF;
  animation: none; /* Remove float animation for cleaner iOS look */
}

.branch-map-content-popup .branch-map-fallback h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.branch-map-content-popup .branch-map-fallback p {
  font-size: 15px;
  color: #8E8E93;
  margin-bottom: 20px;
  letter-spacing: -0.24px;
}

/* iOS Responsive Design */
@media (max-width: 768px) {
  .branch-map-overlay {
    padding: 20px 16px;
  }
  
  .branch-map-modal {
    max-height: 90vh;
    border-radius: 20px;
  }
  
  .branch-map-modal-header {
    padding: 16px 20px;
    border-radius: 20px 20px 0 0;
  }
  
  .branch-map-modal-header h3 {
    font-size: 18px;
  }
  
  .branch-map-modal-body {
    min-height: 300px;
  }
  
  .branch-map-modal-footer {
    padding: 12px 20px;
    flex-direction: column;
    gap: 8px;
    border-radius: 0 0 20px 20px;
  }
  
  .branch-map-external-btn,
  .branch-map-close-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  
  .branch-map-content-popup .branch-map-fallback {
    padding: 20px;
  }
}

/* iOS Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .branch-map-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .branch-map-modal {
    background: rgba(28, 28, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .branch-map-modal-header {
    background: rgba(44, 44, 46, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  
  .branch-map-modal-header h3 {
    color: #F2F2F7;
  }
  
  .branch-map-modal-footer {
    background: rgba(44, 44, 46, 0.8);
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  
  .branch-map-modal-body .branch-map-loading {
    background: rgba(28, 28, 30, 0.9);
  }
  
  .branch-map-modal-body .branch-map-loading p {
    color: #98989D;
  }
  
  .branch-map-content-popup .branch-map-fallback {
    background: rgba(28, 28, 30, 0.9);
  }
  
  .branch-map-content-popup .branch-map-fallback h4 {
    color: #F2F2F7;
  }
  
  .branch-map-content-popup .branch-map-fallback p {
    color: #98989D;
  }
}

/* Legacy inline map styles - keeping for reference but not used with popup
/* Creative Map Container */
.branch-map-creative {
  position: relative;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 10px 25px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: none; /* Hidden since we use popup */
}

/* Map Header with Location Pin Animation */
.branch-map-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.branch-map-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Animated Location Pin */
.branch-map-pin {
  width: 20px;
  height: 20px;
  animation: pin-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes pin-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* Map Content Container */
.branch-map-content {
  position: relative;
  height: 280px;
  background: #f1f5f9;
  overflow: hidden;
}

/* Creative Map Frame */
.branch-map-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
              linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
              linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Map iframe with enhanced styling */
.branch-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.branch-map-creative:hover .branch-map-frame iframe {
  transform: scale(1);
}

/* Map Loading State */
.branch-map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: 2;
}

.branch-map-loading.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Loading Animation */
.map-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Map Fallback Design */
.branch-map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.branch-map-fallback-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  color: #3b82f6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.branch-map-fallback h4 {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.branch-map-fallback p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Enhanced Map Button */
.branch-map-open-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.branch-map-open-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.branch-map-open-btn:hover::before {
  width: 120%;
  height: 120%;
}

.branch-map-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Map Toggle Animation */
.branch-map-creative.expanding {
  animation: expand-map 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.branch-map-creative.collapsing {
  animation: collapse-map 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expand-map {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    max-height: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 340px;
  }
}

@keyframes collapse-map {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 340px;
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    max-height: 0;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .branch-map-content {
    height: 220px;
  }
  
  .branch-map-header {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .branch-map-pin {
    width: 16px;
    height: 16px;
  }
  
  .branch-map-fallback-icon {
    width: 48px;
    height: 48px;
  }
  
  .branch-map-fallback h4 {
    font-size: 16px;
  }
  
  .branch-map-open-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ==============================================
   iOS-Inspired Custom Select Box Styles 
   ============================================== */

/* Custom Select Wrapper */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 160px;
}

/* Hide original select */
.custom-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* iOS-style Select Display */
.custom-select-display {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 20px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  font-weight: 400;
}

.custom-select-display:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 4px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.custom-select-wrapper.active .custom-select-display {
  background: rgba(255, 255, 255, 0.98);
  border-color: #9e1f62;
  box-shadow: 0 0 0 4px #9e1f6214, 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Select Value Text - iOS Typography */
.custom-select-value {
  font-weight: 500;
  color: #1D1D1F;
  flex: 1;
  text-align: right;
  font-size: 15px;
  letter-spacing: -0.24px;
  line-height: 1.4;
}

.custom-select-wrapper.active .custom-select-value {
  color: #9e1f62;
}

/* Minimal iOS Arrow */
.custom-select-arrow {
  width: 16px;
  height: 16px;
  color: #8E8E93;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-inline-start: 12px;
  flex-shrink: 0;
}

.custom-select-wrapper.active .custom-select-arrow {
  transform: rotate(180deg);
  color: #9e1f62;
}

/* iOS-style Options Dropdown */
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 200px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-select-wrapper.active .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Individual Option - iOS Style */
.custom-select-option {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #1D1D1F;
  text-align: right;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  letter-spacing: -0.24px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgb(0 0 0 / 8%);
  color: #000000;
}

.custom-select-option:active {
  background: rgb(158 31 98 / 9%);
}

.custom-select-option.selected {
  background: #9e1f62;
  color: white;
  font-weight: 500;
}

/* Checkmark styling for custom select options */
.option-checkmark {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: 16px;
  color: white;
}

.option-text {
  display: block;
  width: 100%;
  padding-right: 0;
}

/* Remove the old ::after pseudo-element completely */
.custom-select-option.selected::after {
  display: none !important;
}

/* iOS-style Scrollbar */
.custom-select-options {
  overflow-y: auto;
}

.custom-select-options::-webkit-scrollbar {
  width: 4px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Filter Group Styling - iOS Inspired */
.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-weight: 600;
  color: #1D1D1F;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Branches Filters Container - iOS Style */

/* Responsive Design - iOS Mobile First */
@media (max-width: 640px) {
  .custom-select-wrapper {
    min-width: 100%;
  }
  
  .custom-select-display {
    padding: 14px 16px;
    font-size: 16px; /* iOS recommendation for mobile inputs */
  }
  
  .custom-select-value {
    font-size: 16px;
  }
  
  .custom-select-arrow {
    width: 18px;
    height: 18px;
    margin-left: 14px;
  }
  
  .custom-select-option {
    padding: 16px;
    font-size: 16px;
  }
  
  .custom-select-options {
    max-height: 240px;
    border-radius: 20px;
  }
  
  .branches-filters {
    padding: 16px;
    border-radius: 16px;
  }
  
  .filter-group label {
    font-size: 12px;
  }
}

/* iOS-style Focus Ring */
.custom-select-display:focus {
  outline: none;
  border-color: #9e1f62;
  box-shadow: 0 0 0 4px #9e1f6221, 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Subtle Animation for Selection */
.custom-select-wrapper.selecting .custom-select-display {
  animation: iosSelection 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes iosSelection {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Remove harsh transitions, make everything smooth like iOS */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.branches-container {
    position: relative;
}

.branches-container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 86%;
    width: 100vw;
    height: 128%;
    background: url(../img/brand-symbol.png);
    z-index: -1;
    background-repeat: repeat;
    background-size: auto 20%;
    opacity: .08;
    margin-inline-end: -7vw;
    rotate: 5deg;
    transform-origin: right top;
    pointer-events: none;
    background-position: left top;
    background-attachment: fixed;
}

/* ========================================
   BRANCHES WIDGET iOS-INSPIRED SCROLL ANIMATIONS
======================================== */

/* Base scroll animation setup with iOS-style easing */
.scroll-animate {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.scroll-animate.animated {
    opacity: 1;
    will-change: auto;
}

/* iOS-style slide in up animation - Main container */
.scroll-animate[data-animation="slide-in-up"] {
    transform: translate3d(0, 24px, 0);
    opacity: 0;
}

.scroll-animate[data-animation="slide-in-up"].animated {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* iOS-style fade in scale animation - Header */
.scroll-animate[data-animation="fade-in-scale"] {
    transform: translate3d(0, 8px, 0) scale(0.95);
    opacity: 0;
}

.scroll-animate[data-animation="fade-in-scale"].animated {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* iOS-style slide in left animation - Filters */
.scroll-animate[data-animation="slide-in-left"] {
    transform: translate3d(-16px, 0, 0);
    opacity: 0;
}

.scroll-animate[data-animation="slide-in-left"].animated {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* iOS-style card entrance animation - Branch cards */
.scroll-animate[data-animation="card-pop-in"] {
    transform: translate3d(0, 32px, 0) scale(0.94);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate[data-animation="card-pop-in"].animated {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* iOS-style enhanced hover effects for animated cards */
.scroll-animate[data-animation="card-pop-in"].animated:hover {
    transform: translate3d(0, -4px, 0) scale(1.01);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* iOS-style active/pressed state for cards */
.scroll-animate[data-animation="card-pop-in"].animated:active {
    transform: translate3d(0, 0, 0) scale(0.98);
    transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* iOS-style stagger delay utilities with refined timing */
.scroll-animate[data-delay="0"] { transition-delay: 0ms; }
.scroll-animate[data-delay="50"] { transition-delay: 50ms; }
.scroll-animate[data-delay="100"] { transition-delay: 100ms; }
.scroll-animate[data-delay="150"] { transition-delay: 150ms; }
.scroll-animate[data-delay="200"] { transition-delay: 200ms; }
.scroll-animate[data-delay="250"] { transition-delay: 250ms; }
.scroll-animate[data-delay="300"] { transition-delay: 300ms; }
.scroll-animate[data-delay="350"] { transition-delay: 350ms; }
.scroll-animate[data-delay="400"] { transition-delay: 400ms; }
.scroll-animate[data-delay="450"] { transition-delay: 450ms; }
.scroll-animate[data-delay="500"] { transition-delay: 500ms; }
.scroll-animate[data-delay="550"] { transition-delay: 550ms; }
.scroll-animate[data-delay="600"] { transition-delay: 600ms; }
.scroll-animate[data-delay="650"] { transition-delay: 650ms; }
.scroll-animate[data-delay="700"] { transition-delay: 700ms; }
.scroll-animate[data-delay="750"] { transition-delay: 750ms; }
.scroll-animate[data-delay="800"] { transition-delay: 800ms; }
.scroll-animate[data-delay="850"] { transition-delay: 850ms; }
.scroll-animate[data-delay="900"] { transition-delay: 900ms; }
.scroll-animate[data-delay="950"] { transition-delay: 950ms; }
.scroll-animate[data-delay="1000"] { transition-delay: 1000ms; }

/* iOS accessibility - Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        transition: opacity 0.2s ease;
        transform: none !important;
    }
    
    .scroll-animate.animated {
        opacity: 1;
        transform: none !important;
    }
    
    .scroll-animate[data-animation*="card-pop-in"]:hover {
        transform: translate3d(0, -2px, 0) scale(1);
        transition: transform 0.15s ease;
    }
    
    .scroll-animate[data-animation*="card-pop-in"]:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }
}

/* iOS-style loading state for cards */
.scroll-animate[data-animation="card-pop-in"]:not(.animated) {
    pointer-events: none;
}

.scroll-animate[data-animation="card-pop-in"].animated {
    pointer-events: auto;
}
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem; /* Default position, will be adjusted by JS */
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappFloat 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-button:hover {
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: none;
}

.whatsapp-button:active {
    transform: scale(0.98) translateY(0);
    transition: all 0.1s ease;
}

.whatsapp-icon {
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

/* iOS-style Pulse animation */
.whatsapp-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    opacity: 0;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

/* iOS-style Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    left: -14px;
    transform: translateX(0) translateY(-15px);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 18px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2px;
    max-width: 250px;
    min-width: 200px;
    margin-inline-start: -10px;
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-20px);
}

[data-theme="dark"] .whatsapp-tooltip {
    background: rgba(44, 44, 46, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.tooltip-text {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.tooltip-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.tooltip-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

[data-theme="dark"] .tooltip-close {
    color: #999;
}

[data-theme="dark"] .tooltip-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tooltip-close svg {
    width: 12px;
    height: 12px;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 30px;
    transform: translateX(0);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .tooltip-arrow {
    border-top-color: rgba(44, 44, 46, 0.95);
}

.whatsapp-tooltip.dismissed {
    display: none;
}

/* Enhanced Animations */
@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(1deg);
    }
    50% {
        transform: translateY(-3px) rotate(0deg);
    }
    75% {
        transform: translateY(-9px) rotate(-1deg);
    }
}

@keyframes whatsappPulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    40% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .tooltip-content {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-tooltip {
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .tooltip-content {
        padding: 8px 12px;
    }
    
    .tooltip-text {
        font-size: 0.8rem;
    }
}
