/* === RESPONSIVE SEARCH RESULT SECTION === */
/* Hero */
.tour-hero {
  background: url('/asset/img/travel.png') center/cover no-repeat;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 20px;
  text-align: center;
}

.tour-hero h1 {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
  max-width: 90%;
}

/* Search Box */
.tour-search-box {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: #fff!important;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  flex-wrap: wrap;
}

/* Inputs and select */
.tour-search-box select,
.tour-search-box input {
  padding: 0 12px;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 180px;
}

/* Button */
.btn-search {
  background: #0052D4!important;
  border: 1px solid #ccc;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  height: 48px;
  transition: background 0.2s ease;
}

.btn-search:hover {
  background: #f1f1f1;
  color: #000;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .tour-hero {
    height: 500px;
  }

  .tour-hero h1 {
    font-size: 36px;
  }

  .tour-search-box {
    gap: 10px;
    padding: 12px 16px;
  }

  .tour-search-box select,
  .tour-search-box input {
    min-width: 150px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tour-hero {
    height: 420px;
    padding: 0 15px;
  }

  .tour-hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .tour-search-box {
    flex-direction: column;
    align-items: stretch;
    bottom: -50px;
    width: 90%;
  }

  .tour-search-box select,
  .tour-search-box input,
  .btn-search {
    width: 100%;
    min-width: auto;
  }

  .btn-search {
    margin-top: 10px;
  }
}

/* Extra Small (HP kecil) */
@media (max-width: 480px) {
  .tour-hero {
    height: 360px;
  }

  .tour-hero h1 {
    font-size: 22px;
  }

  .tour-search-box {
    padding: 10px 12px;
  }

  .tour-search-box select,
  .tour-search-box input {
    font-size: 13px;
    height: 42px;
  }

  .btn-search {
    height: 42px;
    font-size: 14px;
    padding: 0 18px;
  }
}

.section.search-result {
  width: 100%;
  padding: 0;
  margin: 0;
}

.tour-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.result {
  background: url('/asset/img/travel.png') center/cover no-repeat;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.result h1 {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
}

/* CARD */
.tour-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-5px);
}

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

.tour-info {
  padding: 15px;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #218838;
}

.text-success {
  color: #28a745;
  font-weight: bold;
}

.text-danger {
  color: #dc3545;
  font-weight: bold;
}

/* SEARCH BOX */
.tour-search-box {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  background: #bdbdbd;
  padding: 30px 60px;
  border-radius: 16px;
  flex-wrap: nowrap;

  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.tour-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 180px;
}

.tour-field label {
  font-weight: bold;
  margin-bottom: 5px;
}

.tour-field select,
.tour-field input {
  padding: 8px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

.btn-search {
  background: #f5f5f5;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  height: 42px;
  align-self: flex-end;
}

.btn-search:hover {
  background: #dcdcdc;
}

/* ================== RESPONSIVE ================== */

/* Tablet */
@media (max-width: 992px) {
  .result {
    height: 450px;
  }

  .result h1 {
    font-size: 36px;
    text-align: center;
    padding: 0 15px;
  }

  .tour-search-box {
    padding: 20px 30px;
    gap: 15px;
    bottom: -30px;
    flex-wrap: wrap;
  }

  .tour-field {
    min-width: 150px;
  }

  .btn-search {
    width: 100%;
    align-self: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .result {
    height: 380px;
  }

  .result h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .tour-search-box {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    bottom: -50px;
    width: 90%;
  }

  .tour-field {
    width: 100%;
  }

  .tour-field select,
  .tour-field input,
  .btn-search {
    width: 100%;
  }
}

/* Extra small (HP kecil) */
@media (max-width: 480px) {
  .result {
    height: 320px;
  }

  .result h1 {
    font-size: 22px;
  }

  .tour-search-box {
    padding: 15px;
    gap: 12px;
    bottom: -40px;
  }

  .tour-field {
    min-width: unset;
  }
}
