/* =============================================================
   Toofan Search Filter Widget — Pixel-Perfect Styles
   ============================================================= */

/* ── CSS Custom Properties ── */
.ttk-search-widget {
    --ttk-primary: #0f70a7;
    --ttk-primary-hover: #0b5783;
    --ttk-primary-shadow: rgba(15, 112, 167, 0.35);
    --ttk-text-dark: #333333;
    --ttk-text-medium: #666666;
    --ttk-text-light: #999999;
    --ttk-text-placeholder: #AAAAAA;
    --ttk-bg-white: #FFFFFF;
    --ttk-bg-light: #F9FAFB;
    --ttk-border-color: #E8E8E8;
    --ttk-card-radius: 16px;
    --ttk-btn-radius: 30px;
    --ttk-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --ttk-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --ttk-shadow-btn: 0 6px 20px rgba(15, 112, 167, 0.35);
    --ttk-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ttk-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
.ttk-search-widget,
.ttk-search-widget *,
.ttk-search-widget *::before,
.ttk-search-widget *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ttk-search-widget {
    font-family: var(--ttk-font);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}
.ttk-swap-btn svg {
    top: 8px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}
.ttk-popular__tags button {
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 400!important;
    color: var(--ttk-text-medium)!important;
    background: var(--ttk-bg-white)!important;
    border: 1px solid var(--ttk-border-color)!important;
    border-radius: 20px!important;
}

/* ── Search Card Container ── */
.ttk-search-card {
    background: var(--ttk-bg-white);
    border-radius: var(--ttk-card-radius);
    box-shadow: var(--ttk-shadow);
    overflow: visible !important;
    position: relative;
    padding-top: 28px;
    padding-bottom: 45px;
    margin-top: 32px;
}

/* =============================================================
   TAB NAVIGATION (FLOATING OVER TOP EDGE)
   ============================================================= */
.ttk-tabs-nav-wrapper {
    display: flex;
    justify-content: center;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: auto;
}

.ttk-tabs-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 6px 14px !important;
    position: relative;
    z-index: 30;
    border: 1px solid #f0f0f0;
}

/* ── Single Tab Button Reset ── */
.ttk-tab,
.ttk-search-widget button.ttk-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 18px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    position: relative;
    transition: all var(--ttk-transition);
    outline: none !important;
    box-shadow: none !important;
    min-width: 70px;
    margin: 0 !important;
}

.ttk-tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: all var(--ttk-transition);
}

.ttk-tab__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: filter var(--ttk-transition);
}

.ttk-tab__icon svg {
    width: 22px;
    height: 22px;
    transition: fill var(--ttk-transition), color var(--ttk-transition);
    fill: none;
    stroke: currentColor;
}

.ttk-tab__label {
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    white-space: nowrap;
    transition: color var(--ttk-transition);
    line-height: 1.2;
}

/* ── Active Tab ── */
.ttk-tab--active,
.ttk-search-widget button.ttk-tab.ttk-tab--active {
    background: transparent !important;
    background-color: transparent !important;
}

.ttk-tab--active .ttk-tab__label {
    color: var(--ttk-primary) !important;
    font-weight: 600 !important;
}

.ttk-tab--active .ttk-tab__icon svg {
    stroke: var(--ttk-primary) !important;
    color: var(--ttk-primary) !important;
}

.ttk-tab--active .ttk-tab__icon img {
    filter: none;
}

.ttk-tab:not(.ttk-tab--active) .ttk-tab__icon svg {
    stroke: #777777 !important;
    color: #777777 !important;
}

.ttk-tab:not(.ttk-tab--active) .ttk-tab__icon img {
    filter: grayscale(100%) opacity(0.6);
}

/* Hover */
.ttk-tab:hover:not(.ttk-tab--active) .ttk-tab__label {
    color: var(--ttk-text-dark);
}

.ttk-tab:hover:not(.ttk-tab--active) .ttk-tab__icon svg {
    stroke: var(--ttk-text-dark) !important;
    color: var(--ttk-text-dark) !important;
}

/* =============================================================
   TAB PANELS
   ============================================================= */
.ttk-panels-wrapper {
    padding: 0 24px;
}

.ttk-panel {
    display: none;
}

.ttk-panel--active {
    display: block;
    animation: ttkFadeIn 0.3s ease;
}

