/* =========================================
   PREMIUM HEADER & FOOTER STYLES
   ========================================= */

/* --- HEADER --- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.site-header .navbar-brand img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    transition: transform 0.3s;
}

.site-header .navbar-brand:hover img {
    transform: scale(1.05);
}

.site-header .nav-link {
    font-weight: 600;
    color: #222;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #313D8D;
    /* Primary Brand Color */
}

/* Underline effect for nav links */
.site-header .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #313D8D;
    transition: width 0.3s;
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 100%;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #F8F9FA;
    color: #555;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid #eee;
}

.site-footer h5 {
    color: #222;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.site-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 10px;
}

.site-footer a:hover {
    color: #313D8D;
    padding-left: 5px;
    /* Slight nudge effect */
}

.site-footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    color: #313D8D;
}

.site-footer .social-icons a:hover {
    background: #313D8D;
    color: #fff;
    transform: translateY(-3px);
}

.site-footer .copyright {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* --- SEARCH BAR (AIRBNB STYLE) --- */
.search-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.search-bar {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 40px;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 66px;
    position: relative;
    transition: box-shadow 0.2s;
}

.search-bar:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.search-segment {
    flex: 1;
    padding: 14px 24px;
    border-radius: 40px;
    transition: background 0.2s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-segment:hover {
    background: #f7f7f7;
}

.search-segment::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #ddd;
}

.search-segment:last-of-type::after {
    display: none;
}

/* Remove divider on hover to keep it clean */
.search-segment:hover::after,
.search-segment:hover+.search-segment::after {
    display: none;
}

.search-segment label {
    font-size: 12px;
    font-weight: 800;
    color: #000;
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.search-segment input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: #666;
    outline: none;
    padding: 0;
    text-overflow: ellipsis;
}

.search-segment input::placeholder {
    color: #666;
}

/* Hide default date indicators/spinners to look cleaner */
.search-segment input[type="date"]::-webkit-inner-spin-button,
.search-segment input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.search-btn-container {
    padding: 8px;
    display: flex;
    align-items: center;
}

.search-btn {
    background: #FF385C;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
}

.search-btn:hover {
    background: #E31C5F;
    transform: scale(1.05);
}

/* Mobile Stack */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        padding: 10px;
    }

    .search-segment {
        border-radius: 10px;
        margin-bottom: 5px;
        width: 100%;
        border-right: none;
    }

    .search-segment::after {
        display: none;
    }

    .search-btn-container {
        width: 100%;
        justify-content: center;
    }

    .search-btn {
        width: 100%;
        border-radius: 10px;
    }
}