/* Base and Reset styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	color: #fff;
	background-color: #000;
}

/* Background Video */
.background-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1; /* Ensure video is behind the content */
	pointer-events: none; /* Prevent interaction with the video */
}

.background-video::-webkit-media-controls {
	display: none !important; /* Hide media controls for background video only */
}

.background-video::-webkit-media-controls-start-playback-button {
	display: none !important; /* Specifically hide the play button for background video only */
}

/* Welcome Section */
.welcome-section {
	height: 80vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.welcome-section::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4); /* Slight opacity for overlay */
}

.welcome-message {
	z-index: 2;
	color: #a8a8a8;
	font-size: 4.2em;
	font-weight: 600;
	animation: fadeInUp 2.5s ease-out;
	text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.9);
}

.prepared-by {
	font-size: 1.2em;
	margin-top: 8px;

	opacity: 0;
	transform: translateY(50px);
	animation: slideUp 1s ease-out forwards;
	animation-delay: 1.5s;
	z-index: 2;
	color: #a8a8a8;
}

.prepared-by-image {
	margin-top: 8px;
	width: 200px;
	height: 120px;
	object-fit: contain;

	opacity: 0;
	transform: translateY(50px);
	animation: slideUp 1s ease-out forwards;
	animation-delay: 1.5s;
	z-index: 2;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

/* Animation for prepared-by text */
@keyframes slideUp {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animation for welcome message */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Map Section */
.map-section {
	width: 100%;
	margin: 20px 0;
}

.map-container {
	width: 100%;
	height: 400px;
	position: relative;
	transition: box-shadow 0.3s ease-in-out;
}

/* Glow effect while zooming */
.map-active-glow {
	box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
}

/* Property Images Carousel Styling */
.property-images {
	position: relative; /* For the arrows to be positioned properly */
	display: flex;
	overflow: hidden;
}

.property-images img {
	width: 100%;
	height: 400px; /* Make sure this is what you want for card images */
	object-fit: cover;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.property-images img:hover {
	transform: scale(1.05);
}

/* Carousel buttons styling */
.property-images .carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.3);
	border: none;
	cursor: pointer;
	width: 30px;
	height: 128px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition:
		background 0.3s ease,
		transform 0.3s ease;
	z-index: 1001;
	display: none; /* Initially hide arrows */
}

/* Show arrows on hover */
.property-images:hover .carousel-button {
	display: flex; /* Show arrows when hovering over the property images */
}

/* Specific position for the buttons */
.property-images .carousel-button.prev {
	left: 10px; /* Position the previous button */
}

.property-images .carousel-button.next {
	right: 10px; /* Position the next button */
}

.property-images .carousel-button:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-50%) scale(1.05);
}

.property-images .carousel-button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* SVG Arrow Styling inside property images */
.property-images .arrow-icon {
	width: 24px;
	height: 128px;
}

.property-images .arrow-icon path {
	stroke: white;
	stroke-width: 3;
	fill: none;
}

/* Properties Section */
.properties-section {
	padding: 60px 0;
	background-color: #111;
}

.number-icon {
	font-size: 12px;
	color: white;
	font-weight: bold;
	text-align: center;
	border-radius: 50%;
	background-color: #444;
	width: 28px;
	height: 28px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid white;
	line-height: 28px;
}

/* Style for the highlight glow on property cards */
.highlight-glow {
	box-shadow: 0 0 20px 8px rgb(250, 250, 250) !important;
	background-color: rgba(255, 255, 0, 0.2);
	transition:
		box-shadow 0.6s ease-in-out,
		background-color 0.6s ease-in-out;
	border-radius: 3px;
}

/* Container and Property Card */
.container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	padding: 0 20px;
	grid-auto-rows: minmax(450px, auto); /* Sets a minimum height but allows expansion if needed */
}

.property-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	width: 100%;
	cursor: pointer;
	background-color: #222;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease;
	min-height: 450px; /* Ensures a minimum height */
}

.property-card:hover {
	transform: translateY(-10px);
}

