/* IMPORT GLOBAL STYLE (NAVBAR, FOOTER, BASE) */
@import url("style.css");
@import url("project.css");

/* ROOT VARIABLE — WARNA & BACKGROUND GLOBAL */
:root {
  --red-primary: #e50914;
  --black: #111111;
  --white: #ffffff;
  --bg-hero: url("../img/project.jpg");
}

/* ====== PRICE SECTION ====== */
.price-section {
  background-color: #fff;
}
.price-card {
  border: 1.5px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.price-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ==== BOOKING LABEL TENGAH (KOTAK KECIL & BISA DIKLIK) ==== */
.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.img-wrapper img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.booking-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e50914;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 12px;
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.img-wrapper:hover .booking-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.price-card .card-body {
  padding: 1.3rem;
}
.price-card .card-title {
  font-weight: 700;
  color: #111;
}
.price-card .price {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.price-card .price span {
  font-size: 1.4rem;
}
.price-card .desc {
  font-size: 0.9rem;
  color: #555;
}
.price-card .features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-card .features li {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
}
.price-card .features i {
  color: var(--red-primary);
  margin-right: 6px;
}

/* BADGE BOOKING */
.badge-booking {
  position: absolute;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 0 0 6px 0;
  top: 0;
  left: 0;
}

/* =============================
   RESPONSIVE UNTUK SECTION PRICING
   ============================= */

/* HP KECIL ≤ 360px */
@media (max-width: 360px) {
  .price-card img,
  .img-wrapper img {
    height: 130px;
  }

  .booking-overlay {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
}

/* HP 361–480px */
@media (min-width: 361px) and (max-width: 480px) {
  .price-card img,
  .img-wrapper img {
    height: 140px;
  }
}

/* HP SEDANG 481–576px */
@media (min-width: 481px) and (max-width: 576px) {
  .price-card img,
  .img-wrapper img {
    height: 150px;
  }
}

/* TABLET PORTRAIT 577–768px */
@media (min-width: 577px) and (max-width: 768px) {
  .price-card img,
  .img-wrapper img {
    height: 155px;
  }

  .price-card .card-body {
    padding: 1.1rem;
  }
}

/* TABLET LANDSCAPE / SMALL LAPTOP 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .price-card img,
  .img-wrapper img {
    height: 160px;
  }

  .price-card .card-title {
    font-size: 1.05rem;
  }

  .price-card .desc {
    font-size: 0.85rem;
  }
}

/* LAPTOP 1025–1365px */
@media (min-width: 1025px) and (max-width: 1365px) {
  .price-card img,
  .img-wrapper img {
    height: 165px;
  }
}

/* DESKTOP BESAR ≥ 1366px */
@media (min-width: 1366px) {
  .price-card img,
  .img-wrapper img {
    height: 170px;
  }
}

/* ===== RESPONSIVE GRID UNTUK KARTU PRICING ===== */

/* HP — 1 kolom */
@media (max-width: 576px) {
  .price-section .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

/* TABLET — 2 kolom */
@media (min-width: 577px) and (max-width: 991px) {
  .price-section .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }
}

/* DESKTOP — tetap 3 kolom */
@media (min-width: 992px) {
  .price-section .col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}
