/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Author: Your Name
 Author URI: https://halaleatsnearme.com/
 Description: Child theme for Astra.
 Template: astra
 Text Domain: astra-child
 Version: 1.0.0
*/

/* You can put child-theme overrides below if needed */

/**
 * Halal Archive Styles
 * Modern, responsive styling for the halal listings page
 * 
 * @version 1.8.14
 * @since 1.0.0
 * 
 * CHANGELOG:
 * 1.8.14 - ADDED: State filter buttons styling and fixed address centering
 * 1.8.13 - MAIN PAGE LAYOUT: Changed from grid to stacked single-column layout, prepared for future ad space
 * 1.8.12 - IMPROVED DATA PRESENTATION: Better spacing, left-aligned text, cleaner service options layout
 * 1.8.11 - FURTHER REFINED: Made service options more compact with tighter spacing and smaller checkmarks
 * 1.8.10 - REFINED SINGLE LISTING: Removed service options background, made layout more compact and integrated
 * 1.8.9 - SINGLE LISTING LAYOUT: Restaurant name centered, main details left-justified, service options on right side
 * 1.8.8 - CLICKABLE IMAGES: Made main page restaurant images clickable, linking to individual listing pages
 * 1.8.7 - INDIVIDUAL LISTING REDESIGN: Matches main page format, enrichment items with checkmarks, map at bottom
 * 1.8.6 - MOBILE FIX: Prevented status/rating/cost from stacking on mobile, always horizontal layout
 * 1.8.5 - TIGHT SPACING: Reduced gaps between rows, star+rating on same line, smaller image height
 * 1.8.4 - Layout matches image: Status+Rating+Price, Name, Address, Phone, Distance, Actions
 * 1.8.3 - Reorganized Layout with Left/Center/Right Justification & Phone Numbers
 * 1.8.2 - Added ratings with star display and reorganized card layout for better information hierarchy
 * 1.8.1 - Fixed restaurant titles display and limited filter options to first 50 listings
 * 1.8.0 - Server-side distance sorting: calculates distances and sorts ALL listings before rendering
 * 1.7.4 - Added forced browser re-render to fix visual sorting display
 * 1.7.3 - Enhanced sorting with detailed console logging and multiple sort attempts
 * 1.7.2 - Reverted to client-side sorting with improved JavaScript distance calculation
 * 1.7.1 - Fixed critical PHP syntax error (endwhile vs endforeach) and server-side distance display
 * 1.7.0 - Server-side distance sorting: sorts ALL listings before pagination
 * 1.6.2 - Enhanced distance sorting with debugging and improved sorting logic
 * 1.6.1 - Fixed query issue and added geographic distance sorting (closest first) and open/closed status badges
 * 1.6.0 - Added geographic distance sorting (closest first) and open/closed status badges
 * 1.5.0 - Fixed pagination and implemented dynamic filters from current page data
 * 1.4.1 - Fixed critical error and cleaned up syntax
 * 1.4.0 - Performance optimization: replaced inefficient query with predefined filter options for scalability
 * 1.3.0 - Fixed cuisine filters to use actual type field data instead of non-existent taxonomy
 * 1.2.0 - Fixed pagination functionality and removed debug output
 * 1.1.0 - Added timestamp to version banner for debugging cache issues
 * 1.0.9 - Added highly visible version banner and HTML comment for debugging
 * 1.0.8 - Improved layout: combined distance and action buttons on same row for tighter design
 * 1.0.7 - Added version verification marker to confirm template updates
 * 1.0.6 - Fixed field name mismatches - now using correct meta keys from database
 * 1.0.5 - Enhanced debug output with step-by-step testing
 * 1.0.4 - Added meta key debugging to identify exact field names in database
 * 1.0.3 - Added debug output to troubleshoot field retrieval issues
 * 1.0.2 - Updated to use WordPress custom fields instead of ACF Pro
 * 1.0.1 - Fixed field names to match ACF setup (image_url, price_range, order_url)
 * 1.0.0 - Initial release with basic halal listings functionality
 */

/* Container and Layout */
.halal-listings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.halal-listings-header {
    margin-bottom: 2rem;
    text-align: center;
}

.halal-listings-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* State Filter Section */
.state-filter-section {
    margin-bottom: 1.5rem;
}

.state-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 100%;
}

.state-chip {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    min-width: 2rem;
    text-align: center;
}

.state-chip:hover {
    background-color: #10b981;
    color: white;
    transform: scale(1.05);
    border-color: #10b981;
}

.state-chip.active {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

/* Cuisine Filter Section */
.cuisine-filter-section {
    margin-bottom: 2rem;
}

.filter-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.cuisine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.cuisine-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cuisine-chip:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.cuisine-chip.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.active-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #6b7280;
}