@keyframes ttkFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   SUB-TABS (Flights: One Way / Round Trip / Multi City)
   ============================================================= */
.ttk-sub-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 4px;
    border-bottom: none;
    margin-bottom: 8px;
}

.ttk-sub-tab,
.ttk-search-widget button.ttk-sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555555 !important;
    padding: 4px 0 !important;
    position: relative;
    transition: color var(--ttk-transition);
    outline: none !important;
    font-family: var(--ttk-font);
    margin: 0 !important;
}

.ttk-sub-tab svg {
    flex-shrink: 0;
    stroke: currentColor;
    color: currentColor;
}

.ttk-sub-tab--active,
.ttk-search-widget button.ttk-sub-tab.ttk-sub-tab--active {
    color: var(--ttk-primary) !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.ttk-sub-tab--active svg {
    stroke: var(--ttk-primary) !important;
    color: var(--ttk-primary) !important;
}

.ttk-sub-tab:hover:not(.ttk-sub-tab--active) {
    color: var(--ttk-text-dark);
}

/* =============================================================
   FIELDS ROW
   ============================================================= */
.ttk-fields-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ttk-border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
    background: var(--ttk-bg-white);
    position: relative;
}

/* ── Single Field ── */
.ttk-field {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border-left: 1px solid var(--ttk-border-color);
    position: relative;
    min-width: 0;
    transition: background-color var(--ttk-transition);
}

.ttk-field:first-child {
    border-left: none;
}

/* Accent (orange left border) */
.ttk-field--accent {
    border-left: 3px solid var(--ttk-primary) !important;
}

/* Full width field */
.ttk-field--full {
    flex: 1 1 100%;
}

/* Focus/hover state */
.ttk-field:hover {
    background-color: var(--ttk-bg-light);
}

.ttk-field:focus-within {
    background-color: #FFF8F5;
}

/* ── Field Label ── */
.ttk-field__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ttk-text-light);
    text-transform: none;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* ── Field Input (text, number, date, select) ── */
.ttk-field__input {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ttk-text-dark) !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-family: var(--ttk-font) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
    background: transparent;
    outline: none;
    width: 100%;
    padding: 2px 0;
    line-height: 1.3;
    font-family: var(--ttk-font);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ttk-field__input::placeholder {
    color: var(--ttk-text-placeholder);
    font-weight: 400;
    font-size: 15px;
}

.ttk-field__input:focus {
    cursor: text;
}

/* Number input styling */
.ttk-field__input--number {
    width: auto;
    max-width: 32px;
    text-align: left;
    -moz-appearance: textfield;
    font-size: 17px;
}

.ttk-field__input--number::-webkit-inner-spin-button,
.ttk-field__input--number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Select input styling */
.ttk-field__input--select {
    font-size: 17px;
    font-weight: 600;
    color: var(--ttk-text-dark);
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 14px;
}

.ttk-field__input--select option {
    font-weight: 400;
    font-size: 14px;
}

/* Date input */
.ttk-field--date .ttk-field__input {
    font-size: 15px;
    font-weight: 400;
    color: var(--ttk-text-placeholder);
}

.ttk-field--date .ttk-field__input:valid,
.ttk-field--date .ttk-field__input:not([value=""]) {
    font-weight: 600;
    color: var(--ttk-text-dark);
}

/* ── Combo field (number + suffix) ── */
.ttk-field__combo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ttk-field__combo-suffix {
    font-size: 17px;
    font-weight: 600;
    color: var(--ttk-text-dark);
}

/* ── Hidden select for class ── */
.ttk-field__select-hidden {
    position: absolute;
    bottom: 10px;
    left: 18px;
    font-size: 11px;
    color: var(--ttk-text-light);
    border: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    font-family: var(--ttk-font);
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ── Field Hint / Subtitle ── */
.ttk-field__hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--ttk-text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ttk-field__hint--class {
    cursor: pointer;
    text-decoration: none;
    transition: color var(--ttk-transition);
}

.ttk-field__hint--class:hover {
    color: var(--ttk-primary);
}

/* ── Inline label (secondary row) ── */
.ttk-field__label-inline {
    font-size: 13px;
    font-weight: 600;
    color: var(--ttk-text-dark);
    margin-bottom: 8px;
    display: block;
}

/* =============================================================
   SWAP BUTTON (From ⇄ To)
   ============================================================= */
.ttk-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ttk-border-color);
    background: var(--ttk-bg-white);
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transition: all var(--ttk-transition);
    padding: 0;
    /* Position between From and To fields */
}

