/* ====================================================
   OPEN PROPERTY - PROGRESS PROJECT STYLES
   ==================================================== */

:root {
	--opp-navy: #1a2332;
	--opp-navy-light: #2c3a52;
	--opp-white: #ffffff;
	--opp-gray-bg: #f5f6f8;
	--opp-gray-text: #6b7280;
	--opp-border: #e5e7eb;
	--opp-green: #16a34a;
	--opp-amber: #d97706;
	--opp-red: #dc2626;
}

.opp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.opp-progress-page {
	background: var(--opp-gray-bg);
}

/* ---------- HERO (archive) ---------- */
.opp-hero {
	background: var(--opp-navy);
	color: var(--opp-white);
	padding: 64px 0 56px;
	text-align: center;
}
.opp-hero h1 {
	font-size: 2.4rem;
	letter-spacing: 1px;
	margin: 0 0 12px;
	color: var(--opp-white);
}
.opp-hero p {
	color: #c5cbd6;
	font-size: 1.05rem;
	margin: 0;
}

/* ---------- FILTER BAR ---------- */
.opp-archive-wrap {
	padding: 40px 24px 80px;
}
.opp-filter-bar {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 36px;
	flex-wrap: wrap;
}
.opp-filter-btn {
	background: var(--opp-white);
	border: 1px solid var(--opp-border);
	padding: 9px 20px;
	border-radius: 30px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--opp-navy);
}
.opp-filter-btn:hover,
.opp-filter-btn.active {
	background: var(--opp-navy);
	color: var(--opp-white);
	border-color: var(--opp-navy);
}

/* ---------- GRID ---------- */
.opp-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
}

/* Kolom dinamis untuk shortcode [progress_projects columns="N"] */
.opp-project-grid.opp-cols-1 { grid-template-columns: 1fr; }
.opp-project-grid.opp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.opp-project-grid.opp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.opp-project-grid.opp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.opp-project-grid.opp-cols-3,
	.opp-project-grid.opp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.opp-project-grid.opp-cols-2,
	.opp-project-grid.opp-cols-3,
	.opp-project-grid.opp-cols-4 { grid-template-columns: 1fr; }
}

/* Wrapper shortcode (dipakai di halaman manapun, bukan hanya archive page) */
.opp-shortcode-wrap {
	margin: 0 auto;
}

.opp-card {
	background: var(--opp-white);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: transform 0.25s, box-shadow 0.25s;
	display: block;
}
.opp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.opp-card-thumb {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: #d9dde3;
}
.opp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.opp-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #c5cbd6, #9aa3b2);
}

.opp-status-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 5px 14px;
	border-radius: 30px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--opp-white);
}
.opp-status-on-going { background: var(--opp-amber); }
.opp-status-selesai  { background: var(--opp-green); }
.opp-status-tertunda { background: var(--opp-red); }

.opp-card-body {
	padding: 20px 22px 24px;
}
.opp-card-body h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	color: var(--opp-navy);
}
.opp-card-loc {
	color: var(--opp-gray-text);
	font-size: 0.88rem;
	margin: 0 0 16px;
}

/* ---------- PROGRESS BAR (card) ---------- */
.opp-progress-bar-track {
	background: #e9ebef;
	height: 8px;
	border-radius: 6px;
	overflow: hidden;
}
.opp-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--opp-navy), var(--opp-navy-light));
	border-radius: 6px;
	transition: width 1.1s ease-out;
}
.opp-progress-bar-label {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 0.78rem;
	color: var(--opp-gray-text);
}

.opp-pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
	gap: 10px;
}
.opp-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--opp-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--opp-navy);
	background: var(--opp-white);
}
.opp-pagination .page-numbers.current {
	background: var(--opp-navy);
	color: var(--opp-white);
}

.opp-empty {
	text-align: center;
	color: var(--opp-gray-text);
	padding: 60px 0;
}

/* ====================================================
   SINGLE PROJECT PAGE
   ==================================================== */

