/* 
   SHOP-PROFILE.CSS - CLEAN VERSION
   No duplicates, organized structure
    */

/* 
   1. GLOBAL & UTILITIES
    */

.custom-popup.no-close .leaflet-popup-close-button { display: none !important; }

.shop-avatar-main { transform: translateY(-10px); }

/* 
   2. SUCCESS/ERROR MESSAGES
    */

.success-message, .error-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 280px;
    max-width: 90%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.success-message { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }
.error-message { background: var(--danger-light); color: var(--danger); border-left: 4px solid var(--danger); }
.success-message i, .error-message i { margin-right: 8px; }

/* 
   3. RATING & VIEWS BADGES
    */

.shop-rating-badge { background: var(--card-bg) !important; border: 1px solid var(--border-color); }
[data-theme="light"] .shop-rating-badge span { color: var(--text-primary) !important; }
[data-theme="dark"] .shop-rating-badge { background: var(--bg-tertiary) !important; }
[data-theme="dark"] .shop-rating-badge span { color: white !important; }

.shop-views-badge { background: var(--card-bg) !important; border: 1px solid var(--border-color); }
[data-theme="light"] .shop-views-badge span { color: var(--text-primary) !important; }
[data-theme="dark"] .shop-views-badge { background: var(--bg-tertiary) !important; }
[data-theme="dark"] .shop-views-badge span { color: white !important; }

/* 
   4. BUSINESS HOURS CARD
    */

.business-hours-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.business-hours-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.business-hours-header i { font-size: 1.3rem; color: var(--primary); }
.business-hours-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }

.business-hours-grid { display: flex; flex-direction: column; gap: 10px; }

.business-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.business-hour-row.today {
    background: var(--primary-light);
    margin: 0 -20px;
    padding: 8px 20px;
    border-radius: 8px;
}

.business-hour-row.today .business-day,
.business-hour-row.today .business-time { color: var(--primary); }

