/* Murray Bridge Business Directory Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Background Elements */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.bg-decoration::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.bg-decoration::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Glass Container */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.header .stats {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Search Section */
.search-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.search-container {
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-select {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select option {
    background: #333;
    color: white;
}

.filter-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.open-now-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(25px);
}

/* Results Header */
.results-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    color: white;
    text-align: center;
}

.results-count {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.results-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Business Grid */
.business-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.business-card {
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #4ecdc4);
    border-radius: 20px 20px 0 0;
}

.business-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.business-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.business-info h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.business-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.business-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.detail-item i {
    color: #4ecdc4;
    width: 16px;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 1rem;
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.business-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.action-btn.primary:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
}

/* Status Indicators */
.status-open {
    color: #4ecdc4;
    font-weight: 600;
}

.status-closed {
    color: #ff6b6b;
    font-weight: 600;
}

/* Add Business Section */
.add-business-section {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.add-business-card {
    padding: 3rem 2rem;
}

.add-business-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.add-business-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.add-business-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-business-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Business Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.business-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.modal-overlay.active .business-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-business-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-category {
    color: #ffa500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-content {
    padding: 2rem;
}

.modal-photo-gallery {
    margin-bottom: 2rem;
}

.modal-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-photo {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.modal-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-info-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-contact-item i {
    color: #4ecdc4;
    width: 20px;
    font-size: 1.1rem;
}

.modal-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

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

.modal-day {
    font-weight: 500;
}

.modal-time {
    color: rgba(255, 255, 255, 0.8);
}

.modal-time.closed {
    color: #ff6b6b;
    font-weight: 600;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.modal-rating-stars {
    display: flex;
    gap: 3px;
}

.modal-rating-stars .star {
    color: #ffd700;
    font-size: 1.5rem;
}

.modal-rating-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-rating-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 2rem 2rem;
}

.modal-action-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-action-btn.call {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.modal-action-btn.directions {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
}

.modal-action-btn.website {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.modal-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .business-modal {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-business-name {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-photos {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
    }

    .modal-action-btn {
        min-width: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .filters {
        justify-content: center;
    }

    .business-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .business-details {
        grid-template-columns: 1fr;
    }

    .business-actions {
        flex-direction: column;
    }

    .category-filters {
        justify-content: center;
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}