/* Local Business Pro - Frontend Styles */

.lbp-events {
    margin: 2em 0;
}

/* Grid & Cards layout */
.lbp-layout-grid,
.lbp-layout-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

/* List layout */
.lbp-layout-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.lbp-layout-list .lbp-event-card {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
}

.lbp-layout-list .lbp-event-image {
    flex: 0 0 200px;
}

/* Event card */
.lbp-event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.lbp-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cards variant */
.lbp-layout-cards .lbp-event-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.lbp-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.lbp-event-content {
    padding: 1.25em;
    min-width: 0;
    overflow-wrap: break-word;
}

.lbp-event-category {
    display: inline-block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    background: #f0f0f0;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    margin-bottom: 0.5em;
}

.lbp-event-title {
    font-size: 1.2em;
    margin: 0 0 0.5em;
    line-height: 1.3;
}

.lbp-event-title a {
    color: inherit;
    text-decoration: none;
}

.lbp-event-title a:hover {
    text-decoration: underline;
}

.lbp-event-date {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0.4em;
}

.lbp-event-location {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0.6em;
}

.lbp-event-description {
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1em;
    overflow-wrap: break-word;
}

.lbp-event-link {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--lbp-primary, #0073aa);
    text-decoration: none;
}

.lbp-event-link:hover {
    text-decoration: underline;
}

.lbp-error {
    color: #d63638;
    padding: 1em;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
}

.lbp-no-events {
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .lbp-layout-grid,
    .lbp-layout-cards {
        grid-template-columns: 1fr;
    }

    .lbp-layout-list .lbp-event-card {
        flex-direction: column;
    }

    .lbp-layout-list .lbp-event-image {
        flex: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .lbp-layout-grid,
    .lbp-layout-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Showcase layout */
.lbp-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 1.5em;
    align-items: stretch;
}

.lbp-showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    max-height: 450px;
    overflow-y: auto;
}

.lbp-showcase-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    padding: 1em;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lbp-showcase-sidebar-item:hover {
    border-color: var(--lbp-primary, #0073aa);
}

.lbp-showcase-sidebar-item.active {
    background: var(--lbp-primary, #0073aa);
    border-color: var(--lbp-primary, #0073aa);
    color: #fff;
}

.lbp-showcase-sidebar-content {
    flex: 1;
    min-width: 0;
}

.lbp-showcase-sidebar-title {
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 0 0.25em;
    line-height: 1.3;
}

.lbp-showcase-sidebar-date {
    font-size: 0.8em;
    opacity: 0.8;
}

.lbp-showcase-sidebar-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.lbp-showcase-image {
    overflow: hidden;
    border-radius: 8px;
}

.lbp-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lbp-showcase-details {
    position: relative;
    min-width: 0;
}

.lbp-showcase-detail-panel {
    display: none;
    overflow-wrap: break-word;
}

.lbp-showcase-detail-panel.active {
    display: block;
}

.lbp-showcase-subtitle {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 0.5em;
}

.lbp-showcase-title {
    font-size: 1.75em;
    font-weight: 700;
    margin: 0 0 0.75em;
    line-height: 1.2;
}

.lbp-showcase-description {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1em;
}

.lbp-showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25em;
}

.lbp-showcase-features li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    font-size: 0.95em;
    color: #333;
}

.lbp-showcase-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lbp-primary, #0073aa);
    font-weight: 700;
}

.lbp-showcase-price {
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    margin-bottom: 1.25em;
}

.lbp-showcase-price-label {
    font-size: 0.85em;
    color: #666;
}

.lbp-showcase-price-value {
    font-size: 1.25em;
    font-weight: 700;
    color: #222;
}

.lbp-showcase-cta {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
}

.lbp-showcase-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
}

.lbp-showcase-btn:hover {
    opacity: 0.85;
}

