/* Photo steps shared by the public how-it-works sections.
   Cool slate canvas, 8px corners, Inter titles. The page heading stays Fraunces. */

.place-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}

.place-steps-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
}

.place-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
    background: var(--surface-dark);
}

.place-tile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fixed photo band. Extra card height goes to the caption, so every shade
   in the row is the same height whatever the copy length. */
.place-tile::before {
    content: "";
    flex: 0 0 240px;
}

.place-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Top scrim keeps the step index readable. The caption bar carries the type. */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 34%);
    pointer-events: none;
}

.place-tile-index {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
}

.place-tile-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 16px 16px;
    background: rgba(15, 23, 42, 0.88);
}

.place-tile-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 0.35rem;
}

.place-tile-body {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    margin: 0;
}

.place-tile .explainer-link {
    display: inline;
    margin-left: 0.35rem;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.place-tile .explainer-link:hover {
    color: #fff;
}

.place-steps .reveal,
.place-steps .reveal-static {
    display: flex;
    min-width: 0;
    height: 100%;
}

.place-steps .place-tile {
    flex: 1;
    width: 100%;
}

@media (max-width: 1100px) {
    .place-steps-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .place-steps,
    .place-steps-4 {
        grid-template-columns: 1fr;
        max-width: 32rem;
    }

    .place-tile {
        min-height: 240px;
    }

    .place-tile::before {
        flex-basis: 128px;
    }
}