.business-day {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-day i { font-size: 0.85rem; color: var(--text-muted); width: 20px; }

.business-time { color: var(--text-secondary); font-weight: 500; }
.business-time i { font-size: 0.7rem; margin-right: 4px; color: var(--primary); }

.business-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.current-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-open { background: var(--success-light); color: var(--card-bg); }
.status-closed { background: var(--danger-light); color: var(--danger); }

/* Smooth Read More / Read Less Animation */
.about-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.collapsed {
    max-height: 320px;
}

.about-content.expanded {
    max-height: 3000px;
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.about-content.expanded::after {
    opacity: 0;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.read-more-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn i.fa-chevron-down {
    transform: rotate(0deg);
}

.read-more-btn i.fa-chevron-up {
    transform: rotate(0deg);
}

/* 
   6. INFO CARD
    */

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.info-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.info-card h3 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.info-card p {
    margin: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

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

.info-card p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.payment-option {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-option i {
    font-size: 0.8rem;
    color: var(--primary);
}

[data-theme="dark"] .payment-option {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .payment-option i { color: var(--primary); }

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.social-links a {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.share-buttons .btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* 
   7. SHOP ACTION BUTTONS
    */

.shop-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.shop-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    height: 38px;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

/* Call Now - Always Blue */
.shop-action-btn:first-child {
    background: #2563eb;
    color: white;
    border: none;
}

.shop-action-btn:first-child:hover { background: #1d4ed8; }

/* Directions & Write Review */
.shop-action-btn:not(:first-child):not(#saveShopBtn) {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.shop-action-btn:not(:first-child):not(#saveShopBtn):hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Save Button */
#saveShopBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
    white-space: nowrap;
    height: 38px;
    line-height: 1;
}

#saveShopBtn.btn-outline {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

#saveShopBtn.btn-outline:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

#saveShopBtn.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}

#saveShopBtn.btn-primary:hover { background: #1d4ed8; }

#saveShopBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    min-width: 130px;
}

#saveShopBtn i { font-size: 0.85rem; }
#saveShopBtn span { display: inline-block; }

/* 
   8. PRODUCT NEEDS PANEL
    */

#toggleNeedsBtn {
    margin: 10px 0;
    transition: all 0.2s ease;
}

#toggleNeedsBtn i { transition: transform 0.2s ease; }

body.needs-panel-open { overflow: hidden !important; }

.product-needs-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-needs-panel.open { transform: translateX(-50%) translateY(0); }

.product-needs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.product-needs-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-needs-header h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.product-needs-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-needs-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--danger);
}

.product-needs-content {
    overflow-y: auto;
    padding: 18px;
    flex: 1;
    background: var(--bg-primary);
}

/* Need Item Card */
.need-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

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

.need-item:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
}

.need-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.need-name {
    font-weight: 700;
    font-size: 1.10rem;
    color: var(--text-primary);
}

.need-expiry {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.need-expiry.warning { color: var(--danger); }

.need-body { margin-bottom: 10px; }

.need-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 6px 0;
}

.need-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.need-quantity {
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

[data-theme="dark"] .need-quantity {
    background: var(--primary-light) !important;
    color: #ffffff;
}

.add-to-marketplace-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.add-to-marketplace-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.add-to-marketplace-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-marketplace-btn.added {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.add-to-marketplace-btn.added:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.no-needs-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-needs-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.6;
}

.product-needs-header .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    transition: all 0.2s ease;
}

.product-needs-header .btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-needs-header .btn-outline i { margin-right: 4px; }

.needs-badge {
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 
   9. SHOP COVER & HEADER
    */

.shop-cover {
    border-radius: 0 0 24px 24px !important;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    margin-bottom: -10px;
}

/* Shop Cover & Header Styles */
.shop-cover-wrapper {
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}

.shop-cover {
    height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.shop-cover-fallback {
    height: 350px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.shop-cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.shop-top-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.shop-rating-badge {
    background: rgba(0,0,0,0.7);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-rating-badge i {
    color: #f59e0b;
    font-size: 0.85rem;
}

.shop-rating-badge span:first-of-type {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.shop-rating-badge span:last-of-type {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.shop-views-badge {
    background: rgba(0,0,0,0.7);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-views-badge i {
    color: #60a5fa;
    font-size: 0.85rem;
}

.shop-views-badge span:first-of-type {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.shop-views-badge span:last-of-type {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.shop-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.7rem;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
}

.shop-status-open {
    background: var(--success);
}

.shop-status-closed {
    background: #ef4444;
}

.shop-bottom-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
}

.shop-info-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.shop-avatar-main {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
    cursor: pointer;
}

.shop-avatar-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info-text {
    flex: 1;
}

.shop-title {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.shop-owner-info {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.shop-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.shop-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

/* 
   10. REVIEWS SECTION
    */

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.review-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-user { font-weight: 600; }
.review-stars { color: var(--warning); }

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

.review-comment { margin-bottom: 0; }

.review-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.review-action-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-action-btn.reply { color: #3b82f6; }
.review-action-btn.reply:hover { background: rgba(59, 130, 246, 0.1); }
.review-action-btn.delete { color: #ef4444; }
.review-action-btn.delete:hover { background: rgba(239, 68, 68, 0.1); }

.reply-section {
    margin-top: 12px;
    margin-left: 24px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #3b82f6;
}

.reply-content {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.reply-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-reply-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.delete-reply-btn:hover { background: rgba(239, 68, 68, 0.1); }

.reply-input-container {
    margin-top: 12px;
    margin-left: 24px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.reply-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.reply-submit-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reply-submit-btn:hover { background: #2563eb; }

/* 
   11. MAP CONTAINER & ROUTE OVERLAY
    */

.map-container-leaflet {
    height: 400px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    overflow: hidden;
    z-index: 1;
    display: none;
    position: relative;
}

.map-container-leaflet.show { display: block; }

.map-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}

.map-loading-spinner.hide {
    opacity: 0;
    visibility: hidden;
}

.map-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.map-loading-spinner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.map-toggle-btn {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

/* Route Overlay - Mobile Friendly */
.route-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    width: 90%;
    max-width: 500px;
    min-width: unset;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
    will-change: transform;
    z-index: 1000;
    bottom: 8px;
}

.route-overlay.show {
    transform: translateX(-50%) translateY(0);
}

.route-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.route-info-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

.route-clear-btn {
    border: none;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    color: var(--danger);
    white-space: nowrap;
}

.route-clear-btn:hover {
    background: #cc3737;
    color: white;
}

[data-theme="dark"] .route-clear-btn {
    background: #ef4444;
    color: white;
}

[data-theme="dark"] .route-clear-btn:hover {
    background: #c45050;
}

.get-directions-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-top: 8px;
    width: 100%;
}

/* 
   12. REVIEW MODAL
    */

.review-modal-container {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.review-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-modal-header h3 i { color: var(--warning); }

.review-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.review-modal-close:hover { color: var(--danger); }

.review-modal-body { padding: 24px; }

.shop-review-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.shop-review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.shop-review-details h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.shop-review-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rating-section {
    margin-bottom: 24px;
    text-align: center;
}

.rating-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.required {
    color: var(--danger);
    margin-left: 4px;
}

.optional {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: normal;
    margin-left: 6px;
}

.star-rating-large {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.star-rating-large i {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
}

.star-rating-large i:hover,
.star-rating-large i.active {
    color: var(--warning);
    transform: scale(1.05);
}

.rating-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-tips {
    background: var(--primary-light);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-top: 20px;
}

.review-tips i { font-size: 1rem; }

.review-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px 24px;
    border-top: none;
}

/* 
   13. CALL POPUP
    */

.call-popup-container {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.call-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.call-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-popup-header h3 i { color: var(--primary); }

.call-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.call-popup-close:hover { color: var(--danger); }

.call-popup-body { padding: 24px; }

.shop-contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.shop-contact-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.shop-contact-details h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.shop-contact-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.phone-number-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.phone-number-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-number-display i {
    color: var(--success);
    font-size: 1.2rem;
}

.copy-phone-btn {
    background: var(--bg-tertiary);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

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

.call-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.call-now-btn {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.call-now-btn:hover {
    color: white;
    background: var(--primary-dark);
}

.whatsapp-btn {
    flex: 1;
    background: var(--success);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    background: var(--success-light);
}

.call-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* 
   14. CUSTOM MAP MARKER & POPUP
    */

.custom-marker {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-marker:hover { transform: scale(1.1); }

.custom-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-marker span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.custom-popup .shop-popup-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.custom-popup .shop-popup-info { flex: 1; }

.custom-popup .shop-popup-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.custom-popup .shop-popup-info p {
    margin: 2px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.custom-popup .shop-popup-info .status-open {
    color: var(--success-light);
    font-weight: 600;
    background-color: transparent;
}

.custom-popup .shop-popup-info .status-closed {
    color: #ef4444;
    font-weight: 600;
}

/* 
   15. LEAFLET OVERRIDES
    */
.leaflet-top leaflet-right{
    user-select: none !important;
}

.leaflet-popup-content-wrapper {
    background: var(--card-bg) !important;
    border-radius: 12px !important;
    padding: 2px 4px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-tip-container {
    position: absolute !important;
    bottom: 0px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 12px !important;
    overflow: visible !important;
}

.leaflet-popup-tip {
    background: var(--card-bg) !important;
    width: 14px !important;
    height: 14px !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    bottom: -7px !important;
    left: 50% !important;
    margin-left: -7px !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

.leaflet-routing-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
}

.leaflet-routing-container h2 {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 12px 16px;
}

/* Close button fix */
.leaflet-routing-collapse-btn {
    border: none !important;
    color: var(--text-primary) !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

/* Scroll fix */
.leaflet-routing-alt {
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

.leaflet-routing-alt::-webkit-scrollbar {
    width: 6px;
}

.leaflet-routing-alt::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.leaflet-routing-alt::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.leaflet-routing-alt tr {
    border-bottom: 1px solid var(--border-color);
}

.leaflet-routing-alt tr:hover {
    background: var(--bg-hover);
}

.leaflet-routing-alt td {
    padding: 8px 12px;
}

.leaflet-routing-geocoders input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 12px;
    width: 100%;
}

/* Dark theme */
[data-theme="dark"] .leaflet-routing-container {
    background-color: #1a2332 !important;
    color: #cbd5e1 !important;
    border-color: #2d3a4f !important;
}

[data-theme="dark"] .leaflet-routing-container h2 {
    color: #f1f5f9 !important;
    background-color: #1e3a5f !important;
}

[data-theme="dark"] .leaflet-routing-alt {
    background: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .leaflet-routing-alt tr {
    border-color: #334155;
}

[data-theme="dark"] .leaflet-routing-alt tr:hover {
    background: #334155;
}

[data-theme="dark"] .leaflet-routing-geocoders input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

/* 
   16. LOCATION EDITOR
    */

.location-editor {
    background: var(--bg-secondary);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    padding: 0;
    min-width: 280px;
    max-width: 100%;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.location-display-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    min-height: 34px;
}

.location-display-mode i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.location-address {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.location-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.location-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.location-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.location-edit-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    min-height: 34px;
    width: 100%;
    box-sizing: border-box;
}

.location-edit-mode i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.location-search-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.location-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.location-cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.location-cancel-btn:hover { opacity: 0.7; }

.location-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: none;
}

.location-suggestions-dropdown.show {
    display: block;
    animation: locationDropdownFadeIn 0.2s ease-out;
}

@keyframes locationDropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-display-mode,
.location-edit-mode { transition: opacity 0.2s ease; }

.location-display-mode.fade-out,
.location-edit-mode.fade-out { opacity: 0; }

.location-suggestion-item {
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

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

.location-suggestion-item:hover,
.location-suggestion-item.selected { background: var(--primary-light); }

.suggestion-main {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-align: left;
}

.suggestion-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: left;
}

.location-suggestions-dropdown .no-results,
.location-suggestions-dropdown .loading-results {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .location-editor {
        min-width: 240px;
        margin-top: 8px;
    }
    
    .location-display-mode,
    .location-edit-mode {
        padding: 5px 12px;
        min-height: 22px;
    }
    
    .location-address { font-size: 0.7rem; }
    
    .location-action-btn,
    .location-cancel-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .location-search-input {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .suggestion-main { font-size: 0.7rem; }
    .suggestion-sub { font-size: 0.55rem; }
}

/* Dark Mode */
[data-theme="dark"] .location-suggestions-dropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .location-suggestion-item:hover,
[data-theme="dark"] .location-suggestion-item.selected {
    background: rgba(37, 99, 235, 0.2);
}

/* 
   17. EXPLORE PAGE LOCATION EDITOR
    */

.explore-container .location-editor {
    background: var(--bg-secondary);
    border-radius: 40px;
    border: 1px solid var(--border-color);
    padding: 0;
    min-width: 480px;
    max-width: 100%;
    transition: none;
    position: relative;
    contain: layout style;
}

.explore-container .location-display-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    min-height: 42px;
    height: 42px;
    box-sizing: border-box;
}

.explore-container .location-display-mode i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.explore-container .location-address {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    min-width: 0;
}

.explore-container .location-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.explore-container .location-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 0.8rem;
}

.explore-container .location-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.explore-container .location-edit-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    min-height: 42px;
    height: 42px;
    width: 100%;
    box-sizing: border-box;
}

.explore-container .location-edit-mode i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.explore-container .location-search-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.explore-container .location-search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    height: 34px;
}

.explore-container .location-cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.explore-container .location-cancel-btn:hover {
    opacity: 0.7;
    background: var(--bg-tertiary);
}

.explore-container .location-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: none;
}

.explore-container .location-suggestions-dropdown.show { display: block; }

.explore-container .location-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.explore-container .location-suggestion-item:last-child { border-bottom: none; }

.explore-container .location-suggestion-item:hover,
.explore-container .location-suggestion-item.selected { background: var(--primary-light); }

.explore-container .suggestion-main {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-align: left;
}

.explore-container .suggestion-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: left;
}

.explore-container .location-suggestions-dropdown .no-results,
.explore-container .location-suggestions-dropdown .loading-results {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .explore-container .location-editor { min-width: 200px; }
    
    .explore-container .location-display-mode,
    .explore-container .location-edit-mode {
        padding: 6px 12px;
        min-height: 38px;
        height: 38px;
    }
    
    .explore-container .location-address { font-size: 0.7rem; }
    
    .explore-container .location-action-btn,
    .explore-container .location-cancel-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .explore-container .location-search-input {
        padding: 5px 10px;
        font-size: 12px;
        height: 30px;
    }
    
    .explore-container .suggestion-main { font-size: 0.7rem; }
    .explore-container .suggestion-sub { font-size: 0.55rem; }
}

[data-theme="dark"] .explore-container .location-suggestions-dropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .explore-container .location-suggestion-item:hover,
[data-theme="dark"] .explore-container .location-suggestion-item.selected {
    background: rgba(37, 99, 235, 0.2);
}

/* 
   18. NO LOCATION MESSAGE & USER MARKER
    */

.no-location-message {
    text-align: center;
    padding: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.user-location-marker {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #3b82f6, 0 2px 8px rgba(0,0,0,0.15);
}

.location-box {
    flex: 1;
    min-width: 100px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    gap: 12px;
    flex-wrap: wrap;
}

.user-popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    min-width: 180px;
}

.user-popup-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-popup-icon i {
    color: white;
    font-size: 16px;
}

.user-popup-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-popup-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 
   19. GALLERY MODAL
    */

.gallery-close-btn:hover,
.gallery-prev-btn:hover,
.gallery-next-btn:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: scale(1.05);
}

.gallery-prev-btn:active,
.gallery-next-btn:active { transform: scale(0.95); }

.smooth-slide-gallery {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    touch-action: pan-y pinch-zoom;
}

.gallery-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.slider-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    user-select: none;
}

.gallery-bottom {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.controls {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.65);
    padding: 8px 26px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0 10px;
}

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

/* 
   20. MODAL & STAR RATING (LEGACY)
    */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 2rem;
    cursor: pointer;
    justify-content: center;
    margin-bottom: 20px;
}

.star-rating i {
    color: #ddd;
    transition: color 0.2s;
}

.star-rating i.active,
.star-rating i.hover { color: var(--warning); }

.shop-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-top: 50px;
    margin-left: 30px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--card-shadow);
}

.shop-info-header {
    flex: 1;
    padding-top: 60px;
}

.rating-stars {
    color: var(--warning);
    letter-spacing: 2px;
}
/* 
   FIX: Quill Editor Styles on Profile Page
    */

.shop-description-content ul,
.shop-description-content ol {
    display: block !important;
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
}

.shop-description-content li {
    display: list-item !important;
    margin: 0.25rem 0 !important;
    line-height: 1.5 !important;
}

.shop-description-content ul li {
    list-style-type: disc !important;
}

.shop-description-content ol li {
    list-style-type: decimal !important;
}

/* Quill size styles */
.shop-description-content .ql-size-small {
    font-size: 0.75rem !important;
}

.shop-description-content .ql-size-large {
    font-size: 1.25rem !important;
}

.shop-description-content .ql-size-huge {
    font-size: 1.5rem !important;
}

/* Preserve all formatting */
.shop-description-content {
    line-height: 1.6;
}

.shop-description-content strong,
.shop-description-content b {
    font-weight: 700 !important;
}

.shop-description-content em,
.shop-description-content i {
    font-style: italic !important;
}

.shop-description-content u {
    text-decoration: underline !important;
}

.shop-description-content a {
    color: var(--primary) !important;
    text-decoration: underline !important;
}
/* FIX: Description/Bio Text Wrapping - Prevent horizontal overflow */
.shop-description-content,
.shop-description-content p,
.shop-description-content div,
.about-content,
.about-content p,
.about-content div,
.shop-description-content ul,
.shop-description-content ol,
.shop-description-content li {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

/* Ensure the about content container doesn't overflow */
.about-content {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for any inline elements that might cause overflow */
.shop-description-content * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* Info card should not overflow */
.info-card {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure list items wrap properly */
.shop-description-content ul,
.shop-description-content ol {
    padding-left: 1.5rem !important;
    margin: 0.5rem 0 !important;
}

.shop-description-content li {
    display: list-item !important;
    margin: 0.25rem 0 !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
}
.map-container-leaflet { height: 350px !important; min-height: 350px !important; }
