/* ==========================================================================
   1. MAIN CONTAINER & LAYOUT
   ========================================================================== */
.slp-main-container {
	display: flex;
	align-items: flex-start;
}

.slp-sidebar {
	flex: 1; /* 1/3 of width */
	padding: 20px;
}

.slp-map-content {
	flex: 2; /* 2/3 of width */
	margin: 20px;
	border-radius: 8px;
	overflow: hidden;
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
	.slp-main-container {
		flex-direction: column;
	}
	.slp-sidebar, 
	.slp-map-content {
		width: 100%;
		margin: 0;
		padding: 20px;
	}
}

/* ==========================================================================
   2. FILTER & SEARCH SECTION (INPUTS)
   ========================================================================== */
.slp-filter-section {
	margin-bottom: 20px;
}

.slp-input-group {
	margin-bottom: 10px;
}

.slp-input-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
	text-transform: uppercase;
	font-size: 12px;
}

.slp-input-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	background: #F5F4EB !important;
}

/* Smart Search Wrapper */
.slp-global-search-wrapper,
.slp-smart-search-group {
	position: relative;
	margin-bottom: 25px;
	border-bottom: 2px solid #000;
	padding-bottom: 10px;
}

#slp-smart-search {
	font-weight: bold;
	font-size: 16px;
	border: none;
	background: transparent;
	padding: 10px 0;
	width: 100%;
}

/* Autocomplete Dropdown (Merged & Cleaned) */
.slp-autocomplete-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	z-index: 9999;
	max-height: 300px;
	overflow-y: auto;
	display: none;
}

.slp-autocomplete-item {
	padding: 12px 15px;
	cursor: pointer;
	font-size: 13px;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s;
}

.slp-autocomplete-item:hover {
	background: #f9f9f9;
	color: #000;
}

/* Input with Clear Button */
.slp-input-with-clear {
	position: relative;
	display: flex;
	align-items: center;
}

.slp-clear-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	display: none;
	transition: color 0.2s;
	z-index: 5;
}

.slp-clear-btn:hover {
	color: #000;
}

.slp-input-with-clear input:not(:placeholder-shown) + .slp-clear-btn {
	display: block;
}

.slp-input-with-clear input {
	padding-right: 35px !important;
}

/* ==========================================================================
   3. SIDEBAR RESULTS & CARDS
   ========================================================================== */
.slp-results-wrapper {
	margin-top: 20px;
	max-height: 600px;
	overflow-y: auto;
}

.slp-results-wrapper h3 {
	font-size: 18px;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

.slp-location-card {
	padding: 20px 0;
	border-bottom: 1px solid #c9c9c9;
	cursor: pointer;
	margin-bottom: 4px;
	transition: all 0.2s ease;
}

.slp-card-header h4 {
	font-size: 16px;
	letter-spacing: 1px;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	font-weight: 700;
}

.slp-card-address {
	font-size: 13px;
	color: #666;
	margin-bottom: 5px;
	line-height: 1.4;
}

.slp-card-phone {
	font-size: 13px;
	margin-bottom: 15px;
}

.slp-card-phone a {
	color: #000;
	text-decoration: none;
}

.slp-card-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 15px;
}

.slp-actions-row {
	display: flex;
	gap: 8px;
}

.slp-actions-row a {
	flex: 1;
	text-align: center;
}

/* ==========================================================================
   4. MAP POPUP STYLES (LEAFLET)
   ========================================================================== */
.slp-map-popup {
	min-width: 220px;
	font-family: sans-serif;
}

.slp-map-popup h3 {
	margin: 0 0 10px 0;
	font-size: 15px;
	text-transform: uppercase;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

.slp-popup-row {
	font-size: 12px;
	line-height: 1.4;
	margin-bottom: 6px;
	color: #333;
}

.slp-popup-row strong {
	color: #000;
}

.slp-popup-actions {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ==========================================================================
   5. BUTTONS & BADGES
   ========================================================================== */
/* Black Primary Button */
.slp-btn-full, 
.slp-btn-dark,
.slp-btn-popup-primary {
	display: block;
	background: #000;
	color: #fff !important;
	text-align: center;
	padding: 12px;
	text-decoration: none;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	border: none;
	transition: background 0.3s;
	cursor: pointer;
}

.slp-btn-full:hover, 
.slp-btn-dark:hover {
	background: #333;
}

/* Outline Buttons */
.slp-btn-outline,
.slp-btn-outline-small {
	display: inline-block;
	background: transparent;
	border: 1px solid #000;
	color: #000 !important;
	text-align: center;
	padding: 10px;
	text-decoration: none;
	font-size: 12px;
	text-transform: uppercase;
	transition: all 0.2s;
}

.slp-btn-outline-small {
	padding: 8px 5px;
	font-size: 11px;
	font-weight: 600;
}

.slp-btn-outline:hover,
.slp-btn-outline-small:hover {
	background: #000;
	color: #fff !important;
}

/* Simple Link Buttons */
.slp-btn-link-simple,
.slp-btn-popup-link {
	font-size: 12px;
	color: #888;
	text-decoration: underline;
	text-align: center;
}

.slp-btn-popup-link {
	color: #000 !important;
	margin-bottom: 5px;
}

/* Premium Badge */
.slp-badge-premium {
	background: #ffd700;
	color: #000;
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 3px;
	margin-left: 5px;
	text-transform: uppercase;
}

/* ==========================================================================
   6. MODAL STYLES
   ========================================================================== */
.slp-modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 10000;
}

.slp-modal-overlay {
	position: absolute;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.slp-modal-content {
	position: relative;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 40px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slp-modal-close {
	position: absolute;
	top: 15px; right: 20px;
	font-size: 30px;
	cursor: pointer;
}

.slp-modal-inner h2 {
	text-transform: uppercase;
	font-size: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

/* ==========================================================================
   7. NO RESULTS, PARTNERSHIPS & TABLES
   ========================================================================== */
.slp-no-results-card {
	background: #ffffff;
	padding: 25px;
	margin-top: 20px;
	border-radius: 4px;
}

.slp-no-results-card p {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 15px;
	color: #444;
}

.slp-no-results-card .slp-btn-outline {
	width: 100%;
}

.slp-no-results h3 {
	font-size: 18px;
	color: #000;
	margin-bottom: 20px;
}

/* Legacy Tables */
.slp-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-family: sans-serif;
}

.slp-table th, 
.slp-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}