/* Business Detail Page Styles */

/* Container */
.business-detail-container {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 1rem;
}

/* Header Section */
.business-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 2rem 2.5rem 1.5rem 2.5rem;
}

.business-header-image {
    flex-shrink: 0;
    width: 400px !important;
    height: 400px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 400px !important;
    min-height: 400px !important;
    max-width: 400px !important;
    max-height: 400px !important;
}

.business-header-image img {
    width: 400px !important;
    height: 400px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 400px !important;
    min-height: 400px !important;
    max-width: 400px !important;
    max-height: 400px !important;
}

.business-header-content {
    flex: 1;
}

.business-header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.business-featured-badge {
    background: #1E5359;
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.7rem;
}

.business-location {
    color:grey;
    font-size: 1.1rem;
}

.business-category {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Main Content */
.business-main {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* About Section */
.business-about {
    flex: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

.business-about h2 {
    color: #1E5359;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.business-short-description {
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    font-weight: 500;
    line-height: 1.4;
    font-style: italic;
}

.business-description {
    color: #343434;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-all; /* More aggressive breaking */
    overflow-wrap: anywhere; /* Break anywhere if needed */
    hyphens: auto;
    max-width: 100%;
    white-space: pre-wrap; /* Preserve whitespace but wrap */
    overflow: hidden; /* Prevent horizontal overflow */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.business-bio {
    margin-top: 1.5rem;
    word-wrap: break-word;
    word-break: break-all; /* More aggressive breaking */
    overflow-wrap: anywhere; /* Break anywhere if needed */
    hyphens: auto;
    max-width: 100%;
    white-space: pre-wrap; /* Preserve whitespace but wrap */
    overflow: hidden; /* Prevent horizontal overflow */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Share Section */
.share-section {
    margin-top: 2rem;
}

.share-section h3 {
    color: #1E5359;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.social-share-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-share-links a {
    font-size: 1.3rem;
}

.social-share-links .facebook { color: #4267B2; }
.social-share-links .twitter { color: #1DA1F2; }
.social-share-links .whatsapp { color: #25D366; }

/* Contact Section */
.business-contact {
    flex: 1;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
    min-width: 300px;
}

.business-contact h2 {
    color: #1E5359;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #1E5359;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.contact-item i {
    color: #1E5359;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contact-details {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-details a {
    color: #1E5359;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #153c40;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .contact-item {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .contact-item i {
        font-size: 1rem;
        width: 18px;
    }
    
    .contact-details a {
        font-size: 0.95rem;
    }
}

/* Gallery Section */
.business-images {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

.business-images h2 {
    color: #1E5359;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive Gallery Styles */
@media (max-width: 768px) {
    .gallery-image {
        width: 280px;
        height: 280px;
    }
    
    .business-header-img {
        width: 280px;
        height: 280px;
    }
    
    .gallery-grid {
        gap: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    
    .gallery-image {
        width: 240px !important;
        height: 240px !important;
        object-fit: cover !important;
    }
    
    .business-header-img {
        width: 300px;
        height: 300px;
    }
    
    .business-images {
        padding: 1.5rem !important;
    }
}

.gallery-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Price List Section */
.business-prices {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

.business-prices h2 {
    color: #1E5359;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-list {
    list-style: none;
    padding: 0;
}

.price-item {
    margin-bottom: 0.7rem;
}

.price-item-name {
    font-weight: 600;
}

.price-item-amount {
    color: #1E5359;
}

/* More Description Section */
.business-more-description {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

.business-more-description h2 {
    color: #1E5359;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.more-description-text {
    color: #343434;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .business-detail-container {
        margin: 60px auto 0;
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .business-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .business-header-image {
        align-self: center;
        width: 350px !important;
        height: 350px !important;
        min-width: 350px !important;
        min-height: 350px !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }

    .business-header-image img {
        width: 350px;
        height: 350px;
    }

    .business-header-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .business-featured-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }

    .business-location {
        font-size: 1rem;
    }

    .business-main {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .business-about,
    .business-contact {
        padding: 1.5rem;
    }

    .business-contact {
        min-width: unset;
    }

    .business-images,
    .business-prices,
    .business-more-description {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    .gallery-image {
        width: 280px;
        height: 280px;
    }
    
    .business-header-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .business-detail-container {
        margin: 50px auto 0;
        padding: 0 0.5rem;
    }

    .business-header {
        padding: 1rem;
        border-radius: 12px;
    }

    .business-header-image img {
        width: 300px;
        height: 300px;
        border-radius: 8px;
    }

    .business-header-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .business-featured-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }

    .business-location {
        font-size: 0.9rem;
    }

    .business-category {
        font-size: 0.8rem;
        padding: 0.15rem 0.6rem;
    }

    .business-main {
        gap: 1rem;
        margin-top: 1rem;
    }

    .business-about,
    .business-contact {
        padding: 1rem;
        border-radius: 12px;
    }

    .business-about h2,
    .business-contact h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .business-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .contact-info a {
        word-break: break-all;
    }

    .map-container {
        height: 150px;
        margin-top: 1rem;
    }

    .business-images,
    .business-prices,
    .business-more-description {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }

    .business-images h2,
    .business-prices h2,
    .business-more-description h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .gallery-grid {
        gap: 0.5rem;
    }

    .gallery-image {
        width: 100%;
        height: 120px;
    }

    .price-list-text,
    .more-description-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Enhanced comment system mobile styles */
    .enhanced-comments-container {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }

    .comments-header h3 {
        font-size: 1.2rem;
    }

    .comment-form-section {
        padding: 1rem;
        border-radius: 8px;
    }

    .comment-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .form-user-info {
        margin-left: 0;
    }

    .user-avatar img,
    .comment-avatar img,
    .avatar-placeholder {
        width: 35px;
        height: 35px;
    }

    .comment-input-group textarea {
        min-height: 80px;
        padding: 10px;
        font-size: 14px;
    }

    .rating-input {
        margin-top: 0.75rem;
    }

    .star-rating label {
        font-size: 1.2rem;
    }

    .submit-comment-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .auth-required-comment {
        padding: 2rem 1rem;
    }

    .auth-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-auth {
        padding: 8px 16px;
        font-size: 14px;
    }

    .comment-item {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-meta {
        margin-left: 0;
        font-size: 0.85rem;
    }

    .comment-actions {
        align-self: flex-end;
        margin-top: 0.5rem;
    }

    .flag-btn,
    .moderate-btn,
    .delete-btn {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .comment-content {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0.75rem 0;
    }

    .comment-replies {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }

    .reply-item {
        padding: 0.75rem;
    }

    .reply-form-container {
        padding: 0.75rem;
    }

    .reply-form textarea {
        min-height: 50px;
        padding: 6px;
        font-size: 14px;
    }

    .reply-submit-btn,
    .cancel-reply-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-body textarea {
        min-height: 60px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .business-detail-container {
        padding: 0 0.25rem;
    }

    .business-header {
        padding: 0.75rem;
    }

    .business-header-image img {
        width: 250px;
        height: 250px;
    }

    .business-header-title {
        font-size: 1.1rem;
    }

    .business-about,
    .business-contact,
    .business-images,
    .business-prices,
    .business-more-description {
        padding: 0.75rem;
    }

    .gallery-image {
        height: 240px;
        width: 240px;
    }
    
    .business-header-img {
        width: 240px;
        height: 240px;
    }

    .enhanced-comments-container {
        padding: 0.75rem;
    }

    .comment-form-section,
    .comment-item {
        padding: 0.75rem;
    }

    .auth-required-comment {
        padding: 1.5rem 0.75rem;
    }
}

.contact-link {
    color: #808000;
    text-decoration: none;
    transition: color 0.2s ease;
  }
.contact-link:hover {
    color: #6E6E30;
    text-decoration: underline;
  }
.business-back-btn {
    display: inline-block;
    margin: 1rem 0 0 1rem;
    color: #1E5359;
    font-weight: 600;
    text-decoration: none;
}

.business-header-img {
    width: 400px;
    height: 400px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.business-header-img-info {
    font-size: 0.8rem;
    color: #888;
}

/* Additional mobile-specific breaking */
@media (max-width: 768px) {
    .business-detail-container {
        padding: 0 0.75rem;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .business-description {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
        max-width: calc(100vw - 6rem) !important;
        overflow: hidden !important;
        font-size: 0.95rem;
        /* Additional breaking properties */
        word-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -moz-hyphens: auto !important;
        -ms-hyphens: auto !important;
        line-break: anywhere !important;
        overflow-wrap: break-word !important;
    }
    
    .business-about {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
        padding: 1.5rem 1rem;
        width: 100% !important;
    }
    
    .business-short-description {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        max-width: calc(100vw - 6rem) !important;
        overflow: hidden !important;
    }
    
    /* Increase gallery image sizes on mobile */
    .gallery-image {
        width: 280px !important;
        height: 280px !important;
    }
    
    .business-header-img {
        width: 350px !important;
        height: 350px !important;
    }
    
    /* Match video sizes to images on mobile */
    .video-gallery-item {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    .gallery-video {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    video.gallery-video {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    /* Comprehensive text overflow prevention for all text elements */
    .business-bio {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        max-width: calc(100vw - 6rem) !important;
        overflow: hidden !important;
    }
    
    /* Ultra-aggressive fallback for any missed text elements */
    .business-about *,
    .business-contact *,
    .business-more-description * {
        word-wrap: break-word !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        hyphens: auto !important;
        line-break: anywhere !important;
    }
    
    /* Force break on paragraph elements specifically */
    .business-about p,
    .business-about div {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
        max-width: calc(100vw - 6rem) !important;
    }
}

/* Gallery Video Items */
.video-gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px !important;
  height: 250px !important;
  max-width: 250px !important;
  max-height: 250px !important;
}

/* Force video sizing - override any other styles */
video.gallery-video {
  width: 250px !important;
  height: 250px !important;
  max-width: 250px !important;
  max-height: 250px !important;
  object-fit: cover !important;
}

/* Override any inline styles */
video[class*="gallery-video"] {
  width: 250px !important;
  height: 250px !important;
  max-width: 250px !important;
  max-height: 250px !important;
}

.video-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-video {
  width: 250px !important;
  height: 250px !important;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  max-width: 250px !important;
  max-height: 250px !important;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(30, 83, 89, 0.8) 0%, rgba(30, 83, 89, 0.6) 100%);
  color: white;
  padding: 0.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.video-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Responsive design for gallery videos */
@media (max-width: 768px) {
  .video-gallery-item {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
  
  .gallery-video {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
  
  video.gallery-video {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
  
  .video-overlay {
    padding: 0.3rem;
  }
  
  .video-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .video-gallery-item {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
  }
  
  .gallery-video {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
  }
  
  video.gallery-video {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
  }
  
  .video-label {
    font-size: 0.65rem;
  }
}

/* Force business header image container size - highest priority */
.business-header-image {
    width: 400px !important;
    height: 400px !important;
    min-width: 400px !important;
    min-height: 400px !important;
    max-width: 400px !important;
    max-height: 400px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.business-header-image img {
    width: 400px !important;
    height: 400px !important;
    min-width: 400px !important;
    min-height: 400px !important;
    max-width: 400px !important;
    max-height: 400px !important;
    object-fit: cover !important;
}

/* Mobile responsive overrides */
@media (max-width: 768px) {
    .business-header-image {
        width: 350px !important;
        height: 350px !important;
        min-width: 350px !important;
        min-height: 350px !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }
    
    .business-header-image img {
        width: 350px !important;
        height: 350px !important;
        min-width: 350px !important;
        min-height: 350px !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }
}

@media (max-width: 480px) {
    .business-header-image {
        width: 300px !important;
        height: 300px !important;
        min-width: 300px !important;
        min-height: 300px !important;
        max-width: 300px !important;
        max-height: 300px !important;
    }
    
    .business-header-image img {
        width: 300px !important;
        height: 300px !important;
        min-width: 300px !important;
        min-height: 300px !important;
        max-width: 300px !important;
        max-height: 300px !important;
    }
}

@media (max-width: 360px) {
    .business-header-image {
        width: 250px !important;
        height: 250px !important;
        min-width: 250px !important;
        min-height: 250px !important;
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .business-header-image img {
        width: 250px !important;
        height: 250px !important;
        min-width: 250px !important;
        min-height: 250px !important;
        max-width: 250px !important;
        max-height: 250px !important;
    }
}

