/* Public business place page — uses marketplace tokens from app.css */
.place-page {
    background: var(--cream, #f7f9fa);
    padding-bottom: 48px;
}

.place-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.place-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #f1c4c4;
    border-radius: 12px;
    background: #fff5f5;
    color: #8b2f2f;
    font-size: 14px;
}

.place-alert-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
}

.place-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
}

.place-tag {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mint, #e8f3f7);
    color: var(--g, #176b87);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.place-title {
    margin: 0;
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--ink, #102632);
}

.place-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    color: var(--muted, #63747d);
    font-size: 14px;
}

.place-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.place-hours--open {
    color: #0b7956;
    font-weight: 700;
}

.place-hours--closed {
    color: #b45309;
    font-weight: 700;
}

.place-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.place-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 10px;
    background: #fff;
    color: var(--ink, #102632);
    font-size: 14px;
    font-weight: 700;
}

.place-link-btn:hover {
    border-color: var(--g, #176b87);
    color: var(--g, #176b87);
}

.place-link-btn--icon {
    width: 38px;
    padding: 0;
    justify-content: center;
}

.place-rating-badge {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 140px;
    padding: 14px 16px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.place-rating-badge strong {
    font-size: 28px;
    line-height: 1;
    color: var(--ink, #102632);
}

.place-rating-badge span {
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-gallery {
    position: relative;
    margin-top: 22px;
}

.place-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 320px;
}

.place-gallery-main,
.place-gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #dfe9ed;
}

.place-gallery-main img,
.place-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.place-gallery-main {
    min-height: 320px;
}

.place-gallery-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.place-gallery-thumb {
    min-height: 120px;
}

.place-gallery-main:hover img,
.place-gallery-thumb:hover img {
    transform: scale(1.03);
}

.place-gallery-all {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(8, 47, 66, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.place-gallery-all:hover {
    background: var(--dg, #082f42);
    color: #fff;
}

.place-section-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 24px;
    padding-bottom: 4px;
    position: sticky;
    top: 72px;
    z-index: 20;
    background: linear-gradient(var(--cream, #f7f9fa) 75%, rgba(247, 249, 250, 0));
}

.place-section-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #63747d);
    font-size: 13px;
    font-weight: 700;
}

.place-section-nav a:hover {
    border-color: var(--g, #176b87);
    color: var(--g, #176b87);
}

.place-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.place-main {
    display: grid;
    gap: 28px;
}

.place-section {
    scroll-margin-top: 120px;
}

.place-section-head h2 {
    margin: 0;
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: 24px;
    color: var(--ink, #102632);
}

.place-section-head p {
    margin: 6px 0 0;
    color: var(--muted, #63747d);
    font-size: 14px;
}

.place-empty-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 28px 20px;
    border: 1px dashed var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
    color: var(--muted, #63747d);
    text-align: center;
}

.place-empty-card i {
    font-size: 28px;
    color: var(--g, #176b87);
}

.place-service-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.place-service-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #63747d);
    font-size: 13px;
    font-weight: 700;
}

.place-service-tab span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mint, #e8f3f7);
    color: var(--g, #176b87);
    font-size: 11px;
}

.place-service-tab.is-active,
.place-service-tab.active {
    border-color: var(--g, #176b87);
    background: var(--g, #176b87);
    color: #fff;
}

.place-service-tab.is-active span,
.place-service-tab.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.place-service-panels {
    margin-top: 14px;
}

.place-service-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
}

.place-service-copy h3 {
    margin: 0;
    font-size: 17px;
    color: var(--ink, #102632);
}

.place-service-copy p {
    margin: 6px 0 0;
    color: var(--muted, #63747d);
    font-size: 14px;
}

.place-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-service-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.place-service-deal {
    color: #0b7956;
    font-weight: 700;
}

.place-service-action {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 120px;
}

.place-service-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink, #102632);
    text-align: right;
}

.place-service-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--g, #176b87);
    border-radius: 10px;
    background: var(--g, #176b87);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.place-service-book:hover {
    background: var(--dg, #082f42);
    border-color: var(--dg, #082f42);
    color: #fff;
}

.place-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.place-team-card {
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.place-team-link {
    display: grid;
    gap: 0;
    color: inherit;
}

.place-team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.place-team-body {
    padding: 14px;
}

.place-team-body h3 {
    margin: 0;
    font-size: 16px;
}

.place-team-body p {
    margin: 4px 0 0;
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-team-book {
    display: inline-flex;
    margin-top: 12px;
    color: var(--g, #176b87);
    font-size: 13px;
    font-weight: 700;
}

.place-reviews-summary {
    margin-top: 16px;
}

.place-reviews-score {
    display: inline-grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
}

.place-reviews-score strong {
    font-size: 32px;
    line-height: 1;
}

.place-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.place-review-card {
    padding: 16px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
}

.place-review-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.place-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

.place-review-head h3 {
    margin: 0;
    font-size: 15px;
}

.place-review-head time {
    color: var(--muted, #63747d);
    font-size: 12px;
}

.place-review-stars {
    margin-top: 10px;
}

.place-review-card h4 {
    margin: 8px 0 0;
    font-size: 14px;
}

.place-review-card p {
    margin: 8px 0 0;
    color: var(--ink, #102632);
    font-size: 14px;
}

.place-about-card,
.place-map-card {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
}

.place-about-card p {
    margin: 0;
    color: var(--ink, #102632);
    line-height: 1.6;
}

.place-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--g, #176b87);
    font-weight: 700;
}

.place-map-card {
    padding: 0;
    overflow: hidden;
}

.place-map-card img {
    display: block;
    width: 100%;
    height: auto;
}

.place-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    color: var(--g, #176b87);
    font-weight: 700;
}

.place-hours-list {
    margin-top: 14px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.place-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--line, #dce6ea);
    font-size: 14px;
}

.place-hours-row:first-child {
    border-top: 0;
}

.place-hours-row.is-today {
    background: var(--mint, #e8f3f7);
}

.place-hours-day {
    font-weight: 700;
    color: var(--ink, #102632);
}

.place-hours-slots {
    color: var(--muted, #63747d);
    text-align: right;
}

.place-aside {
    position: sticky;
    top: 96px;
}

.place-book-card {
    padding: 18px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 38, 50, 0.06);
}

.place-book-logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-inline: auto;
    border-radius: 16px;
    background: var(--mint, #e8f3f7);
    overflow: hidden;
}

.place-book-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-book-card h2 {
    margin: 12px 0 0;
    font-size: 18px;
    text-align: center;
}

.place-book-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-book-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink, #102632);
}

.place-book-address,
.place-book-contact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-book-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    border-radius: 12px;
    background: var(--g, #176b87);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.place-book-cta:hover {
    background: var(--dg, #082f42);
    color: #fff;
}

.place-book-note {
    margin: 10px 0 0;
    color: var(--muted, #63747d);
    font-size: 12px;
    text-align: center;
}

.place-share-preview {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.place-share-preview img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.place-share-preview strong {
    display: block;
    color: var(--ink, #102632);
}

.place-share-preview span {
    display: block;
    color: var(--muted, #63747d);
    font-size: 13px;
}

.place-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.place-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line, #dce6ea);
    border-radius: 10px;
    background: #fff;
    color: var(--ink, #102632);
    font-size: 14px;
    font-weight: 700;
}

.place-share-btn--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.place-share-btn--dark {
    background: #111;
    border-color: #111;
    color: #fff;
}

@media (max-width: 991px) {
    .place-layout {
        grid-template-columns: 1fr;
    }

    .place-aside {
        position: static;
        order: -1;
    }

    .place-gallery-grid {
        grid-template-columns: 1fr;
    }

    .place-gallery-side {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .place-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .place-shell {
        width: min(1180px, calc(100% - 20px));
    }

    .place-hero {
        padding-top: 18px;
    }

    .place-hero-rating {
        width: 100%;
    }

    .place-rating-badge {
        width: 100%;
        grid-template-columns: auto 1fr auto;
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .place-gallery-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .place-section-nav {
        top: 64px;
    }

    .place-service-card {
        align-items: flex-start;
    }

    .place-service-action {
        width: 100%;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}