/* Property Number Styling */
.property-number {
	font-size: 18px;
	color: white;
	font-weight: bold;
	text-align: center;
	border-radius: 50%;
	background-color: #444; /* Dark background */
	width: 28px;
	height: 28px;
	display: inline-flex; /* Use inline-flex to keep it on the same line as the text */
	justify-content: center;
	align-items: center;
	border: 2px solid white; /* White border for visibility */
	margin-right: 6px; /* Adjust margin to give space between the number and the text */
	vertical-align: middle; /* Ensure the number aligns properly with the text */
}
/* Property Images */
.property-images {
	width: 100%;
	flex-grow: 1; /* Allows images to take up remaining space */
	display: flex;
}

.property-images::-webkit-scrollbar {
	display: none; /* Hide scrollbar */
}

/* Property Images */
.property-image {
	width: 100%;
	height: 100%; /* Ensures image fills the available space */
	object-fit: cover;
	transition: all 0.3s ease;
}

.property-image:hover {
	transform: scale(1.05); /* Slight zoom on hover */
}

.property-details {
	padding: 25px;
	padding-bottom: 0px;
	width: 100%; /* Ensures full width */
	flex-shrink: 0; /* Keeps text from shrinking */
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* Anchors text at the top */
}

.property-title {
	font-size: 2em;
	color: #fff; /* White text for titles */
	margin-bottom: 15px;
	font-weight: 600;
}
.city-state-zip {
	display: block;
	font-size: 0.55em; /* Adjust this size as desired */
	color: #aaa; /* Optional: lighter color to differentiate */
}

.property-info {
	font-size: 1.2em;
	color: #ccc; /* Light gray for info text */
	margin-bottom: 10px;
}

.property-description {
	font-size: 1em;
	color: #bbb; /* Light gray for description */
	line-height: 1.6;
}

.property-link {
	display: inline-block;
	color: #a8a8a8; /* Soft gray color to match the theme */
	text-decoration: none;
	font-weight: 500;
	font-size: 1em;
	padding: 8px 12px;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.1); /* Slight background for emphasis */
	transition: all 0.3s ease;
}

.property-link:hover {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.2); /* Highlight on hover */
}

.property-link::after {
	content: ' PDF'; /* Add 'PDF' label */
	font-size: 0.9em;
	color: #ccc;
}

.no-scroll {
	overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
	.container {
		grid-template-columns: 1fr; /* One card per row for medium screens */
	}

	.property-card {
		width: 100%; /* Full width on medium screens */
	}
}

@media (max-width: 600px) {
	.welcome-message {
		font-size: 2.5em;
	}

	.container {
		grid-template-columns: 1fr; /* One card per row on smaller screens */
	}

	.property-card {
		width: 100%; /* Full width on small screens */
		min-height: 350px; /* Adjust minimum height for mobile */
	}

	.property-image {
		height: 300px; /* Adjust image height for smaller screens */
	}
}

/* Legal Disclaimer Footer */
.legal-disclaimer {
	background-color: #0a0a0a;
	border-top: 1px solid #1a1a1a;
	margin-top: 20px;
	padding: 8px;
	font-family: 'Montserrat', sans-serif;
}

.disclaimer-content {
	max-width: 1200px;
	margin: 0 auto;
	color: #555;
	line-height: 1.2;
}

.disclaimer-summary p {
	font-size: 0.55em;
	margin: 0;
	text-align: center;
	color: #444;
}

.disclaimer-toggle {
	background: none;
	border: none;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.5em;
	padding: 0;
	margin-left: 6px;
}

.disclaimer-toggle:hover {
	color: #777;
}

.disclaimer-full {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #1a1a1a;
}

.disclaimer-full p {
	margin-bottom: 6px;
	font-size: 0.5em;
	text-align: center;
	color: #444;
}

.disclaimer-full p:last-child {
	margin-bottom: 0;
}

.disclaimer-footer {
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px solid #1a1a1a;
	text-align: center;
	font-size: 0.45em;
	color: #333;
}

.disclaimer-footer a {
	color: #555;
	text-decoration: none;
}

.disclaimer-footer a:hover {
	color: #666;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.legal-disclaimer {
		padding: 6px;
	}

	.disclaimer-summary p {
		font-size: 0.5em;
	}

	.disclaimer-full p {
		font-size: 0.45em;
	}

	.disclaimer-footer {
		font-size: 0.4em;
	}
}

