@import url('theme_new.css');

.rh-pd-page {
    padding-top: 120px;
    padding-bottom: 90px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

.rh-pd-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.rh-pd-share {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; color: var(--text-faint);
    font-family: var(--font-display); font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.rh-pd-share:hover { color: var(--text); }
.rh-pd-share svg { width: 14px; height: 14px; }

.rh-pd-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.rh-pd-name { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.rh-pd-tagline { color: var(--text-muted); font-size: 14px; margin: 0; }
.rh-pd-price-block { text-align: right; }
.rh-pd-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent-purple); }
.rh-pd-id { display: block; color: var(--text-faint); font-size: 12px; margin-top: 4px; }

.rh-pd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 28px;
}
.rh-pd-fact { display: flex; align-items: center; gap: 12px; }
.rh-pd-fact-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rh-pd-fact-icon img { width: 15px; height: 15px; opacity: .9; }
.rh-pd-fact .label { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin: 0; font-family: var(--font-display); }
.rh-pd-fact .value { font-size: 13px; color: var(--text); margin: 0; font-weight: 600; }

.rh-pd-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }

/* ---------- Gallery ---------- */
.rh-pd-gallery { position: relative; }
.rh-pd-main-photo-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 10;
    background: var(--surface);
}
.rh-pd-main-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-pd-gallery-counter {
    position: absolute; top: 14px; left: 14px;
    background: rgba(5, 6, 13, 0.75);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 12px; font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}
.rh-pd-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(5, 6, 13, 0.6);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
}
.rh-pd-gallery-nav:hover { background: rgba(5, 6, 13, 0.85); }
.rh-pd-gallery-prev { left: 14px; }
.rh-pd-gallery-next { right: 14px; }
.rh-pd-fullscreen-btn {
    position: absolute; bottom: 14px; right: 14px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(5, 6, 13, 0.75);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 11px; font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}
.rh-pd-fullscreen-btn:hover { background: rgba(5, 6, 13, 0.9); }

.rh-pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.rh-pd-thumb {
    width: 90px; height: 68px; flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s ease, border-color .2s ease;
}
.rh-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-pd-thumb:hover { opacity: .9; }
.rh-pd-thumb.active { opacity: 1; border-color: var(--accent-purple); }
.rh-pd-thumb-more {
    width: 90px; height: 68px; flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    cursor: pointer;
}

.rh-pd-lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 500;
    background: rgba(2, 2, 6, 0.92);
    align-items: center; justify-content: center;
}
.rh-pd-lightbox.visible { display: flex; }
.rh-pd-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); }
.rh-pd-lightbox-close {
    position: absolute; top: 24px; right: 32px;
    background: none; border: 1px solid var(--border-strong);
    color: var(--text); width: 40px; height: 40px; border-radius: 50%;
    font-size: 18px; cursor: pointer;
}

/* ---------- Sidebar ---------- */
.rh-pd-sidebar { display: flex; flex-direction: column; gap: 20px; }
.rh-pd-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}
.rh-pd-card h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; color: var(--text); }
.rh-pd-card .rule { width: 34px; height: 2px; background: var(--accent-gradient); border-radius: 2px; margin-bottom: 16px; }
.rh-pd-card p.desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 0 0 18px; }

.rh-pd-planet-icon {
    position: absolute; top: 20px; right: 20px;
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
    overflow: hidden;
}
.rh-pd-planet-icon img { width: 100%; height: 100%; object-fit: cover; }

.rh-pd-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rh-pd-about-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 8px; }
.rh-pd-about-stat img { width: 18px; height: 18px; opacity: .9; }
.rh-pd-about-stat span { font-size: 12px; color: var(--text-muted); }
.rh-pd-about-stat strong { font-family: var(--font-display); font-size: 14px; color: var(--text); }

.rh-pd-agent-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rh-pd-agent-row img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-purple); }
.rh-pd-agent-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.rh-pd-agent-agency { font-size: 12px; color: var(--accent-blue); }

.rh-pd-cta-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rh-pd-btn-primary, .rh-pd-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: var(--radius-pill);
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
}
.rh-pd-btn-primary { background: var(--accent-gradient); color: #fff; }
.rh-pd-btn-secondary { background: none; border: 1px solid var(--border-strong); color: var(--text); }
.rh-pd-btn-secondary:hover { border-color: var(--accent-purple); background: rgba(139, 92, 246, .12); }

/* ---------- Tabs ---------- */
.rh-pd-tabs-section { margin-top: 40px; }
.rh-pd-tabs-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.rh-pd-tab-btn {
    background: none; border: none; color: var(--text-muted);
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    padding: 12px 18px; cursor: pointer; position: relative;
}
.rh-pd-tab-btn.active { color: var(--text); }
.rh-pd-tab-btn.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--accent-gradient); border-radius: 2px; }
.rh-pd-tab-panel { display: none; }
.rh-pd-tab-panel.active { display: block; }

.rh-pd-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rh-pd-detail-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; }
.rh-pd-detail-item .label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); font-family: var(--font-display); margin: 0 0 4px; }
.rh-pd-detail-item .value { font-size: 14px; color: var(--text); margin: 0; }

.rh-pd-map-wrap { height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

@media (max-width: 980px) {
    .rh-pd-layout { grid-template-columns: 1fr; }
    .rh-pd-page { padding-top: 110px; padding-left: 24px; padding-right: 24px; }
}
