/* ─────────────────────────────────────────────────────────────────────────────
   Tour Engine Search Widget — tpsw.css  v1.9.0
   Modified for Rentals only
───────────────────────────────────────────────────────────────────────────── */
.tpsw-wrap {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    contain: layout;
    background: transparent;
    border: none;
}

.tpsw-wrap *,
.tpsw-wrap *::before,
.tpsw-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Outer wrapper ───────────────────────────────────────────────────────── */
.tpsw-wrap {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
}

/* ── Tab nav row ─────────────────────────────────────────────────────────── */
.tpsw-tabs {
    display: flex;
    gap: 4px;
    padding: 0 0 0 2px;
    background: transparent;
    border: none;
    align-items: flex-end;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Title */
.tpsw-title {
    display: block;
    margin-left: 0 !important;
    font-size: 12px;
    font-weight: 700;
    color: #0d1b2a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 6px;
    white-space: nowrap;
    align-self: flex-end;
    position: relative;
    z-index: 10;
    visibility: visible;
}

/* All tab states locked */
.tpsw-tab,
.tpsw-tab:hover,
.tpsw-tab:focus,
.tpsw-tab:active,
.tpsw-tab:visited {
    flex: 0 0 auto;
    padding: 6px 20px;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    outline: none;
    transition: none !important;
    -webkit-transition: none !important;
    text-decoration: none;
    line-height: 1.4;
    position: relative;
}

/* Rentals — navy */
.tpsw-tab--rentals,
.tpsw-tab--rentals:hover,
.tpsw-tab--rentals:focus,
.tpsw-tab--rentals:active {
    background: #0d1b2a !important;
    color: #ffffff !important;
}
.tpsw-tab--rentals.tpsw-tab--active,
.tpsw-tab--rentals.tpsw-tab--active:hover {
    color: #2ec4b6 !important;
}

/* ── White card below tabs ───────────────────────────────────────────────── */
.tpsw-card {
    background: #ffffff;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 16px rgba(13, 27, 42, 0.10);
    padding: 12px 16px;
}

/* ── Panels ──────────────────────────────────────────────────────────────── */
.tpsw-panel { display: none; }
.tpsw-panel--active { display: block; }

/* ── Field hint ──────────────────────────────────────────────────────────── */
.tpsw-field-hint {
    display: block;
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    color: #6b8ea6;
    letter-spacing: 0.01em;
    margin-bottom: 1px;
}
.tpsw-field-hint--invisible { visibility: hidden; }

/* ── Labels ──────────────────────────────────────────────────────────────── */
.tpsw-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d1b2a;
    margin-bottom: 3px;
}

/* ── Wide layout ─────────────────────────────────────────────────────────── */
.tpsw-wide .tpsw-fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
}
.tpsw-wide .tpsw-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}
.tpsw-wide .tpsw-field--location { flex: 2 1 0; }
.tpsw-wide .tpsw-field--category { flex: 2 1 0; }
.tpsw-wide .tpsw-field--dates    { flex: 1.2 1 0; }
.tpsw-wide .tpsw-field--dates-to { flex: 1.2 1 0; }
.tpsw-wide .tpsw-field--submit   { flex: 0 0 auto; }

/* ── Sidebar layout ──────────────────────────────────────────────────────── */
.tpsw-sidebar .tpsw-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tpsw-sidebar .tpsw-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.tpsw-sidebar .tpsw-field--submit { margin-top: 2px; }
.tpsw-sidebar .tpsw-field-hint--invisible { display: none; }


/* ── Inputs & Selects ────────────────────────────────────────────────────── */
.tpsw-input,
.tpsw-select {
    width: 100%;
    padding: 0 10px;
    background: #f4f7fa;
    border: 1px solid #c5d4df;
    border-radius: 4px;
    color: #0d1b2a;
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    height: 32px;
}
.tpsw-input::placeholder { color: #9ab0bf; }
.tpsw-input:focus,
.tpsw-select:focus {
    border-color: #2ec4b6;
    background: #ffffff;
    outline: none;
}
.tpsw-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230d1b2a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-color: #f4f7fa;
    padding-right: 26px;
    cursor: pointer;
}
.tpsw-select:focus { background-color: #ffffff; }
.tpsw-select option { background: #ffffff; color: #0d1b2a; }
.tpsw-select option.tpsw-child-location,
.tpsw-select option.tpsw-child-cat { color: #4a6f88; }

.tpsw-date::-webkit-calendar-picker-indicator {
    filter: invert(55%) sepia(60%) saturate(500%) hue-rotate(140deg);
    cursor: pointer;
    opacity: 0.7;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.tpsw-btn,
.tpsw-btn:hover,
.tpsw-btn:focus,
.tpsw-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    height: 32px;
    background: #0d1b2a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: none !important;
    white-space: nowrap;
    width: 100%;
    text-decoration: none;
}
.tpsw-btn:active { opacity: 0.9; }
.tpsw-btn svg { flex-shrink: 0; }

.tpsw-reset-link {
    display: block;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 3px;
    color: inherit;
}
/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tpsw-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    .tpsw-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
    .tpsw-wide .tpsw-fields {
        flex-wrap: wrap;
    }
    .tpsw-wide .tpsw-field {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
    .tpsw-wide .tpsw-field--submit {
        flex: 1 1 100%;
    }
    .tpsw-field-hint--invisible { display: none;
    }
}


.tpsw-title { 
    margin-left: 0 !important; 
}
.tpsw-tab { order: 1; 
}
.tpsw-title { order: 2; 
}
/* ── ACTIVE TAB (clear, visible state) ───────────── */

/* ── ACTIVE TAB 3D (keep original colors) ───────────── */

.tpsw-tab {
    position: relative;
    z-index: 1;
}

/* make active tab come forward WITHOUT changing its color rules */
.tpsw-tab--active {
    z-index: 10;
    transform: translateY(-2px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.18);
}

/* IMPORTANT: do NOT override background or color */
.tpsw-tab--active.tpsw-tab--rentals {
    /* intentionally empty — preserves your existing colors */
}
.tpsw-tabs {
    padding-top: 4px;
}

.tpsw-tab--active {
    margin-top: -2px;
}
