/* Elementor Travel Card v2: unique etc2-* selectors avoid old CSS conflicts */
.etc2-widget{display:block;width:100%;min-width:0;--etc2-star-size:16px;--etc2-clock-size:19px;--etc2-overlay-height:40%;--etc2-overlay-padding-x:20px;--etc2-overlay-padding-y:14px;--etc2-element-gap:6px}
.etc2-widget,.etc2-widget *{box-sizing:border-box}
.etc2-widget .etc2-card{position:relative;display:block;width:100%;height:450px;overflow:hidden;isolation:isolate;border:0;border-radius:20px;background:#d9d9d9;color:#fff;cursor:pointer;outline:none}
.etc2-widget .etc2-card:focus-visible{outline:2px solid #ffbf00;outline-offset:3px}
.etc2-widget .etc2-card-image{display:block;width:100%;height:100%;margin:0;padding:0;border:0;object-fit:cover;object-position:center;transition:transform .4s ease}
.etc2-widget .etc2-card:hover .etc2-card-image{transform:scale(1.025)}

/* Overlay covers the lower 40% of the image */
.etc2-widget .etc2-overlay{position:absolute;z-index:2;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:flex-end;width:100%;height:var(--etc2-overlay-height,40%);min-height:0;margin:0;padding:var(--etc2-overlay-padding-y,14px) var(--etc2-overlay-padding-x,20px);overflow:hidden;background-color:rgba(12,25,34,.78);color:#fff;transition:opacity .3s ease}
.etc2-widget .etc2-card:hover .etc2-overlay,.etc2-widget .etc2-card:focus-visible .etc2-overlay{opacity:0;pointer-events:none}

/* Top row */
.etc2-widget .etc2-meta{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;width:100%;min-width:0;gap:8px;margin:0;padding:0;color:#fff;font-size:14px;line-height:1.3}
.etc2-widget .etc2-rating{display:inline-flex!important;flex:0 1 auto!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;position:static!important;float:none!important;width:auto!important;min-width:0;max-width:100%;gap:5px!important;margin:0!important;padding:0!important;white-space:nowrap!important}
.etc2-widget .etc2-stars{display:flex!important;flex:0 0 calc(var(--etc2-star-size,16px) * 5 + 4px);flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;position:static!important;float:none!important;width:calc(var(--etc2-star-size,16px) * 5 + 4px);min-width:calc(var(--etc2-star-size,16px) * 5 + 4px);max-width:calc(var(--etc2-star-size,16px) * 5 + 4px);height:var(--etc2-star-size,16px);gap:1px!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;direction:ltr!important;line-height:1!important;white-space:nowrap!important}
.etc2-widget .etc2-stars>svg.etc2-star{display:block!important;flex:0 0 var(--etc2-star-size,16px);position:static!important;width:var(--etc2-star-size,16px);min-width:var(--etc2-star-size,16px);max-width:var(--etc2-star-size,16px);height:var(--etc2-star-size,16px);min-height:var(--etc2-star-size,16px);max-height:var(--etc2-star-size,16px);margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;background:none!important;box-shadow:none!important;transform:none!important}
.etc2-widget .etc2-review{display:inline-block!important;flex:0 0 auto!important;position:static!important;float:none!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;color:#fff!important;font-family:inherit!important;font-size:var(--etc2-review-size,12px);font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;transform:none!important}
.etc2-widget .etc2-days{display:inline-flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;position:static!important;float:none!important;width:auto!important;min-width:0;gap:4px;margin:0!important;padding:0!important;color:#fff;font-size:14px;font-weight:600;line-height:1.3;white-space:nowrap}
.etc2-widget .etc2-clock{display:inline-block;flex:0 0 auto;margin:0;padding:0;font-size:var(--etc2-clock-size,19px);line-height:1}
.etc2-widget .etc2-dashed{display:block;flex:0 0 auto;width:100%;height:0;margin:var(--etc2-element-gap,6px) 0 calc(var(--etc2-element-gap,6px) + 2px);padding:0;border:0;border-top:1px dashed rgba(255,255,255,.55)}
.etc2-widget .etc2-location{display:block;margin:0 0 7px;padding:0;color:#fff;font-size:14px;font-weight:600;line-height:1.25}
.etc2-widget .etc2-title{display:-webkit-box;margin:0 0 14px;padding:0;overflow:hidden;color:#fff;font-size:21px;font-weight:750;line-height:1.18;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.etc2-widget .etc2-price{display:block;margin:0;padding:0;color:#fff;font-size:14px;font-weight:600;line-height:1.4}
.etc2-widget .etc2-price span{color:#ff684b;font-size:16px;font-weight:700}

/* Image modal */
.etc2-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;width:100%;height:100%;padding:24px;overflow-y:auto;background:rgba(0,0,0,.84)}
.etc2-modal.etc2-open{display:flex}
.etc2-modal-dialog{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;max-width:min(1000px,94vw);max-height:94vh;gap:16px;margin:auto}
.etc2-modal-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(94vh - 80px);margin:0;padding:0;border:0;border-radius:12px;object-fit:contain}
.etc2-modal-actions{display:flex;align-items:center;justify-content:center;gap:12px}
.etc2-modal-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:12px 24px;border:0;border-radius:6px;background:#ff684b;color:#fff!important;font-family:inherit;font-size:15px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none!important;cursor:pointer}
.etc2-modal-button:hover{background:#e95539;color:#fff!important}
.etc2-modal-close{position:fixed;top:14px;right:20px;z-index:1000000;display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;padding:0;border:0;background:transparent;color:#fff;font-family:Arial,sans-serif;font-size:38px;line-height:1;cursor:pointer}

/* Tablet: slightly compact card typography; keep the image full bleed */
@media (min-width: 481px) and (max-width: 1024px) {
  .etc2-widget .etc2-overlay { padding: 12px 14px 14px; }
  .etc2-widget .etc2-title { font-size: 17px; margin-bottom: 8px; }
  .etc2-widget .etc2-location { font-size: 12px; }
  .etc2-widget .etc2-price { font-size: 12px; }
  .etc2-widget .etc2-price span { font-size: 14px; }
}

/* Mobile card: show the complete original image; details are available in the modal */
@media (max-width: 767px) {
  .etc2-widget { width: 100%; min-width: 0; }
  .etc2-widget .etc2-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: transparent;
    border-radius: 14px;
  }
  .etc2-widget .etc2-card-image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
  .etc2-widget .etc2-overlay { display: flex !important; height: var(--etc2-overlay-height,40%); min-height: 0; }
  .etc2-widget .etc2-card:hover .etc2-card-image { transform: none !important; }

  /* Full-screen-friendly modal image on phones */
  .etc2-modal { padding: 12px; }
  .etc2-modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    gap: 12px;
  }
  .etc2-modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 100px);
    object-fit: contain;
  }
  .etc2-modal-actions { width: 100%; }
  .etc2-modal-button { max-width: 100%; padding: 11px 18px; }
  .etc2-modal-close { top: 8px; right: 8px; width: 42px; height: 42px; }
}

@media(prefers-reduced-motion:reduce){.etc2-widget .etc2-card-image,.etc2-widget .etc2-overlay{transition:none}}


/* =========================================================
   TRAVEL SEARCH — CLEAN REPLACEMENT
   Isolated to .etcs-search-widget; card CSS above is preserved.
========================================================= */
.etcs-search-widget,
.etcs-search-widget * ,
.etcs-search-widget *::before,
.etcs-search-widget *::after {
    box-sizing: border-box;
}

.etcs-search-widget {
    display: block;
    position: relative;
    z-index: 30;
    width: 100%;
    min-width: 0;
    font-family: inherit;
}

.etcs-search-widget .etcs-search-bar {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(20, 30, 50, .06);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .12);
}

.etcs-search-widget .etcs-field {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 64px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid #dce1eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.etcs-search-widget .etcs-field.etcs-field-open {
    border-color: #7b2cbf;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, .08);
}

/* Left-side icons: replace the old text glyphs with SVG masks. */
.etcs-search-widget .etcs-field-icon {
    position: relative;
    display: inline-flex !important;
    flex: 0 0 24px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #7b2cbf !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
}

.etcs-search-widget .etcs-country-field .etcs-field-icon::before,
.etcs-search-widget .etcs-days-field .etcs-field-icon::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: #7b2cbf;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.etcs-search-widget .etcs-country-field .etcs-field-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.etcs-search-widget .etcs-days-field .etcs-field-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.etcs-search-widget .etcs-custom-select {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.etcs-search-widget .etcs-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.etcs-search-widget .etcs-select-trigger:hover,
.etcs-search-widget .etcs-select-trigger:focus,
.etcs-search-widget .etcs-select-trigger:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.etcs-search-widget .etcs-select-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etcs-search-widget .etcs-chevron {
    position: static;
    flex: 0 0 auto;
    margin: 0 4px 0 0;
    padding: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

/* Native select is retained for filter logic but is not visible. */
.etcs-search-widget select.etcs-native-select {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
}

.etcs-search-widget .etcs-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 999999;
    display: block;
    width: 100%;
    max-height: 260px;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #e2e5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.etcs-search-widget .etcs-options[hidden] {
    display: none !important;
}

.etcs-search-widget .etcs-option {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #273044 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.etcs-search-widget .etcs-option:hover,
.etcs-search-widget .etcs-option[aria-selected="true"] {
    background: #f4edf9 !important;
    color: #542078 !important;
}

.etcs-search-widget .etcs-submit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 150px;
    height: 64px;
    margin: 0;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #ff5a36;
    color: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.etcs-search-widget .etcs-submit:hover {
    background: #ed4928;
    color: #fff;
    transform: translateY(-1px);
}

.etcs-search-widget .etcs-search-icon {
    font-size: 26px;
    line-height: 1;
}

.etcs-search-widget .etcs-reset {
    display: none;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #475467;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.etcs-search-widget .etcs-status {
    position: absolute;
    left: 20px;
    top: calc(100% + 6px);
    display: block;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.etcs-search-widget .etcs-status:empty { display: none; }
.etcf-filter-hidden { display: none !important; }

/* Responsive Travel Search: compact fields on tablet and mobile */
@media (max-width: 900px) {
  .etcs-search-widget { width: 100%; min-width: 0; }
  .etcs-search-widget .etcs-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
  }
  .etcs-search-widget .etcs-field {
    flex: 1 1 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    gap: 8px;
  }
  .etcs-search-widget .etcs-select-trigger,
  .etcs-search-widget .etcs-select-label { min-width: 0; font-size: 14px; }
  .etcs-search-widget .etcs-field-icon { flex-basis: 20px; width: 20px; margin-right: 6px; }
  .etcs-search-widget .etcs-submit {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
  }
  .etcs-search-widget .etcs-reset {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
  .etcs-search-widget .etcs-options { z-index: 999999; max-height: 220px; }
}

@media (max-width: 480px) {
  .etcs-search-widget .etcs-search-bar {
    gap: 8px;
    padding: 9px;
    border-radius: 18px;
  }
  .etcs-search-widget .etcs-field {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    height: 44px;
    padding: 0 9px;
    gap: 6px;
    border-radius: 12px;
  }
  .etcs-search-widget .etcs-field-icon { flex-basis: 18px; width: 18px; margin-right: 2px; }
  .etcs-search-widget .etcs-select-trigger,
  .etcs-search-widget .etcs-select-label { font-size: 12px; }
  .etcs-search-widget .etcs-chevron { font-size: 16px; margin-right: 0; }
  .etcs-search-widget .etcs-submit { height: 42px; min-height: 42px; font-size: 13px; }
  .etcs-search-widget .etcs-reset { min-height: 30px; font-size: 12px; }
}
