.detail-layout {
    max-width: 900px;
}

.detail-card {
    display: grid;
    gap: 24px;
}

.event-detail-title {
    margin-top: 0;
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.detail-item--type {
    grid-column: 1;
}

.detail-item--registered {
    grid-column: 2 / 4;
}

.card-actions.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

.card-actions.detail-actions .btn {
    min-width: 180px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 112px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.event-location-map {
    margin-top: 12px;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.event-location-map-iframe {
    width: 100%;
    height: 320px;
    border: none;
}

.event-address-link,
.event-person-link {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.event-address-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-map-section,
.event-people-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.event-map-section {
    padding: 20px 24px 24px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.event-map-section h2,
.event-people-block h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.event-map-section h2 {
    margin-bottom: 16px;
}

.event-people-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    border-top: 0;
    padding-top: 0;
}

.event-people-block {
    display: grid;
    min-height: 112px;
    align-content: start;
    gap: 6px;
}

.event-people-block > span:first-child {
    min-height: 22px;
}

.event-people-block > span:first-child {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .detail-item--registered {
        grid-column: 1 / 3;
    }

    .detail-item {
        min-height: 100px;
        padding: 16px;
    }

    .event-people-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-location-map-iframe {
        height: 230px;
    }
}

..private-event-note {
    background: #fff7ed;
    border-color: #fed7aa;
}

html.dark-mode .private-event-note {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(100, 116, 139, 0.6);
}

html.dark-mode .private-event-note strong {
    color: #f8fafc;
}

html.dark-mode .private-event-note a {
    color: #93c5fd;
}

.private-event-note strong {
    display: block;
    margin-top: 8px;
}

.private-event-note a {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    text-decoration: underline;
}

.detail-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.detail-description {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.wedding-highlight {
    background: rgba(254, 226, 226, 0.4);
    border-color: #fca5a5;
}

.wedding-tips {
    padding: 24px;
    border-radius: var(--radius-md);
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.wedding-tips h2 {
    margin-top: 0;
}

.wedding-tips ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.wedding-tips li {
    margin-bottom: 0.75rem;
}

/* Passed Event Detail Styling */
.detail-card--passed {
    opacity: 0.85;
    border-color: var(--border);
}

.detail-card--passed h1 {
    text-decoration: line-through;
    color: var(--muted);
}

.detail-card--passed .detail-item {
    opacity: 0.8;
}

.passed-event-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

html.dark-mode .passed-event-banner {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}
