/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.dp-investment-layout {
	display: grid;
	gap: 2rem;
}
.dp-investment-title {
	font-size: 1.875rem;
	margin: 0;
}
.dp-investment-map {
	position: relative;
}
.dp-investment-map__stage {
	position: relative;
	width: 100%;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15,23,42,0.08);
	background: #f8fafc;
}
.dp-investment-map__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dp-investment-map__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.dp-investment-map__shape {
	cursor: pointer;
}
.dp-investment-map__shape[data-property-id=""] {
	cursor: default;
}
.dp-investment-map__overlay polygon,
.dp-investment-map__overlay rect,
.dp-investment-map__overlay circle {
	transition: opacity .2s ease, stroke-width .2s ease;
}
.dp-investment-map__shape:hover polygon,
.dp-investment-map__shape:hover rect,
.dp-investment-map__shape:hover circle {
	opacity: 0.85;
	stroke-width: 4;
}
.dp-investment-tooltip {
	position: absolute;
	pointer-events: none;
	background: #ffffff;
	color: #0f172a;
	padding: 1rem 1.25rem;
	border-radius: 0.5rem;
	font-size: 1rem;
	line-height: 1.6;
	box-shadow: 0 10px 25px rgba(15,23,42,0.25);
	border: 1px solid #cbd5e1;
	opacity: 0;
	display: none;
	transition: opacity .12s ease;
	z-index: 20;
	min-width: 240px;
	max-width: 320px;
}
.dp-investment-tooltip[data-visible="true"] {
	display: block;
	opacity: 1;
}
.dp-investment-tooltip__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	color: #0f172a;
	gap: 1rem;
}
.dp-investment-tooltip__title-text {
	flex: 1;
}
.dp-investment-tooltip__meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.95rem;
	color: #475569;
}
.dp-investment-tooltip__meta span {
	display: block;
}
.dp-investment-tooltip__title .dp-status {
	display: inline-flex;
	width: auto;
	background: transparent !important;
	flex-shrink: 0;
}
.dp-investment-tooltip__meta span.dp-status {
	display: inline-flex;
	width: auto;
	background: transparent !important;
}
.dp-investment-tooltip__meta span strong {
	font-weight: 600;
	color: #0f172a;
}
.dp-investment-table-wrapper {
	overflow-x: auto;
}
.dp-investment-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.05rem;
	min-width: 640px;
}
.dp-investment-table thead th {
	text-align: left;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	font-weight: 600;
	color: #0f172a;
	border-bottom: 1px solid #e2e8f0;
	position: relative;
}
.dp-investment-table thead th.dp-sortable {
	cursor: pointer;
	user-select: none;
}
.dp-investment-table thead th.dp-sortable:hover {
	background: #f1f5f9;
}
.dp-investment-table thead th.dp-sortable span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.dp-investment-table thead th.dp-sortable::after {
	content: "\2195";
	display: inline-block;
	margin-left: 0.25rem;
	font-size: 0.875rem;
	color: #94a3b8;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}
.dp-investment-table thead th.dp-sortable:hover::after {
	opacity: 1;
}
.dp-investment-table thead th.dp-sort-asc::after {
	content: "\2191";
	color: #1c1f2a;
	opacity: 1;
}
.dp-investment-table thead th.dp-sort-desc::after {
	content: "\2193";
	color: #1c1f2a;
	opacity: 1;
}
.dp-investment-table__row td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e2e8f0;
	color: #1e293b;
}
.dp-investment-table__row:hover {
	background: #eff6ff;
}
.dp-investment-table__row--highlight {
	background: #bfdbfe !important;
}
.dp-status {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: rgba(226,232,240,0.6);
	color: #0f172a;
	white-space: nowrap;
}
.dp-status::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.75;
}
.dp-status--available {
	background: rgba(220,252,231,0.85);
	color: #047857;
}
.dp-status--reserved {
	background: rgba(254,240,138,0.85);
	color: #b45309;
}
.dp-status--sold {
	background: rgba(254,226,226,0.85);
	color: #dc2626;
}
.dp-status--coming-soon {
	background: rgba(243,244,246,0.85);
	color: #6b7280;
}
.dp-investment-table__link {
	color: inherit;
	text-decoration: none;
	display: block;
}
.dp-investment-table__link:hover {
	color: #1d4ed8;
}
.dp-investment-table__empty {
	text-align: center;
	padding: 1.5rem;
	color: #475569;
}
.dp-history-cell {
	text-align: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e2e8f0;
}
.dp-history-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: color 0.2s ease;
	border-radius: 0.25rem;
}
.dp-history-btn:hover {
	color: #1c1f2a;
	background: #f1f5f9;
}
.dp-history-icon {
	width: 1rem;
	height: 1rem;
}
.dp-history-btn-standalone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}
.dp-property-history-wrapper {
	display: inline-block;
}
.dp-contact-cell {
	text-align: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e2e8f0;
}
.dp-contact-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: color 0.2s ease;
	border-radius: 0.25rem;
}
.dp-contact-btn:hover {
	color: #2271b1;
	background: #f1f5f9;
}
.dp-contact-icon {
	width: 1rem;
	height: 1rem;
}
.dp-property-card-cell {
	text-align: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e2e8f0;
}
.dp-property-card-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}
.dp-property-card-btn:hover {
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	opacity: 0.9;
}
.dp-property-card-btn:active {
	transform: translateY(0);
}
.dp-contact-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
	padding: 1rem;
	overflow-y: auto;
}
.dp-contact-popup[data-visible="true"] {
	display: flex;
	opacity: 1;
}
.dp-contact-popup__content {
	position: relative;
	max-width: 90vw;
	width: 100%;
	max-width: 28rem;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.dp-contact-popup__header {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
.dp-contact-popup__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #0c0c0c;
	margin: 0;
}
.dp-contact-popup__close {
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 0.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transition: all 0.2s ease;
}
.dp-contact-popup__close:hover {
	color: #0c0c0c;
	background: #f2f2f2;
}
.dp-contact-popup__body {
	padding: 1.5rem;
}
.dp-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.dp-contact-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.dp-contact-form__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #0c0c0c;
}
.dp-contact-form__label .required {
	color: #dc2626;
}
.dp-contact-form__input,
.dp-contact-form__textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: #0c0c0c;
	transition: border-color 0.2s ease;
}
.dp-contact-form__input:focus,
.dp-contact-form__textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}
.dp-contact-form__textarea {
	resize: vertical;
	min-height: 4rem;
}
.dp-contact-form__help {
	font-size: 0.75rem;
	color: #666;
	margin-top: -0.25rem;
}
.dp-contact-form__error {
	font-size: 0.75rem;
	color: #dc2626;
	margin-top: -0.25rem;
}
.dp-contact-form__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 0.5rem;
}
.dp-contact-form__submit {
	padding: 0.625rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.dp-contact-form__submit:hover:not(:disabled) {
	background: #135e96;
}
.dp-contact-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.dp-contact-form__cancel {
	padding: 0.625rem 1.25rem;
	background: #f3f4f6;
	color: #374151;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.dp-contact-form__cancel:hover {
	background: #e5e7eb;
}
.dp-contact-popup__success {
	padding: 1.5rem;
	text-align: center;
}
.dp-contact-popup__success-icon {
	width: 3rem;
	height: 3rem;
	margin: 0 auto 1rem;
	color: #10b981;
}
.dp-contact-popup__success-message {
	font-size: 1rem;
	color: #0c0c0c;
	margin-bottom: 1rem;
}
.dp-price-history-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
	padding: 1rem;
	overflow-y: auto;
}
.dp-price-history-popup[data-visible="true"] {
	display: flex;
	opacity: 1;
}
.dp-price-history-popup__content {
	position: relative;
	max-width: 90vw;
	width: 100%;
	max-width: 36rem;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 5rem);
}
.dp-price-history-popup__header {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
.dp-price-history-popup__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #0c0c0c;
	margin: 0;
}
.dp-price-history-popup__close {
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 0.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transition: all 0.2s ease;
}
.dp-price-history-popup__close:hover {
	color: #0c0c0c;
	background: #f2f2f2;
}
.dp-price-history-popup__body {
	padding: 1.5rem;
	overflow-y: auto;
	flex: 1;
}
.dp-price-history-popup__loading {
	text-align: center;
	padding: 2rem;
	color: #666;
}
.dp-price-history-popup__loading-spinner {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	border: 2px solid #f2f2f2;
	border-top-color: #1c1f2a;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
.dp-price-history-popup__empty {
	text-align: center;
	padding: 2rem;
	color: #666;
}
.dp-price-history-item {
	padding: 1rem;
	margin-bottom: 1rem;
	background: #f2f2f2;
	border-radius: 0.5rem;
}
.dp-price-history-item__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.dp-price-history-item__icon {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1c1f2a;
	color: #fff;
	flex-shrink: 0;
}
.dp-price-history-item__meta {
	flex: 1;
}
.dp-price-history-item__type {
	font-weight: 600;
	color: #0c0c0c;
	font-size: 0.875rem;
}
.dp-price-history-item__date {
	color: #666;
	font-size: 0.8125rem;
	margin-top: 0.25rem;
}
.dp-price-history-item__changes {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e2e8f0;
}
.dp-price-history-change {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 1rem;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	align-items: center;
}
.dp-price-history-change__label {
	color: #666;
	font-weight: 500;
}
.dp-price-history-change__old {
	color: #ef4444;
	text-decoration: line-through;
}
.dp-price-history-change__new {
	color: #10b981;
	font-weight: 600;
}
.dp-investment-notice {
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	background: #fee2e2;
	color: #991b1b;
}
.dp-floor-plan-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.dp-floor-plan-popup[data-visible="true"] {
	display: flex;
	opacity: 1;
}
.dp-floor-plan-popup__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.dp-floor-plan-popup__header {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
}
.dp-floor-plan-popup__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
}
.dp-floor-plan-popup__close {
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: all 0.2s ease;
}
.dp-floor-plan-popup__close:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.dp-floor-plan-popup__body {
	padding: 1.5rem;
	overflow: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}
.dp-floor-plan-popup__image {
	max-width: 100%;
	max-height: 70vh;
	height: auto;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.dp-floor-plan-popup__iframe {
	width: 100%;
	height: 70vh;
	border: none;
	border-radius: 0.5rem;
}
.dp-floor-plan-popup__download {
	padding: 0.625rem 1.25rem;
	background: #1c1f2a;
	color: #ffffff;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}
.dp-floor-plan-popup__download:hover {
	background: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(28, 31, 42, 0.25);
}
.dp-floor-plan-popup__download:active {
	transform: translateY(0);
}
.dp-floor-plan-popup__download svg {
	width: 1.125rem;
	height: 1.125rem;
}
@media (max-width: 768px) {
	.dp-investment-layout {
		gap: 1.5rem;
	}
	.dp-investment-table {
		font-size: 0.95rem;
	}
	.dp-floor-plan-popup__content {
		max-width: 95vw;
		max-height: 95vh;
	}
	.dp-floor-plan-popup__header {
		padding: 1rem;
	}
	.dp-floor-plan-popup__title {
		font-size: 1.1rem;
	}
	.dp-floor-plan-popup__body {
		padding: 1rem;
	}
}