/* We position swap btn between the 1st and 2nd field */
.ttk-fields-row .ttk-swap-btn {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 -16px;
    align-self: center;
    flex-shrink: 0;
    z-index: 5;
    border: 1px solid var(--ttk-border-color);
    background: var(--ttk-bg-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ttk-swap-btn svg {
    color: var(--ttk-text-medium);
    transition: color var(--ttk-transition), transform var(--ttk-transition);
}

.ttk-swap-btn:hover {
    border-color: var(--ttk-primary);
    background: #FFF5F0;
}

.ttk-swap-btn:hover svg {
    color: var(--ttk-primary);
}

.ttk-swap-btn:active svg {
    transform: rotate(180deg);
}

/* =============================================================
   SECONDARY FIELDS ROW (Airlines + Fare Type)
   ============================================================= */
.ttk-fields-row--secondary {
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-top: 16px;
    background: none;
    gap: 20px;
}

.ttk-fields-row--secondary .ttk-field {
    border-left: none;
    border: none;
    padding: 0;
    background: none;
}

.ttk-fields-row--secondary .ttk-field:hover {
    background: none;
}

.ttk-fields-row--secondary .ttk-field--airlines {
    flex: 1;
}

.ttk-fields-row--secondary .ttk-field--fare-type {
    flex: 1;
}

/* Airlines text input */
.ttk-field--airlines .ttk-field__input--sm {
    font-size: 13px;
    font-weight: 400;
    color: var(--ttk-text-dark);
    border: 1px solid var(--ttk-border-color);
    border-radius: 6px;
    padding: 8px 12px;
    background: var(--ttk-bg-white);
    width: 100%;
    max-width: 240px;
}

.ttk-field--airlines .ttk-field__input--sm::placeholder {
    color: var(--ttk-text-placeholder);
    font-size: 13px;
}

.ttk-field--airlines .ttk-field__input--sm:focus {
    border-color: var(--ttk-primary);
    box-shadow: 0 0 0 2px rgba(242, 106, 62, 0.1);
}

/* =============================================================
   FARE TYPE TOGGLE
   ============================================================= */
.ttk-toggle-group {
    display: inline-flex;
    border: 1px solid var(--ttk-border-color);
    border-radius: 6px;
    overflow: hidden;
}

.ttk-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ttk-text-medium);
    cursor: pointer;
    transition: all var(--ttk-transition);
    position: relative;
    margin: 0;
    border-right: 1px solid var(--ttk-border-color);
    user-select: none;
}

.ttk-toggle:last-child {
    border-right: none;
}

.ttk-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ttk-toggle--active {
    color: var(--ttk-primary);
    border-color: var(--ttk-primary);
    background: #FFF5F0;
    font-weight: 600;
}

.ttk-toggle:hover:not(.ttk-toggle--active) {
    background: var(--ttk-bg-light);
    color: var(--ttk-text-dark);
}

/* =============================================================
   MOST POPULAR TAGS (Holidays tab)
   ============================================================= */
.ttk-popular {
    padding: 14px 4px 4px;
}

.ttk-popular__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ttk-text-dark);
    display: block;
    margin-bottom: 10px;
}

.ttk-popular__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ttk-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ttk-text-medium);
    background: var(--ttk-bg-white);
    border: 1px solid var(--ttk-border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--ttk-transition);
    font-family: var(--ttk-font);
    white-space: nowrap;
}

.ttk-tag:hover {
    border-color: var(--ttk-primary);
    color: var(--ttk-primary);
    background: #FFF5F0;
}

.ttk-tag:active,
.ttk-tag--active {
    border-color: var(--ttk-primary);
    color: var(--ttk-bg-white);
    background: var(--ttk-primary);
}

/* =============================================================
   SEARCH BUTTON (FLOATING OVER BOTTOM EDGE)
   ============================================================= */
