/**
 * In-Store Detail Page Styles
 * 
 * Uses site color variables:
 * --headerBg: #00002a (Primary dark blue)
 * --maroon: #d00c27 (Secondary/accent red)
 * --grey: #596065 (Text muted)
 * --grey1: #e3e4e4 (Border color)
 * --grey2: #f8f8f8 (Light background)
 * --blueText: #00002a (Dark text)
 */

/* ============================================
   CSS Variables (Page Specific)
   ============================================ */
.merchant-detail-container {
    --primary-color: var(--headerBg, #00002a);
    --primary-light: #1a1a4a;
    --secondary-color: var(--maroon, #d00c27);
    --accent-color: #2e7d32;
    --text-dark: var(--blueText, #00002a);
    --text-muted: var(--grey, #596065);
    --text-light: #999999;
    --border-color: var(--grey1, #e3e4e4);
    --bg-light: var(--grey2, #f8f8f8);
    --bg-card: var(--white, #ffffff);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --star-color: #ffc107;
}


/* ============================================
   Page Container
   ============================================ */
.merchant-detail-container {
    background: var(--bg-light);
}


/* ============================================
   Merchant Header
   ============================================ */
.merchant-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    color: #fff;
}

.merchant-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.merchant-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.merchant-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 8px;
}

.merchant-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.merchant-rating .stars {
    color: var(--star-color);
}

.merchant-rating .score {
    font-weight: 600;
    color: var(--text-white);
}

.merchant-rating .count {
    color: var(--text-white);
}


/* ============================================
   Header Badges
   ============================================ */
.header-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid;
}

.badge-item.verified {
    background: rgba(46, 125, 50, 0.05);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.badge-item.discount {
    background: rgba(208, 12, 39, 0.05);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge-item i {
    font-size: 14px;
}


/* ============================================
   Header Social Links
   ============================================ */
.header-social {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
}

.header-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 16px;
}

.header-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-social-link.facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.header-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    border-color: #dc2743;
}

.header-social-link.twitter:hover,
.header-social-link.x:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.header-social-link.linkedin:hover {
    background: #0A66C2;
    color: #fff;
    border-color: #0A66C2;
}

.header-social-link.youtube:hover {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
}

.header-social-link.whatsapp:hover,
.header-social-link.whats-app:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.header-social-link.tiktok:hover {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

.header-social-link.pinterest:hover {
    background: #E60023;
    color: #fff;
    border-color: #E60023;
}


/* ============================================
   Gallery
   ============================================ */
.gallery-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-wrapper.single-image {
    display: block;
}

.gallery-wrapper.single-image .gallery-thumbnails {
    display: none;
}

.gallery-wrapper.single-image .gallery-main {
    width: 100%;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
    max-height: 320px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

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

.gallery-main {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    min-width: 0;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.gallery-wrapper.single-image .gallery-nav,
.gallery-wrapper.single-image .gallery-counter {
    display: none;
}


/* ============================================
   Info Card
   ============================================ */
.info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.info-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.info-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-card-subtitle i {
    color: var(--secondary-color);
    font-size: 12px;
}

.info-item-list { 
    list-style: none; 
    padding: 0; margin: 0; 
}
.info-item-list li { 
    padding: 4px 0; 
}
.info-item-list li:first-child { 
    padding-top: 0; 
}
.info-item-list li a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 500; 
    display: block; 

    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}
.info-item-list li a:hover { 
    text-decoration: underline; 
}
.info-item-list .label { 
    font-size: 11px; 
    color: var(--text-light); 
    font-weight: 400; 
}
/* ============================================
   Info Items
   ============================================ */
.info-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
    min-width: 0;
}

.info-item-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-item-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.info-item-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-item-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.info-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-call {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-color), #e53935);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 12, 39, 0.35);
    color: #fff;
}

.btn-call i {
    font-size: 16px;
}


/* ============================================
   Section Cards
   ============================================ */
.section-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.section-icon.blue {
    background: rgba(0, 0, 42, 0.1);
    color: var(--primary-color);
}

.section-icon.green {
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent-color);
}

.section-icon.orange {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.section-icon.red {
    background: rgba(208, 12, 39, 0.1);
    color: var(--secondary-color);
}

.detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}


/* ============================================
   Rating Section
   ============================================ */
.rating-overview {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.rating-score {
    text-align: center;
    padding-right: 24px;
    border-right: 1px solid var(--border-color);
}

.rating-score .number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.rating-score .total {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.rating-score .stars {
    color: var(--star-color);
    font-size: 16px;
    margin: 10px 0;
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.rating-bar-row .label {
    width: 30px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-bar-row .label i {
    color: var(--star-color);
    font-size: 10px;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 5px;
}

.rating-bar-fill.green {
    background: var(--accent-color);
}

.rating-bar-fill.light-green {
    background: #8bc34a;
}

.rating-bar-fill.orange {
    background: var(--warning-color);
}

.rating-bar-fill.red {
    background: var(--secondary-color);
}

.rating-bar-row .count {
    width: 30px;
    text-align: right;
    color: var(--text-muted);
    font-weight: 500;
}

.rating-footer {
    font-size: 12px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-footer i {
    color: var(--text-light);
}


/* ============================================
   Map Section
   ============================================ */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-buttons {
    display: flex;
    gap: 10px;
}

.btn-map {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-map:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 0, 42, 0.05);
}

.btn-map i {
    font-size: 14px;
}


/* ============================================
   Offers Section
   ============================================ */
.offer-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-highlight-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.offer-highlight-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.5;
}

.offer-highlight-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.offer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.offer-benefits li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: start;
    gap: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.offer-benefits li:last-child {
    border-bottom: none;
}

.offer-benefits li i {
    width: 24px;
    height: 24px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.offer-description {
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.offer-description i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-top: 2px;
}

.offer-terms {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px;
}

.offer-terms-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-terms-title i {
    color: var(--warning-color);
}

.offer-terms ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-terms li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.offer-terms li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.offer-terms-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   Categories Section
   ============================================ */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.category-tag i {
    font-size: 14px;
}

.category-tag.primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.category-tag.primary:hover {
    background: var(--primary-light);
    color: #fff;
}


/* ============================================
   Reviews Section
   ============================================ */
.review-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 15px;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.review-author {
    flex: 1;
}

.review-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.review-stars {
    color: var(--star-color);
    font-size: 12px;
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.review-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

.btn-review {
    flex: 1;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-review.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border: none;
}

.btn-review.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 42, 0.35);
    color: #fff;
}

.btn-review.secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-review.secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-review i {
    font-size: 14px;
}

.review-status-message {
    flex: 1 1 100%;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.review-status-message i {
    font-size: 18px;
    flex-shrink: 0;
}

.review-status-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.review-status-message.danger {
    background: rgba(208, 12, 39, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.review-status-message.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}


/* ============================================
   Business Hours Section
   ============================================ */
.hours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.status-badge.open {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
}

.status-badge.closed {
    background: rgba(208, 12, 39, 0.15);
    color: var(--secondary-color);
}

.status-badge i {
    font-size: 8px;
}

.hours-grid {
    display: grid;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-light);
}

.hours-row.today {
    background: rgba(0, 0, 42, 0.08);
    border-left: 3px solid var(--primary-color);
}

.hours-row .day {
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-row .day i {
    font-size: 8px;
    color: var(--primary-color);
}

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

.hours-row .time-slots {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-row.closed .day,
.hours-row.closed .time {
    color: var(--secondary-color);
}

.hours-row.closed .day i {
    color: var(--secondary-color);
}


/* ============================================
   Utilities
   ============================================ */
.contact-hidden {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

.no-data i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}


/* ============================================
   Modal
   ============================================ */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.star-rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

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

.star-rating-input i:hover,
.star-rating-input i.active {
    color: var(--star-color);
    transform: scale(1.15);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    padding: 14px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 42, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color), #e53935);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #a31f1f, var(--secondary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 12, 39, 0.35);
}


/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
    .main-content-row {
        display: flex;
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .section-header-mobile {
        order: 1;
    }

    .section-gallery {
        order: 2;
    }

    .section-info-card {
        order: 3;
    }

    .section-offers {
        order: 4;
    }

    .section-categories {
        order: 5;
    }

    .section-map {
        order: 6;
    }

    .section-hours {
        order: 7;
    }

    .section-reviews {
        order: 8;
    }

    .gallery-wrapper {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .gallery-thumb {
        width: 70px;
        height: 50px;
        flex-shrink: 0;
    }

    .gallery-main {
        height: 280px;
        width: 100%;
        flex: unset;
    }

    .header-badges {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 15px;
    }

    .header-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .merchant-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .merchant-name {
        font-size: 20px;
    }

    .rating-overview {
        flex-direction: column;
        gap: 20px;
    }

    .rating-score {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .gallery-main {
        height: 250px;
        flex: unset;
    }

    .review-buttons {
        flex-direction: column;
    }

    .info-buttons {
        flex-direction: column;
    }

    .header-badges {
        width: 100%;
    }
}

/* ── Member's own reviews (pending / rejected) ────────────────────────────── */
.member-reviews-section { margin: 2rem 0; padding: 1.8rem 2rem; border-radius: 1.2rem; }
.member-reviews-title { display: flex; align-items: center; gap: .8rem; font-size: 1.9rem; font-weight: 700; margin: 0 0 .4rem; }
.member-reviews-note { font-size: 1.3rem; margin: 0 0 1.6rem; }
.member-reviews-section .member-review-item { background: #fff; border-radius: 1rem; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; }
.member-reviews-section .member-review-item:last-child { margin-bottom: 0; }
.member-reviews-section .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.member-reviews-section .review-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.member-reviews-section .review-stars { color: var(--star-color, #ffc107); font-size: 12px; }
.member-reviews-section .review-date { font-size: 12px; color: var(--text-light, #999); }
.member-reviews-section .review-text { font-size: 14px; line-height: 1.7; margin: 0; }
.member-review-badge { display: inline-block; font-size: 1.1rem; font-weight: 700; padding: .3rem 1rem; border-radius: 999px; margin-left: 0; }
/* Pending (amber) */
.pending-reviews-section { background: #fff9ec; border: 1px solid #ffe1a1; }
.pending-reviews-section .member-reviews-title { color: #8a6100; }
.pending-reviews-section .member-reviews-title i { color: #d99a00; }
.pending-reviews-section .member-reviews-note { color: #9a7b3c; }
.pending-reviews-section .member-review-item { border: 1px solid #ffe1a1; }
.pending-badge { color: #8a6100; background: #ffe1a1; }
/* Rejected (red) */
.rejected-reviews-section { background: #fdecec; border: 1px solid #f5c2c2; }
.rejected-reviews-section .member-reviews-title { color: #a12626; }
.rejected-reviews-section .member-reviews-title i { color: #d64545; }
.rejected-reviews-section .member-reviews-note { color: #a35c5c; }
.rejected-reviews-section .member-review-item { border: 1px solid #f5c2c2; }
.rejected-badge { color: #a12626; background: #f5c2c2; }
