/* ==========================================================================
   WordPress-specific overrides / additions
   The original design CSS (theme-original.css) is untouched. These rules
   only cover markup that WordPress itself generates (core blocks, widgets,
   captions, alignment classes, screen-reader text, WP admin bar spacing).
   ========================================================================== */

/* Contact Form 7 - the theme's single global enquiry form, rendered via
   kb_render_enquiry_form() inside the modal, sticky sidebar, and mobile
   bar. Its text/email/tel/submit tags already carry the same
   form-control / btn submit-btn classes used by the rest of the site
   (set via class:form-control / class:btn class:submit-btn in the form
   definition), so it inherits the existing input/button styling
   automatically. These rules only cover the bits that are unique to CF7's
   own markup (spacing, validation tips, response message, responsiveness).
*/
.kb-cf7-wrapper { width: 100%; }
.kb-cf7-wrapper .wpcf7-form-control-wrap { display: block; margin-bottom: 4px; }
.kb-cf7-wrapper input.form-control { width: 100%; margin-bottom: 4px; }
.kb-cf7-wrapper .wpcf7-not-valid-tip {
	display: block;
	color: #e02b2b;
	font-size: 12px;
	margin: 2px 0 10px;
}
.kb-cf7-wrapper .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
}
.kb-cf7-wrapper form.sent .wpcf7-response-output {
	color: #1a7a3c;
	background: #eafaf0;
	border: 1px solid #b7e8c7;
}
.kb-cf7-wrapper form.failed .wpcf7-response-output,
.kb-cf7-wrapper form.aborted .wpcf7-response-output,
.kb-cf7-wrapper form.spam .wpcf7-response-output {
	color: #b3261e;
	background: #fdecea;
	border: 1px solid #f5c2c0;
}
.kb-cf7-wrapper .wpcf7-spinner { margin: 0 0 0 8px; }
.kb-cf7-missing-notice {
	color: #b3261e;
	font-size: 13px;
	text-align: center;
	padding: 10px;
	border: 1px dashed #f5c2c0;
	border-radius: 6px;
}
@media (max-width: 575px) {
	.kb-cf7-wrapper input.form-control { font-size: 15px; }
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Alignment */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; text-align: center; color: #777; }
.wp-block-image img { height: auto; }

/* Admin bar spacing so the fixed nav doesn't collide with it */
body.admin-bar .navbar-area.sticky { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .navbar-area.sticky { top: 46px; }
}

/* ===== Header / Navbar - fixed 60px height, vertically centered content ===== */
.navbar-area .navbar {
	min-height: 60px;
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}
.navbar-area .navbar-brand {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
@media (min-width: 992px) {
	.navbar-area .navbar-nav {
		align-items: center;
	}
	.navbar-area .navbar-nav .nav-item {
		display: flex;
		align-items: center;
	}
	.navbar-area .navbar-nav .nav-link {
		display: flex;
		align-items: center;
		padding-top: 0;
		padding-bottom: 0;
	}
}
.navbar-area .navbar-toggler {
	align-self: center;
}
.navbar-area .navbar .btn,
.navbar-area .navbar .btn-brand,
.navbar-area .navbar .btn-brand-inner {
	align-self: center;
}

/* "Bookings Are Now Open" details card - the original design nests
   .project-booking-amount inside .project-border, and both carry their
   own background/padding, producing an odd double-boxed look. Here the
   outer wrapper becomes a plain layout element and the inner box gets
   comfortable, consistent padding; each highlight line (now its own
   element instead of <br>-joined text) gets predictable spacing and a
   subtle divider instead of relying on browser default <p> margins. */
#fit-content .project-booking-info .project-border {
	background-color: transparent;
	padding: 0;
	border-radius: 6px;
}
#fit-content .project-booking-info .project-booking-amount {
	padding: 14px 18px;
	border-radius: 6px;
}
#fit-content .project-booking-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
	line-height: 1.4;
}
#fit-content .project-booking-line:not(:last-child) {
	border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}
