:root {
    --platz-bg: #f5f7fb;
    --platz-card: #ffffff;
    --platz-text: #111827;
    --platz-muted: #6b7280;
    --platz-border: #e5e7eb;
    --platz-green: #15803d;
    --platz-green-dark: #0f5e2c;
    --platz-green-soft: #ecfdf5;
    --platz-blue: #2563eb;
    --platz-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --platz-radius: 22px;
}

html,
body {
    background: var(--platz-bg);
    color: var(--platz-text);
}

body {
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.place-page {
    max-width: 1180px;
    margin: 24px auto 60px;
    padding: 0 16px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--platz-border);
    color: var(--platz-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--platz-border);
    color: var(--platz-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
}

.action-btn.primary {
    background: var(--platz-green);
    color: #ffffff;
    border-color: var(--platz-green);
}

.action-btn.full {
    width: 100%;
}

.action-btn:hover,
.back-link:hover {
    transform: translateY(-1px);
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--platz-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--platz-shadow);
    margin-bottom: 18px;
}

.hero-image {
    position: relative;
    height: 360px;
    background: #e5e7eb;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
    color: #ffffff;
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.hero-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 8px;
}

.hero-address {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 18px;
    align-items: start;
}

.main-content {
    display: grid;
    gap: 18px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--platz-border);
    border-radius: var(--platz-radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.card-pad {
    padding: 22px;
}

.side-sticky {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-box {
    border: 1px solid var(--platz-border);
    border-radius: 18px;
    padding: 16px;
    background: #fbfcff;
}

.info-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--platz-muted);
    margin-bottom: 7px;
}

.info-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--platz-text);
    line-height: 1.35;
}

.section {
    margin-top: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}

.text {
    font-size: 15px;
    line-height: 1.75;
    color: #263244;
}

.muted {
    color: var(--platz-muted);
}

.detail-list {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--platz-border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fbfcff;
}

.detail-row span:first-child {
    color: var(--platz-muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-row span:last-child {
    color: var(--platz-text);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.map {
    height: 310px;
    border-radius: 18px;
    border: 1px solid var(--platz-border);
    overflow: hidden;
}

.route-box {
    margin-top: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--platz-green-soft);
    color: #14532d;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #bbf7d0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--platz-border);
    background: #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
    transition: 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.review-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.review-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 800;
}

.review-form {
    display: grid;
    gap: 12px;
}

.review-form select,
.review-form textarea {
    width: 100%;
    border: 1px solid var(--platz-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
}

.review-form textarea {
    min-height: 110px;
    resize: vertical;
}

.review-submit {
    border: none;
    border-radius: 14px;
    background: var(--platz-green);
    color: #ffffff;
    font-weight: 800;
    height: 46px;
    cursor: pointer;
}

.review-submit:hover {
    background: var(--platz-green-dark);
}

.review-item {
    border: 1px solid var(--platz-border);
    border-radius: 16px;
    padding: 14px;
    background: #fbfcff;
}

.review-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-weight: 800;
}

.notice-ok {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.lb {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    z-index: 9999;
    padding: 18px;
}

.lb.open {
    display: flex;
}

.lb-box {
    width: min(1100px, 100%);
    height: min(82vh, 760px);
    background: #020617;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.lb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lb-close,
.lb-btn,
.lb-count {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.lb-close {
    right: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 18px;
}

.lb-count {
    left: 14px;
    top: 14px;
    padding: 11px 13px;
    font-size: 13px;
}

.lb-btn {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 28px;
}

.lb-prev {
    left: 14px;
}

.lb-next {
    right: 14px;
}

@media (max-width: 980px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .side-sticky {
        position: static;
    }

    .hero-image {
        height: 320px;
    }

    .hero-title {
        font-size: 27px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .place-page {
        margin-top: 14px;
    }

    .hero-image {
        height: 280px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .top-actions,
    .top-actions a,
    .back-link {
        width: 100%;
    }

    .action-btn,
    .back-link {
        justify-content: center;
    }

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

    .detail-row {
        flex-direction: column;
        gap: 6px;
    }

    .detail-row span:last-child {
        text-align: left;
    }
}

.review-file {
    width: 100%;
    border: 1px solid var(--platz-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    font-family: inherit;
}

.review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.review-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid var(--platz-border);
    display: block;
}

.favorite-form {
    margin: 0;
    display: flex;
}

.favorite-action {
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .18s ease;
    white-space: nowrap;
}

.favorite-action:hover {
    background: #ffe4e6;
    border-color: #fb7185;
    color: #9f1239;
}

.favorite-action.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.favorite-action.active:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.verified-place-badge {
    background: rgba(34, 197, 94, 0.95) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.35);
}

.place-owner-box{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:28px;
    padding:16px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
}

.place-owner-avatar{
    flex-shrink:0;
}

.place-owner-avatar img,
.place-owner-avatar-auto{
    width:64px;
    height:64px;
    border-radius:50%;
    object-fit:cover;
}

.place-owner-avatar-auto{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
    color:#ffffff;
}

.place-owner-info{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.place-owner-title{
    font-size:13px;
    color:#64748b;
    font-weight:600;
}

.place-owner-name{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    font-size:18px;
    font-weight:700;
    color:#0f172a;
}

.place-owner-verified{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 10px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:12px;
    font-weight:700;
}

.place-question-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.place-question-box h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.place-question-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place-question-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    resize: vertical;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.place-question-form textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.10);
}

.place-question-form button {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 16px;
    background: #059669;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.google-map-lock-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
}

.google-map-lock-wrap .google-map-frame {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.google-map-login-lock {
    position: absolute;
    inset: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}