/* CATEGORY HERO */
.category-hero {
  min-height: 78vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 80px;
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.85), rgba(22, 59, 47, 0.72), rgba(64, 145, 108, 0.45)),
    url('../assets/hero4.jpg');
  background-size: cover;
  background-position: center;
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(183, 228, 199, 0.15), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(233, 196, 106, 0.12), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(116, 198, 157, 0.10), transparent 28%);
}

.category-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.breadcrumb strong {
  color: #d8f3dc;
}

.category-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.category-hero-content p {
  max-width: 820px;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-category-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 760px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* CONTROLS */
.category-controls-section {
  padding-top: 70px;
  padding-bottom: 35px;
  background: linear-gradient(to bottom, #f5fbf6, #edf7ef);
}

.category-controls {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.controls-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.controls-top h2 {
  color: var(--primary);
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.controls-top p {
  color: var(--muted);
}

.white-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft-green);
  color: var(--primary);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr auto;
  gap: 18px;
  align-items: end;
}

.filter-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(22, 59, 47, 0.12);
  background: #fff;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: #52b788;
  box-shadow: 0 0 0 4px rgba(116, 198, 157, 0.16);
}

.control-btn {
  min-width: 190px;
  height: 56px;
  gap: 10px;
}

/* INTRO */
.category-intro-section {
  padding-top: 10px;
  padding-bottom: 20px;
  background: linear-gradient(to bottom, #edf7ef, #f7fcf8);
}

.category-intro-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.category-intro-icon {
  width: 78px;
  min-width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--gradient-main);
  color: var(--white);
  font-size: 1.7rem;
  box-shadow: 0 14px 30px rgba(45, 106, 79, 0.18);
}

.category-intro-text h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.category-intro-text p {
  color: var(--muted);
}

/* PLACES GRID */
.category-places-section {
  padding-top: 35px;
  background: linear-gradient(to bottom, #f7fcf8, #ffffff);
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.place-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.place-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.place-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.place-card:hover .place-image img {
  transform: scale(1.08);
}

.place-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 34, 27, 0.82), rgba(11, 34, 27, 0.12));
}

.place-badge-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
}

.place-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.place-title-box {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
}

.place-title-box h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.place-title-box p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.place-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.place-description {
  color: var(--muted);
  font-size: 0.96rem;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2faf4;
  color: var(--secondary);
  border: 1px solid rgba(64, 145, 108, 0.14);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.detail-block {
  background: #f9fcfa;
  border: 1px solid rgba(22, 59, 47, 0.06);
  border-radius: 18px;
  padding: 16px;
}

.detail-block h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.detail-block p,
.detail-block ul {
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-block ul {
  padding-left: 18px;
}

.detail-block ul li {
  margin-bottom: 6px;
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.distance-card {
  background: linear-gradient(180deg, #f6fbf7, #eef8f0);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(22, 59, 47, 0.08);
}

.distance-card span {
  display: block;
}

.distance-label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.distance-value {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.special-note {
  background: linear-gradient(135deg, rgba(233, 196, 106, 0.18), rgba(116, 198, 157, 0.12));
  border: 1px solid rgba(233, 196, 106, 0.22);
  border-radius: 18px;
  padding: 16px;
}

.special-note h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.special-note p {
  color: var(--text);
  font-size: 0.94rem;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-main);
  color: var(--white);
  font-size: 1.8rem;
}

/* TIPS */
.travel-tip-section {
  background: linear-gradient(to bottom, #ffffff, #f5fbf6);
}

.travel-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.travel-tip-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.travel-tip-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.tip-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--gradient-main);
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.travel-tip-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.travel-tip-card p {
  color: var(--muted);
}

/* CATEGORY HERO THEMES */
.category-hero.beaches-theme {
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.72), rgba(18, 87, 102, 0.58), rgba(64, 145, 108, 0.40)),
    url('../assets/destinations/beaches.jpg');
  background-size: cover;
  background-position: center;
}

.category-hero.hill-country-theme {
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.78), rgba(43, 90, 63, 0.58), rgba(64, 145, 108, 0.38)),
    url('../assets/destinations/hillcountry.jpg');
  background-size: cover;
  background-position: center;
}

.category-hero.waterfall-theme {
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.78), rgba(43, 90, 63, 0.58), rgba(64, 145, 108, 0.38)),
    url('../assets/destinations/waterfall.jpg');
  background-size: cover;
  background-position: center;
}

.category-hero.heritage-sites-theme {
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.82), rgba(91, 65, 25, 0.52), rgba(64, 145, 108, 0.34)),
    url('../assets/destinations/heritage.jpg');
  background-size: cover;
  background-position: center;
}

.category-hero.wildlife-theme {
  background:
    linear-gradient(135deg, rgba(11, 34, 27, 0.84), rgba(56, 86, 28, 0.52), rgba(64, 145, 108, 0.36)),
    url('../assets/destinations/wildlife.jpg');
  background-size: cover;
  background-position: center;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .travel-tip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-hero {
    min-height: auto;
    padding: 130px 0 70px;
  }

  .hero-category-stats,
  .places-grid,
  .travel-tip-grid,
  .distance-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .category-intro-card {
    flex-direction: column;
  }

  .controls-top {
    align-items: flex-start;
  }

  .place-image {
    height: 220px;
  }

  .control-btn {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 520px) {
  .category-controls,
  .category-intro-card,
  .place-content,
  .travel-tip-card {
    padding: 20px;
  }

  .place-title-box h3 {
    font-size: 1.2rem;
  }

  .hero-stat-card {
    padding: 18px 16px;
  }
}