/* ══════════════════════════════════════════════
   DEMO LIFESTYLE — Golf Pages
   ══════════════════════════════════════════════ */

/* ── Golf Landing Page ── */
.golf-page__header { padding-top: var(--space-2xl); margin-bottom: var(--space-lg); }
.golf-page__header h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.golf-page__header h1 .icon { color: var(--accent); }
.golf-page__subtitle { font-size: 15px; color: var(--grey); margin-top: 4px; }

/* ── Eligibility Banner ── */
.golf-eligibility {
  display: flex; align-items: flex-start; gap: 16px;
  border-radius: var(--radius-lg); padding: 20px 24px;
  margin-bottom: var(--space-xl);
}
.golf-eligibility--active {
  background: var(--success-light); border: 1px solid #bbf7d0;
}
.golf-eligibility--active .golf-eligibility__icon .icon { color: var(--success); }
.golf-eligibility--locked {
  background: var(--light); border: 1px solid var(--grey-border);
}
.golf-eligibility--locked .golf-eligibility__icon .icon { color: var(--grey); }
.golf-eligibility__icon { flex-shrink: 0; margin-top: 2px; }
.golf-eligibility__content { flex: 1; min-width: 0; }
.golf-eligibility__title { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.golf-eligibility__text { font-size: 13px; color: var(--grey); line-height: 1.5; }
.golf-eligibility__quota {
  display: inline-block; margin-top: 8px; padding: 4px 12px;
  background: rgba(22,163,106,0.1); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--success);
}
.golf-eligibility__card {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--grey-border);
  font-size: 12px; font-weight: 600; color: var(--charcoal);
}
.golf-eligibility__card .icon { width: 20px; height: 20px; }

/* ── Section Header ── */
.golf-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.golf-section-header__title { font-size: 20px; font-weight: 800; color: var(--charcoal); }
.golf-section-header__count { font-size: 13px; color: var(--grey); }

/* ── Course Card Grid ── */
.golf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: var(--space-2xl);
}
.golf-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--grey-border);
  cursor: pointer; transition: all 0.2s ease;
}
.golf-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.golf-card--locked { opacity: 0.85; cursor: default; }
.golf-card--locked:hover { box-shadow: none; transform: none; }

.golf-card__image {
  position: relative; width: 100%; height: 200px; overflow: hidden;
}
.golf-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.golf-card__rating {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.golf-card__rating .icon { color: #FBBF24; }
.golf-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--success); color: #fff; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 700;
}
.golf-card__lock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #fff;
}
.golf-card__lock-overlay .icon { width: 24px; height: 24px; }
.golf-card__lock-overlay span { font-size: 12px; font-weight: 600; }

.golf-card__body { padding: 16px; }
.golf-card__name { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.golf-card__subtitle { font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.golf-card__meta {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 12px; color: var(--grey); margin-bottom: 12px;
}
.golf-card__meta .icon { width: 13px; height: 13px; flex-shrink: 0; }
.golf-card__dot { color: var(--grey-light); }
.golf-card__footer { display: flex; align-items: center; justify-content: space-between; }
.golf-card__price-label { font-size: 15px; font-weight: 700; color: var(--success); }
.golf-card--locked .golf-card__price-label { color: var(--charcoal); }
.golf-card__price-note { font-size: 11px; color: var(--grey); display: block; }
.golf-card__difficulty-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em;
}
.golf-card__difficulty-badge--advanced { background: #fee2e2; color: #dc2626; }
.golf-card__difficulty-badge--intermediate { background: #fef3c7; color: #d97706; }
.golf-card__difficulty-badge--beginner { background: #dcfce7; color: #16a34a; }

/* ══════════════════════════════════════════════
   Golf Detail Page
   ══════════════════════════════════════════════ */
.golf-detail__hero {
  position: relative; width: 100%; height: 360px; overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.golf-detail__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.golf-detail__back, .golf-detail__share {
  position: absolute; top: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.golf-detail__back { left: 16px; }
.golf-detail__share { right: 16px; }
.golf-detail__back:hover, .golf-detail__share:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.golf-detail__back .icon, .golf-detail__share .icon { color: var(--charcoal); }

.golf-detail__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-top: var(--space-xl); margin-bottom: var(--space-lg);
}
.golf-detail__name { font-size: 24px; font-weight: 800; color: var(--charcoal); margin: 0; }
.golf-detail__subtitle { font-size: 14px; color: var(--grey); margin-top: 4px; }
.golf-detail__rating-lg {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 16px; font-weight: 700; color: var(--charcoal);
}
.golf-detail__rating-lg .icon { color: #FBBF24; }
.golf-detail__reviews { font-size: 13px; font-weight: 400; color: var(--grey); }

/* Info Grid */
.golf-detail__info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: var(--space-xl);
}
.golf-detail__info-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--grey-border);
}
.golf-detail__info-item .icon { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.golf-detail__info-label { display: block; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.golf-detail__info-value { display: block; font-size: 14px; font-weight: 600; color: var(--charcoal); }

/* Sections */
.golf-detail__section { margin-bottom: var(--space-xl); }
.golf-detail__section-title {
  font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: var(--space-md);
}
.golf-detail__description { font-size: 14px; color: var(--grey); line-height: 1.7; }

/* Stats Row */
.golf-detail__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: var(--space-xl);
}
.golf-detail__stat {
  text-align: center; padding: 16px 8px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--grey-border);
}
.golf-detail__stat-value { display: block; font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.golf-detail__stat-label { display: block; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }

/* Amenities */
.golf-amenities-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.golf-amenity {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--white);
  border-radius: var(--radius-full); border: 1px solid var(--grey-border);
  font-size: 13px; color: var(--charcoal); font-weight: 500;
}
.golf-amenity .icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Tee Times Preview */
.golf-teetimes__day { margin-bottom: 16px; }
.golf-teetimes__day-label { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.golf-teetimes__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.golf-teetimes__chip {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--white); border: 1px solid var(--grey-border);
  font-size: 13px; font-weight: 500; color: var(--charcoal);
}
.golf-teetimes__more {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--light); font-size: 13px; color: var(--grey); font-weight: 500;
}

.golf-detail__locked-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; margin-top: 16px;
  background: var(--light); border-radius: var(--radius);
  font-size: 14px; color: var(--grey); font-weight: 500;
}
.golf-detail__locked-msg .icon { color: var(--grey); flex-shrink: 0; }

/* Contact */
.golf-contact { display: flex; flex-direction: column; gap: 0; }
.golf-contact__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--grey-border);
}
.golf-contact__item:last-child { border-bottom: none; }
.golf-contact__item .icon { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.golf-contact__label { display: block; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }
.golf-contact__value { display: block; font-size: 14px; font-weight: 500; color: var(--charcoal); margin-top: 2px; }

/* Sticky CTA */
.golf-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.06);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.golf-sticky-cta--visible { transform: translateY(0); }
.golf-sticky-cta__btn { width: 100%; }

