* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
  color: #222;
}


.hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  animation: fadeIn 1s ease-in-out;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 38px 0 20px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  letter-spacing: 1px;
}

.hero-overlay a {
  background: #fff;
  color: #333;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  transition: all .3s ease;
}

.hero-overlay a:hover {
  background: #0f6d04;
  color: #fff;
  transform: scale(1.05);
}

.fasilitas-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 10px;
  padding: 10px;
  margin: 25px auto;
  background: #d5d5d533;
  max-width: 800px;
}

.tab-item {
  background-color: #f5f6f7;
  color: #2c3e50;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-item:hover {
  background-color: #e3e6ea;
  transform: translateY(-2px);
}

.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #117139, #00ac00);
  display: block;
  margin: 10px auto 0;
  border-radius: 5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.disabled {
  opacity: 0.7;
  pointer-events: none;
}

.card.disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  border-radius: 12px;
}

.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.lapangan-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #117139;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
}

.price-box .pagi {
  color: #117139;
}

.price-box .malam {
  color: #0a4b20;
}

.card-content {
  padding: 15px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.card .harga {
  font-size: 0.95rem;
  color: #117139;
  font-weight: 600;
  margin-bottom: 4px;
}

.card p {
  font-size: 12px;
}

.card .btn-book {
  display: inline-block;
  background: linear-gradient(90deg, #117139, #00ac00);
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.card .btn-book:hover {
  transform: scale(1.05);
}

.btn-book.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-book.disabled:hover {
  transform: none;
}

.status-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-overlay i {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.status-overlay.rusak {
  border: 2px solid #dc3545;
  color: #dc3545;
}

.status-overlay.perbaikan {
  border: 2px solid #ffc107;
  color: #ffc107;
}

.status-overlay h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
}

.status-overlay p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.status-badge-card {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge-card.tersedia {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-badge-card.rusak {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.status-badge-card.perbaikan {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.profile-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.profile-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.popup-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.riwayat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.riwayat-table th,
.riwayat-table td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  font-size: 14px;
}

.btn-logout-popup {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-content h3 {
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 20px;
}

.btn-login-modal {
  background-color: #057107;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
}

.btn-login-modal:hover {
  background-color: #057107;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}



