/* =====================================================
   global.css — zooplanner.com
   Base variables, resets, and shared listing-page styles.
   Loaded explicitly by every frontend PHP page.
   ===================================================== */

/* === VARIABLES === */

:root {
  --primary: #000000;
  --bg: #fcfcfc;
  --text: #333;
  --accent: #0077cc;
  --active-underline: #4caf50;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: rgb(255, 255, 255);
}

/* === UTILITIES === */

.hidden {
  display: none;
}

.rating {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0;
}

/* === ZOO LISTING PAGE LAYOUT === */

.zoo-page-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.zoo-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1700px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .zoo-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .zoo-cards-container {
    grid-template-columns: 1fr;
  }
}

.search-results-header {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.search-results-header h2 {
  font-size: 36px;
  margin: 0;
}

.search-results-header p {
  margin: 5px 0 10px 0;
  color: #666;
}

/* === LISTING CARDS === */

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: #fff;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.card-image-wrapper {
  position: relative;
}

.card-image-wrapper img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-icons-overlay {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  background: #eef6e9;
  color: #333;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.card-content {
  padding: 36px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #111;
  line-height: 1.3;
}

.card-location {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.card-rating {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-reviews {
  color: #888;
}

.card-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === TICKETS === */

.tickets-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  flex-wrap: wrap;
}

.ticket-type {
  font-weight: 600;
  color: #333;
}

.ticket-price {
  flex: 0 0 auto;
  font-weight: 500;
  margin-left: 10px;
  white-space: nowrap;
}

.ticket-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  flex-basis: 100%;
}

@media (max-width: 400px) {
  .ticket-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-price {
    margin-left: 0;
    margin-top: 4px;
  }
}

.zoo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* === STICKY SEARCH (used on search/ranking pages) === */

#sticky-search-container {
  position: sticky;
  top: 6px;
  background: white;
  z-index: 999;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sticky-search-container.hidden {
  display: none;
}

.inner-search {
  max-width: 800px;
  margin: auto;
  display: flex;
  gap: 0.5rem;
}

.inner-search input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.inner-search button {
  padding: 0.5rem 1rem;
  border: none;
  background: #2a7ae2;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