.clear-filter {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* Map Button */
.map-button-container {
    text-align: center;
    margin: 2rem 0;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.map-button:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.map-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Halal Listings - Stacked Single Column */
.halal-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .halal-listings-grid {
        max-width: 100%;
        margin: 2rem 1rem;
    }
}

/* Halal Card */
.halal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

/* Card Layout - 6 Rows as per Image - TIGHT SPACING */
.card-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Row 1: Status (Left) + Rating (Center) + Price (Right) */
.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.card-status-section {
    flex: 1;
    text-align: left;
}

.card-rating-section {
    flex: 1;
    text-align: center;
}

.card-cost-section {
    flex: 1;
    text-align: right;
}

/* Row 2: Restaurant Name (Centered) */
.card-title-row {
    text-align: center;
    margin-bottom: 0.25rem;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #007cba;
}

/* Row 3: Address (Centered, No Phone Icon) */
.card-address-row {
    text-align: center !important;
    margin-bottom: 0.25rem;
}

/* Ensure address links are also centered */
.card-address-row a {
    text-align: center !important;
    display: inline-block;
}

/* Row 4: Phone Number (Centered) */
.card-phone-row {
    text-align: center;
    margin-bottom: 0.25rem;
}

/* Row 5: Distance (Centered) */
.card-distance-row {
    text-align: center;
    margin-bottom: 0.5rem;
}

.distance-label {
    color: #666;
    font-size: 0.8rem;
    margin-right: 4px;
}

.distance-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Row 6: Action Buttons (Centered) */
.card-actions-row {
    text-align: center;
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.phone-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: #3b82f6;
}

/* Row 4: Status (Left) + Rating (Center) + Cost (Right) */
.card-info-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-status-section {
    justify-self: start;
}

.card-rating-section {
    justify-self: center;
}

.card-cost-section {
    justify-self: end;
}

.rating-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.rating-link:hover {
    transform: scale(1.05);
}

.rating-star {
    font-size: 1rem;
    line-height: 1;
}

.rating-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Row 5: Distance (Centered) */
.card-distance-row {
    text-align: center;
    margin-bottom: 1rem;
}

.card-distance-row .distance-label {
    font-weight: 500;
    color: #6b7280;
}

.card-distance-row .distance-value {
    color: #374151;
    font-weight: 600;
}

/* Row 6: Action Buttons (Centered) */
.card-actions-row {
    text-align: center;
    margin-bottom: 1rem;
}

/* Location Section */
.card-location {
    margin-bottom: 1rem;
}

.address-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.address-link:hover {
    color: #3b82f6;
}

/* Business Info Section */
.card-business-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.halal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image {
    position: relative;
    cursor: pointer;
}

.card-image .image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-image .image-link:hover {
    transform: scale(1.02);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.halal-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.type-badge,
.price-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-badge {
    background-color: #fef3c7;
    color: #92400e;
}

.price-badge {
    background-color: #dbeafe;
    color: #1e40af;
}

.card-distance-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-distance {
    font-size: 0.9rem;
    color: #6b7280;
}

.distance-label {
    font-weight: 500;
}

.distance-value {
    color: #374151;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.action-link:hover {
    color: #1f2937;
    border-color: #9ca3af;
}

/* Pagination */
.halal-pagination {
    margin: 3rem 0;
    text-align: center;
}

.halal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.halal-pagination .page-numbers li {
    margin: 0;
}

.halal-pagination .page-numbers a,
.halal-pagination .page-numbers span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}

.halal-pagination .page-numbers a {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.halal-pagination .page-numbers a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.halal-pagination .page-numbers .current {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* No Listings */
.no-listings {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.map-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.map-close-button:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Map Popup Styles */
.map-popup {
    text-align: center;
    min-width: 200px;
}

.map-popup h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.map-popup p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.popup-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.popup-type,
.popup-price {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.popup-type {
    background-color: #fef3c7;
    color: #92400e;
}

.popup-price {
    background-color: #dbeafe;
    color: #1e40af;
}

.popup-details-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.popup-details-btn:hover {
    background-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 640px) {
    .halal-listings-container {
        padding: 1rem 0.5rem;
    }
    
    .halal-listings-title {
        font-size: 2rem;
    }
    
    .cuisine-chips {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .cuisine-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    /* CRITICAL: Keep status, rating, cost on same horizontal line */
    .card-info-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .card-status-section,
    .card-rating-section,
    .card-cost-section {
        flex: 1 !important;
        text-align: center !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Ensure rating stays horizontal */
    .rating-link {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }
    
    .rating-star,
    .rating-value {
        flex-shrink: 0 !important;
    }
    
    .card-actions-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-link {
        text-align: center;
        width: 100%;
    }
}

/* Ultra-mobile protection - ensure horizontal layout never breaks */
@media (max-width: 480px) {
    .card-info-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.15rem !important;
    }
    
    .card-status-section,
    .card-rating-section,
    .card-cost-section {
        flex: 1 !important;
        text-align: center !important;
        font-size: 0.75rem !important;
    }
    
    .status-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .rating-star {
        font-size: 0.9rem !important;
    }
    
    .rating-value {
        font-size: 0.7rem !important;
        padding: 0.15rem 0.3rem !important;
    }
    
    .price-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Loading States */
.halal-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .halal-card,
    .cuisine-chip,
    .map-button,
    .action-link {
        transition: none;
    }
    
    .halal-card:hover {
        transform: none;
    }
}

/* Focus States */
.cuisine-chip:focus,
.map-button:focus,
.action-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .halal-card {
        border: 2px solid #000;
    }
    
    .cuisine-chip.active {
        border: 2px solid #000;
    }
}

/* Status Badge Styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.status-badge .status-text {
    margin-left: 0.25rem;
}

.status-open {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-closing {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-closed {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Status badge hover effects */
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Distance sorting indicator */
.halal-card[data-distance] {
    transition: all 0.3s ease;
}

.halal-card.sorting {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Geolocation permission styles */
.geolocation-permission {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.geolocation-permission button {
    background-color: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.geolocation-permission button:hover {
    background-color: #d97706;
}

/* ========================================
   INDIVIDUAL LISTING PAGE STYLES
   ======================================== */

/* Single Listing Card - New Layout */
.single-listing-card {
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Override center alignment for single listing page */
.single-listing-card .card-address-row,
.single-listing-card .card-phone-row,
.single-listing-card .card-type-row {
    text-align: left !important;
    margin-bottom: 0.5rem;
}

.single-listing-card .card-image {
    height: 300px;
}

/* New Layout: Main Details Row */
.card-details-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.card-details-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 1rem;
}

.card-service-options {
    flex: 0 0 280px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-options-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    align-items: flex-start;
}

.service-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: none;
    margin-bottom: 0.5rem;
    width: 100%;
}

.service-option-item:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.service-text {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.check-icon {
    font-size: 1rem;
    color: #10b981;
    flex-shrink: 0;
}

/* Business Type Row */
.card-type-row {
    margin-top: 0.5rem;
}

.business-type {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: capitalize;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card-details-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .card-service-options {
        flex: none;
        width: 100%;
    }
}

/* Service Details Section - REMOVED - Now integrated into main card */

/* Enrichment Items Grid - REMOVED - Now using service-options-list */

/* Business Description Box */
.business-description-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.business-description {
    line-height: 1.7;
    color: #4b5563;
    font-size: 1.1rem;
}

/* Map Section at Bottom */
.map-section-bottom {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-section-bottom h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e5e7eb;
}

.map-section-bottom .map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
}

.map-section-bottom .map-actions {
    text-align: center;
}

.map-section-bottom .map-link-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.map-section-bottom .map-link-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.halal-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Section */
.listing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-header {
    margin-bottom: 2rem;
}

.listing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-stars {
    font-size: 1.5rem;
    line-height: 1;
}

.rating-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
}

.price-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.order-button {
    background-color: #10b981;
    color: white;
}

.order-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.booking-button {
    background-color: #3b82f6;
    color: white;
}

.booking-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.phone-button {
    background-color: #f59e0b;
    color: white;
}

.phone-button:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

/* Content Grid Layout */
.listing-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Main Content Sections */
.listing-main-content section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.listing-main-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Business Information Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.info-value {
    color: #1f2937;
    font-size: 1rem;
}

.info-value a {
    color: #3b82f6;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Service Options Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    transition: all 0.2s ease;
}

.service-item.available {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.service-item.unavailable {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.service-icon {
    font-size: 1.5rem;
}

.service-text {
    font-weight: 600;
}

/* Special Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
    color: #374151;
}

/* Business Description */
.business-description {
    line-height: 1.7;
    color: #4b5563;
    font-size: 1.1rem;
}

/* Sidebar Styles */
.listing-sidebar section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.listing-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Map Section */
.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-actions {
    text-align: center;
}

.map-link-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.map-link-button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* Quick Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Business Hours */
.hours-display {
    color: #4b5563;
    line-height: 1.6;
}

/* Back to Listings */
.back-to-listings {
    text-align: center;
    margin: 3rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

/* Responsive Design for Individual Pages */
@media (max-width: 768px) {
    .listing-hero {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .listing-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .listing-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-button {
        flex: 1;
        min-width: 120px;
    }
    
    .service-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .halal-single-container {
        padding: 1rem 0.5rem;
    }
    
    .listing-main-content section,
    .listing-sidebar section {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .listing-title {
        font-size: 1.75rem;
    }
}
