/* Custom Styling : */

body {
	font-family: "Plus Jakarta Sans", sans-serif !important;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: 5rem;
	transition: padding-top 0.35s ease;
}

@media (min-width: 768px) {
	body {
		padding-top: 5rem !important;
	}
}

.container {
	flex: 1;
}

#thisContainer {
	transition: margin-top 0.1s ease-out;
}

/* ----------- Navbar -------------  */

.navbar {
	height: 5rem;
	background-color: #fff;
	z-index: 1060; /* just to be safe */
	position: relative;
}

.fa-compass {
	color: #fe424d;
	font-size: 2rem;
}

.nav-link {
	color: #222222 !important;
}

#navbar-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1030; /* below navbar menu */
	display: none;
}

.navbar-collapse.show {
	z-index: 1050;
	position: relative; /* or absolute if needed */
	background-color: white; /* optional, to avoid transparency */
}

#navbar-backdrop.fade-in {
	animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/*-------------- Footer ------------------*/

.f-info-links a {
	text-decoration: none;
	color: #222;
}

.f-info-links a:hover {
	text-decoration: underline;
}

.f-info-links,
.f-info-socials,
.f-info-brand {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.f-info-socials i {
	font-size: 1.2rem;
	margin-right: 1rem;
}

.f-info {
	text-align: center;
	display: flex;
	height: 8rem;
	background-color: #ebebeb;
	flex-wrap: wrap;
	justify-content: center;
	align-items: space-evenly;
}

/*------------- Cards -------------*/
.listing-card {
	border: none !important;
	margin-bottom: 2rem;
}

.card-img-top {
	border-radius: 1rem !important;
	width: 100% !important;
	object-fit: cover !important;
}

.card-body {
	padding: 0 !important;
}

.card-text p {
	font-weight: 400 !important;
}

.listing-link {
	text-decoration: none;
}

/*-------- Card Effect -----------*/

.card-img-overlay {
	opacity: 0;
}

.card-img-overlay:hover {
	opacity: 0.2;
	background-color: #fff;
}

/* ---------------- Listing Card Custom ---------------- */

.listing-custom-card {
	background-color: #ffffff;
	border-radius: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.listing-custom-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.listing-card-img-top {
	height: 16rem;
	object-fit: cover;
	width: 100%;
}

.listing-card-body {
	padding: 1rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.listing-card-text {
	font-size: 0.95rem;
	color: #333;
}

/*-------------- New Page -------------*/

.add-btn {
	background-color: #fe424d !important;
	border: none !important;
}

/*-------------- Edit Page ---------------*/

.edit-btn {
	background-color: #fe424d !important;
	border: none !important;
}

/*---------------- Show image ----------------*/

.show-img {
	height: 30vh;
}

.btns {
	display: flex;
}

.show-card {
	padding-left: 0;
	padding-right: 0;
}

/* ---------------- Map Styling ----------------- */

#map {
	width: 100%;
	height: 300px;
}

/* Optional: Responsive height by screen size */
@media (min-width: 768px) {
	#map {
		height: 400px;
	}
}

@media (min-width: 992px) {
	#map {
		height: 500px;
	}
}

/* ---------- Modern Form Enhancements ---------- */

.modern-form {
	background: #ffffff;
	padding: 1rem;
	border-radius: 1rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
	margin-top: 1rem;
}

.modern-form .form-floating > .form-control {
	border-radius: 0.5rem;
	border: 1px solid #ccc;
	padding-left: 0.75rem;
}

.modern-form .form-floating > label {
	color: #777;
}

.modern-form .form-control:focus {
	border-color: #84de7d;
	box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.25);
}

.modern-form .input-group-text {
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 0.5rem 0 0 0.5rem;
}

.modern-form .form-control {
	border-radius: 0 0.5rem 0.5rem 0;
}

.modern-form button {
	background-color: #fe424d !important;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	color: white;
	font-weight: bold;
	transition: background-color 0.2s ease;
}