.opp-single-hero {
	height: 420px;
	background-size: cover;
	background-position: center;
	background-color: var(--opp-navy);
	position: relative;
	display: flex;
	align-items: flex-end;
}
.opp-single-hero-overlay {
	width: 100%;
	background: linear-gradient(0deg, rgba(26,35,50,0.92) 10%, rgba(26,35,50,0.25) 80%);
	padding: 50px 0 36px;
}
.opp-single-hero-overlay h1 {
	color: var(--opp-white);
	font-size: 2.2rem;
	margin: 10px 0 8px;
}
.opp-single-hero-overlay p {
	color: #d6dae3;
	margin: 0;
}
.opp-single-hero-overlay .opp-status-badge {
	position: static;
	display: inline-block;
}

.opp-single-wrap {
	padding: 48px 24px 90px;
}

/* ---------- PROGRESS SUMMARY (circle) ---------- */
.opp-progress-summary {
	background: var(--opp-white);
	border-radius: 12px;
	padding: 36px;
	display: flex;
	align-items: center;
	gap: 48px;
	flex-wrap: wrap;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	margin-bottom: 40px;
}
.opp-progress-circle-wrap {
	position: relative;
	width: 140px;
	height: 140px;
	flex-shrink: 0;
}
.opp-progress-circle {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.opp-circle-bg {
	fill: none;
	stroke: #e9ebef;
	stroke-width: 10;
}
.opp-circle-fill {
	fill: none;
	stroke: var(--opp-navy);
	stroke-width: 10;
	stroke-linecap: round;
	stroke-dasharray: 326.7;
	stroke-dashoffset: 326.7;
	transition: stroke-dashoffset 1.2s ease-out;
}
.opp-circle-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--opp-navy);
}

.opp-progress-dates {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}
.opp-progress-dates > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.opp-date-label {
	font-size: 0.8rem;
	color: var(--opp-gray-text);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.opp-date-value {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--opp-navy);
}
.opp-date-divider {
	width: 1px;
	height: 40px;
	background: var(--opp-border);
}

/* ---------- SECTIONS ---------- */
.opp-section {
	background: var(--opp-white);
	border-radius: 12px;
	padding: 32px 36px;
	margin-bottom: 28px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.opp-section h2 {
	margin: 0 0 20px;
	font-size: 1.3rem;
	color: var(--opp-navy);
}
.opp-wysiwyg-content {
	color: #374151;
	line-height: 1.7;
}

/* ---------- GALLERY ---------- */
.opp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.opp-gallery-item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4/3;
}
.opp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.opp-gallery-item:hover img {
	transform: scale(1.06);
}

/* ---------- TIMELINE ---------- */
.opp-timeline {
	position: relative;
	padding-left: 30px;
}
.opp-timeline::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: var(--opp-border);
}
.opp-timeline-item {
	position: relative;
	padding-bottom: 32px;
}
.opp-timeline-item:last-child {
	padding-bottom: 0;
}
.opp-timeline-dot {
	position: absolute;
	left: -30px;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--opp-white);
	border: 3px solid #b9bfc9;
}
.opp-timeline-selesai .opp-timeline-dot { border-color: var(--opp-green); background: var(--opp-green); }
.opp-timeline-proses .opp-timeline-dot  { border-color: var(--opp-amber); background: var(--opp-white); }
.opp-timeline-belum .opp-timeline-dot   { border-color: #b9bfc9; background: var(--opp-white); }

.opp-timeline-date {
	font-size: 0.78rem;
	color: var(--opp-gray-text);
	font-weight: 600;
	text-transform: uppercase;
}
.opp-timeline-content h4 {
	margin: 4px 0 6px;
	color: var(--opp-navy);
	font-size: 1.05rem;
}
.opp-timeline-content p {
	margin: 0 0 8px;
	color: #4b5563;
	font-size: 0.92rem;
	line-height: 1.6;
}
.opp-timeline-status-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 30px;
	text-transform: uppercase;
	background: #eef0f3;
	color: var(--opp-gray-text);
}
.opp-timeline-selesai .opp-timeline-status-tag { background: #dcfce7; color: var(--opp-green); }
.opp-timeline-proses .opp-timeline-status-tag  { background: #fef3c7; color: var(--opp-amber); }

.opp-back-link {
	margin-top: 8px;
}
.opp-back-link a {
	color: var(--opp-navy);
	font-weight: 600;
	text-decoration: none;
}
.opp-back-link a:hover {
	text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
	.opp-hero h1 { font-size: 1.8rem; }
	.opp-single-hero { height: 320px; }
	.opp-progress-summary { padding: 24px; gap: 28px; }
	.opp-section { padding: 24px 20px; }
}
