/* ============================================
   TURFBOOK - Turf Detail Page (Light Theme)
   ============================================ */

.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 5% 12px;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.breadcrumb-content a { color: var(--gray-700); transition: var(--transition); }
.breadcrumb-content a:hover { color: var(--green-primary); }
.breadcrumb-content .current { color: var(--text-dark); font-weight: 600; }

/* Detail Hero */
.detail-hero {
  height: 340px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Grass stripes */
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.06),
    rgba(0,0,0,0.06) 28px,
    transparent 28px,
    transparent 56px
  );
}

.detail-hero-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.big-field {
  width: 480px;
  height: 270px;
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  background: repeating-linear-gradient(
    0deg,
    #2E7D32,
    #2E7D32 27px,
    #388E3C 27px,
    #388E3C 54px
  );
  position: relative;
}

.field-lines::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.45);
  transform: translateX(-50%);
}

.field-center-circle {
  position: absolute;
  left: 50%; top: 50%;
  width: 76px; height: 76px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field-penalty-left {
  position: absolute;
  left: 0; top: 50%;
  width: 75px; height: 135px;
  border: 2px solid rgba(255,255,255,0.45);
  border-left: none;
  transform: translateY(-50%);
}

.field-penalty-right {
  position: absolute;
  right: 0; top: 50%;
  width: 75px; height: 135px;
  border: 2px solid rgba(255,255,255,0.45);
  border-right: none;
  transform: translateY(-50%);
}

.detail-hero-overlay {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
}

/* Detail Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  padding: 2rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Detail Content */
.detail-title-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.detail-title-block h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.detail-rating-block { text-align: center; flex-shrink: 0; }

.big-rating {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.big-rating .star { color: #F9A825; }

.detail-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.detail-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.amenity-item {
  background: var(--green-xlight);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dark);
  transition: var(--transition);
  font-weight: 500;
}

.amenity-item:hover {
  background: var(--green-pale);
  border-color: var(--green-primary);
}

.a-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.4rem;
}

.detail-desc {
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 0.95rem;
}

.rules-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.rules-list li {
  color: var(--gray-700);
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  background: var(--gray-50);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--green-bright);
}

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }

.review-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.reviewer-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reviewer-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.review-date { font-size: 0.72rem; color: var(--gray-500); }
.review-stars { margin-left: auto; color: #F9A825; font-size: 0.85rem; }
.review-text { color: var(--gray-700); font-size: 0.88rem; line-height: 1.7; }

/* Booking Panel */
.booking-panel { position: sticky; top: 85px; height: fit-content; }

.booking-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.booking-price { margin-bottom: 1rem; }

.price-main {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-primary);
}

.price-per { color: var(--gray-500); font-size: 0.9rem; }

.booking-divider {
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 1.2rem;
}

.booking-field { margin-bottom: 1.2rem; }

.booking-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.booking-field input[type="date"],
.booking-field select {
  width: 100%;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.booking-field input:focus,
.booking-field select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 0.8rem;
}

.slot {
  padding: 7px 4px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.slot.available {
  background: var(--green-pale);
  border-color: var(--green-mid);
  color: var(--green-primary);
}

.slot.available:hover {
  background: var(--green-mid);
  border-color: var(--green-primary);
}

.slot.selected {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.slot.booked-slot {
  background: #FFEBEE;
  border-color: #FFCDD2;
  color: #EF9A9A;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--gray-500);
}

.dot-green, .dot-red, .dot-yellow {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.dot-green { background: var(--green-primary); }
.dot-red { background: #EF5350; }
.dot-yellow { background: var(--green-primary); }

/* Price Summary */
.price-summary {
  background: var(--green-xlight);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.ps-row:last-child { margin-bottom: 0; }

.ps-divider {
  height: 1px;
  background: var(--green-mid);
  margin: 0.5rem 0;
}

.ps-row.total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .big-field { width: 290px; height: 175px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
