.vep-search-form,
.vep-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    align-items: end;
}

.vep-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.vep-results-toolbar__count {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
}

.vep-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.vep-results-toolbar__sort-label {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.vep-results-toolbar__sort-select {
    min-width: 180px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    max-width: 100%;
}

.vep-results-toolbar__sort-select option {
    font-size: 14px;
}

.vep-results-toolbar__sort-select-wrap {
    position: relative;
    display: inline-flex;
}

.vep-load-more-wrap {
    margin-top: 24px;
    text-align: center;
}

.vep-load-more-form {
    display: inline-block;
    margin: 0;
}

.vep-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vep-load-more-button__icon-wrap {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.vep-load-more-button__icon {
    display: inline-flex;
    line-height: 1;
}

.vep-load-more-button__icon svg {
    width: 1em;
    height: 1em;
}

.vep-load-more-button:hover {
    background: #f9fafb;
}

@media (max-width: 767px) {
    .vep-results-toolbar {
        gap: 10px;
        align-items: center;
    }

    .vep-sort-form {
        gap: 6px;
    }

    .vep-results-toolbar__sort-select {
        width: 100px;
        padding: 8px 10px;
        min-width: 95px;
        color: #111827;
        -webkit-text-fill-color: transparent;
    }

    .vep-results-toolbar__sort-select-wrap::after {
        content: attr(data-mobile-selected-label);
        position: absolute;
        top: 50%;
        left: 10px;
        right: 30px;
        transform: translateY(-50%);
        color: #111827;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
    }

}

/* ─── Pill search form ───────────────────────────────────────────────────── */
.vep-search-form--pill {
    --vep-destination-width: 48%;
    --vep-date-width: 30%;
    --vep-button-width: 12%;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px 6px 6px 24px;
    gap: 0;
    grid-template-columns: unset;
    margin-bottom: 0;
    overflow: visible;
}

.vep-search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 6px 12px;
}

.vep-search-field--destination {
    flex: 0 1 var(--vep-destination-width);
    padding-left: 0;
}

.vep-search-field--date {
    flex: 0 1 var(--vep-date-width);
    overflow: visible;
}

.vep-search-field__label {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    display: block;
    white-space: nowrap;
    margin-bottom: 2px;
}

.vep-search-field__input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 14px;
    color: #6b7280;
    width: 100%;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.vep-search-field__input::placeholder {
    color: #9ca3af;
}

.vep-search-input-wrap,
.vep-destination-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vep-search-input-wrap {
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.vep-search-field__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    font-size: 16px;
}

.vep-search-field__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Date input — hide the native calendar icon on some browsers */
.vep-search-field__input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    cursor: pointer;
}

.vep-search-field--date {
    position: relative;
}

.vep-date-calendar {
    position: absolute;
    top: calc(100% + 33px);
    left: 0;
    z-index: 99;
    width: min(385px, 90vw);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    padding: 22px;
}

.vep-date-calendar.is-open {
    display: block;
}

.vep-date-calendar__header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 10px;
}

