/* Agency Builder child theme
 * Extracted destination/hotel plugin style from circuit theme
 * to avoid direct dependency on circuit.css.
 */

.cv-btn-primary {
  background: linear-gradient(135deg, var(--main-color), var(--second-color));
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.8rem;
}

.cv-btn-primary:hover {
  background: linear-gradient(135deg, var(--main-color), var(--second-color));
}

.btn:hover {
  color: #ffffff;
}

.cv-section {
  padding: 3rem 0;
}

.cv-dest-card {
  border-radius: 18px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-dest-card img {
  height: 200px;
  object-fit: cover;
}

.cv-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.cv-dest-name {
  font-weight: 600;
  font-size: 1rem;
}

.cv-dest-country {
  font-size: 0.85rem;
  color: #64748b;
}

.cv-hotel-card {
  border-radius: 18px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cv-hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.cv-hotel-img-wrapper {
  position: relative;
}

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

.cv-tag-allin {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(14, 116, 144, 0.92);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.cv-tag-city {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.74rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

.cv-score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 56px;
  text-align: center;
  padding: 6px 12px;
}

.cv-hotel-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cv-hotel-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cv-hotel-stars {
  color: #facc15;
  font-size: 0.85rem;
  width: 30%;
  text-align: right;
}

.fa-star {
  color: #facc15 !important;
}

.cv-hotel-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.cv-hotel-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.cv-hotel-price-label {
  font-size: 0.75rem;
  color: #64748b;
}

.cv-hotel-price {
  font-size: 1.05rem;
  font-weight: 700;
}

.cv-hotel-location {
  color: #4f69a9;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cv-contract-hotels-list .deal_item {
  margin-bottom: 1rem;
}

.cv-hotel-card--list {
  display: grid;
  grid-template-columns: 320px 1fr 240px;
  align-items: stretch;
  min-height: 220px;
}

.cv-hotel-card--list .cv-hotel-img-wrapper img {
  height: 100%;
  min-height: 220px;
}

.cv-hotel-card--list .cv-tag-allin {
  left: auto;
  right: 12px;
  top: 12px;
}

.cv-hotel-pricebox {
  border-left: 1px solid #e5e7eb;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  gap: 12px;
}

.cv-btn-availability {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

/* API hotels result cards:
   keep existing DOM/JS, align visuals with circuit-like list design. */
.search-list-page #hotel-results .hotel-item-search-list {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.search-list-page #hotel-results .hotel-item-search-list .d-lg-flex {
  align-items: stretch;
}

.search-list-page #hotel-results .hotel-item-search-list .position-relative.col-lg-5 {
  max-width: 320px;
  flex: 0 0 320px;
}

.search-list-page #hotel-results .hotel-item-search-list .img-search-item-card {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0 !important;
}

.search-list-page #hotel-results .hotel-item-search-list .img-card-deal {
  margin: 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #1d4ed8 !important;
}

.search-list-page #hotel-results .hotel-item-search-list .flex-grow-1 {
  position: relative;
  padding: 12px 220px 12px 10px;
  min-height: 220px;
}

.search-list-page #hotel-results .hotel-item-search-list h5.title {
  border-left: 0 !important;
  height: auto !important;
  margin-bottom: 6px;
  padding: 0 0 0 8px !important;
  font-size: 1.75rem;
  line-height: 1.2;
}

.search-list-page #hotel-results .hotel-item-search-list .shortdesc {
  color: #4b5563;
  margin-bottom: 8px;
}

.search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 210px;
  border-left: 1px solid #e5e7eb;
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch !important;
  gap: 12px;
}

.search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 .price_list_item {
  text-align: right;
  line-height: 1.1;
}

.search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 .price-item {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
}

.search-list-page #hotel-results .hotel-item-search-list .select-hotel-item.btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px !important;
  font-weight: 700;
}

.cv-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-package-card .cv-hotel-desc,
.cv-activity-card .cv-hotel-desc,
.cv-blog-card .cv-hotel-desc,
.cv-stay-card .cv-hotel-desc {
  min-height: 42px;
}

.builder-offer-image,
.builder-blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.builder-offer-image-placeholder,
.builder-blog-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.builder-blog-link,
.builder-offer-link {
  display: block;
  height: 100%;
}

.builder-blog-link:hover,
.builder-offer-link:hover {
  text-decoration: none;
}

/* Shared search-result rows for packages/activities/transfers */
.searchresults_page .searchresults_item .cv-hotel-row {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
}

