/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  padding-bottom: 70px; /* Space for sticky install banner if active */
}

/* App Header & Fixed Logo */
.app-header {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-container h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0284c7;
}

/* Search Bar Styling */
.search-container {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

#searchInput {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background-color: #f8fafc;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background-color: #ffffff;
}

/* Get Listed Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bae6fd;
}

.promo-text span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0369a1;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  width: auto;
  flex: 0 0 auto;
}

.btn-whatsapp:active {
  transform: scale(0.96);
  background-color: #1da851;
}

/* Map Styling (Forces visibility) */
#map {
  width: 100%;
  height: 300px;
  z-index: 1;
}

/* Custom SVG Map Marker Pins */
.custom-map-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease-in-out;
}

.marker-pin svg {
  transform: rotate(45deg); /* Counter-rotate icon back upright */
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
  background: #f1f5f9;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Spot Cards Layout */
.directory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.spot-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Featured Card Distinction */
.spot-card.featured-card {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.spot-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.spot-details {
  padding: 1rem;
}

/* Category Badge with SVG Icon Alignment */
.spot-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spot-category svg {
  display: block;
}

/* Featured Badge Styling */
.featured-badge {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  border: 1px solid #fcd34d;
}

.spot-details h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.spot-details p {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Contact Info Styling */
.spot-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.contact-link {
  color: #0284c7;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Specific styling for action buttons inside contact info */
.spot-contact-info .btn-call, 
.spot-contact-info .btn-whatsapp,
.spot-contact-info .btn-facebook,
.spot-contact-info .btn-instagram {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  align-items: center;
  gap: 4px;
}

.spot-contact-info .btn-call {
  background-color: #e0f2fe;
  color: #0369a1;
}

.spot-contact-info .btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.spot-contact-info .btn-facebook {
  background-color: #1877f2;
  color: #ffffff;
}

.spot-contact-info .btn-instagram {
  background-color: #e4405f;
  color: #ffffff;
}

/* Actions Layout */
.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-locate, .btn-directions, .btn-website {
  flex: 1;
  min-width: 45%;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-locate {
  background: #e0f2fe;
  color: #0369a1;
  border: none;
}

.btn-directions {
  background: #0284c7;
  color: #ffffff;
  border: none;
}

.btn-website {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  width: 100%;
}

/* Floating Install App Banner */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.install-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.install-text strong {
  font-size: 0.85rem;
  color: #ffffff;
}

.install-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-install {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-close-banner {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}