/* Structural CSS only - no colors, fonts, or button skins are set here.
   Everything visual (colors, font-family, button appearance, link color)
   is inherited from the active theme, so this plugin looks native on any
   WordPress site it's installed on. Font-SIZE is set explicitly below to
   sensible defaults, since the theme's blog-post heading sizes are often
   too large for this dense, section-heavy layout. */

.offplan-page-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.offplan-single h1,
.offplan-single h2,
.offplan-single h3 {
	line-height: 1.3;
}

.offplan-hero-title {
	font-size: 2rem;
	margin: 0 0 8px;
}

.offplan-hero-meta {
	font-size: 1rem;
	margin: 0;
}

.offplan-section h2 {
	font-size: 1.4rem;
	margin-bottom: 12px;
}

.offplan-section h3 {
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.offplan-description,
.offplan-description p,
.offplan-columns li,
.offplan-table,
.offplan-amenity-item,
.offplan-faq-answer,
.offplan-card-meta,
.offplan-card-facts {
	font-size: 0.95rem;
	line-height: 1.6;
}

.offplan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

.offplan-single,
.offplan-page-wrap {
	color: var(--offplan-text, inherit);
}

.offplan-card {
	display: block !important;
	text-decoration: none !important;
	background: var(--offplan-card-bg, #fff);
	border: 1px solid var(--offplan-card-border, rgba(0,0,0,0.08));
	border-radius: var(--offplan-card-radius, 10px);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.offplan-card,
.offplan-card:hover,
.offplan-card:focus,
.offplan-card * ,
.offplan-card:hover *,
.offplan-card:focus * {
	text-decoration: none !important;
}

.offplan-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

.offplan-card-image {
	height: var(--offplan-card-img-height, 220px);
	overflow: hidden;
	line-height: 0;
	font-size: 0;
}

.offplan-card-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.offplan-card-body {
	padding: var(--offplan-card-padding, 16px);
}

.offplan-card-title {
	margin: 0 0 4px !important;
	font-size: 1.1rem;
	line-height: 1.3;
	color: var(--offplan-card-title, inherit);
}

.offplan-card-location {
	margin: 0 0 10px;
	font-size: 0.85rem;
	opacity: 0.65;
}

.offplan-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.offplan-card-tag {
	font-size: 0.75rem;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--offplan-primary, #4b2e83);
	color: #fff;
}

.offplan-card-price {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--offplan-card-price, #2563eb);
}

.offplan-card-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	opacity: 0.6;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.offplan-card-dot {
	opacity: 0.5;
}

.offplan-hero {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
}

.offplan-hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

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

.offplan-hero-overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 40px 24px 24px;
	text-align: center;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}

.offplan-hero-overlay .offplan-hero-title,
.offplan-hero-overlay .offplan-hero-meta {
	color: var(--offplan-hero-text, #fff);
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.offplan-hero-overlay .offplan-hero-meta a {
	color: var(--offplan-hero-text, #fff);
	text-decoration: underline;
}

.offplan-info-boxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 24px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.offplan-info-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 14px 10px;
	border: 1px solid rgba(255,255,255,0.6);
	border-radius: 4px;
	background: rgba(0,0,0,0.2);
}

.offplan-info-box .offplan-info-label,
.offplan-info-box .offplan-info-value {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.offplan-info-label {
	font-size: 0.85em;
	display: block;
	margin-bottom: 4px;
}

.offplan-info-value {
	font-size: 1.2em;
	display: block;
}

.offplan-section {
	margin: 40px 0;
}

.offplan-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.offplan-column {
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 6px;
	padding: 18px 20px;
}

.offplan-column h3 {
	margin-top: 0;
}

.offplan-column ul {
	margin: 0;
	padding-left: 18px;
}

.offplan-column li {
	margin-bottom: 8px;
}

.offplan-column li:last-child {
	margin-bottom: 0;
}

.offplan-table {
	width: 100% !important;
	border-collapse: collapse !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	border: none !important;
}

.offplan-table thead th {
	background: var(--offplan-primary, #4b2e83) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 0.95em !important;
	text-align: center !important;
	padding: 16px !important;
	border: none !important;
}

.offplan-table th,
.offplan-table td {
	text-align: center !important;
	padding: 14px 16px !important;
	border: none !important;
}

.offplan-table tbody tr:nth-child(odd) {
	background: #ffffff !important;
}

.offplan-table tbody tr:nth-child(even) {
	background: #f2f2f5 !important;
}

.offplan-table tbody td {
	color: var(--offplan-text, #333) !important;
}

.offplan-amenities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.offplan-amenity-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 6px;
}

.offplan-amenity-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	background: rgba(0,0,0,0.05);
}

.offplan-payment-stages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.offplan-payment-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 16px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 8px;
}

.offplan-stage-percent {
	font-size: 2rem;
	font-weight: 600;
}

.offplan-stage-name {
	margin-top: 6px;
	font-weight: 600;
}

.offplan-stage-desc {
	font-size: 0.85em;
	opacity: 0.75;
	margin-top: 2px;
}

.offplan-documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.offplan-doc-btn {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	padding: 20px 12px;
	text-decoration: none !important;
	border: 1px solid var(--offplan-card-border, rgba(0,0,0,0.1));
	border-radius: var(--offplan-card-radius, 8px);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offplan-doc-btn,
.offplan-doc-btn:hover,
.offplan-doc-btn:focus,
.offplan-doc-btn * {
	text-decoration: none !important;
}

.offplan-doc-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.offplan-doc-btn .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.offplan-faq-item {
	margin-bottom: 14px;
	padding: 16px 18px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 8px;
}

.offplan-faq-question {
	margin: 0 0 6px;
}

.offplan-faq-answer {
	opacity: 0.85;
}

.offplan-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.offplan-gallery-grid img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.offplan-video-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.offplan-enquiry-form {
	max-width: 600px;
}

.offplan-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.offplan-form-row input,
.offplan-form-row textarea {
	flex: 1;
	width: 100%;
}

.offplan-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* -------------------------------------------------------------- */
/* Project search/filter page                                      */
/* -------------------------------------------------------------- */

.offplan-search-wrap {
	margin: 0 0 24px;
}

.offplan-search-input {
	width: 100%;
	max-width: 500px;
	padding: 12px 16px;
	font-size: 1rem;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 6px;
	box-sizing: border-box;
	display: block;
}

.offplan-search-no-results {
	opacity: 0.7;
	padding: 20px 0;
}

/* -------------------------------------------------------------- */
/* Developer single page                                           */
/* -------------------------------------------------------------- */

.offplan-banner-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 40px 24px;
	margin-bottom: 24px;
	border-radius: var(--offplan-card-radius, 10px);
	background: var(--offplan-hero-bg, #4b2e83);
}

.offplan-banner-header h1 {
	margin: 6px 0 0;
	font-size: 1.9rem;
	color: var(--offplan-hero-text, #fff);
}

.offplan-developer-logo img {
	max-width: 110px;
	height: auto;
	display: block;
	background: #fff;
	border-radius: 50%;
	padding: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.offplan-developer-meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--offplan-hero-text, rgba(255,255,255,0.85));
	opacity: 0.9;
}

.offplan-developer-meta a {
	color: var(--offplan-hero-text, #fff);
	text-decoration: underline;
}

.offplan-developer-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	padding: 20px;
	background: rgba(0,0,0,0.03);
}

.offplan-developer-card-logo img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
	display: block;
}

.offplan-developer-description {
	margin-bottom: 20px;
}

.offplan-developer-projects h2 {
	font-size: 1.4rem;
	margin-bottom: 16px;
}

/* -------------------------------------------------------------- */
/* Two-column layout: main content + sticky sidebar contact box    */
/* -------------------------------------------------------------- */

.offplan-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 32px;
	align-items: start;
}

.offplan-main-col {
	min-width: 0; /* prevents grid blowout with wide content like tables */
}

.offplan-sidebar-col {
	position: relative;
}

.offplan-sidebar-sticky {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	padding: 20px;
	box-sizing: border-box;
}

.offplan-sidebar-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	text-align: center;
	text-decoration: none !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	box-sizing: border-box;
	background: var(--offplan-primary, #4b2e83);
	color: #fff;
}

.offplan-sidebar-btn,
.offplan-sidebar-btn:hover,
.offplan-sidebar-btn:focus,
.offplan-sidebar-btn * {
	text-decoration: none !important;
}

.offplan-sidebar-btn:hover {
	opacity: 0.9;
	color: #fff;
}

.offplan-whatsapp-btn {
	background: var(--offplan-whatsapp, #25D366);
}

.offplan-sidebar-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.offplan-sidebar-contact-row .offplan-sidebar-btn {
	padding: 14px;
}

.offplan-sidebar-contact-row .offplan-sidebar-btn .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.offplan-sidebar-heading {
	margin: 10px 0 4px;
	font-size: 1.1rem;
}

.offplan-sidebar-sticky .offplan-enquiry-form {
	max-width: 100%;
}

.offplan-sidebar-sticky .offplan-form-row {
	margin-bottom: 10px;
	display: block;
}

.offplan-sidebar-sticky .offplan-form-row input,
.offplan-sidebar-sticky .offplan-form-row select,
.offplan-sidebar-sticky .offplan-form-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
}

.offplan-sidebar-sticky .offplan-submit-btn {
	background: var(--offplan-submit-btn, #1f3a5f);
	color: #fff;
	border: none;
	padding: 12px;
	width: 100%;
	border-radius: 4px;
	cursor: pointer;
}

.offplan-consent-row {
	font-size: 0.75rem;
	opacity: 0.8;
}

.offplan-consent-row label {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.offplan-consent-row input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.offplan-layout {
		grid-template-columns: 1fr;
	}
}

.offplan-gallery-link {
	cursor: zoom-in;
}

/* -------------------------------------------------------------- */
/* Gallery Lightbox                                                */
/* -------------------------------------------------------------- */

body.offplan-lightbox-locked {
	overflow: hidden;
}

.offplan-lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.offplan-lightbox-overlay.is-open {
	display: flex;
}

.offplan-lightbox-image {
	max-width: 88%;
	max-height: 86vh;
	object-fit: contain;
	box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.offplan-lightbox-close,
.offplan-lightbox-prev,
.offplan-lightbox-next {
	position: absolute !important;
	background: rgba(255,255,255,0.15) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.15s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	font-weight: normal !important;
	box-sizing: border-box !important;
	min-width: 0 !important;
}

.offplan-lightbox-close:hover,
.offplan-lightbox-prev:hover,
.offplan-lightbox-next:hover {
	background: rgba(255,255,255,0.3) !important;
	color: #fff !important;
}

.offplan-lightbox-close {
	top: 20px !important;
	right: 20px !important;
	left: auto !important;
	bottom: auto !important;
	width: 32px !important;
	height: 32px !important;
	font-size: 18px !important;
	line-height: 1 !important;
}

.offplan-lightbox-prev,
.offplan-lightbox-next {
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	width: 36px !important;
	height: 36px !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

.offplan-lightbox-prev {
	left: 16px !important;
	right: auto !important;
}

.offplan-lightbox-next {
	right: 16px !important;
	left: auto !important;
}

.offplan-lightbox-counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.9em;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.offplan-lightbox-prev,
	.offplan-lightbox-next {
		width: 30px !important;
		height: 30px !important;
		font-size: 12px !important;
	}
}

/* -------------------------------------------------------------- */
/* Card style variants (Classic / Minimal / Overlay / Horizontal /  */
/* Compact) - same HTML markup for every card, switched purely via  */
/* the modifier class chosen in Settings, so no separate templates  */
/* are needed to change the look.                                   */
/* -------------------------------------------------------------- */

/* Minimal: image + title + price only */
.offplan-card--minimal .offplan-card-location,
.offplan-card--minimal .offplan-card-tags,
.offplan-card--minimal .offplan-card-footer {
	display: none;
}

/* Overlay: title & price sit directly on top of the image */
.offplan-card--overlay {
	position: relative;
}

.offplan-card--overlay .offplan-card-image {
	height: 340px;
}

.offplan-card--overlay .offplan-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0) 100%);
}

.offplan-card--overlay .offplan-card-title,
.offplan-card--overlay .offplan-card-location,
.offplan-card--overlay .offplan-card-price {
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.offplan-card--overlay .offplan-card-tags,
.offplan-card--overlay .offplan-card-footer {
	display: none;
}

/* Horizontal: image on the left, details on the right */
.offplan-card--horizontal {
	display: flex !important;
}

.offplan-card--horizontal .offplan-card-image {
	width: 42%;
	min-width: 120px;
	height: auto;
	flex-shrink: 0;
}

.offplan-card--horizontal .offplan-card-body {
	flex: 1;
	min-width: 0;
}

/* Compact: smaller, denser, list-style */
.offplan-card--compact .offplan-card-image {
	height: 130px;
}

.offplan-card--compact .offplan-card-body {
	padding: 10px 12px;
}

.offplan-card--compact .offplan-card-title {
	font-size: 0.95rem;
}

.offplan-card--compact .offplan-card-location,
.offplan-card--compact .offplan-card-footer {
	font-size: 0.7rem;
}

.offplan-card--compact .offplan-card-tags {
	display: none;
}

.offplan-card--compact .offplan-card-price {
	font-size: 0.9rem;
	margin-bottom: 4px;
}

.offplan-card--compact .offplan-developer-card-logo {
	height: 90px;
	padding: 10px;
}

/* -------------------------------------------------------------- */
/* Homepage Carousel                                                */
/* -------------------------------------------------------------- */

.offplan-carousel {
	position: relative;
	padding: 0 44px;
}

.offplan-carousel-viewport {
	overflow: hidden;
}

.offplan-carousel-track {
	display: flex;
	transition: transform 0.4s ease;
}

.offplan-carousel-slide {
	flex: 0 0 auto;
	padding: 0 10px;
	box-sizing: border-box;
}

.offplan-carousel-slide .offplan-card {
	height: 100%;
}

.offplan-carousel-prev,
.offplan-carousel-next {
	position: absolute !important;
	top: 40%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--offplan-card-border, #e0e0e0) !important;
	background: #fff !important;
	color: var(--offplan-text, #333) !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	z-index: 2;
	padding: 0 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.offplan-carousel-prev {
	left: 0;
}

.offplan-carousel-next {
	right: 0;
}

.offplan-carousel-prev:hover,
.offplan-carousel-next:hover {
	background: var(--offplan-primary, #4b2e83) !important;
	color: #fff !important;
	border-color: var(--offplan-primary, #4b2e83) !important;
}

.offplan-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.offplan-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0,0,0,0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: width 0.2s ease, background 0.2s ease;
}

.offplan-carousel-dot.is-active {
	background: var(--offplan-primary, #4b2e83);
	width: 22px;
	border-radius: 4px;
}

/* -------------------------------------------------------------- */
/* Carousel arrow style variants (per-carousel setting)             */
/* -------------------------------------------------------------- */

/* Square style - same as circle but square corners */
.offplan-carousel--arrow-square .offplan-carousel-prev,
.offplan-carousel--arrow-square .offplan-carousel-next {
	border-radius: 6px;
}

/* Minimal style - icon only, no background/border/shadow */
.offplan-carousel--arrow-minimal .offplan-carousel-prev,
.offplan-carousel--arrow-minimal .offplan-carousel-next {
	background: transparent !important;
	border: none !important;
	box-shadow: none;
	color: var(--offplan-text, #333) !important;
	font-size: 26px;
}

.offplan-carousel--arrow-minimal .offplan-carousel-prev:hover,
.offplan-carousel--arrow-minimal .offplan-carousel-next:hover {
	background: transparent !important;
	color: var(--offplan-primary, #4b2e83) !important;
}

/* Arrow size variants */
.offplan-carousel--arrow-size-small .offplan-carousel-prev,
.offplan-carousel--arrow-size-small .offplan-carousel-next {
	width: 28px;
	height: 28px;
	font-size: 12px;
}

.offplan-carousel--arrow-size-large .offplan-carousel-prev,
.offplan-carousel--arrow-size-large .offplan-carousel-next {
	width: 54px;
	height: 54px;
	font-size: 20px;
}

.offplan-carousel--arrow-minimal.offplan-carousel--arrow-size-small .offplan-carousel-prev,
.offplan-carousel--arrow-minimal.offplan-carousel--arrow-size-small .offplan-carousel-next {
	font-size: 18px;
}

.offplan-carousel--arrow-minimal.offplan-carousel--arrow-size-large .offplan-carousel-prev,
.offplan-carousel--arrow-minimal.offplan-carousel--arrow-size-large .offplan-carousel-next {
	font-size: 34px;
}

@media (max-width: 600px) {
	.offplan-carousel {
		padding: 0 36px;
	}

	.offplan-carousel-prev,
	.offplan-carousel-next {
		width: 32px;
		height: 32px;
		font-size: 13px;
	}
}