.vep-date-calendar__title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.vep-date-calendar__nav {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vep-date-calendar__nav:hover:not(:disabled) {
    background: transparent;
}

.vep-date-calendar__nav:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.vep-date-calendar__weekdays,
.vep-date-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vep-date-calendar__weekdays {
    margin-bottom: 10px;
}

.vep-date-calendar__weekdays span {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.vep-date-calendar__grid {
    gap: 0;
}

.vep-date-calendar__day {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.vep-date-calendar__day:hover:not(:disabled) {
    background: #eff6ff;
}

.vep-date-calendar__day.is-selected-start,
.vep-date-calendar__day.is-selected-end,
.vep-date-calendar__day.is-in-range {
    background: transparent;
    color: #111827;
    font-weight: 500;
}

.vep-date-calendar__day.is-disabled,
.vep-date-calendar__day:disabled {
    color: #b3b3b3;
    cursor: not-allowed;
    background: transparent;
}

.vep-date-calendar__day--empty {
    width: 44px;
    height: 44px;
    margin: 0 auto;
}

.vep-date-calendar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.vep-date-calendar__button {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vep-date-calendar__button--secondary {
    background: #ffffff;
    border: 1px solid #111827;
    color: #111827;
}

.vep-date-calendar__button--primary {
    background: #0f9d84;
    border: 1px solid #0f9d84;
    color: #ffffff;
}

.vep-search-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Search button — round icon button */
.vep-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    width: max(48px, var(--vep-button-width));
    height: 48px;
    border-radius: 50%;
    background: #0081e4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-left: 8px;
}

.vep-search-submit:not(.vep-search-submit--icon-only) {
    width: auto;
    min-width: max(120px, var(--vep-button-width));
    padding: 0 18px;
    border-radius: 999px;
}

.vep-search-submit--text-only {
    width: auto;
    min-width: max(120px, var(--vep-button-width));
    padding: 0 18px;
    border-radius: 999px;
}

.vep-search-submit:hover {
    background: #0066b8;
    transform: scale(1.05);
}

.vep-search-submit__text {
    display: none; /* hidden on pill layout - shown on mobile fallback */
}

.vep-search-submit:not(.vep-search-submit--icon-only) .vep-search-submit__text {
    display: inline;
}

.vep-search-submit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vep-search-submit__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ─── Filters ────────────────────────────────────────────────────────────── */
.vep-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #1f2937;
}

.vep-search-form input,
.vep-filters input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
}

/* ─── Destination autocomplete ───────────────────────────────────────────── */
.vep-destination-wrap {
    position: relative;
    width: 100%;
}

.vep-destination-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: inherit;
    color: inherit;
}

.vep-destination-suggestions {
    position: absolute;
    top: calc(100% + 33px);
    left: 0;
    z-index: 99;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Reset any theme list styles */
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
}

.vep-destination-suggestions::before,
.vep-destination-suggestions::after {
    display: none !important;
}

.vep-destination-suggestions li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    line-height: 1.3;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid #e5e7eb;
}

.vep-destination-suggestions li:last-child {
    border-bottom: 0;
}

.vep-destination-suggestions li::before,
.vep-destination-suggestions li::marker {
    display: none !important;
    content: '' !important;
}

.vep-destination-suggestions li strong {
    display: block;
    font-weight: 600;
    color: #111827;
    pointer-events: none;
}

.vep-destination-suggestions li span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
    pointer-events: none;
}

.vep-suggestion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #008c7a;
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
    width: 28px;
    height: 28px;
}

.vep-suggestion-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.vep-suggestion-content {
    min-width: 0;
}

.vep-destination-suggestions li:hover,
.vep-destination-suggestions li[aria-selected="true"] {
    background-color: #f3f4f6 !important;
}

.vep-destination-suggestions[hidden] {
    display: none !important;
}

.vep-search-form button,
.vep-filters button,
.vep-btn {
    border: 0;
    border-radius: 8px;
    background: #0081e4;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
}

/* ─── Results Grid ─────────────────────────────────────────────────────────── */

.vep-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

/* ─── Tour Card ─────────────────────────────────────────────────────────────── */

.vep-tour-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 0 20px 0 rgba(62, 28, 131, 0.1);
}

.vep-tour-card__image-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.vep-tour-card__body {
    padding: 14px;
}

.vep-tour-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.vep-tour-card__title a {
    color: #111827;
    text-decoration: none;
}

.vep-tour-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* ── Star rating (inline SVG, no external dependencies) ─────────────────────
   .vep-rating-icon     — per-star container (position: relative)
   .vep-rating-marked   — amber fill layer, clipped to --vep-star-fill width
   .vep-rating-unmarked — grey base layer, always full width behind
────────────────────────────────────────────────────────────────────────────── */
.vep-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    line-height: 1;
}

