/* Enhanced Playground Directory Styles */

/* Hero section styles */
.hero.has-background {
    position: relative;
    overflow: hidden;
    /* Ensure hero section has proper stacking context */
    z-index: 1;
}

.hero-background {
    position: absolute;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
}

.has-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Search bar styles */
.search-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Ensure search container has proper stacking context */
    z-index: 1000;
}

.search-container .input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex-grow: 1;
}

.search-container .button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Location search dropdown styles */
.location-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px; /* Account for search button width */
    z-index: 1000;
    margin-top: 2px;
}

.dropdown-list {
    padding: 0;
    margin: 0;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item small {
    color: #666;
    font-weight: normal;
    margin-left: 8px;
}

/* Hide dropdown by default */
.location-search-dropdown.is-hidden {
    display: none;
}

/* Sorting and filtering controls */
.sorting-controls {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.sorting-controls .label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.sorting-controls .select select {
    border-color: #ced4da;
}

.sorting-controls .select select:focus {
    border-color: #4a7dde;
    box-shadow: 0 0 0 0.125em rgba(74, 125, 222, 0.25);
}

/* States and cities list styles */
#states-container {
    margin-bottom: 2rem;
    /* Lower z-index to ensure dropdown appears above */
    position: relative;
    z-index: 1;
}

.menu-list {
    margin-bottom: 0.5rem;
}

.state-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    text-align: center;
    line-height: 22px;
}

.state-toggle.is-active {
    background-color: #e0e0e0;
}

/* Playground cards styles */
#playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.playground-card-wrapper {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.playground-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

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

/* Highlight playground name matches */
.playground-card-wrapper.playground-name-match {
    border: 2px solid #4a7dde;
    border-radius: 8px;
}

.playground-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.playground-content {
    padding: 1.5rem;
}

.playground-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #333;
}

.playground-description p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.playground-address, .playground-hours {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #555;
}

