/* ==========================================================================
   Smoky Hollow Map Scoped CSS Widget
   --------------------------------------------------------------------------
   All styles are strictly scoped under .smoky-hollow-map-widget to avoid
   conflicts or layout breakage inside active WordPress installations.
   ========================================================================== */

.smoky-hollow-map-widget {
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--bg-main: #f8fafc;
	--bg-card: #ffffff;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--border: #e2e8f0;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	
	/* Category Colors */
	--cat-tech: #3b82f6;
	--cat-food: #f59e0b;
	--cat-todo: #10b981;
	--cat-dev: #8b5cf6;

	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
	border: 1px solid var(--border);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.smoky-hollow-map-widget .app-container {
	display: flex;
	height: 100%;
	width: 100%;
}
.map-popup-phone,
p.location-card-phone {
    display: flex;
    gap: 8px;
}
/* Sidebar Styling */
.smoky-hollow-map-widget .sidebar {
	width: 400px;
	min-width: 400px;
	background-color: var(--bg-card);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	z-index: 10;
	height: 100%;
	overflow: hidden;
}

.smoky-hollow-map-widget .sidebar-header {
	padding: 24px;
	border-bottom: 1px solid var(--border);
}

.smoky-hollow-map-widget .sidebar-header h1 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 8px 0 !important;
	color: var(--text-main);
	line-height: 1.2;
}

.smoky-hollow-map-widget .sidebar-header p {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
	margin: 0 !important;
}

.smoky-hollow-map-widget .filters-section {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
	background-color: var(--bg-main);
}

.smoky-hollow-map-widget .filters-section h2 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin: 0 0 14px 0 !important;
	font-weight: 600;
}

.smoky-hollow-map-widget .filter-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.smoky-hollow-map-widget .filter-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s ease;
	user-select: none;
	margin: 0 !important;
	color: var(--text-main);
}

.smoky-hollow-map-widget .filter-label:hover {
	opacity: 0.85;
	transform: translateX(2px);
}

.smoky-hollow-map-widget .filter-checkbox {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--primary);
	margin: 0 !important;
}

/* Color dots for categories */
.smoky-hollow-map-widget .cat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.smoky-hollow-map-widget .locations-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--bg-card);
}

.smoky-hollow-map-widget .locations-header {
	padding: 14px 24px;
	border-bottom: 1px solid var(--border);
	background-color: var(--bg-card);
}

.smoky-hollow-map-widget .locations-header h2 {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted);
	margin: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.smoky-hollow-map-widget .locations-list {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}

/* Custom Scrollbars */
.smoky-hollow-map-widget .locations-list::-webkit-scrollbar {
	width: 6px;
}
.smoky-hollow-map-widget .locations-list::-webkit-scrollbar-track {
	background: transparent;
}
.smoky-hollow-map-widget .locations-list::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 3px;
}

.smoky-hollow-map-widget .location-card {
	padding: 0 !important;
	border-radius: 12px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	margin-bottom: 10px;
	background-color: var(--bg-card);
	overflow: hidden;
}

.smoky-hollow-map-widget .location-card:hover {
	background-color: var(--bg-main);
	border-color: var(--border);
	transform: translateY(-1.5px);
	box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

.smoky-hollow-map-widget .location-card.active {
	background-color: #eff6ff;
	border-color: #bfdbfe;
	box-shadow: 0 4px 8px -2px rgba(59, 130, 246, 0.08);
}

.smoky-hollow-map-widget .location-card-container {
	display: flex;
	gap: 12px;
	align-items: stretch;
	padding: 12px;
}

.smoky-hollow-map-widget .location-card-indicator {
	display: flex;
/* 	align-items: center; */
/* 	justify-content: center;
	padding: 0 6px; */
	flex-shrink: 0;
	margin-top: 5px;
}

.smoky-hollow-map-widget .location-card-indicator .cat-dot {
	width: 12px;
	height: 12px;
/* 	border-radius: 50%;
	box-shadow: 0 0 0 2.5px white, 0 0 0 3.5px #cbd5e1; */
}
.smoky-hollow-map-widget .cat-dot {
    width: 10px !important;
    height: 10px !important;
}
.smoky-hollow-map-widget .location-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.smoky-hollow-map-widget .location-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 2px;
}

.smoky-hollow-map-widget .location-card h3 {
	font-size: 0.925rem;
	font-weight: 600;
	margin: 0 !important;
	color: var(--text-main);
	line-height: 1.3;
}

.smoky-hollow-map-widget .location-card-logo {
	width: 28px;
	min-width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--border);
	background: white;
	padding: 1px;
	box-shadow: var(--shadow-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.smoky-hollow-map-widget .location-card-logo img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 50%;
	object-fit: contain;
	display: block;
}

.smoky-hollow-map-widget .location-card p {
	font-size: 0.775rem;
	color: var(--text-muted);
	line-height: 1.4;
	margin: 0 0 6px 0 !important;
}

.smoky-hollow-map-widget .location-category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 99px;
	background: #f1f5f9;
	margin-top: 20px;
	color: #475569;
	width: fit-content;
}

