/**
 * Single Location Styles
 */

/* Layout & Container */
.lsp-single-location-wrap {
	font-family: 'Inter', system-ui, sans-serif;
	background: #f9f9f9;
	padding-bottom: 4rem;
	color: #333;
}

.lsp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Similar Locations Favorites Button */
.lsp-similar-img-link {
	position: relative;
	display: block;
}

button.lsp-favorite-btn {
	position: absolute;
	right: 0.8rem;
	top: 0.8rem;
	border: 0;
	background: none;
	color: white;
	padding: 0;
	font-size: 1.2rem;
	z-index: 2;
	cursor: pointer;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	transition: transform 0.2s;
}

button.lsp-favorite-btn:hover {
	transform: scale(1.1);
}

/* Header */
.lsp-single-header {
	background: #fff;
	padding: 2rem 0;
	border-bottom: 1px solid #eee;
	margin-bottom: 2rem;
}

.lsp-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.lsp-single-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	color: #111;
}

.lsp-header-sub {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	color: #666;
	letter-spacing: 0.02em;
}

.lsp-header-categories {
	display: flex;
	gap: 0.5rem;
}

.lsp-header-cat-item {
	font-weight: 600;
	text-transform: uppercase;
	color: #A1887F;
}

.lsp-header-divider {
	color: #ddd;
	font-size: 1.2rem;
}

.lsp-meta-city {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.lsp-meta-city i {
	color: #BCAAA4;
}

.lsp-btn-favorite {
	background: none;
	border: 1px solid #ddd;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	color: #666;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lsp-btn-favorite:hover {
	background: #f0f0f0;
	color: #e74c3c;
	border-color: #e74c3c;
}

/* Gallery */
.lsp-single-gallery {
	margin-bottom: 5rem;
}

.lsp-gallery-grid {
	display: grid !important;
	grid-template-columns: 2fr 1fr !important;
	gap: 1rem !important;
	height: 500px !important;
	max-height: 500px !important;
	margin-bottom: 2rem !important;
}

.lsp-gallery-main {
	height: 100% !important;
	border-radius: 12px;
	overflow: hidden !important;
	position: relative;
}

.lsp-gallery-main a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lsp-gallery-main img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lsp-gallery-side {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
	height: 100% !important;
	overflow: hidden !important;
}

.lsp-gallery-item {
	position: relative;
	flex: 1 !important;
	height: calc(50% - 0.5rem) !important;
	max-height: calc(50% - 0.5rem) !important;
	border-radius: 8px;
	overflow: hidden !important;
	display: block;
	background: #eee;
}

.lsp-gallery-item a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lsp-gallery-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lsp-gallery-item.placeholder {
	background: #ddd;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lsp-gallery-item.locked {
	background: #e0e0e0;
	color: #999;
	font-size: 2rem;
	display: flex;
	/* Flex for centering */
	align-items: center;
	justify-content: center;
}

/* Content Grid */
.lsp-content-grid {
	display: grid !important;
	grid-template-columns: 2fr 1fr !important;
	gap: 3rem !important;
	align-items: start !important;
}

/* Main Column */
.lsp-section {
	margin-bottom: 2.5rem;
}

.lsp-section h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #222;
}

.lsp-entry-content {
	line-height: 1.8;
	color: #444;
}

.lsp-divider {
	border: 0;
	border-top: 1px solid #eee;
	margin: 2rem 0;
}

/* Taxonomies */
.lsp-tax-group {
	margin-bottom: 1.5rem;
}

.lsp-tax-group h4 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: #555;
}

.lsp-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lsp-tag {
	background: #fff;
	border: 1px solid #e0e0e0;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #555;
}

/* Features */
.lsp-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
}

.lsp-feature-item {
	display: flex;
	align-items: center;
	padding: 1rem;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #eee;
}

.lsp-feature-item i {
	font-size: 1.5rem;
	color: #2563eb;
	margin-right: 1rem;
}

.lsp-feature-item span {
	font-size: 0.9rem;
	display: flex;
	flex-direction: column;
}

/* Sidebar */
.lsp-sidebar .lsp-card-contact {
	background: #fff;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	/* Subtle shadow like screenshot */
	border: 1px solid #eee;
	position: sticky;
	top: 2rem;
}

