/* Business Profile Styles */
.business-profile {
    min-height: 100vh;
}

/* Hero Section */
.business-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Video Section */
.business-video {
    margin: 2rem 0;
}

.business-video h2 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.business-header {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    color: white;
    width: 100%;
}

.business-logo {
    flex-shrink: 0;
}

.business-logo img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 4px solid white;
    object-fit: cover;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.business-info {
    flex: 1;
    color: white !important;
}

.business-info * {
    color: white !important;
}

.business-info h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

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

.rating .fas.fa-star {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating .fas.fa-star:not(.filled) {
    color: rgba(255,255,255,0.3);
}

.rating-score {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-count {
    opacity: 0.8;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Specific modal IDs - these override inline display:none */
#contactModal,
#reviewModal,
#shareModal,
#directionsModal {
    display: none;
}

#contactModal[style*="flex"],
#reviewModal[style*="flex"],
#shareModal[style*="flex"],
#directionsModal[style*="flex"],
.modal-overlay[style*="flex"],
.modal-overlay.active {
    display: flex !important;
}

.modal-overlay .modal,
#contactModal .modal,
#reviewModal .modal {
    display: block !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    background: white !important;
    border-radius: 16px !important;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    z-index: 100000 !important;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: 16px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Report Modal Specific Styles */
.report-modal {
    max-width: 500px;
    width: calc(100% - 40px);
    margin: 20px;
    animation: modalSlideIn 0.3s ease;
}

.report-modal .modal-header {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
    border-bottom: none;
}

.report-modal .modal-header h2 {
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-modal .modal-header h2 i {
    font-size: 1.1rem;
}

.report-modal .modal-header .modal-close {
    color: white;
    opacity: 0.8;
}

.report-modal .modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    color: white;
}

.report-modal .modal-form {
    padding: 24px;
}

.report-modal .form-group {
    margin-bottom: 20px;
}

.report-modal .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.report-modal select,
.report-modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.report-modal select:focus,
.report-modal textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.report-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.report-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.report-modal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.report-modal .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Mobile Responsive for Report Modal */
@media (max-width: 576px) {
    .report-modal {
        width: calc(100% - 20px);
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .report-modal .modal-header {
        padding: 16px 20px;
    }
    
    .report-modal .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .report-modal .modal-form {
        padding: 20px;
    }
    
    .report-modal .form-actions {
        flex-direction: column-reverse;
    }
    
    .report-modal .btn-secondary,
    .report-modal .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Form Styles */
.contact-form,
.review-form,
.modal-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.star-rating-input i {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.filled {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Character Counter */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
}

/* Photo Upload */
.photo-upload {
    margin-top: 8px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.upload-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Loading States */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Message Container */
#messageContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left-color: #10b981;
    color: #065f46;
}

.notification.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.notification.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.notification.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .modal {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.business-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-dark);
}

.action-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white !important;
    border: 2px solid rgba(255,255,255,0.3);
    text-decoration: none !important;
}

.action-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
    color: white !important;
    text-decoration: none !important;
}

.action-btn.secondary:visited {
    color: white !important;
    text-decoration: none !important;
}

.action-btn.favorite {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.action-btn.favorite:hover,
.action-btn.favorite.active {
    background: #dc3545;
    border-color: #dc3545;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.main-content {
    min-width: 0;
}

/* Quick Info Bar */
.quick-info {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f1e3ff;
    border-radius: 10px;
    margin-bottom: 2rem;
    align-items: center;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status.open {
    color: #28a745;
}

.view-count,
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

/* Photo Gallery */
.photo-gallery {
    margin-bottom: 3rem;
}

.photo-gallery h2 {
    margin-bottom: 1rem;
}

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

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.gallery-item.more-photos {
    background: #f1e3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.gallery-image-link:hover {
    text-decoration: none;
}

.image-link-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-link-indicator {
    opacity: 1;
}

/* About Section */
.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    margin-bottom: 1rem;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.business-description-rich {
    line-height: 1.7;
    margin-bottom: 2rem;
}

.business-description-rich p {
    margin: 0 0 1em;
}

.business-description-rich p:last-child {
    margin-bottom: 0;
}

.business-description-rich ul,
.business-description-rich ol {
    margin: 0 0 1em 1.25em;
    padding: 0;
}

.business-description-rich ul {
    list-style-type: disc;
}

.business-description-rich ol {
    list-style-type: decimal;
}

.business-description-rich a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
}

.business-description-rich h2,
.business-description-rich h3,
.business-description-rich h4 {
    margin: 1.25em 0 0.5em;
    line-height: 1.3;
}

.business-description-rich blockquote {
    margin: 0 0 1em;
    padding-left: 1em;
    border-left: 3px solid #d1d5db;
    color: #4b5563;
}

.specialties,
.amenities {
    margin-top: 2rem;
}

.specialties h3,
.amenities h3 {
    margin-bottom: 1rem;
    color: #333;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
}

.amenity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
}

.amenity-item i {
    color: #28a745;
}

/* Services Section */
.services-section {
    margin-bottom: 3rem;
}

.services-section h2 {
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #f1e3ff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.service-card h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.service-card p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.service-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 3rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    margin: 0;
}

.review-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    background: #f1e3ff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.overall-rating {
    text-align: center;
}

.rating-score-large {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rating-stars {
    margin: 0.5rem 0;
}

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

.rating-stars .fas.fa-star:not(.filled) {
    color: #ddd;
}

.total-reviews {
    color: #666;
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.rating-label {
    font-size: 0.9rem;
    color: #666;
}

.bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #ffd700;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

/* Review List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-rating .fas.fa-star {
    color: #ffd700;
    font-size: 0.9rem;
}

.review-rating .fas.fa-star:not(.filled) {
    color: #ddd;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-comment {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.review-action {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.review-action:hover {
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card,
.hours-card,
.map-card,
.social-card,
.related-card,
.nearby-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
}

.contact-card h3,
.hours-card h3,
.map-card h3,
.social-card h3,
.related-card h3,
.nearby-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

/* Contact Card */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-item div {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-value:hover {
    color: var(--primary-color);
}

.contact-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Hours Card */
.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1e3ff;
}

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

.hours-item.today {
    background: #e3f2fd;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    color: #1976d2;
    margin: 0.25rem 0;
}

.day {
    text-transform: capitalize;
}

.hours {
    color: #666;
}

/* Map Card */
.business-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

/* Custom marker styles for business profile */
.custom-marker-container {
    background: none;
    border: none;
}

.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: var(--primary-color, #007bff);
    border: 2px solid white;
}

.custom-marker.verified {
    background: #28a745;
}

.custom-marker i {
    font-size: 16px;
}

/* Popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-info-window {
    padding: 0.5rem;
    min-width: 150px;
    max-width: 200px;
}

.map-info-window h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 600;
}

.map-info-window p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.3;
}

.map-btn {
    width: 100%;
}

/* Social Card */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: #e4405f; }
.social-link.linkedin { background: #0077b5; }

/* Related/Nearby Cards */
.related-list,
.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-item,
.nearby-item {
    border-bottom: 1px solid #f1e3ff;
    padding-bottom: 0.75rem;
}

.related-item:last-child,
.nearby-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item a,
.nearby-item a {
    text-decoration: none;
    color: inherit;
}

.related-info,
.nearby-info {
    transition: all 0.3s ease;
}

.related-item:hover .related-info,
.nearby-item:hover .nearby-info {
    transform: translateX(5px);
    color: #007bff;
}

.related-name,
.nearby-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.related-rating .fas.fa-star {
    color: #ffd700;
    font-size: 0.8rem;
}

.related-rating .fas.fa-star:not(.filled) {
    color: #ddd;
}

.nearby-distance {
    color: #666;
    font-size: 0.9rem;
}

/* Directions Modal Styles */
.directions-content {
    padding: 1rem 0;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f1e3ff;
    border-radius: 8px;
}

.address-display i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.directions-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.directions-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.directions-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.directions-btn i {
    font-size: 1.1rem;
}

.get-location {
    width: 100%;
    margin-top: 0.5rem;
}

/* Mobile Sticky Action Bar */
.mobile-action-bar {
    display: none;
    position: sticky;
    top: 60px;
    z-index: 100;
    background: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 -1rem 1rem -1rem;
    width: calc(100% + 2rem);
}

.mobile-action-bar .business-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.mobile-action-bar .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.mobile-action-bar .btn-primary i {
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Hero adjustments for mobile */
    .business-hero {
        height: auto;
        min-height: 200px;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .business-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Hide action buttons in hero on mobile */
    .business-header .business-actions {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .hero-content .business-actions,
    .business-hero .business-actions {
        display: none !important;
        visibility: hidden !important;
    }

    /* Show mobile sticky action bar */
    .mobile-action-bar {
        display: block !important;
    }

    .mobile-action-bar .business-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .mobile-action-bar .business-actions .btn-primary {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-height: 60px !important;
        border: 2px solid var(--primary-color, #8B5CF6) !important;
        background: white !important;
        color: var(--primary-color, #8B5CF6) !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }

    .mobile-action-bar .business-actions .btn-primary i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
        margin-right: 0 !important;
    }

    .mobile-action-bar .business-actions .btn-primary span {
        display: block !important;
    }

    .business-info h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .business-logo img,
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }

    .business-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .quick-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .business-info h1 {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .rating-bar {
        grid-template-columns: 50px 1fr 30px;
        gap: 0.5rem;
    }

    .mobile-action-bar .btn-primary {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .mobile-action-bar .btn-primary span {
        display: none;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Photo Modal Styles */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-viewer {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    max-height: none;
}

.photo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.photo-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-prev {
    left: 20px;
}

.photo-next {
    right: 20px;
}

.photo-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.photo-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.photo-action {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.photo-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Print Styles */
@media print {
    .business-actions,
    .mobile-action-bar,
    .review-actions,
    .contact-btn,
    .map-btn {
        display: none;
    }

    .business-hero {
        height: auto;
        page-break-inside: avoid;
    }

    .content-grid {
        display: block;
    }

    .sidebar {
        order: 0;
        margin-top: 2rem;
    }
}

.dropdown-menu a:hover {
    background: #f1e3ff;
    color: var(--primary-color);
}

.stat-card {
    background: #f1e3ff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.metric-card {
    background: #f1e3ff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

/* Share Modal Styles */
.share-modal {
    max-width: 380px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.share-modal-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    padding: 1.25rem !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.share-modal-header .modal-close {
    color: white !important;
    opacity: 0.9;
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.share-modal-header .modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25) !important;
}

.share-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.share-icon-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon-wrapper i {
    font-size: 1.1rem;
    color: white;
}

.share-modal-header h2 {
    color: white !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    font-weight: 600;
    line-height: 1.3;
}

.share-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.8rem;
    margin: 0.2rem 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.share-modal-body {
    padding: 1.25rem !important;
    background: white !important;
}

.share-url-section {
    margin-bottom: 1.25rem;
}

.share-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.share-url-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.share-url-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    color: #6B7280 !important;
    background: #F9FAFB !important;
    outline: none !important;
    transition: all 0.2s ease;
}

.share-url-input:focus {
    border-color: #8B5CF6 !important;
    background: white !important;
}

.share-modal .share-copy-btn,
.modal-overlay .share-copy-btn,
button.share-copy-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 1rem !important;
    background: #8B5CF6 !important;
    color: white !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
}

.share-modal .share-copy-btn:hover,
.modal-overlay .share-copy-btn:hover,
button.share-copy-btn:hover {
    background: #7C3AED !important;
    border: 0 !important;
}

.share-modal .share-copy-btn.copied,
.modal-overlay .share-copy-btn.copied,
button.share-copy-btn.copied {
    background: #10B981 !important;
    border: 0 !important;
}

.share-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.share-divider::before,
.share-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.share-divider span {
    padding: 0 0.75rem;
    color: #9CA3AF;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-social-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
}

.share-modal .share-social-btn,
.share-modal a.share-social-btn,
.share-modal button.share-social-btn,
.modal-overlay .share-social-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.75rem 0.25rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    cursor: pointer !important;
    min-width: 0 !important;
    box-shadow: none !important;
}

.share-modal .share-social-btn i,
.modal-overlay .share-social-btn i {
    font-size: 1.2rem !important;
}

.share-modal .share-social-btn span,
.modal-overlay .share-social-btn span {
    color: inherit !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}

.share-modal .share-facebook,
.modal-overlay .share-facebook {
    background: #E7F0FE !important;
    color: #1877F2 !important;
    border: 0 !important;
}

.share-modal .share-facebook:hover,
.modal-overlay .share-facebook:hover {
    background: #1877F2 !important;
    color: white !important;
}

.share-modal .share-twitter,
.modal-overlay .share-twitter {
    background: #E8F5FD !important;
    color: #1DA1F2 !important;
    border: 0 !important;
}

.share-modal .share-twitter:hover,
.modal-overlay .share-twitter:hover {
    background: #1DA1F2 !important;
    color: white !important;
}

.share-modal .share-linkedin,
.modal-overlay .share-linkedin {
    background: #E7F0FE !important;
    color: #0A66C2 !important;
    border: 0 !important;
}

.share-modal .share-linkedin:hover,
.modal-overlay .share-linkedin:hover {
    background: #0A66C2 !important;
    color: white !important;
}

.share-modal .share-whatsapp,
.modal-overlay .share-whatsapp {
    background: #E7F9EF !important;
    color: #25D366 !important;
    border: 0 !important;
}

.share-modal .share-whatsapp:hover,
.modal-overlay .share-whatsapp:hover {
    background: #25D366 !important;
    color: white !important;
}

.share-modal .share-email,
.modal-overlay .share-email {
    background: #FEF3E2 !important;
    color: #EA580C !important;
    border: 0 !important;
}

.share-modal .share-email:hover,
.modal-overlay .share-email:hover {
    background: #EA580C !important;
    color: white !important;
}

.share-modal .share-native,
.modal-overlay .share-native,
.share-modal button.share-native {
    background: #F3E8FF !important;
    color: #8B5CF6 !important;
    border: 0 !important;
}

.share-modal .share-native:hover,
.modal-overlay .share-native:hover {
    background: #8B5CF6 !important;
    color: white !important;
}

@media (max-width: 400px) {
    .share-social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .share-modal {
        max-width: 95% !important;
    }
}

