/**
 * Cabo Elements — scoped grid + components (no Bootstrap 3 dependency).
 */

/* ---------- Bootstrap-like grid (scoped) ---------- */
.elementor-widget-agenthub-properties-grid .row,
.elementor-widget-agenthub-modern-grid .row,
.elementor-widget-agenthub-communities-grid .row,
.elementor-widget-agenthub-cabo-communities-grid .row,
.elementor-widget-agenthub-cabo-condos-grid .row,
.elementor-widget-agenthub-communities-condos-grid .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.elementor-widget-agenthub-properties-grid [class*="col-sm-"],
.elementor-widget-agenthub-modern-grid [class*="col-sm-"],
.elementor-widget-agenthub-modern-grid [class*="col-md-"],
.elementor-widget-agenthub-communities-grid [class*="col-sm-"],
.elementor-widget-agenthub-cabo-communities-grid [class*="col-sm-"],
.elementor-widget-agenthub-cabo-condos-grid [class*="col-sm-"],
.elementor-widget-agenthub-communities-condos-grid [class*="col-sm-"] {
	position: relative;
	min-height: 1px;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
	width: 100%;
}

@media (min-width: 768px) {
	.elementor-widget-agenthub-properties-grid .col-sm-6,
	.elementor-widget-agenthub-modern-grid .col-md-6,
	.elementor-widget-agenthub-communities-grid .col-sm-6,
	.elementor-widget-agenthub-cabo-communities-grid .col-sm-6,
	.elementor-widget-agenthub-cabo-condos-grid .col-sm-6,
	.elementor-widget-agenthub-communities-condos-grid .col-sm-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	.elementor-widget-agenthub-properties-grid .col-sm-4,
	.elementor-widget-agenthub-communities-grid .col-sm-4,
	.elementor-widget-agenthub-cabo-communities-grid .col-sm-4,
	.elementor-widget-agenthub-cabo-condos-grid .col-sm-4,
	.elementor-widget-agenthub-communities-condos-grid .col-sm-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
}