/* ══════════════════════════════════════════════
   Golf Booking Page
   ══════════════════════════════════════════════ */

/* Date Tabs */
.golf-date-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.golf-date-tabs::-webkit-scrollbar { display: none; }
.golf-date-tab {
  display: flex; flex-direction: column; align-items: center;
  min-width: 72px; padding: 10px 14px;
  border-radius: var(--radius); border: 1.5px solid var(--grey-border);
  background: var(--white); cursor: pointer; transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.golf-date-tab:hover { border-color: var(--charcoal); }
.golf-date-tab--active {
  border-color: var(--accent); background: var(--accent);
}
.golf-date-tab__day {
  font-size: 11px; font-weight: 600; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.golf-date-tab--active .golf-date-tab__day { color: rgba(255,255,255,0.8); }
.golf-date-tab__num {
  font-size: 20px; font-weight: 800; color: var(--charcoal);
  line-height: 1.2; margin: 2px 0;
}
.golf-date-tab--active .golf-date-tab__num { color: #fff; }
.golf-date-tab__month {
  font-size: 11px; color: var(--grey); font-weight: 500;
}
.golf-date-tab--active .golf-date-tab__month { color: rgba(255,255,255,0.8); }

/* Slot Grid */
.golf-slot-group { margin-bottom: 16px; }
.golf-slot-group__label {
  font-size: 12px; font-weight: 600; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.golf-slot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.golf-slot {
  padding: 10px 8px; text-align: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--grey-border);
  background: var(--white); cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--charcoal); transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.golf-slot:hover { border-color: var(--charcoal); }
.golf-slot--selected {
  border-color: var(--accent); background: var(--accent); color: #fff;
}
.golf-slot--unavailable {
  opacity: 0.4; cursor: not-allowed; text-decoration: line-through;
}

/* Cart included badge */
.golf-cart-included {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: var(--space-md);
  background: var(--success-light); border-radius: var(--radius);
  font-size: 13px; color: var(--success); font-weight: 500;
}
.golf-cart-included .icon { flex-shrink: 0; color: var(--success); }

/* Toggle */
.golf-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--light); border-radius: var(--radius);
  font-size: 14px; color: var(--charcoal);
}
.golf-toggle {
  position: relative; display: inline-block; width: 48px; height: 26px;
}
.golf-toggle input { opacity: 0; width: 0; height: 0; }
.golf-toggle__slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--grey-border); border-radius: 26px;
  transition: 0.3s;
}
.golf-toggle__slider:before {
  position: absolute; content: ""; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: 0.3s;
}
.golf-toggle input:checked + .golf-toggle__slider { background: var(--accent); }
.golf-toggle input:checked + .golf-toggle__slider:before { transform: translateX(22px); }

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .golf-grid { grid-template-columns: 1fr; }
  .golf-card__image { height: 180px; }

  .golf-eligibility { flex-direction: column; gap: 12px; }
  .golf-eligibility__card { align-self: flex-start; }

  .golf-detail__hero { height: 260px; }
  .golf-detail__header { flex-direction: column; gap: 8px; }
  .golf-detail__name { font-size: 20px; }
  .golf-detail__info-grid { grid-template-columns: 1fr; }
  .golf-detail__stats { grid-template-columns: repeat(2, 1fr); }

  .golf-slot-grid { grid-template-columns: repeat(3, 1fr); }

  .golf-sticky-cta { display: block; }
}

@media (min-width: 901px) {
  .golf-sticky-cta { display: none; }
}

@media (max-width: 600px) {
  .golf-card__image { height: 160px; }
  .golf-detail__hero { height: 220px; }
  .golf-detail__stats { grid-template-columns: repeat(2, 1fr); }
  .golf-slot-grid { grid-template-columns: repeat(3, 1fr); }
}
