.navbar-custom {
    background-color: var(--primary-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 76px;
    transition: transform 0.28s ease;
    will-change: transform;
}

@media (max-width: 768px) {
    .navbar-custom.navbar-scroll-hidden {
        transform: translateY(calc(-100% - 8px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-custom {
        transition: none;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.6rem;
    color: white !important;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-icon {
    color: var(--brand-orange);
    font-size: 1.8rem;
    transform: rotate(-10deg); /* Slight tilt like the image */
}

/* --- New Search Bar (Desktop) --- */
.search-pill {
    background-color: white;
    border-radius: 50px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.search-location-btn {
    background: none;
    border: none;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.search-location-btn i {
    font-size: 0.8rem;
    color: #666;
}

.search-divider {
    width: 1px;
    height: 24px;
    background-color: #ffdcb8; 
    border-right: 1px solid var(--brand-orange);
    margin-right: 12px;
}

.search-pill .search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 0;
    padding-right: 8px;
}

.search-input-field {
    flex: 1 1 auto;
    display: block;
    border: none;
    outline: none;
    width: 100%;
    font-weight: 500;
    color: #333;
    background: transparent;
    min-width: 0;
    padding-left: 0;
}

.search-pill .search-btn {
    border: none;
    background: var(--brand-orange, #ff7a45);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

.search-input-field::placeholder {
    color: #444;
}

/* .search-pill .chip-container {
    position: static;
    left: auto;
    display: flex;
    flex: 0 1 auto;
    gap: 8px;
    margin-bottom: 0;
    min-height: 0;
    max-width: 100%;
} */

.search-pill .chip-container:empty {
    display: none;
}

.search-pill .chip-location {
    max-width: 100%;
}

.search-pill .placeholder-slider {
    left: 0;
    right: 0;
    font-size: 15px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 400;
    margin-right: 15px;
}

.btn-post-property {
    background-color: white;
    color: #333;
    border-radius: 50px;
    padding: 4px 4px 4px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-post-property:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #333;
}

.badge-free {
    background-color: #20c997;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-icon {
    color: white;
    font-size: 1.4rem;
    margin-left: 30px;
    cursor: pointer;
}

.hamburger-icon {
    color: white;
    font-size: 1.4rem;
    margin-left: 15px;
    cursor: pointer;
}


/* --- Mobile Slide-Up Menu (Offcanvas Bottom) --- */
.offcanvas-bottom-rounded {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    height: auto !important;
    max-height: 85vh;
    border: none;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background-color: #dee2e6;
    border-radius: 10px;
    margin: 10px auto 20px auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-menu-item i {
    width: 30px;
    color: var(--primary-color);
}



/* --- Profile Offcanvas Styles --- */

.profile-offcanvas {
    width: 300px;
}

.profile-header-section {
    position: relative;
    height: 140px;
    background: linear-gradient(180deg, #6a70d8 0%, #5359b4 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.profile-avatar-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px;
    background: white;
    border-radius: 50%;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0; /* The grey placeholder color */
    border-radius: 50%;
    /* If adding an image later:
    background-image: url('user.jpg');
    background-size: cover; */
}

.profile-menu{
    padding-left: 7px;
}

.profile-menu li:not(:last-child){
    border-bottom: 1px solid #e0e0e0;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 0;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: background-color 0.2s;
    font-size: 14px;
    border-radius: 8px;
}

.profile-link:hover {
    background-color: #f8f9fa;
}

.profile-link .icon-circle {
    width: 25px;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;

}

.profile-link.text-danger {
    color: #ff6b6b !important;
}


@media (max-width: 768px) {

  .navbar-custom{
    padding: 0.6rem 0.5rem;
  }

  .btn-text{
    font-size: 0.8rem;
  }

  .badge-free {
    padding: 4px 8px;
    font-size: 0.6rem;
  }

  .btn-post-property{
    gap: 5px;
  }

  .navbar-brand img{
    height: 28px !important;
  }
}

@media(min-width: 1250px){
  .search-pill{
    max-width: 750px;
    margin-left: 40px !important;
  }
}