.modern-form button:hover {
	background-color: #d63a45 !important;
}

/* ---------------- Choose File --------------------- */

.custom-file-input {
	padding: 0.45rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid #ced4da;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease-in-out;
}

.custom-file-input:focus {
	outline: none;
	border-color: #fe424d;
	box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.25);
}

/* ------------------- SignUp form -------------------- */

.gradient-custom-3 {
	/* fallback for old browsers */
	background: #84fab0;

	/* Chrome 10-25, Safari 5.1-6 */
	background: -webkit-linear-gradient(
		to right,
		rgba(132, 250, 176, 0.5),
		rgba(143, 211, 244, 0.5)
	);

	/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	background: linear-gradient(
		to right,
		rgba(132, 250, 176, 0.5),
		rgba(143, 211, 244, 0.5)
	);
}

.gradient-custom-4 {
	/* fallback for old browsers */
	background: #84fab0;

	/* Chrome 10-25, Safari 5.1-6 */
	background: -webkit-linear-gradient(
		to right,
		rgba(132, 250, 176, 1),
		rgba(143, 211, 244, 1)
	);

	/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	background: linear-gradient(
		to right,
		rgba(132, 250, 176, 1),
		rgba(143, 211, 244, 1)
	);
}

/*------------------ Marker ---------------------*/

.price-marker {
	background-color: white;
	color: #222;
	padding: 4px 8px;
	border-radius: 18px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.2s ease;
	border: 1px solid #ccc;
}

.price-marker:hover {
	transform: scale(1.05);
}

/* ---------------------- Marker PopUp ----------------------------- */

.mapboxgl-popup-content {
	padding: 0 !important;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	overflow: hidden;
}

.popup-card {
	width: 250px;
}

.popup-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.popup-content {
	padding: 12px;
}

.popup-content h4 {
	margin: 0 0 6px;
	font-size: 1rem;
	color: #333;
}

.popup-content p {
	margin: 0;
	font-size: 0.9rem;
	color: #777;
}

/* ------------------ Filters bar styling ------------- */

.filter-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 1.5rem 0;
	padding: 0 2rem;
	gap: 1rem;
	flex-wrap: nowrap;
}

.filter-scroll-container {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	overflow: hidden;
}

#filters {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	gap: 0.65rem;
	padding: 0.5rem 2.5rem;
	/* gives space for arrows */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#filters::-webkit-scrollbar {
	display: none;
}

.filter {
	flex: 0 0 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	cursor: pointer;
	white-space: nowrap;
	font-size: 0.9rem;
	background: transparent;
	border: 1px solid #fe424d;
	border-radius: 25px;
	box-shadow: 0 2px 6px rgba(254, 66, 77, 0.2);
	user-select: none;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	padding: 0.4rem 1rem;
}

.filter i {
	font-size: 1rem;
	color: #fe424d;
	transition: color 0.3s ease;
}

.filter a {
	text-decoration: none;
	color: #000;
}

.filter:hover {
	box-shadow: 0 4px 12px rgba(254, 66, 77, 0.5);
}

.scroll-btn {
	position: absolute;
	z-index: 10;
	background-color: white;
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.2s ease;
}

.scroll-btn.left {
	left: 0;
}

.scroll-btn.right {
	right: 0;
}

.scroll-btn i {
	font-size: 1.3rem;
	color: #fe424d;
}

.scroll-btn:hover {
	transform: translateY(-50%) scale(1.15);
}

.taxInfo {
	display: none;
}

.form-switch .form-check-input {
	cursor: pointer;
	width: 2.5em;
	height: 1.3em;
	border-color: #fe424d;
}

.form-switch .form-check-input:checked {
	background-color: #fe424d;
	border-color: #fe424d;
}

.form-switch .form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.25);
}

/* ------------------- Search Bar Suggestions -------------------- */
