/**
 * Theme Name:       Mai Prosper
 * Theme URI:        https://bizbudding.com/products/mai-prosper-theme/
 * Description:      Mai Prosper child theme for the Genesis Framework.
 * Author:           BizBudding
 * Author URI:       https://bizbudding.com/
 * Version:          2.0.2
 * Text Domain:      mai-prosper
 * Template:         genesis
 * Template Version: 3.3.2
 * License:          GPL-2.0-or-later
 * License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 */

 .has-standard-content {
  --content-max-width: unset;
}

.cape-town-excursion-list {
  padding-left: 15px;
  padding-right: 15px;
}

.cape-town-excursion-list .wp-block-heading {
padding-top: 16px;
}

/** Custom Hostify styles */
.hfy-theme1 .listing-block {
  margin: 0px auto;
}

.hfy-wrap .row {
  row-gap: 2em;
  align-items: flex-start;
}

.hfy-wrap .container {
  padding: 0;
}


/** Custom Swiper styles */
.swiper {
  --swiper-theme-color: var(--link-color, var(--color-link));
}

.swiper-slide img {
  height: 353px;
  width: 100%;
  object-fit: cover;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.5em;
}



/* Mobile */
@media (max-width: 768px) {
  .hfy-wrap .row {
    margin-left: 0;
    margin-right: 0;
  }

  .listing-block ::-webkit-scrollbar {
    display: none;
  }

  .listing-block>.wp-block-column {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }

  .listing-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .mobile-scroll-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .mobile-scroll-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-scroll-row>.wp-block-column {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }

  .mobile-scroll-row img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .mobile-scroll-row .mai-columns-wrap {
    flex-wrap: nowrap !important;
    --align-columns: unset !important;
  }

  .cape-town-excursion-list {
    margin-left: auto;
  }

  /* Mobile Gallery Styles */
  .desktop-gallery {
    display: none !important;
  }

  .desktop-title {
    display: none !important;
  }

  .mobile-gallery {
    display: block !important;
  }

  .mobile-gallery-container {
    position: relative;
  }

  .gallery-slider {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
  }

  .gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-share-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .mobile-share-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
  }

  .mobile-gallery-title {
    padding: 16px 0;
  }

  .mobile-gallery-title h2 {
    color: var(--heading-color,var(--color-heading));
    font-family: var(--heading-font-family,unset);
    font-style: var(--heading-font-style,normal);
    font-weight: var(--heading-font-weight,unset);
    letter-spacing: var(--heading-letter-spacing,normal);
    line-height: var(--heading-line-height,var(--line-height-sm));
    text-transform: var(--heading-text-transform,none);
    text-wrap: var(--heading-text-wrap,wrap);
    font-size: var(--h2-font-size,var(--font-size-xxl));
    box-sizing: border-box;
  }

  .swiper-pagination {
    bottom: 16px !important;
  }

  .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
  }

  .swiper-pagination-bullet-active {
    background: white !important;
  }
}

/* Desktop Gallery Styles */
@media (min-width: 769px) {
  .mobile-gallery {
    display: none !important;
  }

  .desktop-gallery {
    display: block !important;
  }

  .desktop-title {
    display: block !important;
  }

  .gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
  }

  .desktop-gallery-title {
    margin-bottom: 20px;
  }

  .desktop-gallery-title h2 {
    color: var(--heading-color,var(--color-heading));
    font-family: var(--heading-font-family,unset);
    font-style: var(--heading-font-style,normal);
    font-weight: var(--heading-font-weight,unset);
    letter-spacing: var(--heading-letter-spacing,normal);
    line-height: var(--heading-line-height,var(--line-height-sm));
    text-transform: var(--heading-text-transform,none);
    text-wrap: var(--heading-text-wrap,wrap);
    font-size: var(--h2-font-size,var(--font-size-xxl));
    box-sizing: border-box;
  }

  .desktop-gallery .main {
    position: relative;
    margin-bottom: 16px;
  }

  .desktop-gallery .main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
  }

  .desktop-gallery .gallery-slider {
    height: 500px;
  }

  .desktop-gallery .gallery-slider .swiper-slide img {
    height: 500px;
  }

  .desktop-gallery .list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .desktop-gallery .list .img-wrap {
    flex: 0 0 calc(20% - 6.4px);
    height: 100px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 8px;
  }

  .desktop-gallery .list .img-wrap:hover {
    transform: scale(1.05);
  }

  .desktop-gallery .list .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  .share-btn,
  .view-all-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
  }

  .share-btn:hover,
  .view-all-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--button-background, var(--color-primary));
  }

  .share-btn svg,
  .view-all-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Sticky Sidebar Styles */
@media (min-width: 769px) {
  .sticky-booking-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  .sticky-booking-sidebar-container {
    gap: 2rem;
  }

  /* Stop sticking when footer comes into view */
  .sticky-booking-sidebar.footer-reached {
    position: absolute;
    bottom: 0;
    top: auto;
  }
}

/* Mobile Booking Anchor Button */
@media (max-width: 768px) {
  .booking-anchor-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-background, var(--color-primary));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .booking-anchor-btn:hover,
  .booking-anchor-btn:active {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }

  .booking-anchor-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  /* Hide the button when user scrolls to booking section */
  .booking-anchor-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Hide booking anchor button on desktop */
@media (min-width: 769px) {
  .booking-anchor-btn {
    display: none !important;
  }
}

/* Reviews Styles */
@media (max-width: 768px) {
  .hfy-reviews-summary {
    padding: 40px 0;
  }
  .hfy-reviews-summary .col-xs-6,
  .hfy-reviews-summary .col-sm-5 {
   padding-left: 0;
   padding-right: 0;
  }

  /* Align stars in the same column on mobile */
  .hfy-reviews-summary .row {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
  }

  .hfy-reviews-summary .col-xs-6 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  .hfy-reviews-summary .desc {
    width: 150px;
    min-width: 150px;
    flex-shrink: 0;
    text-align: left;
    padding-right: 10px;
  }

  .hfy-reviews-summary .desc > div {
    margin-bottom: 8px;
  }

  .hfy-reviews-summary .stars {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hfy-reviews-summary .stars > div {
    width: 100px;
    margin-bottom: 8px;
  }

  .hfy-reviews-summary .stars span {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 16px;
  }

  .hfy-reviews-summary .stars span > span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 16px;
  }
}