.vep-rating-icon {
    position: relative;
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.vep-rating-marked,
.vep-rating-unmarked {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.vep-rating-marked {
    width: var(--vep-star-fill, 100%);
    z-index: 1;
}

.vep-rating-unmarked {
    width: 100%;
    z-index: 0;
}

.vep-star {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.vep-rating-marked .vep-star {
    fill: #f59e0b;
}

.vep-rating-unmarked .vep-star {
    fill: #d1d5db;
}

.vep-tour-card__rating {
    color: #111827;
    font-weight: 600;
}

.vep-tour-card__reviews {
    color: #6b7280;
}

.vep-tour-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.vep-price-from {
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    color: #6b7280;
    text-decoration: none;
    line-height: 1;
}

.vep-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #0081e4;
    line-height: 1;
}

.vep-price-original {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1;
}

.vep-tour-card__book-wrap {
    display: flex;
    margin-top: 14px;
}

.vep-tour-card__book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid #111827;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vep-tour-card__book-button:hover,
.vep-tour-card__book-button:focus {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
    transform: translateY(-1px);
}

.vep-tour-card__features {
    list-style: none;
    margin: 8px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vep-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.3;
}

.vep-feature__icon {
    flex-shrink: 0;
    display: block;
}

.vep-price-note {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0;
    padding: 0;
    line-height: 1.4;
}

/* ─── Pagination ─────────────────────────────────────────────────────────────
   Base layout only. Colors, borders, radius and typography are controlled via
   the Elementor widget Style panel. Do NOT add !important or duplicate rules
   here — they will override Elementor's inline styles and break the controls.
────────────────────────────────────────────────────────────────────────────── */

.vep-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: nowrap;
    width: 100%;
    background: transparent;
}

.vep-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid transparent;
    color: #0081e4;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: transform 0.15s;
}

/* FIX: full border shorthand so it reliably overrides the transparent base rule */
.vep-page-link.prev,
.vep-page-link.next {
    border: 1px solid #0081e4;
}

.vep-page-link.is-active {
    background: #0081e4;
    color: #fff;
    border-color: #0081e4;
}

.vep-page-link:hover {
    transform: translateY(-2px);
}

.vep-page-link:focus {
    outline: 3px solid rgba(2, 132, 199, 0.25);
    outline-offset: 4px;
}

.vep-page-dots {
    font-size: 18px;
    color: #6b7280;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .vep-page-link {
        transition: none;
        transform: none;
    }
}

/* ─── Notices ────────────────────────────────────────────────────────────────── */

.vep-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 8px;
    padding: 12px;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
}

.vep-notice.vep-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.vep-fallback {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 18px;
    max-width: 620px;
}

.vep-fallback__title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}

.vep-fallback__message {
    margin: 0 0 12px;
    color: #475569;
}

.vep-fallback__actions {
    margin-bottom: 10px;
}

.vep-fallback__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3f3fa5;
    color: #ffffff;
    border-radius: 100px;
    padding: 6px 14px;
    font-weight: 400;
    font-size: 14px;
}

.vep-fallback__button:hover,
.vep-fallback__button:focus {
    background: #3f3fa5;
    color: #ffffff;
    transform: translateY(-1px);
}

.vep-fallback__hint {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.vep-results-container.vep-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .vep-search-form,
    .vep-filters {
        grid-template-columns: 1fr;
    }

    /* Pill form collapses to a standard stacked layout on mobile */
    .vep-search-form--pill {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px 16px;
        gap: 8px;
        align-items: stretch;
    }

    .vep-search-divider {
        width: 100%;
        height: 1px;
    }

    .vep-search-field {
        padding: 4px 0;
    }

    .vep-search-field__input {
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .vep-destination-input {
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .vep-search-submit {
        width: 100%;
        height: 44px;
        border-radius: 8px;
        margin-left: 0;
    }

    .vep-date-calendar {
        left: 50%;
        transform: translateX(-50%);
        width: min(360px, calc(100vw - 32px));
        padding: 18px;
    }

    .vep-date-calendar__day,
    .vep-date-calendar__day--empty {
        width: 38px;
        height: 38px;
    }

    .vep-search-submit__text {
        display: inline;
    }

    .vep-pagination {
        gap: 8px;
        flex-wrap: wrap;
    }

    .vep-page-dots {
        font-size: 15px;
    }
}