.lsp-contact-header {
	margin-bottom: 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.lsp-avatar-circle {
	width: 80px;
	height: 80px;
	background: #000;
	border-radius: 50%;
	margin-bottom: 1rem;
}

.lsp-contact-info h3 {
	font-size: 1.1rem;
	margin: 0 0 0.5rem 0;
	color: #000;
	font-weight: 700;
}

.lsp-contact-city {
	color: #333;
	font-weight: 600;
	margin: 0 0 0.2rem 0;
	font-size: 0.9rem;
}

.lsp-contact-phone {
	color: #666;
	margin: 0 0 1rem 0;
	font-size: 0.9rem;
}

.lsp-view-listings {
	color: #333;
	text-decoration: underline;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Form Styles */
.lsp-contact-form h4 {
	font-size: 1rem;
	margin-bottom: 1rem;
	color: #333;
}

.lsp-form-group {
	margin-bottom: 0.8rem;
}

.lsp-input {
	width: calc(100% - 1.6rem);
	padding: 0.8rem 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #333;
	outline: none;
	transition: border-color 0.2s;
	background: #fff;
}

.lsp-input:focus {
	border-color: #333;
}

.lsp-textarea {
	resize: vertical;
}

.lsp-recaptcha-mock {
	background: #f9f9f9;
	border: 1px solid #dcdcdc;
	padding: 1rem;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #555;
	font-size: 0.9rem;
}

.lsp-btn-primary {
	background: #c0392b;
	/* Reddish/Orange from screenshot */
	color: #fff;
	border: none;
	padding: 1rem;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9rem;
	cursor: pointer;
	letter-spacing: 0.5px;
}

.lsp-btn-primary:hover {
	background: #a93226;
}

.lsp-btn-block {
	width: 100%;
}

/* Similar Locations */
.lsp-similar-locations {
	padding: 4rem 0;
	border-top: 1px solid #eee;
	background: #fff;
	margin-top: 4rem;
}

.lsp-similar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.lsp-similar-header h3 {
	font-size: 1rem;
	text-transform: uppercase;
	color: #333;
	font-weight: 700;
	letter-spacing: 1px;
}

.lsp-similar-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.lsp-similar-card {
	display: flex;
	flex-direction: column;
}

.lsp-similar-img-link {
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 0.8rem;
	background: #eee;
}

.lsp-similar-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.lsp-similar-img-link:hover img {
	transform: scale(1.05);
}

.lsp-similar-content h4 {
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 0.2rem 0;
}

.lsp-similar-content h4 a {
	color: #333;
	text-decoration: none;
}

.lsp-similar-city {
	font-size: 0.8rem;
	color: #666;
	margin: 0;
}

.lsp-similar-id {
	font-size: 0.75rem;
	color: #999;
	margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 900px) {
	.lsp-content-grid {
		grid-template-columns: 1fr;
	}

	.lsp-gallery-grid {
		grid-template-columns: 1fr !important;
		height: auto !important;
		max-height: none !important;
	}

	.lsp-gallery-main {
		height: 300px !important;
	}

	.lsp-gallery-side {
		flex-direction: row;
		height: 100px;
	}

	.lsp-similar-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.lsp-similar-grid {
		grid-template-columns: 1fr;
	}
}

/* Login Form Styles in Unauthenticated View (Global) */
.lsp-login-form-wrapper form {
	text-align: left;
	margin-top: 1.5rem;
}

.lsp-login-form-wrapper label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 500;
	color: #555;
	font-size: 0.9rem;
}

.lsp-login-form-wrapper input[type="text"],
.lsp-login-form-wrapper input[type="password"] {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fff;
}

.lsp-login-form-wrapper input[type="text"]:focus,
.lsp-login-form-wrapper input[type="password"]:focus {
	border-color: #333;
	outline: none;
}

.lsp-login-form-wrapper input[type="submit"] {
	background: #333;
	color: #fff;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.2s;
}

.lsp-login-form-wrapper input[type="submit"]:hover {
	background: #111;
}

.lsp-login-form-wrapper .login-remember {
	font-size: 0.85rem;
	margin-bottom: 1rem;
	display: block;
}

.lsp-login-error {
	background: #fceceb;
	border: 1px solid #f5b7b1;
	padding: 0.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
}