.ttk-search-action {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.ttk-search-btn,
.ttk-search-widget button.ttk-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 180px !important;
    padding: 12px 52px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: var(--ttk-primary) !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all var(--ttk-transition) !important;
    box-shadow: 0 6px 20px rgba(15, 112, 167, 0.4) !important;
    font-family: var(--ttk-font) !important;
    letter-spacing: 0.02em !important;
    outline: none !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.ttk-search-btn:hover,
.ttk-search-widget button.ttk-search-btn:hover {
    background: var(--ttk-primary-hover) !important;
    box-shadow: 0 8px 25px rgba(15, 112, 167, 0.5) !important;
    transform: translateY(-1px) !important;
}

.ttk-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(242, 106, 62, 0.3);
}

/* =============================================================
   CONDITIONAL FIELDS (Return field for One Way)
   ============================================================= */
.ttk-field--return[data-conditional="round_trip"] {
    transition: opacity var(--ttk-transition), max-width var(--ttk-transition);
}

.ttk-field--return.ttk-field--hidden {
    opacity: 0.4;
    pointer-events: none;
}

/* =============================================================
   RESPONSIVE — TABLET (max-width: 768px)
   ============================================================= */
@media (max-width: 768px) {
    .ttk-search-widget {
        max-width: 100%;
        padding: 0 12px;
    }

    .ttk-search-card {
        border-radius: 12px;
        padding-bottom: 24px;
    }

    .ttk-tabs-nav {
        padding: 10px 4px;
        gap: 0;
        border-radius: 0 0 10px 10px;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ttk-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .ttk-tab {
        padding: 6px 14px;
        min-width: 60px;
    }

    .ttk-tab__icon img,
    .ttk-tab__icon svg {
        width: 20px;
        height: 20px;
    }

    .ttk-tab__label {
        font-size: 11px;
    }

    .ttk-panels-wrapper {
        padding: 0 14px;
    }

    /* Stack fields vertically on tablet */
    .ttk-fields-row {
        flex-direction: column;
        border-radius: 10px;
    }

    .ttk-field {
        border-left: none !important;
        border-top: 1px solid var(--ttk-border-color);
        padding: 12px 16px;
    }

    .ttk-field:first-child {
        border-top: none;
    }

    .ttk-field--accent {
        border-left: 3px solid var(--ttk-primary) !important;
        border-top: none;
    }

    /* Swap button for mobile */
    .ttk-fields-row .ttk-swap-btn {
        align-self: center;
        margin: -12px 0;
        position: relative;
        z-index: 5;
    }

    /* Sub-tabs scroll */
    .ttk-sub-tabs {
        gap: 16px;
        padding: 14px 4px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ttk-sub-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Secondary row stack */
    .ttk-fields-row--secondary {
        flex-direction: column;
        gap: 14px;
        margin-top: 14px;
    }

    .ttk-field--airlines .ttk-field__input--sm {
        max-width: 100%;
    }

    /* Tags wrap */
    .ttk-popular__tags {
        gap: 6px;
    }

    .ttk-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Search Button */
    .ttk-search-action {
        padding: 16px 14px 0;
    }

    .ttk-search-btn {
        width: 100%;
        padding: 13px 40px;
        font-size: 16px;
    }
}

/* =============================================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ============================================================= */
@media (max-width: 480px) {
    .ttk-search-widget {
        padding: 0 8px;
    }

    .ttk-search-card {
        border-radius: 10px;
        padding-bottom: 20px;
    }

    .ttk-tabs-nav-wrapper {
        padding: 0;
    }

    .ttk-tabs-nav {
        border-radius: 0 0 8px 8px;
        padding: 8px 2px;
    }

    .ttk-tab {
        padding: 5px 10px;
        gap: 4px;
        min-width: 50px;
    }

    .ttk-tab__icon img,
    .ttk-tab__icon svg {
        width: 18px;
        height: 18px;
    }

    .ttk-tab__label {
        font-size: 10px;
    }

    .ttk-panels-wrapper {
        padding: 0 10px;
    }

    .ttk-field {
        padding: 10px 14px;
    }

    .ttk-field__label {
        font-size: 10px;
    }

    .ttk-field__input {
        font-size: 15px;
    }

    .ttk-field__hint {
        font-size: 10px;
    }

    .ttk-sub-tab {
        font-size: 12px;
        gap: 4px;
    }

    .ttk-sub-tab svg {
        width: 12px;
        height: 12px;
    }

    .ttk-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ttk-popular__title {
        font-size: 13px;
    }

    .ttk-field__combo-suffix {
        font-size: 15px;
    }
}

/* =============================================================
   RESPONSIVE — LARGE DESKTOP (min-width: 769px AND max-width: 1024px)
   ============================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .ttk-search-widget {
        max-width: 100%;
    }

    .ttk-field {
        padding: 12px 14px;
    }

    .ttk-field__input {
        font-size: 15px;
    }

    .ttk-field__combo-suffix {
        font-size: 15px;
    }

    .ttk-tab {
        padding: 8px 16px;
    }
}

/* =============================================================
   ELEMENTOR EDITOR PREVIEW FIXES
   ============================================================= */
.elementor-editor-active .ttk-search-widget {
    pointer-events: auto;
}

.elementor-editor-active .ttk-field__input,
.elementor-editor-active .ttk-field__input--select {
    pointer-events: none;
}

.elementor-editor-active .ttk-tab,
.elementor-editor-active .ttk-sub-tab {
    pointer-events: auto;
}

/* =============================================================
   AJAX AUTOCOMPLETE STYLES
   ============================================================= */
.ttk-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--ttk-border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
    opacity: 0;
    animation: ttkDropdownFade 0.2s ease forwards;
}

@keyframes ttkDropdownFade {
    to { opacity: 1; }
}

.ttk-autocomplete-option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ttk-text-dark);
    cursor: pointer;
    transition: background-color var(--ttk-transition), color var(--ttk-transition);
    border-bottom: 1px solid var(--ttk-border-color);
}