/* Chatbot Embed */
.chatbot-container {
	display: none; /* Hide chatbot at start */
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 350px;
	height: 500px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	overflow: hidden;
	z-index: 1000;
}

.chatbot-frame {
	width: 100%;
	height: 100%;
	border: none;
}

/* Close Button */
.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #ff5f5f;
	color: white;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
}

.close-btn:hover {
	background-color: #ff3333;
}

/* Toggle Button */
.chatbot-toggle {
	display: block;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
}

.open-btn {
	background-color: #2196f3;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 25px;
	cursor: pointer;
	font-size: 16px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.open-btn:hover {
	background-color: #1769aa;
}

/* Initially hide the toggle button since the chatbot is open */
.chatbot-toggle {
	display: none;
}

.reaction-button,
.heart-button,
.comment-button {
	background: none; /* Transparent background */
	border: none; /* No borders */
	font-size: 1.5rem; /* Adjust size as needed */
	cursor: pointer; /* Pointer cursor on hover */
	color: inherit; /* Inherit text color from parent */
	transition:
		transform 0.2s,
		opacity 0.2s; /* Add hover effects */
}

.heart-button:hover,
.comment-button:hover {
	transform: scale(1.2); /* Slightly enlarge on hover */
	opacity: 0.8; /* Slightly fade on hover */
}
/* The container that holds EmojiPicker, button, and comment snippet */
.reaction-container {
	display: flex; /* Lay out in one row */
	align-items: center; /* Vertically center them in this row */
	gap: 1rem; /* Space between the items */
	margin-left: 7%;
	padding: 0.5rem 0;
	border: none;
	background: transparent;
}

/* The button with emoji + count in a column */
.comment-button {
	display: inline-flex; /* Inline so it only takes as much space as needed */
	flex-direction: column;
	justify-content: center; /* Center text in the column */
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #fff;
	font-size: 1.2rem; /* Base font size */
	transition:
		transform 0.2s,
		opacity 0.2s;
}

.comment-button:hover {
	transform: scale(1.1);
	opacity: 0.8;
}

/* The comment icon (💬) */
/* The emoji itself */
.comment-icon {
	font-size: 1.5rem; /* Larger than base font size */
	line-height: 1;
	margin-bottom: 2px; /* A little space below the emoji */
}

/* Numeric count right below the emoji */
.comment-count {
	font-size: 0.8rem;
	line-height: 1;
}

/* The snippet that appears to the right of the button */
.latest-comment {
	display: inline-block; /* So we can constrain width and ellipsis */
	max-width: 60%; /* Adjust as needed */
	white-space: nowrap; /* Prevent wrapping onto next line */
	overflow: hidden; /* Hide overflow */
	text-overflow: ellipsis; /* Show "..." if truncated */
	color: #ccc; /* Subtle color */
	font-size: 0.9rem; /* Slightly smaller or equal to base */
}

.group-collapsed {
	position: relative;
	cursor: pointer;
}

.group-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	text-align: center;
	padding: 8px 16px;
	font-size: 1rem;
	color: #fff;
	border-radius: 4px;
	z-index: 10; /* Ensure it stays above the image but below buttons */
	pointer-events: none; /* Allow clicks to pass through to the card */
	transition: opacity 0.3s ease;
}

/* Ensure the overlay remains visible on hover */
.property-card:hover .group-overlay {
	opacity: 1; /* Keep full opacity on hover */
}

/* If you have any existing .property-card:hover styles that might be hiding this, override them */
.property-card.group-collapsed:hover .group-overlay {
	display: block !important;
}

.suite-group-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
	gap: 40px;
	margin-top: 20px;
	max-width: 1200px; /* Limits the container's width */
	margin-left: auto;
	margin-right: auto;
	padding-top: 40px; /* Adjust based on your button height */
}

.collapse-group-button {
	grid-column: 1 / -1;
	margin-top: 10px;
	background-color: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	padding: 8px 16px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}
.collapse-group-button:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.container > .collapse-group-button {
	grid-column: 1 / -1;
}

.group-expanded-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
	.suite-group-container {
		grid-template-columns: 1fr; /* Switch to one column on smaller screens */
	}
}

