/**
 * paddlingout.css
 *
 * 0) Reset body margin/padding so no gray “frame” remains
 * 1) Container & card layout
 * 2) In-card carousel
 * .parking-icon::before { content: 'P';      font-size: 18px; }
.toilet-icon::before  { content: '\1F6BD'; font-size: 18px; }
.youtube-icon::before { content: '\25B6';  font-size: 18px; }
.chat-icon::before    { content: '\1F4AC'; font-size: 18px; }
.location-icon::before{ content: '\1F4CD'; font-size: 18px; }ext & spacing tweaks
 * 4) Footer & icons (tooltips never clipped)
 * 5) Page-indicator dots
 * 6) Responsive breakpoints (cards only)
 * 7) HEIGHT FIX – equal card heights
 * 8) SINGLE-CARD CENTERING
 * 9) SINGLE-CARD VIEW – perfect centering
 */

/*─────────────────────────────────────────────────────────────────────────────
 0) Reset body margin/padding (remove gray “frame”)
─────────────────────────────────────────────────────────────────────────────*/
body {
  margin: 0;
  padding: 0;
  background: #f2f2f2; /* page background color (light gray) */
  font-family: Arial, sans-serif;
}

/*─────────────────────────────────────────────────────────────────────────────
 1) Container & card layout
─────────────────────────────────────────────────────────────────────────────*/
.container {
  position: relative; /* stack under header */
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: transparent;
  overflow: visible; /* allow tooltips */
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  width: calc(25% - 20px);
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/*─────────────────────────────────────────────────────────────────────────────
 2) In-card carousel
─────────────────────────────────────────────────────────────────────────────*/
.img-container {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.img-container img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: none;
}
.img-container img.active {
  display: block;
}
.card:hover .img-container img.active {
  transform: scale(1.05);
}

/*─────────────────────────────────────────────────────────────────────────────
 3) Text & spacing tweaks
─────────────────────────────────────────────────────────────────────────────*/
.card-content {
  padding: 8px;
  text-align: center;
  overflow: visible;
  z-index: 1;
}
.card-title {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 1.5rem;
  margin: 0;
  color: #000; /* Ensure title is always black */
}
.card-subtitle {
  font-family: 'Josefin_Medium', Arial, sans-serif;
  font-size: 1rem;
  margin: 5px 0 12px;
  color: #666; /* Keep subtitle gray as requested */
}
.card-description {
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333; /* Change from #777 to darker for better readability - region/timezone text */
}

/*─────────────────────────────────────────────────────────────────────────────
 4) Footer & icons (tooltips never clipped) - ENHANCED MOBILE CONSISTENCY
─────────────────────────────────────────────────────────────────────────────*/
.card-footer {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  position: relative;
  overflow: visible;
  z-index: 1;
}

/* CONSISTENT CIRCULAR BUTTON BASE STYLING */
.icon {
  width: 40px;
  height: 40px;
  border: 2px solid #e8e8e8;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #333;
  /* Ensure consistent sizing */
  box-sizing: border-box;
  flex-shrink: 0;
}

/* CONSISTENT HOVER STATES FOR ALL BUTTONS */
.icon:hover,
.icon:focus,
.icon:active {
  transform: translateY(-3px) scale(1.05);
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* ICON CONTENT WITH BETTER CONSISTENCY */
.parking-icon::before { 
  content: 'P';      
  font-size: 18px; 
  font-weight: 700;
  color: #2c5530; /* Consistent green theme */
}
.toilet-icon::before  { 
  content: '\1F6BD'; 
  font-size: 16px; 
  filter: grayscale(20%) brightness(0.8);
}
.youtube-icon::before { 
  content: '▶';  
  font-size: 16px; 
  color: #c4302b; /* YouTube red consistency */
  margin-left: 2px; /* Optical alignment for play button */
  font-weight: 900; /* Bolder play icon */
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.chat-icon::before    { 
  content: '\1F4AC'; 
  font-size: 16px; 
  filter: grayscale(20%) brightness(0.8);
}
.robot-icon::before   { 
  content: '\1F916'; 
  font-size: 16px; 
  filter: grayscale(20%) brightness(0.8);
}
.analytics-icon::before { 
  content: '\1F4CA'; 
  font-size: 16px; 
  filter: grayscale(20%) brightness(0.8);
}
.location-icon::before{ 
  content: '\1F4CD'; 
  font-size: 16px; 
  color: #d32f2f; /* Consistent location pin red */
  filter: brightness(0.9);
}

/* PADDLE SCORE ICON - KEEP COMPLETELY UNTOUCHED */
.icon.paddle-score-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'Josefin_Light', Arial, sans-serif !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255,255,255,0.15) !important;
  position: relative;
  /* Enhanced shadow layering for depth */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  box-sizing: border-box !important;
}

.icon.paddle-score-icon:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
  border-color: rgba(255,255,255,0.3) !important;
  /* Add subtle glow effect */
  box-shadow: 
    0 0 0 2px rgba(255,255,255,0.1),
    0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Dark mode support for paddle score icons */
html.dark-theme .icon.paddle-score-icon {
  border-color: rgba(255,255,255,0.1) !important;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.8));
  /* Ensure ADA-compliant colors are preserved */
  background-color: inherit !important;
  color: inherit !important;
}