.ttk-autocomplete-option:last-child {
    border-bottom: none;
}

.ttk-autocomplete-option:hover {
    background-color: rgba(15, 112, 167, 0.08);
    color: var(--ttk-primary);
}

.ttk-loading {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_P7sC%7Btransform-origin:center;animation:spinner_svv2 .75s infinite linear%7D@keyframes spinner_svv2%7B100%25%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z' class='spinner_P7sC' fill='%230f70a7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
}

/* =============================================================
   SEARCH RESULTS PAGE STYLES (MATCHING IMAGE 4)
   ============================================================= */
.ttk-search-page-container {
    width: 100%;
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--ttk-font);
    box-sizing: border-box;
}

.ttk-search-page-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ttk-search-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ttk-sidebar-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ttk-sidebar-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.ttk-sidebar-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.ttk-sidebar-input:focus {
    border-color: #0f70a7;
}

.ttk-sidebar-btn {
    width: 100%;
    background: #0f70a7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.ttk-sidebar-btn:hover {
    background: #0b5783;
}

.ttk-sidebar-btn--small {
    width: auto;
    padding: 6px 18px;
    margin-top: 10px;
}

.ttk-sidebar-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.ttk-chevron {
    font-size: 10px;
    color: #94a3b8;
}

.ttk-filter-list {
    display: flex;
    flex-direction: column;
}

.ttk-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 10px;
    cursor: pointer;
}

.ttk-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f70a7;
}

.ttk-count {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
}

.ttk-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.ttk-price-slider-box {
    margin-top: 14px;
}

.ttk-price-values {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.ttk-range-input {
    width: 100%;
    accent-color: #0f70a7;
}

.ttk-show-more {
    color: #0f70a7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.ttk-show-more:hover {
    text-decoration: underline;
}

.ttk-search-main {
    flex-grow: 1;
}

.ttk-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ttk-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ttk-view-switchers {
    display: flex;
    gap: 8px;
}

.ttk-view-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.ttk-view-btn--active,
.ttk-view-btn:hover {
    color: #0f70a7;
    border-color: #0f70a7;
    background: rgba(15, 112, 167, 0.05);
}

.ttk-sort-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.ttk-sort-tab,
.ttk-search-page-container button.ttk-sort-tab {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s !important;
    margin: 0 !important;
}

.ttk-sort-tab--active,
.ttk-search-page-container button.ttk-sort-tab.ttk-sort-tab--active {
    color: #0f70a7 !important;
    border-bottom-color: #0f70a7 !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.ttk-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .ttk-search-page-inner {
        flex-direction: column;
    }
    .ttk-search-sidebar {
        width: 100%;
    }
    .ttk-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ttk-results-grid {
        grid-template-columns: 1fr;
    }
}

