/**
 * Local Directory - Frontend Styles
 * Theme: TripAdvisor-inspired (Compact Horizontal, Premium Minimalist)
 */

/* Variables */
:root {
    --ld-primary: #00aa6c;
    /* TripAdvisor Green approx */
    --ld-primary-dark: #008f5d;
    --ld-secondary: #333333;
    --ld-success: #22c55e;
    --ld-warning: #f59e0b;
    --ld-danger: #ef4444;
    --ld-text: #1e293b;
    --ld-review-color: #ffab00;
    --ld-text-light: #64748b;
    --ld-bg: #f2f4f8;
    --ld-hero-bg: #eaf4f7;
    --ld-border: #e2e8f0;
    --ld-radius: 8px;
    --ld-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --ld-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --ld-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ld-font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base resets for our components */
[class^="ld-"] {
    font-family: var(--ld-font);
    box-sizing: border-box;
}

/* 
 * ==========================================
 * GRID SYSTEM & CONTAINERS
 * ==========================================
 */
.ld-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow: hidden;
}

/* Ensure content columns don't overflow */
.ld-content-column,
.ld-sidebar-column {
    min-width: 0;
    /* Important for flex/grid children to shrink properly */
    overflow: hidden;
}

/* City Grid */
/* Modern City Grid */
.ld-city-grid-modern {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

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

.ld-city-grid-modern.ld-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ld-city-grid-modern.ld-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .ld-city-grid-modern.ld-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .ld-city-grid-modern.ld-columns-3,
    .ld-city-grid-modern.ld-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ld-city-grid-modern {
        grid-template-columns: 1fr !important;
    }
}

.ld-city-card-modern {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ld-city-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--ld-primary);
}

.ld-city-card-modern a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.ld-city-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--ld-hero-bg);
    color: var(--ld-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.ld-city-card-modern:hover .ld-city-icon-wrapper {
    background: var(--ld-primary);
    color: #fff;
}

.ld-city-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ld-secondary);
}

.ld-city-count-modern {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

/* Modern Region Grid */
.ld-region-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.ld-region-card-modern {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ld-region-card-modern:hover {
    border-color: var(--ld-primary);
    box-shadow: 0 8px 16px rgba(var(--ld-primary-rgb), 0.08);
    transform: translateY(-2px);
}

.ld-region-card-modern a {
    display: flex;
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: center;
    text-decoration: none;
}

.ld-region-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--ld-primary-rgb), 0.1);
    color: var(--ld-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ld-region-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ld-secondary);
}

.ld-region-counts-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.ld-sep {
    color: #d1d5db;
}



/* 
 * ==========================================
 * BUSINESS LISTINGS (Horizontal Cards)
 * ==========================================
 */
.ld-business-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.ld-business-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 160px;
}

.ld-business-card:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: var(--ld-primary);
    transform: translateY(-2px);
}

/* Left Column: Image */
.ld-card-image-col {
    width: 200px;
    flex-shrink: 0;
    position: relative;
}

.ld-card-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Column: Content */
.ld-card-content-col {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Spreads header/meta/footer */
}

/* Header Row: Title & Rating */
.ld-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.ld-business-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ld-text);
}

.ld-business-title a {
    color: inherit;
    text-decoration: none;
}

.ld-business-title a:hover {
    color: var(--ld-primary);
    text-decoration: underline;
}

.ld-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ld-stars {
    color: var(--ld-warning);
    letter-spacing: 1px;
}

.ld-rating-val {
    font-weight: 700;
}

.ld-review-count {
    color: var(--ld-text-light);
}

/* Meta Row: Address & Status */
.ld-card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--ld-text-light);
}

.ld-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ld-status-badge {
    display: inline-flex;
    font-weight: 600;
    color: var(--ld-text);
}

.ld-status-badge.open {
    color: var(--ld-success);
}

.ld-status-badge.closed {
    color: var(--ld-danger);
}

