/**
 * 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)
─────────────────────────────────────────────────────────────────────────────*/
.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;
}
.icon {
  width: 40px;
  height: 40px;
  border: 2px solid ivory;
  border-radius: 50%;
  background: ivory;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.2s;
  position: relative;
  z-index: 2;
}
.icon:hover,
.icon:focus,
.icon:active {
  transform: translateY(-2px);
  background: #d3d3d3;
}
.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; }
.robot-icon::before   { content: '\1F916'; font-size: 18px; } /* Robot emoji for AI/ML predictions */
.analytics-icon::before { content: '\1F4CA'; font-size: 18px; }
.location-icon::before{ content: '\1F4CD'; font-size: 18px; }
/* Tooltip bubble, positioned above and never clipped */
.icon::after {
  content: attr(title);
  position: absolute;
  top: -calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 9999;
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 14px;
}
.icon:hover::after,
.icon:focus::after,
.icon:active::after {
  opacity: 1;
}

/*─────────────────────────────────────────────────────────────────────────────
 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 only)
─────────────────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .card {
    width: calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .card {
    width: 100%;
  }
}

/*─────────────────────────────────────────────────────────────────────────────
 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;
}

