/* ==========================================================================
   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;
		color: #fff;
	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);
}

/* Amenities - responsive CSS Grid (3 / 4 / 6 columns), premium card style */
.kb-amenities-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (min-width: 576px) {
	.kb-amenities-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
	.kb-amenities-grid { grid-template-columns: repeat(6, 1fr); gap: 24px; }
}
.kb-amenity-card {
	background: #fff;
	border: 1px solid var(--border-color, #ececec);
	border-radius: 12px;
	padding: 22px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kb-amenity-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
	border-color: var(--theme-primary-color, #08375c);
}
.kb-amenity-card .kb-amenity-icon {
	margin: 0 auto;
}
.kb-amenity-card .kb-amenity-photo {
	border-radius: 50%;
	width: 75px;
	height: 75px;
	object-fit: cover;
}
.kb-amenity-title {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-heading-color, #172853);
	line-height: 1.3;
}
@media (max-width: 480px) {
	.kb-amenities-grid { gap: 12px; }
	.kb-amenity-card { padding: 16px 8px; }
}

/* Pricing table - professional real-estate style */
.kb-pricing-table-wrap {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
table.kb-pricing-table {
	margin-bottom: 0;
	border-collapse: separate;
	border-spacing: 0;
}
.kb-pricing-table thead tr {
	background: var(--theme-primary-color, #08375c);
}
.kb-pricing-table thead th {
	color: #595959;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 16px 18px;
	border: none;
	vertical-align: middle;
}
.kb-pricing-table tbody td {
	padding: 16px 18px;
	vertical-align: middle;
	border-top: 1px solid var(--border-color, #ececec);
	font-size: 15px;
}
.kb-pricing-table tbody tr:nth-child(even) {
	background-color: #f8f9fb;
}
.kb-pricing-table tbody tr:hover {
	background-color: #f1f4f9;
}
.kb-pricing-table .price-type {
	font-weight: 600;
	color: var(--text-heading-color, #172853);
}
.kb-pricing-table .price-amt {
	font-weight: 700;
	color: var(--theme-primary-color, #08375c);
	white-space: nowrap;
}
.kb-pricing-table .kb-enquire-btn {
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-pricing-table .kb-enquire-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile: complete the card-stack layout already started in the base
   design (it hid the header row and stacked cells, but never actually
   set the pseudo-element label text) - each cell now shows its column
   name via the data-label attribute rendered on the front end. */
@media screen and (max-width: 600px) {
	.kb-pricing-table td:before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--theme-primary-color, #08375c);
	}
	.kb-pricing-table-wrap { box-shadow: none; }
}

/* 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; }