/* Footer Row: Phone & Button */
.ld-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ld-border);
    /* Subtle separator for action area? Or remove? */
    border: none;
    /* Let's keep it clean without border */
    margin-top: auto;
    padding-top: 0;
}

.ld-phone-text {
    font-weight: 500;
    color: var(--ld-text);
    font-size: 0.85rem;
}

.ld-phone-reveal {
    font-weight: 500;
    color: var(--ld-text);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--ld-border);
}

.ld-phone-reveal:hover {
    color: var(--ld-primary);
}

.ld-placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .ld-business-card {
        flex-direction: column;
    }

    .ld-card-image-col {
        width: 100%;
        height: 200px;
    }

    .ld-card-header-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ld-card-footer-row {
        margin-top: 1rem;
    }
}

/* Button */
.ld-btn {
    padding: 0.5rem 1rem;
    background: var(--ld-primary);
    color: white;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: pointer;
}

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

.ld-btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.ld-btn-outline {
    background: transparent;
    border: 1px solid var(--ld-border);
    color: var(--ld-text);
}

.ld-btn-outline:hover {
    border-color: var(--ld-text);
    background: var(--ld-bg);
}


/* 
 * ==========================================
 * SINGLE BUSINESS PAGE (Templates)
 * ==========================================
 */

/* Hero Section */
.ld-hero-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--ld-border);
    margin-bottom: 2rem;
}

.ld-parent-back-btn {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--ld-text-light);
    text-decoration: none;
}

.ld-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.ld-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

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

.ld-rating-score {
    background: var(--ld-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ld-review-count {
    color: var(--ld-text-light);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.ld-category-badge a {
    color: var(--ld-text);
    font-weight: 500;
    text-decoration: none;
}

.ld-category-badge a:hover {
    text-decoration: underline;
}

.ld-hero-address {
    margin-top: 1rem;
    color: var(--ld-text-light);
    font-size: 1rem;
}

/* Main Grid Layout */
.ld-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

@media (max-width: 900px) {
    .ld-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Column */
/* Content Column */
/* .ld-content-column { } */

.ld-single-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: var(--ld-radius);
    overflow: hidden;
}

.ld-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ld-description-box {
    margin-bottom: 3rem;
}

.ld-description-box h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--ld-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.ld-the-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ld-text);
}

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

.ld-sidebar-widget {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 1.5rem;
    box-shadow: var(--ld-shadow);
}

.ld-sidebar-widget h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ld-map-widget {
    padding: 0;
    overflow: hidden;
    height: 250px;
}

#ld-map-canvas {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ld-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-contact-details li {
    width: 100%;
}

.ld-hours-list {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ld-secondary);
}

/* 
 * ==========================================
 * UTILITIES
 * ==========================================
 */
.ld-open-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ld-open-status-badge.open {
    background: #dcfce7;
    color: #166534;
}

.ld-open-status-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

/* Reviews Styling for new template */
.ld-reviews-container {
    padding-top: 2rem;
    border-top: 1px solid var(--ld-border);
}

/* Reviews List & Item Styling */
.ld-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.ld-review-item {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ld-review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ld-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ld-reviewer-name {
    font-size: 1.1rem;
    color: var(--ld-secondary);
}

.ld-review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ld-secondary);
}

.ld-review-date {
    font-size: 0.875rem;
    color: var(--ld-text-light);
    margin-left: auto;
}

.ld-review-content {
    line-height: 1.6;
    color: var(--ld-text);
}

.ld-review-content p {
    margin-bottom: 1rem;
}

.ld-review-content p:last-child {
    margin-bottom: 0;
}

.ld-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ld-review-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ld-border);
}

.ld-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-write-review-box {
    background: var(--ld-bg);
    padding: 1.5rem;
    border-radius: var(--ld-radius);
    margin-top: 2rem;
}



/* 
 * ==========================================
 * BREADCRUMBS (Restored)
 * ==========================================
 */