@media (min-width: 992px) {
	.elementor-widget-agenthub-properties-grid .col-md-3,
	.elementor-widget-agenthub-communities-grid .col-md-3,
	.elementor-widget-agenthub-cabo-communities-grid .col-md-3,
	.elementor-widget-agenthub-cabo-condos-grid .col-md-3,
	.elementor-widget-agenthub-communities-condos-grid .col-md-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
	.elementor-widget-agenthub-modern-grid .large-box.col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

/* ---------- Buttons (legacy class names) ---------- */
.elementor-widget-agenthub-properties-grid .btn {
	display: inline-block;
	padding: 8px 16px;
	margin: 8px 4px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
}
.elementor-widget-agenthub-properties-grid .btn-primary {
	background: #274abb;
	color: #fff;
	border-color: #274abb;
}
.elementor-widget-agenthub-properties-grid .btn-primary:hover {
	filter: brightness(1.05);
	color: #fff;
}

/* ---------- Map popup fallback button ---------- */
.cabo-elements-map-popup-btn {
	display: block;
	margin-top: 10px;
	padding: 8px 12px;
	background: #274abb;
	color: #fff;
	text-align: center;
	border-radius: 4px;
	font-size: 14px;
}

/* ---------- Leaflet map container ---------- */
.cabo-elements-leaflet {
	width: 100%;
	min-height: 420px;
	z-index: 1;
}

.cabo-elements-map-root {
	position: relative;
}

.property-marker {
	background: transparent !important;
	border: none !important;
}

.property-marker .property-marker-img {
	border-radius: 4px;
	display: block;
}

.property-marker .property-price {
	position: absolute;
	left: 50%;
	bottom: -4px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	white-space: nowrap;
}

/* ---------- Weather (centered stack: title bar, temp on top, details below; default bg = Cabo gradients) ---------- */
.cabo-elements-weather--loading .cabo-elements-weather__pending {
	padding: 40px;
	text-align: center;
	background: rgba(0, 0, 0, 0.1);
	font-size: 14px;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.cabo-elements-weather__pending-sun {
	display: block;
	margin: 0 auto 14px;
	color: rgba(255, 255, 255, 0.92);
	animation: cabo-weather-sun-glow 1.4s ease-in-out infinite;
}

.cabo-elements-weather__pending-sun svg {
	display: block;
	margin: 0 auto;
	vertical-align: middle;
}

.cabo-elements-weather__pending-text {
	opacity: 0.92;
}

@keyframes cabo-weather-sun-glow {
	0%,
	100% {
		opacity: 0.55;
		transform: scale(1) rotate(0deg);
	}
	50% {
		opacity: 1;
		transform: scale(1.06) rotate(12deg);
	}
}

.cabo-elements-weather.awesome-weather-wrap {
	background: linear-gradient(180deg, rgba(30, 50, 80, 0.5) 0%, rgba(0, 0, 0, 0.45) 100%),
		linear-gradient(120deg, #1e5799 0%, #2989d8 40%, #207cca 100%);
	background-size: cover;
	background-position: center;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
	color: #fff;
	clear: both;
	position: relative;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	overflow: hidden;
	min-height: 220px;
}

.cabo-elements-weather.awesome-weather-wrap.darken {
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
	background: #333;
	min-height: 0;
}

.cabo-elements-weather.awesome-weather-wrap .awesome-weather-cover {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	min-height: 220px;
}

.cabo-elements-weather.awesome-weather-wrap .awesome-weather-darken {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: rgba(0, 0, 0, 0.2);
}

.cabo-elements-weather.awesome-weather-wrap div {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.cabo-elements-weather .awecf:before,
.cabo-elements-weather .awecf:after {
	content: " ";
	display: table;
}
.cabo-elements-weather .awecf:after {
	clear: both;
}

.cabo-elements-weather .awesome-weather-header {
	padding: 10px 12px;
	text-align: center;
	background: rgba(0, 0, 0, 0.45);
	text-transform: uppercase;
	position: relative;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.cabo-elements-weather .awesome-weather-header span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: block;
	margin: 0 auto;
	padding: 0 10px;
}

.cabo-elements-weather.awesome-weather-wrap.darken .awesome-weather-header {
	background: rgba(0, 0, 0, 0.55);
}

/* Main block: centered, temp on top, details below (not side-by-side “wide”) */
.cabo-elements-weather .awesome-weather-header + .awecf {
	text-align: center;
	padding: 24px 20px 20px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.cabo-elements-weather .awesome-weather-current-temp {
	white-space: nowrap;
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
	margin: 0 auto 12px;
	float: none;
	width: auto;
	max-width: 100%;
	padding: 0;
}

.cabo-elements-weather .awesome-weather-current-temp sup {
	font-size: 0.45em;
	top: -0.35em;
	padding-left: 2px;
	position: relative;
	vertical-align: super;
}

.cabo-elements-weather .awesome-weather-todays-stats {
	float: none;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	text-align: center;
	line-height: 1.65;
	font-size: 15px;
	opacity: 0.98;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.cabo-elements-weather .awesome-weather-forecast {
	border-top: solid 1px rgba(255, 255, 255, 0.5);
	width: 90%;
	margin-right: auto;
	margin-left: auto;
	margin-top: 20px;
	padding: 20px 5% 15px 5%;
	clear: both;
	font-size: 0.9em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.cabo-elements-weather .awesome-weather-forecast-day {
	width: 18%;
	margin: 0 1%;
	float: left;
	text-align: center;
}

.cabo-elements-weather .awesome-weather-forecast.awe_days_2 .awesome-weather-forecast-day {
	width: 48%;
}
.cabo-elements-weather .awesome-weather-forecast.awe_days_3 .awesome-weather-forecast-day {
	width: 31%;
}
.cabo-elements-weather .awesome-weather-forecast.awe_days_4 .awesome-weather-forecast-day {
	width: 23%;
}

.cabo-elements-weather .awesome-weather-forecast-day-temp {
	font-size: 1.8em;
	font-weight: 700;
}

.cabo-elements-weather .awesome-weather-forecast-day-temp sup {
	font-size: 0.6em;
	padding-left: 2px;
	position: relative;
	top: -0.3em;
}

.cabo-elements-weather .awesome-weather-forecast-day-abbr {
	margin-top: 5px;
	text-transform: uppercase;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.cabo-elements-weather div.awesome-weather-error {
	background: transparent;
	font-weight: 400;
	display: block;
	padding: 24px 20px;
	font-size: 14px;
	text-align: center;
	color: #fff;
	text-transform: none;
	margin: 0;
	opacity: 0.95;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

/* ---------- World clock ---------- */
.cabo-elements-world-clock {
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.4;
}

.cabo-elements-world-clock--layout-top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cabo-elements-world-clock--layout-inline {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.55em;
}

.cabo-elements-world-clock__label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.cabo-elements-world-clock--layout-inline .cabo-elements-world-clock__label {
	margin-bottom: 0;
}

.cabo-elements-world-clock__time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