.playground-rating {
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.reviews-count {
    color: #777;
    font-size: 0.9rem;
}

.reviews-link {
    color: #4a7dde;
    text-decoration: underline;
}

/* Equipment list styles */
.equipment-list {
    margin-bottom: 1rem;
}

.equipment-items {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.equipment-items li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.equipment-items .more-items {
    font-style: italic;
    color: #666;
}

.equipment-items .more-items a {
    color: #4a7dde;
    text-decoration: none;
}

.equipment-items .more-items a:hover {
    text-decoration: underline;
}

/* Amenities styles - Grid Layout for City/State Pages */
.amenities-section {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.amenities-heading {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 4px;
    position: relative;
    min-height: 60px;
}

.amenity-block.amenity-yes {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.amenity-block.amenity-no {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.amenity-block.amenity-unknown {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.amenity-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 0.2rem;
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    padding: 1px 3px;
}

.amenity-yes .status-indicator {
    color: #155724;
}

.amenity-no .status-indicator {
    color: #721c24;
}

.amenity-unknown .status-indicator {
    color: #6c757d;
}

/* Enhanced Amenities styles - Individual Playground Page */
.amenity-item-enhanced {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.amenity-item-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.amenity-item-enhanced.amenity-available {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
}

.amenity-item-enhanced.amenity-not-available {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
}

.amenity-item-enhanced.amenity-unknown {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
}

.amenity-item-enhanced .amenity-icon-container {
    margin-right: 12px;
    flex-shrink: 0;
}

.amenity-item-enhanced .amenity-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}

.amenity-item-enhanced .amenity-details {
    flex-grow: 1;
}

.amenity-item-enhanced .amenity-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1rem;
}

.amenity-item-enhanced .amenity-status {
    font-size: 0.9rem;
}

.amenity-item-enhanced.amenity-available .amenity-name,
.amenity-item-enhanced.amenity-available .amenity-status {
    color: #155724 !important;
}

.amenity-item-enhanced.amenity-not-available .amenity-name,
.amenity-item-enhanced.amenity-not-available .amenity-status {
    color: #721c24 !important;
}

.amenity-item-enhanced.amenity-unknown .amenity-name,
.amenity-item-enhanced.amenity-unknown .amenity-status {
    color: #6c757d !important;
}

.amenity-item-enhanced .status-icon {
    font-weight: bold;
    margin-right: 4px;
}

/* View more button */
.view-more {
    text-align: center;
    margin-top: 1rem;
}

/* Social sharing styles */
.playground-sharing {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.social-icons {
    gap: 0.5rem;
}

.social-icons img {
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Send to phone styles */
.send-to-phone {
    margin-top: 0.5rem;
}

.send-to-phone a {
    color: #4a7dde;
    text-decoration: none;
    font-size: 0.9rem;
}

.send-to-phone a:hover {
    text-decoration: underline;
}

.suburb-tag {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suburb-tag:hover {
    opacity: 0.9;
}

.suburb-tag.is-primary {
    background-color: #4a7dde !important;
    color: white !important;
}

/* City selection styles */
.city-selection {
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-selection:hover {
    transform: scale(1.05);
}

.no-details-item:hover {
    background-color: #f1f3f4;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-container .input,
    .search-container .button {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    /* Ensure dropdown is full width on mobile */
    .location-search-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    #playground-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .amenity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sorting-controls {
        padding: 0.75rem;
    }
    
    /* Stack enhanced amenities vertically on small screens */
    .amenity-item-enhanced {
        padding: 8px;
    }
    
    .amenity-item-enhanced .amenity-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .amenity-item-enhanced .amenity-icon-container {
        margin-right: 8px;
    }
}

/* State and City page specific styles */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #b5b5b5;
}

.breadcrumb a {
    color: #4a7dde;
}

.page-title {
    margin-bottom: 1.5rem;
}

/* Level component for title and button alignment */
.level {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-left, .level-right {
    display: flex;
    align-items: center;
}

.level-item {
    margin-right: 1rem;
}

.level-item:last-child {
    margin-right: 0;
}

@media screen and (max-width: 768px) {
    /* Ensure Show All button is prominent on mobile */
    .level-item:first-child .button {
        background-color: #3298dc;
        border-color: #3298dc;
        font-weight: 600;
    }
}

/* Utility classes */
.is-hidden {
    display: none !important;
}

/* Custom button styles for "Best of" buttons */
.button.is-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.button.is-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.button.is-warning .icon {
    margin-right: 0.5rem;
}

/* Enhanced state toggle styles - Add this to styles.css */
.state-container {
    transition: background-color 0.2s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.state-container:hover {
    background-color: #f8f9fa;
}

.state-container.is-expanded {
    background-color: #e3f2fd;
}

.state-link {
    display: inline-block;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 10px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    flex-grow: 1;
}

.state-link:hover {
    background-color: #e8e8e8;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: 1.5rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.city-list.is-hidden {
    display: none;
}

.city-link {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #555;
    text-decoration: none;
}

.city-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Add styles for the no-details section */
.no-details-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.no-details-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 1rem 0;
}

.no-details-item:last-child {
    border-bottom: none;
}

/* Enhanced Search Dropdown Styles */
.location-search-dropdown {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0.5rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search result highlighting */
.dropdown-item strong {
    color: #3273dc;
}

/* Loading state for search */
.dropdown-list.is-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* No results state */
.dropdown-item.no-results {
    font-style: italic;
    color: #999;
    text-align: center;
}

/* Search input focus enhancement */
#search-input:focus + #search-button {
    border-color: #3273dc;
}

/* Responsive search container */
@media screen and (max-width: 768px) {
    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .dropdown-list {
        max-height: 250px;
    }
    
    .dropdown-item {
        padding: 10px 12px;
    }
}

/* Limited Information Cards - Compact Design */
.limited-info-section {
    margin-top: 3rem;
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.limited-info-card {
    margin-bottom: 0.5rem; /* Reduced spacing */
}

.playground-card.limited-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem; /* Reduced padding */
    box-shadow: none;
    height: auto;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.playground-card.limited-info:hover {
    background-color: #e9ecef;
    transform: none; /* No lift effect for limited info */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.limited-info-content {
    width: 100%;
}

.limited-info-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.limited-info-details {
    flex: 1;
    min-width: 250px;
}

.limited-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: #333;
}

.limited-info-address {
    font-size: 0.9rem;
    color: #666;
    line-height: 1;
}

.limited-info-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.limited-info-rating .stars {
    color: #ffc107;
    font-size: 1rem;
}

.limited-info-rating .reviews-count {
    color: #777;
    font-size: 0.85rem;
}

.limited-info-rating .reviews-link {
    color: #4a7dde;
    text-decoration: none;
    font-size: 0.85rem;
}

.limited-info-rating .reviews-link:hover {
    text-decoration: underline;
}

.limited-info-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.limited-info-actions .button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Responsive adjustments for limited info cards */
@media screen and (max-width: 768px) {
    .limited-info-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .limited-info-rating,
    .limited-info-actions {
        justify-content: center;
    }
    
    .limited-info-details {
        text-align: center;
        min-width: auto;
    }
}

.button.is-success {
    background-color: #48c774;
    border-color: #48c774;
}

.button.is-success:hover {
    background-color: #3ec46d;
    border-color: #3abb67;
}

/* Mobile responsive button adjustments */
@media screen and (max-width: 768px) {
    /* Reduce button sizes to 75% */
    .level .button {
        font-size: 0.75rem; /* 75% of normal size */
        padding: 0.375rem 0.75rem; /* 75% of normal padding */
    }
    
    .level .button .icon {
        font-size: 0.75rem;
    }
    
    .level .button span:not(.icon) {
        font-size: 0.75rem;
    }
    
    /* Force horizontal layout with wrapping */
    .level {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .level-item {
        margin-right: 0.5rem !important;
        margin-bottom: 0.5rem;
        flex: 0 0 auto; /* Don't grow or shrink, maintain natural width */
    }
    
    .level-item:last-child {
        margin-right: 0;
    }
    
    /* Ensure buttons don't get too small */
    .level .button {
        min-width: auto;
        white-space: nowrap;
    }
}

/* For very small screens (phones in portrait) */
@media screen and (max-width: 480px) {
    .level .button {
        font-size: 0.7rem; /* Even smaller for very small screens */
        padding: 0.3rem 0.6rem;
    }
    
    .level .button .icon {
        font-size: 0.7rem;
    }
    
    .level .button span:not(.icon) {
        font-size: 0.7rem;
    }
    
    .level-item {
        margin-right: 0.25rem !important;
        margin-bottom: 0.25rem;
    }
}

/* Enhanced responsive adjustments */
@media screen and (max-width: 768px) {
    /* Search container adjustments */
    .search-container {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-container .input,
    .search-container .button {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .location-search-dropdown {
        right: 0; /* Full width on mobile */
    }
    
    /* Playground grid adjustments */
    #playground-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Amenity grid adjustments */
    .amenity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Sorting controls adjustments */
    .sorting-controls .columns {
        margin-bottom: 0;
    }
    
    .sorting-controls .column {
        padding-bottom: 0.75rem;
    }
    
    /* Map adjustments */
    #map {
        height: 300px;
    }
    
    /* Button container - UPDATED for horizontal layout */
    .level {
        flex-direction: row !important; /* Force horizontal */
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .level-left, .level-right {
        justify-content: center;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }
    
    .level-item {
        margin-bottom: 0.5rem;
        margin-right: 0.5rem !important;
    }
    
    /* Ensure buttons are properly sized */
    .level .button {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        min-width: auto;
    }
}

/* Show All button styling */
.button.is-info {
    background-color: #3298dc;
    border-color: #3298dc;
    color: #fff;
}

.button.is-info:hover {
    background-color: #2793da;
    border-color: #2793da;
}

/* Enhanced suburb tags styling */
.suburb-filter {
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.suburb-tag.is-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.suburb-tag.is-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Map container styling */
#map-container {
    margin-bottom: 2rem;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* NEW: Disabled button styling */
.button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.button.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced button tooltips */
.button[title] {
    position: relative;
}

.button[title]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.button[title]:hover:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* CRITICAL FIX: Location Search Dropdown Styles */
.location-search-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    max-height: 300px;
    overflow-y: auto;
    /* CRITICAL: Maximum z-index to appear above everything */
    z-index: 999999 !important;
    /* Will be positioned dynamically via JavaScript */
    min-width: 300px;
}

.location-search-dropdown.is-hidden {
    display: none;
}

.dropdown-item.is-active {
    background-color: #4a7dde;
    color: white;
}

.state-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Section positioning adjustments */
.section {
    position: relative;
    /* Lower z-index for regular sections */
    z-index: 1;
}

/* Ensure all hero content appears above sections but below dropdown */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Map container styles */
#map-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Amenities styles */
.playground-amenities {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.amenities-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.amenity {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.amenity .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: bold;
}

.amenity.is-available .icon {
    background-color: #48c774;
    color: white;
}

.amenity.not-available .icon {
    background-color: #f14668;
    color: white;
}

.amenity.unknown .icon {
    background-color: #afafaf;
    color: white;
}

/* Suburb filter styles */
.suburb-filter {
    margin-bottom: 1rem;
}

.is-hidden {
    display: none !important;
}

/* Additional styles for dropdown interaction */
.search-container:focus-within {
    z-index: 1001;
}

.search-container .input:focus {
    position: relative;
    z-index: 1001;
}

/* Ensure breadcrumb and other navigation elements don't interfere */
.breadcrumb {
    position: relative;
    z-index: 1;
}

/* Footer positioning */
.footer {
    position: relative;
    z-index: 1;
}