/* Apply box-sizing */
.oasis-inventory *,
.oasis-inventory *::before,
.oasis-inventory *::after {
    box-sizing: border-box;
}
/* Main Gallery Container */
.oasis-inventory {
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
    font-family: sans-serif;
    background-color: #1a1a1a;
}
/* Filter Styles */
.filter-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1a1a1a;
    border: 2px solid #F9A643;
    border-radius: 8px;
}
.filter-section {
    margin-bottom: 20px;
}
.filter-section:last-child {
     margin-bottom: 0;
}
.filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
}
.project-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-button {
    min-width: 120px;
    height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-width: 2px;
    border-style: solid;
    border-color: #ccc;
    border-radius: 20px;
    padding: 10px;
    background-color: #fff;
    color: #555;
    margin: 0;
    cursor: pointer;
    white-space: normal;
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    box-shadow: none;
}
.filter-button:hover {
    background-color: #00A1C6;
    border-color: #F9A643;
    color: #F9A643;
    border-radius: 20px;
    box-shadow: none;
}
.filter-button:active {
    text-shadow: none;
    transform: scale(0.97);
    color: #00A1C6;
    border-radius: 20px;
}
/* Active Filter Button Style */
.filter-button.active {
    background-color: #00A1C6;
    color: #F9A643;
    border-color: #F9A643;
    font-weight: 600;
    box-shadow: none;
    border-radius: 20px;
}
/* Clear Button Style */
.clear-button {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #00A1C6;
    color: #F9A643;
    border-color: #F9A643;
    border-radius: 20px;
}
.clear-button:hover {
    background-color: #00A1C6;
    border-color: #F9A643;
    color: #F9A643;
    border-radius: 20px;
}
/* Gallery Grid Styles */
.oasis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    min-height: 150px;
}
/* Loading Indicator */
.loading-indicator {
    grid-column: 1 / -1;
    display: none;
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 1.1em;
}
.loading-text {
    font-style: italic;
}
/* Individual Gallery Item Styles */
.oasis-item {
    display: block;
    position: relative;
    overflow: hidden;
    border: 2px solid #F9A643;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background-color: #eee;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    font-size: 0;
}
.oasis-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
}
.oasis-item .oasis-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .3s ease, filter 0.3s ease;
}
.oasis-item:hover .oasis-item-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}
.oasis-title {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 8px 10px 4px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    z-index: 2;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    box-sizing: border-box;
}
/* Price element styles - badge in top-right corner (matches AWS gallery) */
.oasis-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 161, 198, 0.95); /* Teal badge */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    user-select: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect - brighten on parent hover */
.oasis-item:hover .oasis-price {
    background: rgba(0, 161, 198, 1); /* Solid teal on hover */
    transform: scale(1.05);
}
/* Gradient background behind title */
.oasis-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}
/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1.1em;
}
/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
    color: #fff;
}
.pagination-button {
    padding: 8px 16px;
    border: 2px solid #F9A643;
    background-color: #00A1C6;
    color: #F9A643;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    font-size: 14px;
    font-weight: 600;
}
.pagination-button:hover:not(:disabled) {
    background-color: #00A1C6;
    border-color: #F9A643;
    color: #F9A643;
    transform: scale(0.97);
}
.pagination-button:disabled {
    background-color: #1a1a1a;
    color: #888;
    border-color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}
.pagination-info {
    font-size: 0.95em;
    color: #fff;
    padding: 0 10px;
}
/* Oasis Item Navigation Styles */
.oasis-item-navigation {
    margin: 40px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.oasis-item-navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}
.oasis-item-navigation .nav-previous,
.oasis-item-navigation .nav-back,
.oasis-item-navigation .nav-next {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    text-align: center;
}
.oasis-item-navigation .nav-links a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #00A1C6;
    color: #fff;
    border: 2px solid #F9A643;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
}
.oasis-item-navigation .nav-links a:hover {
    background-color: #007a99;
    border-color: #F9A643;
    color: #fff;
}
.oasis-item-navigation .nav-back a.back-to-inventory {
    background-color: #555;
    border-color: #888;
}
.oasis-item-navigation .nav-back a.back-to-inventory:hover {
    background-color: #333;
    border-color: #F9A643;
}
@media (max-width: 600px) {
    .oasis-item-navigation .nav-links {
        gap: 10px;
    }
}
