#frontpage-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-frontpage {
    position: relative;
    text-align: center;
}

#front-image-bar {
    height: 10px;
    background-color: #AC5512;
}

#hero-frontpage-overlay {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

#hero-frontpage-overlay h1 {
    margin: 0px 0px 5px 0px;
    color: white; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0px 0px 20px rgba(0,0,0,0.6);
}

#hero-frontpage-overlay p {
    margin: 0px;
}

/* Query Search Buttons */
.query-search {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.query-search button {
    background-color: rgb(222, 222, 222);
    margin-right: 10px;
    border-radius: 10px;
    border: 0.5;
    height: 100px;
    width: 100px;
    text-decoration: none;
    color: black;
}

.query-search button:hover {
    background-color: rgb(198, 198, 198);
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.query-search button img {
    width: 70%;
}

.advanced-filter-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #AC5512, #8a4510);
    color: white;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(172,85,18,0.2);
    transition: transform 160ms ease, box-shadow 160ms ease;
    font-family: 'Inter', sans-serif;
}

.advanced-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(172,85,18,0.3);
}

/* Filter Buttons */
.filter-btn-design {
    background-color: #AC5512;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border: none;
}

.filter-btn-design:hover {
    background-color: #8a4510;
}

.filter-btn.active {
    background-color: #FFB366 !important;
    border: 2px solid #FF8C1A !important;
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.4) !important;
}

.filter-btn-design.active {
    background-color: #8B4410;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(172,85,18,0.4);
}

.filter-btn-design:hover {
    background-color: #8B4410;
    transform: translateY(-2px);
}

/* DSE Buttons (Filter Options)*/
.dse-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.dse-btns label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background-color: #fff;
    color: #555;
    border-radius: 999px;
    border: 1.5px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.dse-btns input[type="radio"] {
    display: none;
}

.dse-btns input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #AC5512, #8a4510);
    color: #fff;
    border-color: #AC5512;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(172,85,18,0.22);
}

.dse-btns label:hover {
    background-color: #fff5ed;
    border-color: #AC5512;
    transform: translateY(-1px);
}

.title-p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0px 0px 12px rgba(0,0,0,0.8);
    font-weight: 400;
}

/* Reset Search Button */
.reset-search-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#reset-search-btn {
    background-color: #AC5512;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#reset-search-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#reset-search-btn p {
    margin: 0;
    font-weight: 500;
}

/* Animal Adoption Section */
.animal-adoption {
    color: #AC5512;
    margin-top: 150px;
    text-align: center;
    transition: margin 150ms ease;
}

.filter-open {
    margin-top: 180px;
}


/* Age Slider*/
.age-slider {
    width: 100%;
    max-width: 100%;
    border: none;
    margin-top: 0;
}

.drange {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    margin: 8px 0;
}

.drange input[type="range"] {
    position: absolute;
    width: calc(100% - 80px);
    left: 40px;
    pointer-events: none;
    appearance: none;
    background: none;
}

.drange input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #AC5512, #8a4510);
    cursor: grab;
    box-shadow: 0 4px 12px rgba(172,85,18,0.3);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.drange input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(172,85,18,0.4);
}

.drange input[type=range]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.drange input[type=range]::-moz-range-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #AC5512, #8a4510);
    cursor: grab;
    box-shadow: 0 4px 12px rgba(172,85,18,0.3);
}

.drange input[type=range]:focus {
    outline: none;
}

/* CUSTOM TRACK */
.drange input[type=range]:first-child::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #e0e0e0, #c0c0c0);
    border-radius: 10px;
}

.drange input[type=range]:first-child::-moz-range-track {
    background: linear-gradient(to right, #e0e0e0, #c0c0c0);
    border-radius: 10px;
}

.drange input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 10px;
}

.drange input[type=range]::-moz-range-track {
    height: 8px;
    border-radius: 10px;
}

.drange input[type=range]::-webkit-slider-thumb {
    margin-top: -7px;
}

/* MIN/MAX VALUE BADGES */
.drange .dmin,
.drange .dmax {
    position: absolute;
    bottom: -2px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
}

.drange .dmin {
    left: 0;
}

.drange .dmax {
    right: 0;
}

/* Responsive adjustments for form */
@media (max-width: 640px) {
    .filter-fieldsets {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detailed-search-form {
        padding: 24px 20px;
        width: 94%;
    }
    
    .close-detailed-search {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }
}