/* ==========================================================================
   Tour-single detail page (Packages/view.php, Cruises/view.php), moved from
   style.css (which only the Touria layout loads) into its own file so it's
   easy to find, following the same pattern as tours.css/faq.css/footer.css.

   Both detail pages now run only on the Touria layout, so unlike
   package-card.css/tours.css there is no legacy-layout compatibility
   section here -- nothing else loads this file.
   ========================================================================== */

.tour-single-top {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tour-single-top .top-info .title {
  font-size: 25px;
}
.tour-single-top .top-info .location {
  color: var(--color-dark);
  margin: 5px 0;
}
.tour-single-top .top-info .location i {
  color: var(--theme-color);
}
.tour-single-top .top-rate .badge {
  background: var(--theme-color);
  margin-right: 5px;
  border-radius: 50px;
}
.tour-single-top .top-rate .rate-type {
  color: var(--theme-color);
  font-weight: 500;
}
.tour-single-top .top-rate .rate-review {
  color: var(--color-dark);
}
.tour-single-info {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-info-color);
  border-bottom: 1px solid var(--border-info-color);
}
.tour-single-info .feature {
  display: flex;
  gap: 10px;
}
.tour-single-info .feature .icon {
  width: 45px;
  height: 45px;
  line-height: 45px;
  background: var(--theme-color);
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  color: var(--color-white);
  flex-shrink: 0;
}
.tour-single-info .feature .content h6 {
  font-size: 14px;
  margin-bottom: 2px;
}
.tour-single-info .feature .content span {
  color: var(--color-dark);
}
.tour-single .tour-details h4 {
  font-size: 22px;
}
.tour-single .tour-details .tour-highlight {
  margin: 25px 0;
}
.tour-single .tour-details .tour-highlight h5 {
  margin-bottom: 15px;
}
.tour-single .tour-details .list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tour-single .tour-details .list li {
  margin-bottom: 15px;
  padding-left: 18px;
  position: relative;
}
.tour-single .tour-details .list li::before {
  content: "\e122";
  position: absolute;
  font-family: "Font Awesome 6 pro";
  font-size: 10px;
  color: var(--theme-color);
  font-weight: bold;
  top: 6.7px;
  left: 0;
}
.tour-single .tour-details .list-included h5 {
  margin-bottom: 15px;
}
.tour-single .tour-details .list-included .list li {
  padding-left: 24px;
}
.tour-single .tour-details .list-included .list li::before {
  content: "\f00c";
  font-size: 16px;
  top: 0px;
  color: var(--color-green);
}
.tour-single .tour-details .list-notincluded h5 {
  margin-bottom: 15px;
}
.tour-single .tour-details .list-notincluded .list li::before {
  content: "\f00d";
  font-size: 16px;
  top: 0px;
  color: var(--color-red);
}

/* Itinerary: numbered timeline. The badge/dashed-line decoration reserves its
   110px left gutter unconditionally, so a day with no photo (the norm in our
   data -- see below) just has less content in that gutter, not a layout gap. */
.tour-single .itinerary-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.tour-single .itinerary-content-box {
  margin-top: 30px;
  margin-bottom: 10px;
}
.tour-single .itinerary-single-box {
  position: relative;
  padding-left: 70px;
  padding-bottom: 40px;
}
.tour-single .itinerary-single-box::before {
  position: absolute;
  content: "";
  width: 1px;
  border-left: 2px dashed var(--theme-color);
  height: 100%;
  left: 31px;
  top: 10px;
  z-index: -1;
}
.tour-single .itinerary-single-box img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 50px 50px 50px 0;
  margin-bottom: 15px;
}
.tour-single .itinerary-single-box:last-child {
  padding-bottom: 0;
}
.tour-single .itinerary-single-box:last-child::before {
  display: none;
}
.tour-single .itinerary-single-box .day-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  left: 5px;
  top: 3px;
  width: 50px;
  height: 50px;
  font-size: 16px;
  color: var(--color-white);
  background: var(--theme-color);
  font-weight: 500;
  text-align: center;
  border-radius: 50px 50px 50px 0;
}
.tour-single .itinerary-single-box .day-badge::before {
  position: absolute;
  content: "";
  background: var(--color-white);
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  left: -5px;
  top: -5px;
  border-radius: 50%;
  box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
  z-index: -1;
}
.tour-single .itinerary-single-box h4 {
  display: block;
  font-size: 17px;
  line-height: 28px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--theme-color);
}
.tour-single .itinerary-single-box .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--body-text-color);
}
.tour-single .itinerary-single-box .meta i {
  color: var(--theme-color);
  margin-right: 4px;
}