.searchresults_page .searchresults_item .cv-hotel-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.searchresults_page .searchresults_item .cv-hotel-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

.searchresults_page .searchresults_item .cv-hotel-info {
  min-width: 0;
}

.searchresults_page .searchresults_item .cv-hotel-title {
  margin-bottom: 6px;
}

.searchresults_page .searchresults_item .cv-hotel-pricebox {
  border-left: 1px solid #e5e7eb;
  padding-left: 14px;
}

.searchresults_page .searchresults_item .cv-transfer-points {
  margin: 0.35rem 0 0.6rem;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

@media (max-width: 768px) {
  .searchresults_page .searchresults_item .cv-hotel-row {
    grid-template-columns: 1fr;
  }

  .searchresults_page .searchresults_item .cv-hotel-pricebox {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-left: 0;
    padding-top: 10px;
  }
}

/* Enforce hotel-list look for activities/packages rows */
.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item {
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-row {
  display: grid !important;
  grid-template-columns: 260px 1fr 220px !important;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-image {
  width: 260px !important;
  min-width: 260px;
  border-radius: 12px;
  overflow: hidden;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-image .img-search-item-card,
.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-image img {
  position: static !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 190px !important;
  object-fit: cover;
  border-radius: 12px;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-info {
  min-width: 0;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-pricebox {
  width: auto;
  border-left: 1px solid #e5e7eb !important;
  padding-left: 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-pricebox .cv-btn-primary {
  width: 100%;
}

.search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-price-main {
  text-align: inherit;
}

@media (max-width: 768px) {
  .search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-row {
    grid-template-columns: 1fr !important;
  }

  .search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-image {
    width: 100% !important;
    min-width: 0;
  }

  .search-list-page .searchresults_list .searchresults_item.cv-hotel-list-item .cv-hotel-pricebox {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-left: 0;
    padding-top: 10px;
    text-align: left;
  }
}

.cv-destination-hero {
  background: linear-gradient(rgba(10, 61, 145, 0.75), rgba(10, 61, 145, 0.75)),
    url("https://media.travelife.io/pictures/sliders/jaamaalafnaa.jpg") center/cover;
  color: #fff;
  padding: 5rem 0 4rem;
}

.cv-destination-title {
  font-size: 2.6rem;
  font-weight: 700;
}

.cv-destination-subtitle {
  font-size: 1.05rem;
  max-width: 680px;
  opacity: 0.9;
}

.cv-editorial {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.cv-editorial img {
  border-radius: 16px;
  object-fit: cover;
  height: 280px;
  width: 100%;
}

.cv-amenities {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-amenity {
  background: #f3f4f6;
  color: #111827;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cv-amenity i {
  font-size: 12px;
  color: #0369a1;
}

@media (max-width: 768px) {
  .cv-hotel-card--list {
    grid-template-columns: 1fr;
  }

  .cv-hotel-card--list .cv-hotel-img-wrapper img {
    min-height: 180px;
  }

  .cv-hotel-pricebox {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    text-align: left;
  }

  .cv-score-badge {
    font-size: 0.9rem;
    min-width: 46px;
    padding: 5px 10px;
  }

  .search-list-page #hotel-results .hotel-item-search-list .position-relative.col-lg-5 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .search-list-page #hotel-results .hotel-item-search-list .img-search-item-card {
    min-height: 190px;
  }

  .search-list-page #hotel-results .hotel-item-search-list .flex-grow-1 {
    padding: 10px;
    min-height: auto;
  }

  .search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 {
    position: static;
    width: 100%;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: 10px !important;
    flex-direction: row;
    align-items: center !important;
  }

  .search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 .price_list_item {
    text-align: left;
  }

  .search-list-page #hotel-results .hotel-item-search-list .d-flex.align-items-center.px-3.py-2 .price-item {
    font-size: 1.7rem !important;
  }

  .cv-hotel-img-wrapper img,
  .builder-offer-image,
  .builder-blog-image,
  .builder-offer-image-placeholder,
  .builder-blog-image-placeholder {
    height: 180px;
  }

  .cv-hotel-footer {
    gap: 8px;
  }

  .cv-btn-primary {
    padding-inline: 1rem;
  }

  .cv-destination-title {
    font-size: 1.8rem;
  }

  .cv-destination-hero {
    padding: 3rem 0 2.5rem;
  }

  .cv-editorial {
    margin-top: -32px;
    padding: 1.2rem;
  }
}