.collapse-group-button.fixed {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background: #1e1e1e; /* Dark background similar to code editors */
	color: white;
	padding: 8px 16px;
	width: 100%;
	border: none;
	cursor: pointer;
	transition: opacity 0.3s ease;
	font-size: 0.9em;
	border-bottom: 1px solid #333;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.collapse-group-button.fixed:hover {
	background: #2d2d2d;
}

/* Hide the button when suites are collapsed */
.group-collapsed .collapse-group-button.fixed {
	display: none;
}

.sticky-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	background: transparent; /* Make background transparent */
	padding: 8px 0;
	display: flex;
	justify-content: center; /* Center the button */
}

.collapse-group-button.sticky {
	width: auto; /* Change from 100% to auto */
	background: #1e1e1e;
	color: white;
	padding: 8px 16px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9em;
	border-radius: 6px; /* Add rounded corners */
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	margin: 8px auto; /* Center the button */
	display: block; /* Make it a block element */
	max-width: 400px; /* Limit the maximum width */
}

/* Add hover effect */
.collapse-group-button.sticky:hover {
	background: #2d2d2d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suite-group-container {
	padding-top: 8px; /* Small padding below the sticky header */
}

/* Hide the button when suites are collapsed */
.group-collapsed .collapse-group-button.sticky {
	display: none;
}

/* Hide the sticky header when modal is open */
body.no-scroll .sticky-header {
	display: none !important;
}

/* Mapbox styles */
.map-style-switcher {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	padding: 5px;
}

.style-buttons-wrapper {
	display: flex;
	flex-direction: row;
	gap: 4px;
}

.style-buttons-wrapper button {
	background: none;
	border: none;
	color: white;
	padding: 4px 8px;
	cursor: pointer;
	border-radius: 3px;
	font-size: 12px;
}

.style-buttons-wrapper button.active {
	background: rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments - make style buttons vertical */
@media (max-width: 768px) {
	.map-style-switcher {
		top: 10px;
		right: 10px;
	}

	.style-buttons-wrapper {
		flex-direction: column;
		gap: 2px;
	}

	.style-buttons-wrapper button {
		padding: 6px 8px;
		font-size: 11px;
		text-align: center;
		min-width: 60px;
	}
}

.toggle-3d-button {
	background: none;
	border: none;
	color: white;
	padding: 4px 8px;
	cursor: pointer;
	border-radius: 3px;
}

.toggle-3d-button.active {
	background: rgba(255, 255, 255, 0.2);
}

/* Ensure navigation controls don't overlap with the style switcher */
.mapboxgl-ctrl-top-right {
	right: 130px; /* Move default top-right controls away from our custom controls */
}

.number-marker {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #333333; /* Dark grey background */
	color: white;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	line-height: 32px;
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.number-marker:hover {
	transform: scale(1.1);
	background-color: #555555; /* Slightly lighter on hover */
}

/* Add a glow effect to highlight the property card when clicked from map */
.highlight-glow {
	animation: card-glow 1s ease;
}

@keyframes card-glow {
	0% {
		box-shadow: 0 0 0 rgba(52, 152, 219, 0);
	}
	50% {
		box-shadow: 0 0 20px rgba(52, 152, 219, 0.7);
	}
	100% {
		box-shadow: 0 0 0 rgba(52, 152, 219, 0);
	}
}

/* Ensure Mapbox GL styles are included */
@import 'mapbox-gl/dist/mapbox-gl.css';

.property-popup {
	font-family: Arial, sans-serif;
}

.marker-popup {
	padding: 5px;
	font-size: 13px;
	line-height: 1.4;
	max-width: 200px;
}

/* Hide the popup used for building hover tracking */
.hidden-popup {
	opacity: 0 !important;
	pointer-events: none !important;
}

.hidden-popup .mapboxgl-popup-content,
.hidden-popup .mapboxgl-popup-tip {
	display: none !important;
}

/* Back to Top button */
.back-to-top-button {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #333;
	color: white;
	border: none;
	border-radius: 30px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 100;
	transition:
		background-color 0.2s,
		transform 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.back-to-top-button:hover {
	background-color: #444;
	transform: translateX(-50%) translateY(-3px);
}

.back-to-top-button:active {
	transform: translateX(-50%) translateY(0);
}

.back-to-top-button::before {
	content: '↑';
	font-size: 18px;
	font-weight: bold;
}

.comment-icon img {
	filter: none;
}
