/**
 * Activity detail (show) page — extracted from inline styles
 * Uses design tokens from tokens.css
 */

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ═══════ GALLERY ═══════ */
.gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 4px; height: 380px; overflow: hidden; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.gallery-item { overflow: hidden; cursor: pointer; position: relative; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover); color: var(--text-muted); font-size: 48px;
}
.gallery-count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7); color: white; padding: 6px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}

@media (max-width: 768px) {
    .gallery { grid-template-columns: 1fr; height: 260px; }
    .gallery-item:not(:first-child) { display: none; }
    .gallery-item:first-child { grid-row: auto; }
}

/* ═══════ CONTENT ═══════ */
.content-grid {
    display: grid; grid-template-columns: 1fr 360px; gap: 32px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
}

/* ═══════ HEADER ═══════ */
.act-header { margin-bottom: 24px; }
.act-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
}
.act-breadcrumb a { color: var(--primary); }
.act-breadcrumb a:hover { text-decoration: underline; }

.act-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.act-title {
    font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; color: var(--text);
    line-height: 1.2; margin-bottom: 8px;
}
.act-actions { display: flex; gap: 8px; flex-shrink: 0; }
.act-action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer;
    transition: all 0.2s; color: var(--text);
}
.act-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.act-action-btn.wishlisted { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.act-action-btn.wishlisted i { font-weight: 900; }

.act-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
    font-size: 14px; color: var(--text-secondary);
}
.act-meta-item { display: flex; align-items: center; gap: 6px; }
.act-meta-item i { color: var(--primary); font-size: 14px; }
.act-rating-big {
    display: flex; align-items: center; gap: 6px;
    background: var(--primary); color: white; padding: 4px 12px;
    border-radius: var(--radius-sm); font-weight: 700;
}
.act-rating-big i { font-size: 12px; }

/* ═══════ SECTIONS ═══════ */
.section-card {
    background: var(--bg-elevated); border-radius: var(--radius-md); padding: 24px;
    margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.section-title {
    font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; color: var(--text);
    margin-bottom: 16px;
}
.section-text { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

/* ═══════ SIDEBAR ═══════ */
.sidebar-card {
    background: var(--bg-elevated); border-radius: var(--radius-md); padding: 20px;
    margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.sidebar-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; color: var(--text); }

.info-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--bg-subtle);
    font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row i { color: var(--primary); width: 18px; text-align: center; margin-top: 2px; }
.info-row span { color: var(--text-secondary); }

.checkin-btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm);
    background: var(--primary); color: white; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.checkin-btn:hover { background: var(--primary-dark); }
.checkin-btn:disabled { opacity: 0.5; cursor: default; }

/* ═══════ MAP ═══════ */
.map-container { height: 200px; border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px; }

/* ═══════ MAP ACTION BUTTONS ═══════ */
.map-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
}
.map-action-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 8px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600; text-align: center;
    border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary);
    transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.map-action-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.map-action-link i { font-size: 14px; }
.map-action-link.directions { color: #2563eb; }
.map-action-link.directions:hover { border-color: #2563eb; background: #eff6ff; }
.map-action-link.streetview { color: #f59e0b; }
.map-action-link.streetview:hover { border-color: #f59e0b; background: #fffbeb; }

/* ═══════ STREET VIEW EMBED ═══════ */
.streetview-container {
    margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden;
    position: relative; background: var(--bg-hover);
}
.streetview-container iframe {
    width: 100%; height: 200px; border: none; display: block;
}

/* ═══════ REVIEWS ═══════ */
.review-item {
    padding: 16px 0; border-bottom: 1px solid var(--bg-subtle);
}
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-light); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--primary);
}
.review-author { font-weight: 600; font-size: 14px; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--warning); font-size: 13px; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

.review-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-form h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.star-input { display: flex; gap: 4px; margin-bottom: 12px; }
.star-input i { font-size: 24px; color: var(--gray-300); cursor: pointer; transition: color 0.15s; }
.star-input i.active { color: var(--warning); }
.review-textarea {
    width: 100%; min-height: 80px; padding: 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body);
    resize: vertical; background: var(--bg-elevated); color: var(--text);
}
.review-textarea:focus { border-color: var(--primary); outline: none; }
.review-submit {
    margin-top: 8px; padding: 10px 24px; border: none; border-radius: var(--radius-sm);
    background: var(--primary); color: white; font-weight: 600; font-size: 14px;
    cursor: pointer;
}
.review-submit:hover { background: var(--primary-dark); }

/* ═══════ TIPS ═══════ */
.tip-item {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--bg-subtle); font-size: 14px;
}
.tip-item:last-child { border-bottom: none; }
.tip-icon { color: #10b981; font-size: 16px; margin-top: 2px; }
.tip-text { flex: 1; color: var(--text-secondary); }
.tip-author { font-size: 12px; color: var(--text-muted); }

.tip-form { display: flex; gap: 8px; margin-top: 12px; }
.tip-input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 20px; font-size: 13px; font-family: var(--font-body);
    background: var(--bg-elevated); color: var(--text);
}
.tip-input:focus { border-color: var(--primary); outline: none; }
.tip-send {
    padding: 10px 16px; border: none; border-radius: 20px;
    background: var(--primary); color: white; font-weight: 600; font-size: 13px;
    cursor: pointer;
}

/* ═══════ SIMILAR ═══════ */
.similar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.similar-card {
    background: var(--bg-elevated); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.similar-card:hover { transform: translateY(-3px); }
.similar-card-img { height: 120px; overflow: hidden; background: var(--bg-hover); }
.similar-card-img img { width: 100%; height: 100%; object-fit: cover; }
.similar-card-body { padding: 12px; }
.similar-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.similar-card-meta { font-size: 12px; color: var(--text-muted); }

/* ═══════ RATING DISTRIBUTION ═══════ */
.rating-dist { margin-bottom: 20px; }
.rating-dist-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px;
}
.rating-dist-label { width: 16px; text-align: right; font-weight: 600; color: var(--text-secondary); }
.rating-dist-bar { flex: 1; height: 8px; background: var(--bg-subtle); border-radius: 4px; overflow: hidden; }
.rating-dist-fill { height: 100%; border-radius: 4px; background: var(--warning); transition: width 0.6s ease-out; }
.rating-dist-count { width: 28px; font-size: 12px; color: var(--text-muted); }

.rating-summary {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--bg-subtle);
}
.rating-big-num { font-size: 48px; font-weight: 700; color: var(--text); line-height: 1; }
.rating-big-stars { color: var(--warning); font-size: 16px; margin-bottom: 2px; }
.rating-big-count { font-size: 13px; color: var(--text-muted); }

/* ═══════ LIGHTBOX ═══════ */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); justify-content: center; align-items: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px; color: white; font-size: 28px;
    cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%; border: none; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 24px;
    cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%; border: none; transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 14px;
}

/* ═══════ TOAST ═══════ */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--gray-800); color: var(--text-inverse); padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0;
    transition: all 0.3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
