/* Hero Section */
.browse-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 100%;
}
input.filter-input, .filter-select {
    margin-bottom: 0px;
}
.browse-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.browse-hero .container {
    position: relative;
    z-index: 1;
}
.browse-hero h1 {
    font-size: 42px;
    color: var(--white);
    font-weight: 700;
}
.browse-hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* Filters Section */
.browse-filters {
    margin-top: 80px;
    background: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
}
.filters-wrapper {
    display: flex;
    flex-wrap: nowrap; /* no wrapping on desktop */
    gap: 15px;
    align-items: center;
}
/* Button stays its size */
.filter-btn {
    flex: 0 0 auto;
}
/* Inputs and selects should take automatic width */
.filter-input, .filter-select {
    flex: 1 1 auto;
}

.filter-input, .filter-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    outline: none;
    font-size: 16px;
    background: var(--white);
}
.filter-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.filter-btn:hover {
    background: var(--primary-hover);
}

/* Load Cards */
section.browse-loads {
    padding-left: 0px;
    padding-right: 0px;
}
.loads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Premium Load Card Style */
.load-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-card::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--primary-light) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    z-index: 0;
}
a.btn-book:hover {
    color: white;
    text-decoration: none;
}
.load-card:hover::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at bottom right, var(--primary-color) 0%, transparent 30%);
    bottom: -20%;
    right: -20%;
    z-index: 0;
}

.load-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.load-card .load-header, 
.load-card .load-body, 
.load-card .load-footer {
    position: relative;
    z-index: 1;
}

/* Header */
.load-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.load-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-gray);
}

.load-status {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.load-status.available {
    background-color: var(--success-color);
}

.load-status.booked {
    background-color: var(--accent-color);
}

/* Body */
.load-body p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Footer Button */
.btn-book {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-book:hover {
    background: var(--primary-hover);
}

.btn-book.disabled {
    background: var(--gray);
    pointer-events: none;
}


.filters-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select,
.dropdown-toggle,
.filter-btn {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-dropdown {
    position: relative;
    min-width: 280px;
}

.dropdown-toggle {
    width: 100%;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    float: right;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    z-index: 999;
}
button.dropdown-toggle {
    background: transparent;
    width: 100%;
}
select.filter-select {
    flex: 50%;
}
select.filter-select {
    font-family: 'Montserrat';
}
button.dropdown-toggle {
    font-family: 'Montserrat';
}
button.filter-btn {
    font-family: 'Montserrat';
}
.dropdown-menu input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
	margin-bottom:0px;
}
	.dropdown-menu label {
    display: flex;
}
.dropdown-menu strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 13px;
    color: #0073aa;
}

.dropdown-menu label {
    display: block;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn {
    background: #0073aa;
    color: #fff;
    cursor: pointer;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .loads-grid {
        grid-template-columns: 1fr 1fr;
    }
    section.browse-filters {
    margin-top: 40px;
    margin: 10px;
    margin-top: 40px;
    margin-bottom: 5px;
}
section.browse-loads {
    padding-top: 30px;
}
    .filters-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .filter-input, .filter-select, .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .loads-grid {
        grid-template-columns: 1fr;
    }
}

