.td-prototype .topbar{display:flex;justify-content:space-between;align-items:center;margin:12px 0}
.td-prototype .tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.td-prototype .tab{padding:8px 12px;border:1px solid #ddd;border-radius:999px;cursor:pointer}
.td-prototype .tab.active{border-color:#111;font-weight:700}
.td-prototype .section{display:none}
.td-prototype .section.active{display:block}
.td-prototype .grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:900px){.td-prototype .grid{grid-template-columns:1.4fr 0.6fr}}
.td-prototype .card{border:1px solid #eee;border-radius:16px;padding:16px;background:#fff}
.td-prototype .sub{opacity:.75;margin-top:6px}
.td-prototype .debug-box{padding:10px;border:1px dashed #bbb;border-radius:12px;background:#fafafa;margin-top:10px;font-family:monospace}

/* =============================
   Home Search Bar (scoped)
   ============================= */
.td-prototype .home-search-bar-container {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    max-width: 1000px;
    min-width: 240px;
    overflow: hidden;
}

.td-prototype .home-search-inputs-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.td-prototype .home-search-input-fields-group,
.td-prototype .home-search-input-fields-group-date {
    position: relative;
    min-width: 80px;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.td-prototype .home-search-input-field {
    border: none;
    outline: none;
    padding: 8px;
    width: 100%;
    font-size: 16px !important;
    background: transparent;
    text-align: right;
}

.td-prototype .home-search-input-field-date {
    width: 85% !important;
    font-size: 14px !important;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    margin-top: 5px;
}

.td-prototype .home-search-field-icon-date {
    color: #4a6b6b;
    font-size: 14px;
    position: absolute;
    right: 17px;
    cursor: pointer;
}

.td-prototype .home-search-field-icon-img {
    height: 15px;
    width: 15px;
    margin-top: 8px;
}

.td-prototype .home-search-icon-wrapper {
    width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.td-prototype .home-search-input-wrapper-field {
    width: 85%;
}

.td-prototype .home-search-field-icon {
    color: #4a6b6b;
    font-size: 19px !important;
    position: absolute;
}

.td-prototype .home-search-divider {
    width: 5px;
    height: 25px;
    background-color: #ccc;
}

.td-prototype .home-search-orange-btn {
    display: block;
    background-color: #DA7F26;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 19px;
    width: 100%;
    max-width: 140px;
    height: 40px;
    margin: 10px auto 0;
    text-align: center;
    margin-top: -20px;
}

.td-prototype .home-search-orange-btn:hover {
    background-color: #B7691F;
}

.td-prototype .home-search-bar-container .home-search-input-field {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.td-prototype .home-search-bar-container input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    -webkit-appearance: textfield;
}

.td-prototype .home-search-bar-container input[type="number"]::-webkit-outer-spin-button,
.td-prototype .home-search-bar-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.td-prototype .home-search-bar-container input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.td-prototype input[type="date"].readonly-date {
    pointer-events: none;
    background: transparent;
    cursor: pointer;
}

.td-prototype .home-search-add-city-parent {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    max-width: 1000px;
    min-width: 220px;
    margin: auto;
}

.td-prototype .home-search-error-alert-text {
    display: none;
    background: transparent;
    color: red;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding-right: 8px;
    margin-top: -40px;
}

.td-prototype .home-search-error-alert-text.show {
    display: block;
}

.td-prototype .home-search-add-city-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 20px !important;
    cursor: pointer;
}

.td-prototype .home-search-bar-with-cross-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.td-prototype .home-search-bar-cross-icon-btn {
    display: none;
    background: url('https://trips.traveldiv.com/wp-content/uploads/2025/02/close_city_field.png');
    background-size: contain;
    width: 20px;
    height: 20px;
    border: none;
    padding: 0px;
    cursor: pointer;
}

.td-prototype .home-search-bar-cross-icon-btn.show {
    display: block;
}

.td-prototype .home-search-bar-cross-icon-bg {
    background-size: contain;
    width: 20px;
    height: 20px;
    border: none;
    padding: 0;
    margin-top: 16px;
    cursor: pointer;
}

.td-prototype .home-search-bar-cross-fields-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    gap: 10px;
}

.td-prototype .pac-container {
    width: 300px !important;
}

.td-prototype .main-complete-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
}

.td-prototype .main-complete-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: td-spinner-animation 1s linear infinite;
}

@keyframes td-spinner-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .td-prototype .home-search-bar-container {
        flex-direction: column;
        border-radius: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .td-prototype .home-search-input-field-date {
        font-size: 12px !important;
        position: relative;
        right: 0;
        margin-top: 3px !important;
    }

    .td-prototype .home-search-field-icon-img {
        height: 12px;
        width: 12px;
        margin-top: 8px;
    }

    .td-prototype .home-search-inputs-wrapper {
        width: 100%;
    }

    .td-prototype .home-search-input-field {
        font-size: 10px;
        padding-top: 5px !important;
    }

    .td-prototype .home-search-field-icon {
        font-size: 8px;
    }

    .td-prototype .home-search-field-icon-date {
        font-size: 8px;
        right: 10px;
    }

    .td-prototype .home-search-error-alert-text {
        font-size: 11px;
        padding-right: 20px;
    }

    .td-prototype .home-search-add-city-btn {
        font-size: 11px;
        padding-right: 20px;
    }

    .td-prototype .pac-container {
        width: 180px !important;
        margin-left: -80px !important;
    }
}

@media (max-width: 500px) {
    .td-prototype .home-search-input-field-date {
        position: relative;
        right: -2px;
    }

    .td-prototype .home-search-field-icon {
        font-size: 6px;
    }

    .td-prototype .home-search-field-icon-date {
        font-size: 6px;
        right: 4px;
        margin-top: 5px !important;
    }

    .td-prototype .home-search-field-icon-img {
        height: 10px;
        width: 10px;
    }

    .td-prototype .home-search-bar-cross-icon-btn {
        width: 14px;
        height: 14px;
    }

    .td-prototype .home-search-bar-cross-icon-bg {
        width: 14px;
        height: 14px;
        margin-top: 18px;
    }

    .td-prototype .home-search-bar-cross-fields-wrapper {
        gap: 4px;
    }
}
