/*
 Theme Name: Infinite Child
 Theme URI: http://demo.goodlayers.com/infinite
 Author: Goodlayers
 Author URI: http://www.goodlayers.com
 Description: Child theme for Infinite
 Template: infinite
 Version: 1.0
 Text Domain: infinite-child
*/

/* Archive trips */

body.post-type-archive-trip .infinite-page-title-wrap {
    visibility: hidden;
    position: relative;
    margin-bottom: 30px;
}

body.post-type-archive-trip .infinite-page-title-wrap:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: url(/wp-content/uploads/2022/07/PATMOS.jpg) no-repeat center center / 100%;
    height: 100%;
    visibility: visible;
    margin-bottom: 15px;
}

body.post-type-archive-trip .infinite-page-title-wrap:after {
    content: 'Elixir Cruises';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 120px;
    visibility: visible;
    color: #fff;
    font-size: 5rem;
}

.wpte-trip-duration {
    display: none;
}

.advanced-search-field.search-duration.search-trip-type {
    display: none;
}

/* Single trip */
body.single-trip .infinite-page-title-wrap.infinite-style-custom.infinite-center-align {
    display: none;
}

body.single-trip .wte-selected-package-description .wp-block-image img {
    width: 150px;
}

.single-trip .content-area {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.single-trip .widget-area{
	display: none;
}

.single-trip .wte-fsd__header h2.wpte-fsd__title {
    font-size: 30px;
    font-weight: normal;
}

.single-trip .entry-header {
    align-items: center;
    display: flex;
}

.single-trip .wte-fsd__container {
    margin-top: 0;
}

.single-trip .wte-fsd__availability-list-wrap .wte-fsd__package-active {
	font-weight: normal;
}

.single-trip .wte-fsd__dropdown-content table th, .wte-fsd__dropdown-content table td {
    padding: 5px 7px!important;
}

.single-trip .wte-fsd__dropdown-content table th {
    background-color: #5e8b94;
}

.single-trip .wte-fsd__availability-list-wrapper {
    background: #fbfbfb;
    padding: 0 15px 15px 15px!important;
}

.single-trip .wte-fsd__availability-cta-wrap {
    background: #fff;
}
.wte-selected-package-description figure {
    display: inline;
}

span.wte-title-duration {
    display: none;
}

p.wte-age-max {
    display: none;
}

@media(min-width: 768px){
    .wpte-modal {
        max-width: 100%;
        height: 90vh;
        width: 90vw;
    }
    
    .wte-process-layout {
        height: 90vh;
        max-height: 90vh;
    }
    
    .wte-popup-sidebar {
        max-height: 90vh;
    }
    
    .wte-process-tabs .wte-process-tab-item {
        max-height: calc(90vh - 231px);
    }
}

.wte-selected-package-description figure img {
    width: auto!important;
    height: 140px;
	cursor: pointer;
}


/*image overlay + viewer*/
/* Lightbox viewer μέσα στο iLightbox */
.wte-img-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: none; /* toggled by JS */
  align-items: center; justify-content: center;
  z-index: 999999; /* πάνω από το περιεχόμενο του booking */
}

.wte-img-overlay.is-open { display: flex; }

.wte-img-dialog {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  outline: none;
}

.wte-img-dialog img {
  max-width: 100%; max-height: 90vh; display: block;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.wte-img-close {
  position: absolute; top: -12px; right: -12px;
  background: #fff; border: none; border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.wte-img-close:before { content: "✕"; font-size: 18px; line-height: 36px; display: block; }
.wte-selected-package-description {
    padding: 0 15px;
}

.wte-selected-package-description ul li {
    margin-left: 20px;
}

.single-trip .wte-process-tab-content {
    display: flex;
    flex-direction: column;
}


.wte-process-tab-item:after {
    content: 'Please Select Cabin to view prices';
}

.wte-process-tab-item.no-after::after {
    display: none !important;
    content: none !important;
}

.single-trip .wte-button-group.wte-package-type {
    order: 1;
}

.single-trip .wte-option-heading {
    order: 2;
	display:none;
}

.single-trip .wte-trip-options {
    order: 3;
	display:none;
}

.single-trip .wte-process-tab-content hr {
    order: 4;
}


.single-trip .wte-selected-package-description {
    order: 5;
}

.wte-fsd__filter-buttons {
    display: none;
}

figure.wp-block-table.is-style-stripes {line-height: 1.2;}

.wpte-checkout__sidebar .wpte-checkout__tour-details {
    background: none;
}

.wpte-checkout__sidebar table tr:nth-child(odd) {
    background: none;
}

.wpte-checkout__sidebar table tr:nth-child(even) {
    background: none;
}


label.wte-check-button[for="btn_radio_5389"] {
    display: none;
}

label.wte-check-button[for="btn_radio_5398"] {
    display: none;
}

.infinite-body input, .infinite-body textarea, .infinite-body select, .woocommerce form .select2-selection {
    background: none!important;
}

.wpte-checkout__booking-summary-table .wpte-checkout__booking-summary-total td:last-child {
    width: 120px;
}

span.wte-fsd__booked-tag {
    clear: both;
    display: block;
}


/* Wrapper */
.elixir-trip-search-form {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; 
    align-items: flex-end;     
    gap: 20px;
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

/* Κάθε field */
.elixir-search-field {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

/* Labels */
.elixir-search-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Inputs & selects */
.elixir-search-field input,
.elixir-search-field select {
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    outline: none;
    min-width: 140px;
}

/* Price range styling */
.elixir-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elixir-price-range input {
    width: 90px;
}

/* Submit button */
.elixir-search-btn {
    height: 42px;
    padding: 0 28px;
    background: #5d8b94;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.elixir-search-btn:hover {
    background: #3e5d63;
}

#wte-cc-currency-list-container .wte-cc-currency-list-display {display: none;}

.wte-button-group > div:not(:has(.wte-package-availability)) {
  display: none;
}

.tippy-box {
    background-color: #e6e6e6;
    max-width: 1199px!important;

}

.wte-trip-options .wte-trip-guest-wrapper .check-in-wrapper label {
    font-weight: normal;
    text-transform: capitalize;
}

.wpte-select-options.wpte-group-discount-options.wte-popper.active {
    display: none;
}

.sc-gLLvbB.HeLOh {
    display: none;
}

/* RESPONSIVE (κάτω από 900px σπάει σε δύο σειρές) */
@media (max-width: 900px) {
    .elixir-trip-search-form {
        flex-wrap: wrap;
        gap: 15px;
    }

    .elixir-search-field {
        min-width: calc(50% - 20px);
    }

    .elixir-search-btn {
        width: 100%;
    }
}

/* MOBILE (κάτω από 600px όλα κάθετα) */
@media (max-width: 600px) {
    .elixir-search-field {
        min-width: 100%;
    }

    .elixir-trip-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}