.ld-breadcrumbs {
    margin: 1rem 0 2rem;
    font-size: 0.875rem;
}

.ld-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ld-breadcrumbs li {
    display: flex;
    align-items: center;
}

.ld-breadcrumbs li::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--ld-text-light);
}

.ld-breadcrumbs li:last-child::after {
    display: none;
}

.ld-breadcrumbs a {
    color: var(--ld-primary);
    text-decoration: none;
}

.ld-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Pill Slider - Simple scrollable version */
.ld-pill-card {
    overflow: hidden !important;
}

.ld-pill-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ld-pill-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    padding-right: 3rem;
    /* Extra space so last item isn't under fade */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ld-pill-slider::-webkit-scrollbar {
    display: none;
}

/* Fade indicator on right to show more content */
.ld-pill-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    z-index: 2;
}

.ld-pill-item {
    flex: 0 0 auto;
    padding: 0.6rem 1.2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ld-pill-item:hover {
    border-color: var(--ld-primary);
    background: #f2f4f8;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mobile responsive for pill slider */
@media (max-width: 640px) {
    .ld-pill-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .ld-pill-fade {
        width: 40px;
    }
}

.ld-region-business-list-section {
    margin-top: 3rem;
}

.ld-region-business-list-wrapper,
.ld-city-business-list-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* City Page Meta */
.ld-city-business-header {
    margin-bottom: 2rem;
}

.ld-city-business-header h3 {
    margin-bottom: 0.5rem;
}

/* 
 * ==========================================
 * HOMEPAGE HERO (Modern Redesign)
 * ==========================================
 */
.ld-hero-modern {
    background-color: var(--ld-hero-bg);
    /* Light cyan background from inspiration */
    padding: 6rem 0 8rem;
    margin-bottom: 3rem;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ld-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.ld-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ld-hero-brand {
    color: var(--ld-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.ld-hero-title-modern {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--ld-secondary);
    /* Dark midnight blue */
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1.5px;
}

.ld-hero-desc {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 550px;
    margin: 0.5rem 0;
}

.ld-hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 1.5rem 0;
}

.ld-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.ld-feature-icon {
    width: 52px;
    height: 52px;
    background: var(--ld-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--ld-primary-rgb), 0.25);
}

.ld-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ld-feature-text strong {
    font-size: 1.25rem;
    color: var(--ld-secondary);
    font-weight: 700;
}

.ld-feature-text span {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Search Box Modern */
.ld-hero-search-modern {
    margin-top: 2rem;
    max-width: 600px;
    position: relative;
}

.ld-search-input-group-modern {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.ld-search-icon-modern {
    padding: 0 1.25rem;
    color: #9ca3af;
    font-size: 1.2rem;
}

.ld-hero-search-input-modern {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 0.85rem 0.5rem !important;
    font-size: 1.1rem !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ld-secondary);
}

.ld-hero-search-btn-modern {
    background: transparent;
    color: var(--ld-primary);
    border: 2px solid var(--ld-primary);
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ld-hero-search-btn-modern:hover {
    background: var(--ld-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--ld-primary-rgb), 0.2);
}

/* Right Side Image */
.ld-hero-right {
    position: relative;
}

.ld-hero-image-wrapper {
    position: relative;
    width: 100%;
}

.ld-hero-img {
    width: 100%;
    height: auto;
    border-radius: 40px 40px 450px 40px;
    /* Large organic curve */
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.ld-hero-badge {
    position: absolute;
    bottom: -10px;
    right: 30px;
    background: var(--ld-primary);
    /* Solid primary blue badge */
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(var(--ld-primary-rgb), 0.4);
    white-space: nowrap;
    z-index: 5;
}

/* Search Suggestions Autocomplete */
.ld-search-form {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.ld-search-form form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--ld-shadow-lg);
    border: 1px solid var(--ld-border);
}

.ld-search-form input[type="search"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 0.8rem 1rem !important;
    font-size: 1.1rem !important;
    background: transparent !important;
}

.ld-search-btn-modern {
    background: var(--ld-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.ld-search-btn-modern:hover {
    background: var(--ld-primary-dark) !important;
}

.ld-hero-search-wrapper,
.ld-search-form {
    position: relative;
}

.ld-search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    overflow: hidden;
    display: none;
    text-align: left;
}

.ld-hero-search-modern .ld-search-suggestions {
    left: 0;
    right: 0;
    top: calc(100% + 12px);
}

.ld-suggestion-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

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

.ld-suggestion-item:hover {
    background: #f9fafb;
}

.ld-suggestion-icon {
    font-size: 1.5rem;
    margin-right: 18px;
    opacity: 0.9;
}

.ld-suggestion-info {
    display: flex;
    flex-direction: column;
}

.ld-suggestion-title {
    font-weight: 700;
    color: var(--ld-secondary);
    font-size: 1.05rem;
}

.ld-suggestion-type {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .ld-hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .ld-hero-left {
        align-items: center;
    }

    .ld-hero-desc {
        max-width: 600px;
    }

    .ld-hero-right {
        order: -1;
        max-width: 550px;
        margin: 0 auto;
    }

    .ld-hero-title-modern {
        font-size: 3rem;
    }

    .ld-hero-search-modern {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ld-hero-modern {
        padding: 4rem 0 5rem;
    }

    .ld-hero-title-modern {
        font-size: 2.25rem;
    }

    .ld-hero-desc {
        font-size: 1.05rem;
    }

    .ld-hero-badge {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
        right: 15px;
    }

    .ld-hero-search-btn-modern {
        padding: 0.85rem 1.5rem;
    }

    .ld-hero-search-icon-modern {
        padding: 0 0.75rem;
    }
}

/* Ensure no horizontal scroll from full-width hacks */
body {
    overflow-x: hidden;
}

/* 
 * ==========================================
 * SINGLE BUSINESS MODERN UI
 * ==========================================
 */

.ld-single-hero {
    background-color: var(--ld-hero-bg);
    padding: 3rem 0 4rem;
    margin-bottom: 3rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ld-hero-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
}

.ld-hero-brand {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ld-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.ld-single-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--ld-secondary);
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.ld-single-meta-row-modern {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Rating Badge Modern */
.ld-rating-badge-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ld-rating-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ld-secondary);
}

.ld-rating-stars-info {
    display: flex;
    flex-direction: column;
}

.ld-rating-stars-info .ld-stars {
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: var(--ld-review-color);
}

.ld-stars {
    color: var(--ld-review-color);
}

.ld-review-count-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.ld-category-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #4b5563;
    font-size: 0.95rem;
}

.ld-category-tag i {
    color: var(--ld-primary);
}

.ld-category-tag a {
    color: inherit;
    text-decoration: none;
}

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

.ld-status-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
}

.ld-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.ld-status-tag.open {
    color: #059669;
}

.ld-status-tag.open .ld-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.ld-status-tag.closed {
    color: #dc2626;
}

.ld-status-tag.closed .ld-status-dot {
    background: #ef4444;
}

.ld-hero-address-modern {
    margin: 0;
    font-size: 1.1rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.ld-hero-address-modern i {
    color: var(--ld-primary);
}

/* Hero Actions */
.ld-hero-actions-modern {
    display: flex;
    gap: 1rem;
}

.ld-btn-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.ld-btn-call {
    background: var(--ld-primary);
    color: #fff;
}

.ld-btn-call:hover {
    background: var(--ld-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--ld-primary-rgb), 0.25);
}

.ld-btn-visit {
    background: #fff;
    color: var(--ld-secondary);
    border: 1px solid #e5e7eb;
}

.ld-btn-visit:hover {
    border-color: var(--ld-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Main Grid Modern */
.ld-main-grid-modern {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-bottom: 5rem;
}

.ld-main-grid-modern.ld-no-sidebar {
    grid-template-columns: 1fr;
}

/* Card Modern */
.ld-card-modern,
.ld-sidebar-card,
.ld-image-card-modern {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    /* Prevent content overflow */
}

.ld-image-card-modern {
    padding: 0;
    overflow: hidden;
}

.ld-featured-img-modern {
    width: 100%;
    height: auto;
    display: block;
}

.ld-card-header,
.ld-card-header-sidebar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ld-card-header i,
.ld-card-header-sidebar i {
    color: var(--ld-primary);
    font-size: 1.25rem;
}

.ld-card-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ld-secondary);
}

.ld-card-header-sidebar h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ld-secondary);
}

