/* Container Styles */
.directory-submission-container {
	margin: 0 auto;
	max-width: 1400px;
	padding: 20px;
}

/* Layout Styles */
.form-layout {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0 auto;
}

/* Map Sidebar Styles */
.map-sidebar {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#google-map {
	flex: 1;
	min-height: 400px;
	border-radius: 8px;
	overflow: hidden;
}

.search-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Form Styles */
.form-main {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 30px;
}

.form-section {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.form-section h3 {
	margin-bottom: 20px;
	color: #333;
	font-size: 18px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.form-group input[type='text'],
.form-group input[type='tel'],
.form-group input[type='url'],
.form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

/* Location Fields Grid */
.location-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* Search Controls */
.search-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-group input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.search-btn {
	padding: 10px 20px;
	background: #7f2529;
	color: #fff;
	border: none;
	border-radius: 4px;
	top: 0;
	cursor: pointer;
	transition: background 0.3s ease;
	white-space: nowrap;
	position: relative;
}

.search-btn:hover {
	background: #fbac18;
}

/* Info Window Styles */
.info-window {
	padding: 10px;
}

.info-window h3 {
	margin: 0 0 5px;
	font-size: 16px;
	color: #333;
}

.info-window p {
	margin: 0 0 10px;
	font-size: 14px;
	color: #666;
}

.info-window button {
	background: #7f2529;
	color: #fff;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.info-window button:hover {
	background: #fbac18;
}

/* Image Preview */
#listing_image_preview {
	margin-top: 15px;
}

#listing_image_preview img {
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-count {
	margin-top: 10px;
	font-size: 14px;
	color: #666;
}

/* Submit Button */
.form-submit {
	margin-top: 30px;
	text-align: center;
}

.form-submit-btn {
	padding: 12px 30px;
	background: #7f2529;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.form-submit-btn:hover {
	background: #fbac18;
}

/* Responsive Styles */
@media (max-width: 1200px) {
	.form-layout {
		grid-template-columns: 350px 1fr;
	}
}

@media (max-width: 992px) {
	.form-layout {
		grid-template-columns: 1fr;
	}

	.map-sidebar {
		height: auto;
		position: static;
	}

	#google-map {
		height: 400px;
	}

	.location-fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.directory-submission-container {
		padding: 10px;
	}

	.form-main {
		padding: 20px;
	}
}

/* Loading State */
.loading-indicator {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.9);
	padding: 10px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #7f2529;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Add these styles to your submission-form.css */
.info-window {
	padding: 15px;
	max-width: 300px;
}

.info-window h3 {
	margin: 0 0 10px;
	font-size: 16px;
	color: #333;
	font-weight: 600;
}

.info-window p {
	margin: 0 0 15px;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

.select-place-btn {
	background: #7f2529;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.select-place-btn:hover {
	background: #fbac18;
}

/* Style the Google Maps info window */
.gm-style .gm-style-iw-c {
	padding: 12px !important;
	border-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
	padding: 0 !important;
}

.gm-style .gm-style-iw-t::after {
	background: linear-gradient(45deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0) 100%) !important;
}

/* Remove the place-type-tabs related styles */
.place-type-sidebar,
.place-type-tabs,
.place-type-tab {
	display: none;
}

/* Update the Business Type dropdown styles */
#category {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background-color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
}

#category:hover {
	border-color: #7f2529;
}

#category:focus {
	outline: none;
	border-color: #7f2529;
	box-shadow: 0 0 0 2px rgba(127, 37, 41, 0.1);
}

#category option {
	padding: 8px;
}

/* Places Grid Styles */
.places-grid-container {
	margin-top: 20px;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.places-grid-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.places-grid-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.view-toggle button {
	padding: 8px;
	background: #fff;
	border: 1px solid #ddd;
	cursor: pointer;
	margin-left: 5px;
	border-radius: 4px;
}

.view-toggle button.active {
	background: #7f2529;
	color: #fff;
	border-color: #7f2529;
}

.places-grid {
	display: block !important;
}

.place-card {
	margin: 0 10px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s;
	height: 400px;
	display: flex;
	flex-direction: column;
}

.place-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.place-image {
	height: 200px;
	overflow: hidden;
}

.place-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.place-card-content {
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 200px;
}

.place-info {
	flex-grow: 1;
}

.place-card h4 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #333;
	line-height: 1.3;
}

.place-card p {
	margin: 0 0 8px;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

.rating {
	margin: 8px 0;
	color: #ffc107;
}

.select-btn {
	width: 100%;
	padding: 10px;
	background: #7f2529;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-top: auto;
}

.select-btn:hover {
	background: #fbac18;
}

/* Description field styles */
#description {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	resize: vertical;
	min-height: 100px;
}

/* Places Grid Carousel Styles */
.places-grid-carousel {
	padding: 0 40px;
	margin: 20px 0;
}

/* Slick Carousel Custom Styles */
.slick-prev,
.slick-next {
	width: 40px;
	height: 40px;
	background: #7f2529;
	border-radius: 50%;
	z-index: 1;
}

.slick-prev {
	left: -5px;
}

.slick-next {
	right: -5px;
}

.slick-prev:hover,
.slick-next:hover {
	background: #fbac18;
}

.slick-prev:before,
.slick-next:before {
	font-size: 20px;
	opacity: 1;
}

/* Get Nearby Places Button */
.nearby-places-btn {
	margin-top: 10px;
	padding: 10px 20px;
	background: #7f2529;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
}

.nearby-places-btn:hover {
	background: #fbac18;
}
