/* Golf Destinations 2026 — Landing + Detail */

/* ===========================
   SHARED
   =========================== */

/* Container */
.gd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sections */
.gd-section {
  padding: 40px 0;
}
.gd-section--alt {
  background: #fafaf8;
}
.gd-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.gd-section__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Badges */
.gd-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #065f46;
}
.gd-badge--season {
  background: #fef9c3;
  color: #854d0e;
}
.gd-badge--temp {
  background: #e0f2fe;
  color: #075985;
}
.gd-badge--rating {
  background: #fef3c7;
  color: #92400e;
}
.gd-badge--reviews {
  background: #f0f0f0;
  color: #555;
}
.gd-badge--light {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===========================
   LANDING PAGE
   =========================== */

/* Hero */
.gd-hero {
  background: linear-gradient(135deg, #166534, #04AE79);
  padding: 48px 16px 44px;
  color: #fff;
  text-align: center;
}
.gd-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.gd-hero p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}
.gd-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.gd-hero__stat-sep {
  opacity: 0.5;
}

/* Grids */
.gd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Featured Grid — larger cards, 2 cols */
.gd-grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Card */
.gd-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.gd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.gd-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}
.gd-card__img--placeholder {
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}
.gd-card__body {
  padding: 14px 16px;
}
.gd-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.gd-card__country {
  font-size: 13px;
  color: #888;
  margin: 0 0 8px;
}
.gd-card__stars {
  color: #C5A55A;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.gd-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Featured card with overlay */
.gd-card--featured .gd-card__img {
  height: 280px;
}
.gd-card--featured .gd-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.gd-card--featured .gd-card__name {
  font-size: 22px;
  color: #fff;
  margin-bottom: 2px;
}
.gd-card--featured .gd-card__country {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

/* More link */
.gd-more-link {
  text-align: center;
  padding-top: 24px;
}
.gd-more-link a {
  font-size: 15px;
  font-weight: 600;
  color: #04AE79;
  text-decoration: none;
}
.gd-more-link a:hover {
  text-decoration: underline;
}

/* ===========================
   DETAIL PAGE
   =========================== */

/* Detail Hero */
.gd-detail-hero {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  background-color: #166534;
  display: flex;
  align-items: flex-end;
}
.gd-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.6));
}
.gd-detail-hero__content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}
.gd-detail-hero__back {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.gd-detail-hero__back:hover {
  color: #fff;
}
.gd-detail-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.gd-detail-hero__country {
  font-size: 18px;
  opacity: 0.85;
  margin: 0 0 12px;
}
.gd-detail-hero__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Description */
.gd-description {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}
.gd-description p {
  margin-bottom: 16px;
}

/* ===========================
   CTA FOOTER
   =========================== */
.gd-cta {
  background: linear-gradient(135deg, #166534, #04AE79);
  padding: 48px 16px;
  text-align: center;
  color: #fff;
}
.gd-cta h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
}
.gd-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 24px;
}
.gd-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gd-cta__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gd-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.gd-cta__btn--primary {
  background: #fff;
  color: #166534;
}
.gd-cta__btn--secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .gd-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gd-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gd-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gd-grid-featured {
    grid-template-columns: 1fr;
  }
  .gd-card--featured .gd-card__img {
    height: 220px;
  }
  .gd-hero h1,
  .gd-detail-hero h1 {
    font-size: 26px;
  }
  .gd-detail-hero {
    min-height: 260px;
  }
  .gd-cta h2 {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .gd-grid-4,
  .gd-grid-3 {
    grid-template-columns: 1fr;
  }
  .gd-hero {
    padding: 32px 16px;
  }
  .gd-section {
    padding: 28px 0;
  }
}