html.dark-theme .icon.paddle-score-icon:hover {
  border-color: rgba(255,255,255,0.2) !important;
  box-shadow: 
    0 0 0 2px rgba(255,255,255,0.05),
    0 4px 20px rgba(0,0,0,0.4) !important;
}

/* DARK MODE FOOTER CONSISTENCY */
html.dark-theme .card-footer {
  background: #1a1a1a;
  border-top: 1px solid #333;
}

html.dark-theme .icon {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

html.dark-theme .icon:hover,
html.dark-theme .icon:focus,
html.dark-theme .icon:active {
  background: #353535;
  border-color: #555;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* Dark mode icon colors */
html.dark-theme .parking-icon::before { color: #4caf50; }
html.dark-theme .youtube-icon::before { color: #ff4444; }
html.dark-theme .location-icon::before { color: #ff5252; }

/* MOBILE DARK MODE ENHANCEMENTS */
@media (max-width: 768px) {
  html.dark-theme .card-footer {
    background: #1e1e1e;
    border-top: 1px solid #404040;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
  }
}

@media (max-width: 480px) {
  html.dark-theme .card-footer {
    background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
    border-top: 1px solid #404040;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
  }
  
  html.dark-theme .icon {
    background: #2a2a2a;
    border-color: #484848;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  }
  
  html.dark-theme .icon:hover,
  html.dark-theme .icon:focus,
  html.dark-theme .icon:active {
    background: #323232;
    border-color: #555;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  }
}

/* Force inline styles to take precedence over any theme overrides */
.icon.paddle-score-icon[style*="background-color"] {
  background-color: inherit !important;
}

.icon.paddle-score-icon[style*="color"] {
  color: inherit !important;
}

/* ADA-compliant paddle score tooltip styling */
.icon.paddle-score-icon::after {
  content: attr(title);
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  /* High contrast background for ADA compliance */
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #FFFDD0; /* Ivory text for maximum contrast */
  padding: 14px 20px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 999999;
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  /* Enhanced shadow system for depth and accessibility */
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 253, 208, 0.2); /* Ivory border */
  backdrop-filter: blur(16px);
  max-width: 300px;
  text-align: center;
  /* Subtle glow for attraction */
  filter: drop-shadow(0 0 8px rgba(255, 253, 208, 0.1));
}

.icon.paddle-score-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
  /* Enhance glow on hover */
  filter: drop-shadow(0 0 12px rgba(255, 253, 208, 0.2));
}
.analytics-icon::before { content: '\1F4CA'; font-size: 18px; }
.location-icon::before{ content: '\1F4CD'; font-size: 18px; }
/* Beautiful tooltip bubble - ENHANCED FOR MOBILE CONSISTENCY */
.icon::after {
  content: attr(title);
  position: fixed; /* Use fixed positioning to avoid clipping */
  bottom: 100px; /* Position above footer area */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 999999; /* Highest possible z-index */
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 250px;
  text-align: center;
}

.icon:hover::after,
.icon:focus::after,
.icon:active::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px); /* Elegant slide up */
}

/* MOBILE TOOLTIP IMPROVEMENTS */
@media (max-width: 768px) {
  .icon::after {
    bottom: 80px;
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 14px;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .icon::after {
    bottom: 70px;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 16px;
    max-width: 90vw;
    left: 50vw;
    transform: translateX(-50%);
  }
  
  .icon:hover::after,
  .icon:focus::after,
  .icon:active::after {
    transform: translateX(-50%) translateY(-10px);
  }
}

/*─────────────────────────────────────────────────────────────────────────────
 5) Page-indicator dots
─────────────────────────────────────────────────────────────────────────────*/
.image-indicator {
  text-align: center;
  overflow: visible;
}
.indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.indicator-dot.active {
  background: #333;
}

/*─────────────────────────────────────────────────────────────────────────────
 6) Responsive breakpoints (cards + ENHANCED MOBILE FOOTER STYLING)
─────────────────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .card {
    width: calc(50% - 20px);
  }
  
  /* ENHANCED MOBILE FOOTER STYLING */
  .card-footer {
    padding: 12px 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  }
  
  /* MOBILE ICON IMPROVEMENTS */
  .icon {
    width: 44px;
    height: 44px;
    border: 2px solid #f0f0f0;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  
  .icon:hover,
  .icon:focus,
  .icon:active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  }
  
  /* LARGER TOUCH TARGETS FOR MOBILE */
  .parking-icon::before { font-size: 20px; }
  .toilet-icon::before { font-size: 18px; }
  .youtube-icon::before { 
    font-size: 17px; 
    font-weight: 900; 
    margin-left: 1px;
  }
  .chat-icon::before { font-size: 18px; }
  .robot-icon::before { font-size: 18px; }
  .analytics-icon::before { font-size: 18px; }
  .location-icon::before { font-size: 18px; }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }
  
  /* MOBILE-FIRST FOOTER DESIGN */
  .card-footer {
    padding: 16px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
    gap: 4px;
  }
  
  /* OPTIMIZED MOBILE ICONS */
  .icon {
    width: 46px;
    height: 46px;
    border: 2px solid #eeeeee;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin: 0 2px;
  }
  
  .icon:hover,
  .icon:focus,
  .icon:active {
    transform: translateY(-1px) scale(1.02);
    background: #f9f9f9;
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  /* CONSISTENT MOBILE ICON SIZES */
  .parking-icon::before { font-size: 22px; font-weight: 800; }
  .toilet-icon::before { font-size: 20px; }
  .youtube-icon::before { 
    font-size: 18px; 
    font-weight: 900; 
    margin-left: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  .chat-icon::before { font-size: 20px; }
  .robot-icon::before { font-size: 20px; }
  .analytics-icon::before { font-size: 20px; }
  .location-icon::before { font-size: 20px; }
}

/*─────────────────────────────────────────────────────────────────────────────
 7) HEIGHT FIX – equal card heights
─────────────────────────────────────────────────────────────────────────────*/
@media (min-width: 769px) {
  .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
  }
  .card {
    width: 100%;
    height: 100%;
  }
  .card-content {
    flex: 1;
  }
}

/*─────────────────────────────────────────────────────────────────────────────
 8) SINGLE-CARD CENTERING (detail view, no width change)
─────────────────────────────────────────────────────────────────────────────*/
.container > .card:only-child {
  margin-left: auto;
  margin-right: auto;
}

/*─────────────────────────────────────────────────────────────────────────────
 9) SINGLE-CARD VIEW – perfect centering
─────────────────────────────────────────────────────────────────────────────*/
.container.single-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}
.container.single-card .card {
  width: 320px;
  max-width: 90%;
  margin: 0;
}