/* Nested (cruise) itinerary: a day can hold several time-blocks, each using
   the same numbered-box look one level in, at a smaller scale. */
.tour-single .itinerary-single-box .itinerary-sub {
  margin-top: 10px;
}
.tour-single .itinerary-single-box .itinerary-sub .itinerary-single-box {
  padding-bottom: 24px;
}
.tour-single .itinerary-single-box .itinerary-sub .itinerary-single-box .day-badge {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.tour-single .itinerary-single-box .itinerary-sub .itinerary-single-box::before {
  left: 26px;
}

/* Sidebar teaser price, sitting directly above the enquiry form. Neither this
   nor the form (.inquireSection, styled by inquiry-form.css) nor the related
   tours below need a wrapping box of their own -- each already has its own
   card/box chrome, so nothing here adds padding or a border; it would just
   inset them inside a second frame. */
.tour-single .sidebar .price-teaser {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
}
.tour-single .sidebar .price-teaser .price-tag {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}
.tour-single .sidebar .price-teaser .price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--theme-color);
}
.tour-single .sidebar .price-teaser .price-amount del {
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text-color);
  margin-right: 6px;
}

/* Share button: a small hover/tap popup, kept from the pre-existing markup
   (real Facebook/Twitter share links) but never had any CSS on this layout
   -- it belonged to a third legacy sheet (css/singleTour/style.css) that only
   the legacy layout links, and only ever gave it the theme's own dark/gray
   palette. Recolored to match; still hidden until hovered/focused. */
.tour-single-wrap .shareSection {
  position: relative;
}
.tour-single-wrap .share {
  cursor: pointer;
  color: var(--body-text-color);
  font-size: 14px;
}
.tour-single-wrap .share i {
  color: var(--theme-color);
}
.tour-single-wrap .boxShare {
  list-style: none;
  margin: 0;
  padding: 10px 8px;
  left: 0;
  top: 100%;
  bottom: auto;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 20;
}
.tour-single-wrap .share:hover .boxShare,
.tour-single-wrap .boxShare:hover {
  opacity: 1;
  visibility: visible;
}
.tour-single-wrap .boxShare li a,
.tour-single-wrap .boxShare li i {
  color: var(--theme-color);
  font-size: 20px;
}

/* Itinerary and trip-info accordions: kept their existing class names
   (.itineraryDay/.headerday) from before this page ran on the Touria layout,
   but that layout doesn't load the sheet that styled them. Restyled here to
   the same accordion look already used site-wide in .faq-area. */
.tour-single .itineraryDay {
  border: 1px solid var(--border-info-color);
  border-radius: 15px;
  background: var(--color-white);
  overflow: hidden;
}
.tour-single .itineraryDay .headerday {
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-dark);
  padding: 14px 16px;
  box-shadow: none;
}
.tour-single .itineraryDay .headerday::after {
  content: "\f107";
  background: none;
  color: var(--color-dark);
  font-size: 22px;
  font-weight: 500;
  font-family: "Font Awesome 6 pro";
  width: unset;
  height: unset;
}
.tour-single .itineraryDay .headerday:not(.collapsed) {
  color: var(--theme-color);
  background: transparent;
  box-shadow: 0 0.8px 0 0 var(--border-info-color);
}
.tour-single .itineraryDay .headerday:not(.collapsed)::after {
  transform: rotate(-180deg);
}
.tour-single .itineraryDay .accordion-body {
  color: var(--body-text-color);
  padding: 4px 16px 18px;
}
.tour-single .itinerary-single-box .itineraryDay {
  margin-top: 0;
}
.tour-single .itinerary_header .expandAll {
  font-size: 14px;
  font-weight: 600;
  background: var(--theme-color);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  /* keep "Vedi tutto" / "Chiudi tutto" on one line next to a wrapping title */
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}
.tour-single .trip-info-area .itineraryDay {
  margin-bottom: 15px;
}
.tour-single .trip-info-area .itineraryDay:last-child {
  margin-bottom: 0;
}

/* Accommodation / room-price cards. This inline <style> block existed in the
   original template (Packages/view.php) right before the accommodation
   section and was dropped when that section's surrounding markup was
   rebuilt for tour-single -- restoring it here, recolored to the theme's
   orange/navy palette instead of its original blue/orange mix. */
