@media (max-width: 768px) { 
    .woocommerce-page .row_site, 
    .woocommerce-page .container_site, 
    .woocommerce-page .elementor-container, 
    .woocommerce-page #main-content 
    { 
        max-width: 100% !important; 
        padding-left: 8px; 
        padding-right: 8px; 
        
    } 
    
}
/* Root accordion wrapper */
.wp-accordion {
  margin-block: 2rem;
  border: 0px solid rgba(0, 0, 0, 0.1);
  border-radius:0.25rem;
  background-color: var(--wp--custom--accordion-bg, #fefefe);
  color: inherit;
  font: inherit;
  padding: 0px 0px;
  max-width: 100%;
}

/* Border antar item */
.wp-accordion-item + .wp-accordion-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Accordion header */
.wp-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px;
  cursor: pointer;
  font-weight: bold;
  background-color: var(--wp--custom--accordion-bg, #fefefe);
  /* transition: background-color 0.3s ease; */
  transition: color 0.3s ease;
  outline: none;
}

.wp-accordion-header:hover {
  /* background-color: rgba(0, 0, 0, 0.06); */
  color: var(--wp--preset--color-primary, #d90441);
}

/* Optional icon wrapper */
.wp-accordion-header .accordion-icon {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 0.5em;
}

/* Toggle icon */
.wp-accordion-header::after {
  content: '\002B'; /* Plus sign */
  font-size: 1.2em;
  transition: transform 0.3s ease;
  margin-inline-start: auto;
}

.wp-accordion-header.active::after {
  content: '\2212'; /* Minus sign */
  transform: rotate(180deg);
}

/* Accordion content */
.wp-accordion-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0px;
  background-color: rgba(0, 0, 0, 0.015);
  transition: height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.wp-accordion-content td * {
    margin-block: 1px;
}

.wp-accordion-content.active {
  opacity: 1;
  padding: 0.1em 0 1em 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .wp-accordion {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .wp-accordion-header {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .wp-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .wp-accordion-content {
    background-color: rgba(255, 255, 255, 0.03);
  }
}

/* Container eksternal untuk WOOF accordion */
.woof-filter-wrapper {
    width: 100%;
    max-width: 1200px; /* Atau gunakan nilai container tema */
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Jika tema pakai .container atau .site-main, inherit saja */
.container .woof-filter-wrapper,
.site-main .woof-filter-wrapper {
    max-width: inherit;
}

@media (max-width: 768px) {
    .woof-filter-wrapper {
        padding: 1 0.5rem;
    }
}



/* Button aplly add services */
input.service-amount-frontend {
    width: 70px !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Quantity input full width */
.woocommerce .quantity input.qty {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 1rem;
}

/* Quantity wrapper */
.woocommerce .quantity {
  width: 100% !important;
  display: block;
  padding-bottom: 10px; /* ðŸ‘ˆ Adds 20px spacing below quantity input */
  padding-top: 20px;
}

/* Add to Cart button full width */
.woocommerce .single_add_to_cart_button {
  width: 100% !important;
  box-sizing: border-box;
  padding: 2px 2px;
  font-size: 1rem;
  text-align: center;
}

/* Css responsive table pada mobile device */
.responsive-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; 
}

.responsive-table td {
    padding: 0px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.responsive-table td:first-child {
    /* font-weight: 600; */
    white-space: nowrap;
    color: #333;
}

@media (max-width: 600px) {
  .wp-accordion-content.active {
    padding-bottom: 1.5em; /* atau sesuai kebutuhan */
    margin-bottom: 1rem;   /* opsional, jika padding tidak cukup */
  }
}

@media screen and (max-width: 600px) {
    .responsive-table tr {
        display: block;
        margin-bottom: 12px;
    }

    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table td:first-child {
        background: #f6f6f6;
        border-bottom: none;
    }
}

/* CODE FOR TOOLTIP */
/* Tooltip trigger container */
.tour-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

/* Tooltip bubble */
.tour-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  width: 150px;
  text-align: left;
  overflow-wrap: break-word;
}

/* Mobile override */
@media (max-width: 480px) {
  .tour-tooltip::after {
    width: 120px;
  }
}

/* Hover & focus interaction (desktop and mobile focus) */
.tour-tooltip:hover::after,
.tour-tooltip:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.tour-tooltip.tooltip-below::after {
  bottom: auto;
  top: 130%;
  transform: translateX(-50%) translateY(4px);
}
/*END CODE FOR TOOLTIP */

/* Define Extra Services Table */
.extra-services-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.2; /* padat antar baris */
  margin: 1.5px;
}

.extra-services-table thead {
  background-color: #fc0341;
}

.extra-services-table thead th {
  color: white;
  font-weight: bold;
  padding: 8px;
}

.extra-services-table td {
  border: none;
  padding: 6px 8px;
  vertical-align: middle;
}

.extra-services-table tr {
  border-bottom: 1px solid #ccc; /* border antar baris */
}

/*
.extra-services-table tr:last-child {
  border-bottom: none; /* hilangkan border terakhir 
}*/


.extra-services-table .icon {
  width: 40px;
  text-align: center;
}

.extra-services-table .title,
.extra-services-table .price {
  margin: 4px;
  padding: 4px;
  line-height: 0.9;
}
/* End of Define Extra Services Table */

.woocommerce form .optional {
    display: none !important;
}

/* Container styling */
.bertamasya-related-products-footer {
    margin-top: 30px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.bertamasya-related-products-footer .related-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #222;
}

.bertamasya-related-products-footer ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bertamasya-related-products-footer ul.products li.product {
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.bertamasya-related-products-footer ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .bertamasya-related-products-footer .related-title {
        font-size: 1.6rem;
    }

    .bertamasya-related-products-footer ul.products {
        gap: 20px;
    }
}

/* Handling Product Search Popup */
.tripgo-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.tripgo-popup-box {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tripgo-popup-overlay.active .tripgo-popup-box {
    opacity: 1;
}

.tripgo-popup-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.tripgo-popup-toggle .dashicons:hover {
    color: #f21f66; /* Warna hover, bisa disesuaikan */
    transform: scale(1.1);
    transition: color 0.2s ease, transform 0.2s ease;
}


.tripgo-popup-toggle .dashicons {
    color: #000;
    font-size: 24px;
}

.tripgo-search-field-wrapper {
    position: relative;
}

#tripgo-popup-search-input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tripgo-search-submit-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #000;
    cursor: pointer;
    transform-origin: center;
}

.tripgo-search-submit-icon:hover {
    color: #f21f66;
    transform: translateY(-50%) scale(1.1);
    transition: color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 480px) {
    .tripgo-popup-box {
        padding: 16px;
    }

    #tripgo-popup-search-input {
        font-size: 14px;
        padding: 8px 36px 8px 8px;
    }

    .tripgo-search-submit-icon {
        font-size: 24px;
    }
}

/* SOCIAL SHARE */
.social-share {
  transition: all 0.7s ease;
  -moz-transition: all 0.7s ease;
  -webkit-transition: all 0.7s ease;
  -o-transition: all 0.7s ease;
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.social-share .btn-video-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  height: 35px;
  color: var(--text);
  margin: 0 4px;
  padding: 5px 8px;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.social-share .btn-video-gallery i {
  font-size: 16px;
  color: #FD4C5C;
  transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.social-share .btn-video-gallery:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
}
.social-share .btn-video-gallery:hover i {
  color: var(--secondary-hover);
  color: #FFFFFF;
}
.social-share .video-container {
  display: none;
  background-color: rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 99999;
}
.social-share .video-container .modal-container {
  line-height: 0;
  width: 100%;
  max-width: 900px;
  position: relative;
  margin: 0 auto;
}
@media screen and (max-width: 900px) {
  .social-share .video-container .modal-container {
    width: 90%;
  }
}
.social-share .video-container .modal-container .modal {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}
.social-share .video-container .modal-container .modal i {
  position: absolute;
  right: -10px;
  top: -35px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.social-share .video-container .modal-container .modal i:hover {
  color: var(--primary);
}
.social-share .video-container .modal-container .modal .modal-video {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.social-share .btn-share {
  position: relative;
  width: 40px;
  height: 35px;
}
.social-share .btn-share i {
  margin: 0;
}
.social-share .btn-share .ova-social {
  width: 100%;
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
}
.social-share .btn-share .ova-social li {
  width: 100%;
}
.social-share .btn-share .ova-social li:first-child {
  margin-top: 5px;
}
.social-share .btn-share .ova-social li:not(:last-child) {
  margin-bottom: 5px;
}
.social-share .btn-share .ova-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  line-height: 1;
  width: 40px;
  height: 35px;
  color: var(--text);
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.social-share .btn-share .ova-social li a i {
  font-size: 20px;
  color: #FD4C5C;
  margin-right: 0;
  transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.social-share .btn-share .ova-social li a:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
}
.social-share .btn-share .ova-social li a:hover i {
  color: var(--secondary-hover);
  color: #FFFFFF;
}
.social-share .btn-share:hover .ova-social {
  top: 35px;
  opacity: 1;
  transform: rotate(0deg);
  transition-delay: 0.08s;
}

/* Reservation Text Heading CSS */
.reservation-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 10px;
}

.reservation-heading .line {
  flex: 1;
  height: 2px;
  background-color: var(--wp--preset--color-primary, #d90441);
}

.reservation-heading .text {
  display: flex;
  align-items: center;
  color: var(--wp--preset--color-primary, #d90441);
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
}

.reservation-heading .text i {
  margin-right: 8px;
  font-size: 0.9em;
  color: inherit;
}

/* ELEMENTOR CUSTOM BUTTON TO PUT ANYWHERE */
.red-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 4px 14px;      /* reduced vertical and horizontal padding */
  font-size: 18px;
  line-height: 2;        /* tighter line spacing */
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.red-button:hover {
  background-color: white;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
