/* ============================================================
   TicketPayGo Seating — dedicated page styles
   Builds on styles.css + badges-page.css (reuses tpgb-* layout).
   Only seat-specific visuals live here.
   ============================================================ */

/* Seat map frame (hero + AI output) */
#tpg-landing .tpgs-map-frame {
    background: #fff;
    border: 1px solid var(--tpg-gray-200);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(10, 73, 116, 0.14);
    padding: 1.25rem 1.25rem 1rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

#tpg-landing .tpgs-seatmap-svg {
    width: 100%;
    height: auto;
    display: block;
}

#tpg-landing .tpgs-map-frame--sm {
    max-width: 340px;
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgba(10, 73, 116, 0.12);
}

/* Legend */
#tpg-landing .tpgs-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.1rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--tpg-gray-100);
}

#tpg-landing .tpgs-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--tpg-gray-600);
}

#tpg-landing .tpgs-swatch {
    width: 15px;
    height: 13px;
    border-radius: 4px;
    border: 1.5px solid;
    flex-shrink: 0;
}

#tpg-landing .tpgs-swatch--avail { background: #dbeafe; border-color: #60a5fa; }
#tpg-landing .tpgs-swatch--sel   { background: #42963b; border-color: #2f6b2a; }
#tpg-landing .tpgs-swatch--taken { background: #e5e9f0; border-color: #cbd5e1; }
#tpg-landing .tpgs-swatch--wheel { background: #ede9fe; border-color: #8b5cf6; }

/* AI flow: photo -> AI -> map */
#tpg-landing .tpgs-ai-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 2.25rem auto 0.5rem;
    max-width: 900px;
}

#tpg-landing .tpgs-ai-panel {
    margin: 0;
    text-align: center;
    flex: 1 1 300px;
    min-width: 260px;
}

#tpg-landing .tpgs-ai-panel figcaption {
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--tpg-gray-500);
}

/* "photo" mock of an existing chart */
#tpg-landing .tpgs-photo-mock {
    position: relative;
    background:
        linear-gradient(0deg, rgba(10,73,116,0.04), rgba(10,73,116,0.04)),
        repeating-linear-gradient(45deg, #f8fafc 0 10px, #f1f5f9 10px 20px);
    border: 1px dashed var(--tpg-gray-300);
    border-radius: 14px;
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    filter: grayscale(0.15);
}

#tpg-landing .tpgs-photo-stage {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 16px;
    background: #fff;
}

#tpg-landing .tpgs-photo-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 70%;
}
#tpg-landing .tpgs-photo-rows span {
    height: 10px;
    border-radius: 5px;
    background: repeating-linear-gradient(90deg, #94a3b8 0 12px, transparent 12px 18px);
    opacity: 0.55;
}
#tpg-landing .tpgs-photo-rows span:nth-child(1){ width: 60%; margin: 0 auto; }
#tpg-landing .tpgs-photo-rows span:nth-child(2){ width: 74%; margin: 0 auto; }
#tpg-landing .tpgs-photo-rows span:nth-child(3){ width: 86%; margin: 0 auto; }
#tpg-landing .tpgs-photo-rows span:nth-child(4){ width: 95%; margin: 0 auto; }
#tpg-landing .tpgs-photo-rows span:nth-child(5){ width: 100%; }
#tpg-landing .tpgs-photo-scribble {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 0.65rem;
    color: #94a3b8;
    transform: rotate(-6deg);
}
#tpg-landing .tpgs-photo-scribble::before { content: "Row K · 12–24"; }

#tpg-landing .tpgs-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* AI convert chip */
#tpg-landing .tpgs-ai-convert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--tpg-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
#tpg-landing .tpgs-ai-convert svg { width: 34px; height: 34px; }

@media (max-width: 640px) {
    #tpg-landing .tpgs-ai-convert svg { transform: rotate(90deg); }
}

/* Callout icon (reuses badges .tpgb-qr-callout dark card) */
#tpg-landing .tpgs-callout svg { color: #ffd76a; }
#tpg-landing .tpgs-callout-icon { width: 2.25rem; height: 2.25rem; flex-shrink: 0; margin-top: 0.125rem; }

/* Feature grid: give seating icons the brand accent */
#tpg-landing .tpgs-feature-grid .tpgb-customize-item svg { color: var(--tpg-accent); }
#tpg-landing .tpgs-feature-grid .tpgb-customize-item img { width: 1.375rem; height: auto; flex-shrink: 0; margin-top: 0.125rem; }

/* Use-case chips */
#tpg-landing .tpgs-usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto;
}

#tpg-landing .tpgs-usecase {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--tpg-gray-200);
    border-radius: var(--tpg-radius-lg);
    padding: 1rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--tpg-gray-800);
    transition: var(--tpg-transition-base);
}
#tpg-landing .tpgs-usecase:hover {
    transform: translateY(-2px);
    box-shadow: var(--tpg-shadow-md);
    border-color: var(--tpg-accent-light);
}
#tpg-landing .tpgs-usecase-icon {
    width: 2rem;
    height: 2rem;
    color: var(--tpg-accent);
    flex-shrink: 0;
}
#tpg-landing .tpgs-usecase-icon svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
    #tpg-landing .tpgs-usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    #tpg-landing .tpgs-usecase-grid { grid-template-columns: 1fr; }
    #tpg-landing .tpgs-map-frame { padding: 0.85rem; }
}
