/* ===========================================
   LAKE CHARLES BIZ HIVE - BUSINESS PROFILE STYLES
   Extends home.css with business page styles
   =========================================== */

/* --- BUSINESS HERO --- */
.business-hero {
    position: relative;
    height: 300px;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.business-hero.no-banner {
    height: 200px;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.3), rgba(0, 51, 102, 0.8));
}

.business-hero .container {
    position: relative;
    z-index: 10;
}

.business-hero .breadcrumbs {
    color: var(--white);
}

.business-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.business-hero .breadcrumbs a:hover {
    color: var(--white);
}

.business-hero .breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    font-size: 0.7rem;
}

.business-hero .breadcrumbs .current {
    color: var(--white);
}

/* --- BUSINESS MAIN --- */
.business-main {
    padding: 40px 0 60px;
    background: var(--bg-light);
    min-height: 50vh;
}

/* --- BUSINESS LAYOUT --- */
.business-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* --- BUSINESS CONTENT (Left Column) --- */
.business-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- BUSINESS HEADER CARD --- */
.business-header-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.business-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.business-header-card h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-top: 8px;
    line-height: 1.3;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.premium {
    background: var(--accent);
    color: var(--white);
}

.tier-badge.growth {
    background: var(--primary);
    color: var(--white);
}

/* --- CATEGORY TAGS --- */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- QUICK INFO --- */
.business-quick-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-quick-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.business-quick-info i {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.business-quick-info a {
    color: var(--primary);
}

.business-quick-info a:hover {
    color: var(--accent);
}

/* --- BUSINESS SECTIONS --- */
.business-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.business-section h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-section h2 i {
    color: var(--primary);
}

/* --- PHOTO GALLERY --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.map-placeholder p {
    margin: 0;
}

.map-placeholder .map-coords {
    font-size: 0.8rem;
    margin-top: 10px;
    color: var(--text-light);
}

/* --- SIDEBAR --- */
.business-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- SIDEBAR CARDS --- */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: var(--primary);
}

/* --- HOURS LIST --- */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.hours-row .day {
    color: var(--text-dark);
    font-weight: 500;
}

.hours-row .time {
    color: var(--text-muted);
}

.hours-row.today {
    background: rgba(255, 153, 0, 0.1);
    margin: 0 -20px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.hours-row.today .day {
    color: var(--accent);
}

.today-badge {
    font-size: 0.65rem;
    background: var(--accent);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- CONTACT ACTIONS --- */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-actions .btn {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- SHARE BUTTONS --- */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: var(--text-muted);
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* --- BACK LINK --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 0;
}

.back-link:hover {
    color: var(--accent);
}

.back-link i {
    transition: transform 0.3s;
}

.back-link:hover i {
    transform: translateX(-5px);
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet - 768px and up */
@media (min-width: 768px) {
    .business-hero {
        height: 350px;
    }

    .business-header-card h1 {
        font-size: 2.2rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - 992px and up */
@media (min-width: 992px) {
    .business-layout {
        grid-template-columns: 2fr 1fr;
    }

    .business-hero {
        height: 400px;
    }

    .business-header-card {
        margin-top: -100px;
    }

    .photo-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================================
   LIGHTBOX MODAL
   =========================================== */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10000;
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(245, 158, 11, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
}

/* Gallery item enhanced hover effect */
.photo-gallery .gallery-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}