/* ================================================
   NEW COMPACT HEADER DESIGN - ADD TO rupiflowtravelweb.css
   ================================================ */

/* ===== TOP NAVIGATION BAR ===== */
.new-top-header {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.new-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height:70px;
}

.new-logo img {
    width:20%;
    height: auto;
}

.new-top-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.new-top-nav div {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.new-top-nav div:hover {
    color: #667eea;
}

/* ===== SERVICE MENU BAR ===== */
.new-service-menu-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /*padding: 12px 0;*/
    position: sticky;
    top: 61px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.new-service-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.new-service-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 0;
}

.new-service-scroll::-webkit-scrollbar {
    display: none;
}

.new-service-item {
    background: rgba(255, 255, 255, 0.95);
    /*padding: 10px 20px;*/
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 85px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

    .new-service-item:hover,
    .new-service-item.active {
        background: #7bd2d4;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .new-service-item.active {
        border: 2px solid #7bd2d4;
    }

.new-service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.new-service-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    text-align: center;
}

.new-scroll-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.new-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.new-scroll-btn:focus {
    outline: none;
}

/* ===== SEARCH FORM BAR ===== */
.new-search-bar {
    background: white;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 134px;
    z-index: 998;
}

.new-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.new-form-group {
    flex: 1;
    min-width: 150px;
}

.new-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.new-form-group input,
.new-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.new-form-group input:focus,
.new-form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.new-form-group .input-wrapper {
    position: relative;
}

.new-form-group .typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.new-form-group .typeahead-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.new-form-group .typeahead-item:hover {
    background: #f5f5f5;
}

.new-swap-btn-wrapper {
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
}

.new-swap-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    color: #666;
}

.new-swap-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg);
}

.new-swap-btn:focus {
    outline: none;
}

.new-date-group {
    flex: 1.2;
}

.new-quick-dates {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.new-quick-date-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.new-quick-date-btn:hover,
.new-quick-date-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.new-quick-date-btn:focus {
    outline: none;
}

.new-search-btn-wrapper {
    display: flex;
    align-items: flex-end;
}

.new-search-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    white-space: nowrap;
}

.new-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.new-search-btn:focus {
    outline: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
    .new-logo img {
        max-width: 180px;
    }
    
    .new-top-nav {
        gap: 20px;
    }
    
    .new-top-nav div {
        font-size: 14px;
    }
    
    .new-service-item {
        min-width: 75px;
        padding: 8px 15px;
    }
    
    .new-service-icon {
        width: 35px;
        height: 35px;
    }
    
    .new-service-label {
        font-size: 12px;
    }
    
    .new-search-form {
        gap: 10px;
    }
    
    .new-form-group {
        min-width: 140px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .new-top-header {
        padding: 10px 0;
    }
    
    .new-header-row {
        flex-wrap: wrap;
    }
    
    .new-logo {
        flex: 0 0 60%;
    }
    
    .new-logo img {
        max-width: 150px;
    }
    
    .new-top-nav {
        flex: 0 0 40%;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .new-top-nav div {
        font-size: 12px;
    }
    
    .new-service-menu-bar {
        top: 58px;
        padding: 10px 0;
    }
    
    .new-service-scroll {
        padding: 2px 0;
    }
    
    .new-service-item {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .new-service-icon {
        width: 32px;
        height: 32px;
    }
    
    .new-service-label {
        font-size: 11px;
    }
    
    .new-scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .new-search-bar {
        top: 118px;
        padding: 15px 0;
    }
    
    .new-search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .new-form-group,
    .new-date-group {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
    }
    
    .new-swap-btn-wrapper {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: -8px 0;
    }
    
    .new-search-btn-wrapper {
        width: 100%;
    }
    
    .new-search-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .new-logo img {
        max-width: 130px;
    }
    
    .new-top-nav {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .new-top-nav div {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .new-service-menu-bar {
        top: 55px;
    }
    
    .new-service-item {
        min-width: 65px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .new-service-icon {
        width: 28px;
        height: 28px;
    }
    
    .new-service-label {
        font-size: 10px;
    }
    
    .new-scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .new-search-bar {
        top: 105px;
        padding: 12px 0;
    }
    
    .new-form-group label {
        font-size: 11px;
    }
    
    .new-form-group input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .new-quick-date-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .new-search-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ===== ADJUST CONTENT SECTION PADDING ===== */
.index-page .content-section:first-of-type {
    padding-top: 30px;
}

/* ===== HIDE OLD HEADER ELEMENTS ON INDEX PAGE ===== */
/*.index-page .idx-nav-card-container,
.index-page .idx-top-header,
.index-page .idx-search-section {
    display: none !important;
}*/