.ld-the-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4b5563;
}

.ld-the-content p {
    margin-bottom: 1.5rem;
}

/* Reviews Card Refinements */
.ld-write-review-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #f3f4f6;
}

.ld-write-review-area h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.ld-reviews-card.ld-card-modern .ld-card-header i {
    color: var(--ld-review-color);
}

.ld-review-intro {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Sidebar Specifics */
.ld-sidebar-card {
    padding: 2rem;
}

.ld-sidebar-address {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.ld-contact-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ld-contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ld-contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ld-contact-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ld-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.ld-sidebar-actions {
    margin-top: 0.5rem;
}

.ld-btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

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

.ld-btn-sidebar.ld-btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.ld-hours-list-modern {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Responsive Single Page */
@media (max-width: 1024px) {
    .ld-main-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ld-hero-content-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .ld-single-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 640px) {

    .ld-hero-modern,
    .ld-single-hero {
        padding: 2.5rem 0 3.5rem;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .ld-single-title {
        font-size: 2rem;
        /* Even smaller for mobile */
        word-wrap: break-word;
    }

    .ld-hero-actions-modern {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .ld-btn-hero {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }

    .ld-single-meta-row-modern {
        gap: 0.75rem;
    }

    .ld-rating-badge-modern {
        width: 100%;
        justify-content: space-between;
    }

    .ld-card-modern,
    .ld-sidebar-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .ld-main-grid-modern {
        margin-bottom: 3rem;
    }

    .ld-card-header h2 {
        font-size: 1.4rem;
    }

    .ld-card-header-sidebar h3 {
        font-size: 1.15rem;
    }

    .ld-the-content {
        font-size: 1.05rem;
    }
}

/* Business Submission Form */
.ld-submission-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid #eef2f6;
}

.ld-submission-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ld-submission-header h2 {
    color: var(--ld-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 2.25rem;
    font-family: var(--ld-font-heading);
    font-weight: 800;
}

.ld-submission-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.ld-form-modern .ld-form-group {
    margin-bottom: 1.5rem;
}

.ld-form-modern .ld-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ld-form-modern label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ld-secondary);
    font-size: 0.95rem;
}

.ld-form-modern label .required {
    color: #ef4444;
}

.ld-form-modern input[type="text"],
.ld-form-modern input[type="email"],
.ld-form-modern input[type="tel"],
.ld-form-modern input[type="url"],
.ld-form-modern select,
.ld-form-modern textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--ld-font);
    transition: all 0.2s;
    background-color: #f8fafc;
}

.ld-form-modern input:focus,
.ld-form-modern select:focus,
.ld-form-modern textarea:focus {
    outline: none;
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 4px rgba(var(--ld-primary-rgb), 0.1);
    background-color: #fff;
}

.ld-form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.ld-message {
    padding: 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: none;
}

.ld-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.ld-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.ld-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ld-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

@media (max-width: 640px) {
    .ld-form-modern .ld-form-row {
        grid-template-columns: 1fr;
    }

    .ld-submission-wrapper {
        padding: 1.5rem;
        margin: 1rem;
    }

    .ld-submission-header h2 {
        font-size: 1.75rem;
    }
}