.tour-single .option-card {
  background: var(--color-white);
  border: 1px solid var(--border-info-color);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.tour-single .option-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-info-color);
  padding-bottom: 10px;
}
.tour-single .period-container {
  margin-bottom: 20px;
}
.tour-single .period-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.tour-single .price-cards-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.tour-single .price-card {
  flex: 1;
  min-width: 140px;
  background: rgba(249, 130, 37, 0.05);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  border: 1px solid var(--border-info-color);
  transition: all 0.2s ease;
}
.tour-single .price-card:hover {
  border-color: var(--theme-color);
  background: rgba(249, 130, 37, 0.1);
}
.tour-single .price-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--body-text-color);
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tour-single .price-label i {
  color: var(--theme-color);
}
.tour-single .price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}
.tour-single .price-value .currency {
  font-size: 14px;
  vertical-align: top;
  margin-right: 2px;
}

/* Hotel cards */
.tour-single .hotelCard {
  background: var(--color-white);
  border: 1px solid var(--border-info-color);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  max-width: 250px;
}
.tour-single .hotelCard:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--theme-color);
}
.tour-single .hotelImage img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.tour-single .starhotel i {
  color: #ffc107;
  font-size: 12px;
}
.tour-single .nameHotle span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-top: 5px;
}
.tour-single .hotels-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}
@media (max-width: 575px) {
  .tour-single .price-cards-row {
    gap: 10px;
  }
  .tour-single .option-header {
    font-size: 16px;
  }
  .tour-single .hotelCard {
    max-width: 100%;
    width: 100%;
  }
  .tour-single .hotels-row {
    flex-direction: column;
  }
  .tour-single .hotelImage img {
    height: 180px;
  }
}

/* Space between the description's "Continua a leggere" toggle and the
   "La quota comprende / non comprende" lists below it. */
.tour-single .tour-details .content_overview {
  margin-bottom: 40px;
}

/* Desktop: the sidebar (price teaser + enquiry form) follows the page while
   the long main column scrolls. The column is flex-stretched by the row, so it
   is as tall as the main content and gives the sticky box room to travel.
   side-form.php's own .sticky-md-top is switched off so only .sidebar sticks.
   If the form is taller than the window it stops following (side-form.php). */
.tour-single .sidebar .inquireSection.sticky-md-top {
  position: static;
}
@media (min-width: 992px) {
  .tour-single .col-lg-4 .sidebar {
    position: sticky;
    top: 110px;
  }
}

/* "Prezzi e sistemazioni": one block per accommodation option -- a numbered
   heading, the season price cards (double-room headline, other room types as
   rows under a dashed rule), then the hotels as compact cards. */
.tour-single .ps-option {
  margin-bottom: 32px;
}
.tour-single .ps-option:last-child {
  margin-bottom: 0;
}
.tour-single .ps-option-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tour-single .ps-option-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--theme-color, #f98225);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.tour-single .ps-option-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark, #2a4456);
}
.tour-single .ps-option-tier {
  padding: 3px 12px;
  border-radius: 50px;
  background: rgba(249, 130, 37, 0.12);
  color: var(--theme-color, #f98225);
  font-size: 13px;
  font-weight: 600;
}
.tour-single .ps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 575px) {
  .tour-single .ps-grid {
    grid-template-columns: 1fr;
  }
}
.tour-single .ps-grid:last-child {
  margin-bottom: 0;
}
.tour-single .ps-period {
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff7ef;
  border: 1px solid #fbe0c8;
}
.tour-single .ps-period-name {
  color: #c2620f;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tour-single .ps-period-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-bottom: 14px;
}
.tour-single .ps-period-price {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark, #2a4456);
}
.tour-single .ps-period-unit {
  font-size: 14px;
  color: var(--body-text-color, #757f95);
}
.tour-single .ps-period-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed #f3c79c;
  font-size: 15px;
  color: var(--body-text-color, #757f95);
}
.tour-single .ps-period-row + .ps-period-row {
  margin-top: 10px;
}
.tour-single .ps-period-row strong {
  color: var(--color-dark, #2a4456);
  font-size: 16px;
}
.tour-single .ps-hotel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-info-color, rgba(0, 0, 0, 0.08));
  background: #fff;
}
.tour-single .ps-hotel-img {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8bfca;
  font-size: 24px;
}
.tour-single .ps-hotel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-single .ps-hotel-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tour-single .ps-hotel-kind {
  color: var(--theme-color, #f98225);
  font-size: 13px;
  font-weight: 600;
}
.tour-single .ps-hotel-name {
  color: var(--color-dark, #2a4456);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.tour-single .ps-hotel-stars {
  color: #f5b400;
  font-size: 12px;
  display: inline-flex;
  gap: 2px;
}

/* Mobile: less space between the breadcrumb banner and the tour title */
@media (max-width: 991px) {
  .tour-single.py-120 {
    padding-top: 30px;
  }
  .tour-single .tour-single-top {
    margin-top: 0;
  }
}