.lbp-showcase-btn-primary {
    background: var(--lbp-secondary, #2ecc71);
    color: #fff;
}

.lbp-showcase-btn-secondary {
    background: var(--lbp-tertiary, #f0c040);
    color: #333;
}

@media (max-width: 768px) {
    .lbp-showcase {
        grid-template-columns: 1fr;
    }

    .lbp-showcase-sidebar {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
        overflow-y: visible;
    }

    .lbp-showcase-sidebar-item {
        min-width: 200px;
        flex-shrink: 0;
    }

    .lbp-showcase-image img {
        min-height: 200px;
        max-height: 300px;
    }
}

/* Single Event Page */
.lbp-single-event-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2em 1em;
    background: #f0f2f5;
}

/* Hero with image + overlay */
.lbp-single-event-hero {
    position: relative;
    margin-bottom: 1.5em;
    border-radius: 12px;
    overflow: hidden;
}

.lbp-single-event-hero img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.lbp-single-event-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5em;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.lbp-single-event-hero-overlay .lbp-single-event-title {
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 0.35em;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lbp-single-event-price-badge {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    color: #fff;
    background: var(--lbp-primary, #3b82f6);
    padding: 0.25em 0.75em;
    border-radius: 20px;
}

.lbp-single-event-header {
    margin-bottom: 1.5em;
}

.lbp-single-event-header .lbp-single-event-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Cards */
.lbp-single-event-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    overflow: hidden;
}

/* Section titles inside cards */
.lbp-single-event-section-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 1em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid #f0f0f0;
}

/* Meta items with icons */
.lbp-single-event-meta-item {
    display: flex;
    gap: 0.75em;
    align-items: flex-start;
    padding: 0.75em 0;
}

.lbp-single-event-meta-item:first-child {
    padding-top: 0;
}

.lbp-single-event-meta-item:last-child {
    padding-bottom: 0;
}

.lbp-single-event-meta-item + .lbp-single-event-meta-item {
    border-top: 1px solid #f0f0f0;
}

.lbp-single-event-meta-item > div:not(.lbp-single-event-meta-icon) {
    min-width: 0;
    overflow-wrap: break-word;
}

.lbp-single-event-meta-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 8px;
    color: #6b7280;
}

.lbp-single-event-meta-item strong {
    display: block;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.25em;
}

.lbp-single-event-meta-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
}

.lbp-single-event-meta-item a:hover {
    text-decoration: underline;
}

.lbp-single-event-datetime-row {
    font-size: 0.95em;
    color: #333;
    line-height: 1.6;
}

/* Schedule entries */
.lbp-single-event-schedule-entry {
    padding: 0.75em 0;
}

.lbp-single-event-schedule-entry + .lbp-single-event-schedule-entry {
    border-top: 1px solid #f0f0f0;
}

.lbp-single-event-schedule-entry:first-of-type {
    padding-top: 0;
}

.lbp-single-event-schedule-entry:last-of-type {
    padding-bottom: 0;
}

.lbp-single-event-schedule-date {
    font-size: 0.95em;
    font-weight: 600;
    color: #1f2937;
}

.lbp-single-event-schedule-time {
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 0.15em;
}

.lbp-single-event-schedule-label {
    font-size: 0.85em;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.15em;
}

/* Ticket / Pricing */
.lbp-single-event-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.lbp-single-event-ticket + .lbp-single-event-ticket {
    margin-top: 0.75em;
}

.lbp-single-event-ticket-name {
    font-size: 0.95em;
    font-weight: 600;
    color: #1f2937;
}

.lbp-single-event-ticket-desc {
    font-size: 0.8em;
    color: #6b7280;
    margin-top: 0.15em;
}

.lbp-single-event-ticket-price {
    font-size: 1.15em;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

/* Features list */
.lbp-single-event-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
}

.lbp-single-event-features-list li {
    position: relative;
    padding-left: 1.5em;
    font-size: 0.95em;
    color: #333;
}

.lbp-single-event-features-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lbp-primary, #0073aa);
    font-weight: 700;
}

/* CTA Buttons */
.lbp-single-event-btn {
    display: block;
    padding: 1em 2em;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
    margin-bottom: 0.75em;
}

.lbp-single-event-btn:hover {
    opacity: 0.85;
}

.lbp-single-event-btn-primary {
    background: var(--lbp-secondary, #2ecc71);
    color: #fff;
}

.lbp-single-event-btn-secondary {
    background: var(--lbp-tertiary, #111);
    color: #fff;
}

/* Chat widget close button override */
.lbp-chat-widget-bubble-close {
    background: #fff !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.lbp-chat-widget-bubble-close svg {
    width: 16px;
    height: 16px;
}

.lbp-chat-widget-bubble-close svg path {
    stroke: #000;
}

.lbp-chat-widget-bubble-close:hover {
    background: var(--lbp-primary, #0073aa) !important;
}

.lbp-chat-widget-bubble-close:hover svg path {
    stroke: #fff;
}

/* Chat widget main button override */
.lbp-chat-widget-button {
    transition: filter 0.2s ease;
}

.lbp-chat-widget-button:hover,
.lbp-chat-widget-button:focus {
    background: var(--lbp-tertiary, #111111) !important;
}

@media (max-width: 768px) {
    .lbp-single-event-page {
        padding: 1em 0.75em;
    }

    .lbp-single-event-hero-overlay .lbp-single-event-title {
        font-size: 1.25em;
    }

    .lbp-single-event-hero img {
        max-height: 220px;
    }

    .lbp-single-event-features-list {
        grid-template-columns: 1fr;
    }
}