.ttk-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ttk-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ttk-card-image-wrap {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.ttk-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ttk-card-location-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ttk-card-body {
    padding: 16px;
}

.ttk-card-stars {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 6px;
}

.ttk-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ttk-card-title a {
    color: inherit;
    text-decoration: none;
}

.ttk-card-title a:hover {
    color: #0f70a7;
}

.ttk-card-rating-badge {
    display: inline-block;
    background: #0f70a7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ttk-rating-count {
    background: none;
    color: #64748b;
    font-weight: 400;
    font-size: 11px;
    margin-left: 4px;
}

.ttk-card-price {
    font-size: 13px;
    color: #475569;
}

.ttk-card-price strong {
    font-size: 16px;
    color: #0f70a7;
}

.ttk-results-footer-summary {
    margin-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
/* =============================================================
   Toofan result grid/card redesign only
   Replace CSS from ".ttk-results-grid" through ".ttk-card-price strong".
   Do not remove sidebar/header/sort/footer CSS.
   ============================================================= */

.ttk-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ttk-card-item {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 160px;
    gap: 18px;
    align-items: stretch;
    min-height: 152px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ttk-card-item:hover {
    transform: translateY(-1px);
    border-color: #0d75a854;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ttk-card-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 124px;
    overflow: hidden;
    border-radius: 7px;
    background: #eef2f6;
    text-decoration: none;
}

.ttk-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ttk-card-item:hover .ttk-card-image-wrap img {
    transform: scale(1.035);
}

.ttk-no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 124px;
    color: #94a3b8;
}

.ttk-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0 0;
}

.ttk-card-title {
    margin: 0 0 7px;
    color: #2f3541;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
}

.ttk-card-title a {
    color: inherit;
    text-decoration: none;
}

.ttk-card-title a:hover {
    color: #0D75A8;
}

.ttk-card-location-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #626a77;
    font-size: 13px;
    line-height: 1.35;
}

.ttk-card-location-row svg {
    flex: 0 0 auto;
    color: #626a77;
}

.ttk-card-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(95px, max-content));
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 22px;
    color: #626a77;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.ttk-card-feature {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    white-space: nowrap;
}

.ttk-card-feature svg {
    flex: 0 0 auto;
    color: #606874;
}

.ttk-card-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding-left: 18px;
    border-left: 1px dashed #e5e7eb;
    text-align: right;
}

.ttk-card-price {
    color: #2f3541;
    font-size: 13px;
    line-height: 1.15;
}

.ttk-card-price strong {
    display: block;
    color: #2f3541;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.ttk-card-price span {
    display: block;
    margin-top: 2px;
    color: #747b87;
    font-size: 12px;
}

.ttk-card-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 36px;
    padding: 10px 16px;
    color: #ffffff !important;
    background: #0D75A8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ttk-card-details-btn:hover,
.ttk-card-details-btn:focus {
    color: #ffffff !important;
    background: #f05235;
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .ttk-results-grid {
        grid-template-columns: 1fr;
    }

    .ttk-card-item {
        grid-template-columns: 220px minmax(0, 1fr) 150px;
    }
}

@media (max-width: 760px) {
    .ttk-card-item {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 14px;
    }

    .ttk-card-price-box {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 13px 0 0;
        border-left: 0;
        border-top: 1px dashed #e5e7eb;
        text-align: left;
    }

    .ttk-card-features {
        grid-template-columns: repeat(2, minmax(95px, max-content));
        padding-top: 18px;
    }
}

@media (max-width: 560px) {
    .ttk-card-item {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ttk-card-image-wrap {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .ttk-card-title {
        font-size: 17px;
    }

    .ttk-card-features {
        grid-template-columns: 1fr 1fr;
        gap: 7px 10px;
        padding-top: 16px;
    }

    .ttk-card-feature {
        white-space: normal;
    }
}

@media (max-width: 390px) {
    .ttk-card-price-box {
        align-items: stretch;
        flex-direction: column;
    }

    .ttk-card-details-btn {
        width: 100%;
    }
}
div#page {
    background: #147dfe2b;
}

form#ttkFilterForm div {
    margin-bottom: 10px;
}

/* 04-08-26 */