/* Map Container */
.smoky-hollow-map-widget .map-container {
	flex: 1;
	position: relative;
	height: 100%;
}

.smoky-hollow-map-widget #map {
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Shown briefly while Leaflet is being lazy-loaded, before the map widget scrolls into view */
.smoky-hollow-map-widget .map-loading-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	background-color: var(--bg-main);
}

.smoky-hollow-map-widget .map-loading-placeholder p {
	color: var(--text-muted);
	font-size: 14px;
	margin: 0;
}

/* Fallback shown in place of the map when Leaflet itself fails to load */
.smoky-hollow-map-widget .map-fallback-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	background-color: var(--bg-main);
	text-align: center;
	padding: 24px;
}

.smoky-hollow-map-widget .map-fallback-notice p {
	color: var(--text-muted);
	font-size: 15px;
	max-width: 320px;
	margin: 0;
}

/* Small dismissible-looking banner shown over a working map when tiles fail to load */
.smoky-hollow-map-widget .map-tile-notice {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 500;
	background-color: rgba(15, 23, 42, 0.9);
	color: #fff;
	padding: 8px 16px;
	border-radius: 8px;
	box-shadow: var(--shadow-md);
	max-width: 90%;
}

.smoky-hollow-map-widget .map-tile-notice p {
	margin: 0;
	font-size: 13px;
	text-align: center;
}

/* Custom Div Icon Styles (Leaflet Markers) */
.smoky-hollow-map-widget .custom-div-pin-container {
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.smoky-hollow-map-widget .custom-div-pin-container:hover {
	transform: scale(1.22) translateY(-2px);
}

/* Leaflet Popup Sleek Customization */
.smoky-hollow-map-widget .leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
	border: 1px solid var(--border);
	padding: 0 !important;
	overflow: hidden;
}
.smoky-hollow-map-widget .leaflet-popup-content {
	margin: 0 !important;
	width: auto !important;
}
.smoky-hollow-map-widget .leaflet-popup-tip {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Custom Popup Card Layout styles */
.smoky-hollow-map-widget .map-popup-card {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	width: 260px;
}

.smoky-hollow-map-widget .map-popup-image {
	height: 120px;
	width: 100%;
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid var(--border);
}

.smoky-hollow-map-widget .map-popup-content {
	padding:0px 14px 14px 14px;
	display: flex;
	flex-direction: column;
	background: white;
}

.smoky-hollow-map-widget .map-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 4px;
}

.smoky-hollow-map-widget .map-popup-title {
	margin: 0 !important;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-main);
	line-height: 1.3;
}

.smoky-hollow-map-widget .map-popup-logo {
	width: 26px;
	min-width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--border);
	background: white;
	padding: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-2px);
	flex-shrink: 0;
	box-shadow: var(--shadow-sm);
}

.smoky-hollow-map-widget .map-popup-logo img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 50%;
	object-fit: contain;
	display: block;
}

.smoky-hollow-map-widget .map-popup-address {
	margin: 8px 0px !important;
	font-size: 0.7rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.smoky-hollow-map-widget .location-card-phone,
.smoky-hollow-map-widget .map-popup-phone {
	margin: 2px 0 6px 0 !important;
	font-size: 0.75rem;
}

.smoky-hollow-map-widget .phone-link {
    color: var(--text-main) !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	transition: color 0.15s ease;
	text-decoration: underline;
}

.smoky-hollow-map-widget .phone-link:hover {
	color: var(--primary-hover) !important;
	text-decoration: none;
}
.location-card.active[data-category="Smoky Hollow Tech Startups"] {
    background: #3b82f61a !important;
  border-color: #3b82f6 !important;
}

.location-card.active[data-category="Bars & Restaurants"] {
    background: #f59e0b14 !important;
  border-color: #f59e0b !important;
}
.location-card.active[data-category="New Developments"] {
    background: #8b5cf61f !important;
  border-color: #8b5cf6 !important;
}

.location-card.active[data-category="Things To Do"] {
    background: #10b98112 !important;
  border-color: #10b981 !important;
}

.leaflet-popup-content {
    margin: 0px;
    padding: 16px;
}
.smoky-hollow-map-widget .map-popup-image {
    height: 90px;
    border-radius: 5px;
}
.map-popup-left{
	    flex: 0 0 120px !important;
}
/* Responsive Layout */
@media (max-width: 768px) {
	.smoky-hollow-map-widget {
		height: auto !important; /* let container flow */
		display: flex;
		flex-direction: column;
	}
	
	.smoky-hollow-map-widget .app-container {
		flex-direction: column;
		height: auto;
	}
	
	.smoky-hollow-map-widget .sidebar {
		width: 100%;
		min-width: 100%;
		height: 380px; /* fixed sidebar scroll on mobile */
		border-right: none;
		border-bottom: 1px solid var(--border);
	}
	
	.smoky-hollow-map-widget .map-container {
		height: 350px;
		width: 100%;
	}
}