#fit-content .project-booking-line .fa {
	flex-shrink: 0;
	color: #fff;
}

/* Site branding fallback (if no custom logo set) */
.navbar-brand.site-title-text {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--text-heading-color, #172853);
}

/* Uploaded site logo (Theme Options or Customizer) - navbar-brand only */
.navbar-brand .site-logo,
.site-logo {
	max-height: 40px;
	width: auto;
	max-width: 220px;
	display: block;
}
@media (max-width: 575px) {
	.navbar-brand .site-logo,
	.site-logo {
		max-height: 32px;
		max-width: 160px;
	}
}

/* Express Your Interest modal logo */
.kb-modal-logo {
	max-height: 60px;
	width: auto;
	max-width: 220px;
}
.kb-modal-logo-text {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--text-heading-color, #172853);
	text-align: center;
}

/* RERA note + barcode */
.rera-content { max-width: 700px; margin: 0 auto; }
.rera-barcode-wrap { margin-top: 20px; text-align: center; }
.rera-barcode-wrap img {
	max-width: 220px;
	width: 100%;
	height: auto;
	border: 1px solid var(--border-color, #e0e0e0);
	border-radius: 6px;
	padding: 10px;
	background: #fff;
}
@media (max-width: 575px) {
	.rera-barcode-wrap img { max-width: 160px; }
}

/* Location map - fixed 450px height, full width, responsive down to a
   shorter height on small mobile screens (works for both the lat/long-
   generated embed and any iframe code pasted from Google Maps,
   regardless of its own width/height attributes) */
.kb-map-responsive {
	position: relative;
	width: 100%;
	height: 450px;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid var(--border-color, #e0e0e0);
}
.kb-map-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 767px) {
	.kb-map-responsive { height: 350px; }
}
@media (max-width: 480px) {
	.kb-map-responsive { height: 280px; }
}

/* Amenity icon (Font Awesome, when set - otherwise a photo thumbnail is
   used instead, sized to roughly match) */
.kb-amenity-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 75px;
	height: 75px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--theme-primary-color, #08375c);
}
.kb-amenity-icon .fa {
	color: #fff;
	font-size: 32px;
}

/* Location highlight icons */
.kb-highlight-list { list-style: none; padding-left: 0; }
.kb-highlight-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}
.kb-highlight-list li .fa {
	color: var(--theme-primary-color, #08375c);
	font-size: 16px;
	width: 18px;
	text-align: center;
	flex-shrink: 0;
}

/* Sidebar widget area (used on page.php / single.php when a sidebar is present) */
.widget { margin-bottom: 30px; }
.widget-title { font-size: 18px; margin-bottom: 15px; }
.widget ul { list-style: none; padding-left: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid #eee; }

/* Comments (single.php / page.php) */
.comment-list { list-style: none; padding-left: 0; margin: 30px 0; }
.comment-list .comment-body { padding: 20px; background: #f8f9fb; border-radius: 8px; margin-bottom: 15px; }
.comment-respond { margin-top: 30px; }
.comment-respond .comment-form-comment textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] { width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; }

/* Generic CPT archive/loop cards used by Amenities / Gallery / Floor Plans / Properties */
.cpt-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.cpt-grid .cpt-card { padding: 12px; width: 33.333%; box-sizing: border-box; }
@media (max-width: 991px) { .cpt-grid .cpt-card { width: 50%; } }
@media (max-width: 575px) { .cpt-grid .cpt-card { width: 100%; } }
.cpt-card-inner { background: #fff; border: 1px solid var(--border-color, #e0e0e0); border-radius: 10px; overflow: hidden; height: 100%; }
.cpt-card-inner img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cpt-card-body { padding: 16px; }
.cpt-card-body h3 { font-size: 18px; margin: 0 0 8px; }

/* 404 page */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 h1 { font-size: 90px; margin: 0; }
