/**
 * Business Profile Page - v4.0
 * 3-column layout: Photos | Main | Sidebar
 * Mobile-first responsive design
 */

/* Google Font for business names - Playfair Display: elegant, classic serif */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

/* ============================================
   PAGE CONTAINER
   ============================================ */
.business-profile-page.v4 {
    background: var(--bg-gray-50, #f9fafb);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* ============================================
   3-COLUMN LAYOUT (Desktop)
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .profile-layout {
        grid-template-columns: 280px 1fr;
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 1200px) {
    .profile-layout {
        grid-template-columns: 280px 1fr 300px;
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* Hide mobile header on desktop */
    .mobile-header {
        display: none;
    }
}

/* ============================================
   LEFT COLUMN: PHOTOS
   ============================================ */
.profile-photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Logo */
.photo-logo {
    text-align: center;
}

.business-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Logo shape variants */
.photo-logo.logo-shape-round .business-logo,
.photo-logo.logo-shape-round .logo-placeholder {
    border-radius: 50%;
}

.photo-logo.logo-shape-square .business-logo,
.photo-logo.logo-shape-square .logo-placeholder {
    border-radius: 12px;
}

.photo-logo.logo-shape-wide {
    max-width: 280px;
}

.photo-logo.logo-shape-wide .business-logo {
    max-width: 280px;
    border-radius: 8px;
}

.photo-logo.logo-shape-wide .logo-placeholder {
    max-width: 280px;
    aspect-ratio: 3 / 1;
    font-size: 2.5rem;
    border-radius: 8px;
}

.logo-placeholder {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary, #6b46c1), var(--primary-hover, #805ad5));
    color: var(--bg-white, #ffffff);
    font-size: 4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto;
}

/* BA Sliders Section - imported from gallery-sliders.css */
/* See gallery-sliders.css for main slider styles */

/* Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
}

/* With sliders: always 3 columns */
.photo-gallery-grid.with-sliders {
    grid-template-columns: repeat(3, 1fr);
}

/* Handle 1-6 thumbs: 3 columns for 3+ items */
.photo-gallery-grid.thumbs-1 { grid-template-columns: 1fr; }
.photo-gallery-grid.thumbs-2 { grid-template-columns: repeat(2, 1fr); }
.photo-gallery-grid.thumbs-3,
.photo-gallery-grid.thumbs-4,
.photo-gallery-grid.thumbs-5,
.photo-gallery-grid.thumbs-6 { 
    grid-template-columns: repeat(3, 1fr); 
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

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

.gallery-thumb.more-photos {
    background: linear-gradient(135deg, var(--text-secondary, #4a5568), var(--text-primary, #2d3748));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white, #ffffff);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-view-photos {
    width: 100%;
}

/* ============================================
   MAIN COLUMN
   ============================================ */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin: 0 0 1rem 0;
}

.profile-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin: 1rem 0 0.5rem 0;
}

/* Business Header */
.business-header-section {
    padding: 1.5rem;
}

.business-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.business-title-row h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1a202c);
    margin: 0;
    letter-spacing: 0;
    line-height: 1.2;
}

.business-name-link {
    color: inherit;
    text-decoration: none;
}

.business-name-link:hover {
    color: var(--primary, #6b46c1);
}

.business-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.category-badge {
    background: linear-gradient(135deg, var(--primary, #6b46c1), var(--primary-hover, #805ad5));
    color: var(--bg-white, #ffffff);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, #4a5568);
}

.rating-text {
    font-size: 0.9rem;
}

/* Quick Actions (Mobile) */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .quick-actions {
        display: none;
    }
}

/* About Section */
.business-description {
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    margin: 0;
}

.business-description.text-muted {
    color: var(--text-tertiary, #a0aec0);
    font-style: italic;
}

.highlights {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #2d3748);
}

.highlight-list li svg {
    color: var(--color-success, #48bb78);
    flex-shrink: 0;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

.service-tags .tag {
    background: var(--bg-gray-50, #f9fafb);
    border: 1px solid var(--border-gray, #e2e8f0);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary, #4a5568);
}

.service-tags .tag.primary {
    background: linear-gradient(135deg, var(--primary, #6b46c1), var(--primary-hover, #805ad5));
    border: none;
    color: var(--bg-white, #ffffff);
    font-weight: 500;
}

/* Services Offered Section */
.services-offered {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

.services-offered h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #4a5568);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-chip {
    display: inline-block;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-gray, #e2e8f0);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary, #2d3748);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.service-chip:hover {
    background: var(--bg-gray-50, #f9fafb);
    border-color: var(--primary-light, #c4b5fd);
}

/* Contact & Hours Grid */
.contact-hours-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .contact-hours-section {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-column h2,
.hours-column h2 {
    font-size: 1.125rem;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    color: var(--primary, #6b46c1);
    flex-shrink: 0;
    width: 24px;
    display: flex;
    justify-content: center;
}

.contact-item a {
    color: var(--text-primary, #2d3748);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary, #6b46c1);
}

/* Verification Links */
.verification-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

.verify-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--primary, #6b46c1);
    text-decoration: none;
}

.verify-link:hover {
    text-decoration: underline;
}

/* Business Hours */
.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hours-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-gray-100, #f3f4f6);
}

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

.hours-row .day {
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    min-width: 36px;
}

.hours-row .time {
    color: var(--text-secondary, #4a5568);
}

.hours-row.closed {
    opacity: 0.6;
}

.hours-row.closed .time {
    color: var(--text-tertiary, #a0aec0);
    font-style: italic;
}

/* Reviews Section */
.reviews-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.reviews-header h2 {
    margin: 0;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--ott-accent, #f6ad55);
    font-weight: 600;
}

.review-summary .count {
    color: var(--text-muted, #718096);
    font-weight: 400;
}

.reviews-header .btn {
    margin-left: auto;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    padding: 1rem;
    background: var(--bg-gray-50, #f9fafb);
    border-radius: 8px;
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

.review-date {
    color: var(--text-tertiary, #a0aec0);
    font-size: 0.8rem;
    margin-left: auto;
}

.review-text {
    margin: 0;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}

.no-reviews {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary, #a0aec0);
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #4a5568);
    margin: 0 0 1rem 0;
}

/* Website Button */
.website-card {
    padding: 1.25rem;
}

.website-intro {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary, #4a5568);
}

.website-link {
    color: var(--primary, #6b46c1);
    font-weight: 600;
    text-decoration: none;
}

.website-link:hover {
    color: var(--primary-hover, #805ad5);
    text-decoration: underline;
}

/* Badges */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Credentials */
.credential-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #2d3748);
}

.credential svg {
    color: var(--color-success, #48bb78);
}

/* ========== STATS CARD ========== */
.stats-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--text-primary, #2d3748);
    line-height: 1.4;
}

.stat-item svg {
    flex-shrink: 0;
    color: var(--text-muted, #718096);
}

.stat-new-contractor {
    color: var(--primary, #6b46c1);
    font-weight: 600;
}

.stat-new-contractor svg {
    color: var(--ott-accent, #f6ad55);
}

.stat-tenure svg {
    color: var(--primary, #6b46c1);
}

.stat-activity svg {
    color: var(--color-success, #48bb78);
}

.stat-response-time svg {
    color: var(--color-info, #4299e1);
}

.stat-credential svg {
    color: var(--color-success, #48bb78);
}

.stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

/* ========== PROFILE MESSAGES CARD ========== */
.messages-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.messages-card h3 svg {
    color: var(--ott-accent, #f6ad55);
}

.profile-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-message {
    padding: 0.75rem;
    background: var(--bg-gray-50, #f7fafc);
    border-radius: 8px;
    border-left: 3px solid var(--primary, #6b46c1);
}

.profile-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary, #2d3748);
}

/* Connect Section */
.connect-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-gray-50, #f9fafb);
    border-radius: 8px;
    color: var(--text-primary, #2d3748);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.connect-link:hover {
    background: var(--bg-gray-100, #f3f4f6);
    color: var(--primary, #6b46c1);
}

.connect-link svg {
    color: var(--primary, #6b46c1);
}

/* ============================================
   UNCLAIMED BANNER
   ============================================ */
.unclaimed-banner {
    background: linear-gradient(135deg, var(--ott-accent, #f6ad55), var(--ott-accent-hover, #ed8936));
    padding: 2rem 0;
    margin-top: 2rem;
}

.banner-content {
    text-align: center;
    color: var(--bg-white, #ffffff);
}

.banner-content h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.banner-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.banner-content .btn {
    background: var(--bg-white, #ffffff);
    color: var(--ott-accent-hover, #ed8936);
    font-weight: 600;
}

.banner-content .btn:hover {
    background: var(--bg-gray-50, #f9fafb);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transform-origin: center center;
}

/* Card deck swipe animations */
.lightbox-image.slide-out-left {
    animation: slideOutLeft 0.15s ease-in forwards;
}

.lightbox-image.slide-out-right {
    animation: slideOutRight 0.15s ease-in forwards;
}

.lightbox-image.slide-in {
    animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-80px) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(80px) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideIn {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
    transition: opacity 0.15s ease-out;
}

.lightbox-caption.fade-out {
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-close:hover {
    opacity: 0.8;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

/* ============================================
   HEADER BUSINESS LINK
   ============================================ */
.header-business-link {
    display: none;
}

@media (min-width: 768px) {
    .header-business-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        flex: 1;
        text-align: center;
        font-size: 0.875rem;
        color: var(--text-secondary, #4a5568);
    }
    
    .header-business-link .visit-text {
        color: var(--text-muted, #718096);
    }
    
    .header-business-link svg {
        color: var(--text-tertiary, #a0aec0);
        margin-left: 0.25rem;
    }
}

.business-website-btn {
    color: var(--primary, #6b46c1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.business-website-btn:hover {
    color: var(--primary-hover, #805ad5);
    text-decoration: underline;
}

/* ============================================
   PAGE-SPECIFIC BUTTON VARIANTS
   ============================================ */
.btn-claim {
    background: linear-gradient(135deg, var(--ott-accent, #f6ad55), var(--ott-accent-hover, #ed8936));
    color: var(--bg-white, #ffffff);
}

.btn-claim:hover {
    background: linear-gradient(135deg, var(--ott-accent-hover, #ed8936), var(--ott-accent-dark, #dd6b20));
}

/* ============================================
   UTILITY
   ============================================ */
.text-muted {
    color: var(--text-tertiary, #a0aec0);
}

.star-filled {
    color: var(--ott-accent, #f6ad55);
}

/* ============================================
   BA SLIDERS LABEL
   ============================================ */
.ba-sliders-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin: 0 0 0.75rem;
}

.ba-sliders-label svg {
    color: var(--primary, #6b46c1);
}

.ba-sliders-label .label-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted, #718096);
    margin-left: auto;
}

/* ============================================
   MOBILE HEADER (separate from grid)
   ============================================ */
.mobile-header {
    display: none;
}

/* ============================================
   CALL & WEBSITE BUTTONS
   ============================================ */
.btn-call {
    background: linear-gradient(135deg, var(--color-success, #48bb78), var(--color-success-dark, #38a169));
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-call:hover {
    background: linear-gradient(135deg, var(--color-success-dark, #38a169), #2f855a);
    color: white;
}

.btn-website {
    background: var(--bg-white, #ffffff);
    color: var(--primary, #6b46c1);
    border: 2px solid var(--primary, #6b46c1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-website:hover {
    background: var(--primary, #6b46c1);
    color: white;
}

/* ============================================
   HOURS TIME FORMAT TOGGLE
   ============================================ */
.time-compact {
    display: none;
}

/* ============================================
   FLOATING CALL BUTTON (Mobile)
   ============================================ */
.floating-call-btn {
    display: none;
}

/* ============================================
   TABLET VIEW (768px - 1199px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Hide mobile header on tablet */
    .mobile-header {
        display: none;
    }
    
    /* Tablet: 2 columns - left sidebar + main, right sidebar below left */
    .profile-layout {
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "photos main"
            "sidebar main";
    }
    
    .profile-photos {
        grid-area: photos;
    }
    
    .profile-main {
        grid-area: main;
        grid-row: 1 / -1;
    }
    
    .profile-sidebar {
        grid-area: sidebar;
    }
    
    /* Compact time format on tablet */
    .time-full {
        display: none;
    }
    .time-compact {
        display: inline;
    }
    
    /* Slightly smaller quick action buttons */
    .quick-actions .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   MOBILE VIEW (< 768px)
   ============================================ */
@media (max-width: 767px) {
    /* Show mobile header - sticky below main site header */
    .mobile-header {
        display: block;
        background: var(--bg-white, #ffffff);
        padding: 0.75rem 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        position: sticky;
        top: 56px; /* Below main site header */
        z-index: 99; /* Below main header z-index of 1000 */
        transition: padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
    }
    
    /* Compact state when scrolled */
    .mobile-header.compact {
        padding: 0.375rem 0;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }
    
    .mobile-header-inner {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: gap 0.3s ease;
    }
    
    .mobile-header.compact .mobile-header-inner {
        gap: 0.5rem;
    }
    
    .mobile-logo {
        flex-shrink: 0;
    }
    
    .mobile-logo .business-logo {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        object-fit: cover;
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .mobile-header.compact .mobile-logo .business-logo {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .mobile-logo.logo-shape-round .business-logo {
        border-radius: 50%;
    }
    
    .mobile-logo .logo-placeholder {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        background: var(--primary, #6b46c1);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 700;
        transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
    }
    
    .mobile-header.compact .mobile-logo .logo-placeholder {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    .mobile-header-info {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-business-name {
        font-family: 'Playfair Display', serif;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary, #2d3748);
        margin: 0 0 0.25rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: font-size 0.3s ease, margin 0.3s ease;
    }
    
    .mobile-header.compact .mobile-business-name {
        font-size: 1rem;
        margin: 0;
    }
    
    .mobile-business-name a {
        color: inherit;
        text-decoration: none;
    }
    
    .mobile-category {
        display: inline-block;
        background: var(--primary, #6b46c1);
        color: white;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 1;
        max-height: 1.5rem;
        overflow: hidden;
        transition: opacity 0.2s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
        margin-bottom: 0.25rem;
    }
    
    .mobile-header.compact .mobile-category {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
    }
    
    .mobile-rating {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.85rem;
        color: var(--text-secondary, #4a5568);
        text-decoration: none;
        transition: font-size 0.3s ease;
    }
    
    .mobile-rating:hover {
        color: var(--primary, #6b46c1);
    }
    
    .mobile-header.compact .mobile-rating {
        font-size: 0.8rem;
    }
    
    .mobile-rating .star-rating svg {
        width: 14px;
        height: 14px;
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .mobile-header.compact .mobile-rating .star-rating svg {
        width: 12px;
        height: 12px;
    }
    
    .mobile-rating .rating-count {
        color: var(--text-muted, #718096);
        font-size: 0.75rem;
    }
    
    /* Hide logo in left sidebar on mobile (shown in mobile header) */
    .profile-photos .photo-logo {
        display: none;
    }
    
    /* Show photos/gallery section on mobile */
    .profile-photos {
        order: 3;
    }
    
    /* Single column layout */
    .profile-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem 1rem;
    }
    
    /* Reorder content using flexbox order */
    .profile-main {
        order: 4;
    }
    
    .profile-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Hide duplicate info in main section */
    .business-header-section .business-title-row h1,
    .business-header-section .category-badge,
    .business-header-section .rating-display {
        display: none;
    }
    
    /* Compact time format on mobile */
    .time-full {
        display: none;
    }
    .time-compact {
        display: inline;
    }
    
    /* Contact & Hours - single column on mobile, hours below contact */
    .contact-hours-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-column h2,
    .hours-column h2 {
        font-size: 1rem;
    }
    
    /* Hide inline Call/Website buttons (using floating button) */
    .quick-actions .btn-call,
    .quick-actions .btn-website {
        display: none;
    }
    
    /* Show only Claim button if present */
    .quick-actions .btn-claim {
        display: inline-flex;
    }
    
    /* Smaller sidebar cards */
    .sidebar-card {
        padding: 1rem;
    }
    
    /* Hide View Full Size button on mobile - slider is already full width */
    .slider-fullsize-btn {
        display: none;
    }
    
    /* Show floating call button - small corner style */
    .floating-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        background: linear-gradient(135deg, var(--color-success, #48bb78), var(--color-success-dark, #38a169));
        color: white;
        padding: 0.75rem 1rem;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
        z-index: 1000;
        animation: floatBtnBounce 0.5s ease-out;
    }
    
    .floating-call-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .floating-call-btn:hover,
    .floating-call-btn:active {
        background: linear-gradient(135deg, var(--color-success-dark, #38a169), #2f855a);
        color: white;
        transform: scale(1.05);
    }
    
    @keyframes floatBtnBounce {
        0% {
            transform: translateY(50px);
            opacity: 0;
        }
        60% {
            transform: translateY(-5px);
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Add padding at bottom left for floating button clearance */
    .business-profile-page.v4 {
        padding-bottom: 4rem;
    }
    
    /* Smaller gallery thumbnails */
    .gallery-thumbnails {
        gap: 0.25rem;
    }
    
    /* Gallery grid on mobile - 3 columns, fill container */
    .photo-gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        width: 100%;
    }
    
    .photo-gallery-grid .gallery-thumb {
        aspect-ratio: 1;
        height: auto;
        border-radius: 6px;
    }
    
    /* Override all thumb-specific classes on mobile to use 3 columns */
    .photo-gallery-grid.thumbs-1 { grid-template-columns: 1fr; }
    .photo-gallery-grid.thumbs-2 { grid-template-columns: repeat(2, 1fr); }
    .photo-gallery-grid.thumbs-3,
    .photo-gallery-grid.thumbs-4,
    .photo-gallery-grid.thumbs-5,
    .photo-gallery-grid.thumbs-6,
    .photo-gallery-grid.thumbs-7 { 
        grid-template-columns: repeat(3, 1fr);
        display: grid; /* Override flexbox for thumbs-5 */
    }
    
    /* View All Photos button full width on mobile */
    .btn-view-photos {
        width: 100%;
        margin-top: 0.75rem;
    }
    
    /* BA Slider label smaller on mobile */
    .ba-sliders-label {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .ba-sliders-label .label-hint {
        width: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* ============================================
   HIDE FEEDBACK ICONS ON PUBLIC BUSINESS PROFILE
   ============================================ */
.business-profile-page .ott-feedback-fab {
    display: none !important;
}
