@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;

}

body {
	height: 100dvh;
	overflow: hidden;
	font-family: "Inter", sans-serif !important;
}




/* --- ENTRANCE ANIMATIONS --- */
@keyframes rs-app-reveal {
	from {
		opacity: 0;
		transform: scale(1.01);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rs-header-slide {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

:root {
	--rs-bg-primary: #ffffff;
	--rs-bg-secondary: #f9fafb;
	--rs-bg-tertiary: #f3f4f6;
	--rs-text-primary: #333333;
	--rs-text-secondary: #6b7280;
	--rs-border-color: #e5e7eb;
	--rs-accent-blue: #2563eb;
	--rs-map-fill: #ffffff;
	--rs-map-stroke: #333333;
	--rs-card-shadow: rgba(0, 0, 0, 0.05);
	--rs-header-bg: #ffffff;
	--rs-details-bg: #ffffff;
	--rs-controls-bg: #ffffff;
	--rs-pattern-bg: #f8fafc;
	--rs-pattern-dot: #cbd5e1;
}

/* Initial Hidden States to prevent "flash" of content */
.rs-header-bar,
.rs-map-container,
.rs-map-controls,
.rs-get-started-box {
	opacity: 0;
	visibility: hidden;
	backface-visibility: hidden;
}

/* Hardcode default map path colors to prevent "Black Flash" */
#rs-us-map-svg path {
	fill: #ffffff !important;
	stroke: #333333;
	stroke-width: 1;

}


body.rs-dark-mode #rs-us-map-svg path {
	fill: #1f2937 !important;
	stroke: #9ca3af;
}

.rs-initialized .rs-header-bar,
.rs-initialized .rs-map-container,
.rs-initialized .rs-map-controls,
.rs-initialized .rs-get-started-box {
	visibility: visible;
}

.rs-initialized .rs-header-bar {
	animation: rs-header-slide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rs-initialized .rs-map-container,
.rs-initialized .rs-map-controls {
	animation: rs-app-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.rs-initialized .rs-get-started-box {
	animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

#rs-clinics-app {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--rs-text-primary);
	padding: 0;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background-color: var(--rs-pattern-bg);
	background-image: radial-gradient(var(--rs-pattern-dot) 1px, transparent 1px);
	background-size: 20px 20px;
	background-attachment: fixed;
	overflow: hidden;
	position: relative;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Homepage Mode specific */
#rs-clinics-app.rs-homepage-mode .rs-map-controls,
#rs-clinics-app.rs-homepage-mode .rs-clinic-details-box {
	display: none !important;
}

#rs-clinics-app:not(.rs-homepage-mode) .rs-get-started-box,
#rs-clinics-app:not(.rs-homepage-mode) .rs-header-center,
#rs-clinics-app:not(.rs-homepage-mode) .rs-bulb-icon {
	display: none !important;
}

/* Header Start Search Button */
.rs-header-center {
	flex: 1;
	display: flex;
	justify-content: center;
}

.rs-btn-clear,
.rs-btn-start-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: var(--rs-bg-primary);
	border: 1px solid var(--rs-border-color);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rs-text-primary);
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.2s;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.rs-btn-clear::after,
.rs-btn-start-search::after {
	content: '';
	position: absolute;
	width: 0%;
	height: 100%;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--rs-accent-blue);
	z-index: -1;
	transition: all ease-in-out 0.3s;
	/* border-radius: 50%; */
}

.rs-btn-clear:hover,
.rs-btn-start-search:hover {
	background: var(--rs-bg-secondary);
	border-color: var(--rs-accent-blue);
	color: white;
	/* transform: translateY(-2px); */
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rs-btn-clear:hover svg,
.rs-btn-start-search:hover svg {
	color: white;
}

.rs-btn-clear:hover::after,
.rs-btn-start-search:hover::after {
	left: 0;
	right: unset;
	width: 100%;
}

.rs-btn-start-search svg {
	color: var(--rs-text-secondary);
}

/* Get Started Box */
.rs-get-started-box {
	position: absolute;
	top: 100px;
	left: 40px;
	width: 280px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border: 1px dashed(5px) rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	padding: 24px;
	z-index: 100;
	animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}


	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.rs-gs-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.rs-gs-header strong {
	font-size: 18px;
	color: #1f2937;
}

.rs-gs-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #9ca3af;
	cursor: pointer;
	line-height: 1;
}

.rs-get-started-box p {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.6;
	margin-bottom: 16px;
}

.rs-get-started-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rs-get-started-box li {
	font-size: 13px;
	color: #4b5563;
	margin-bottom: 8px;
	padding-left: 0;
}




.rs-get-started-box li strong {
	color: #1f2937;
}

.rs-get-started-box li:last-child,
.rs-get-started-box li:last-child strong {
	color: #f72121 !important;
	font-size: 12px;
	line-height: 16px;
}



/* --- DARK MODE OVERRIDES --- */
body.rs-dark-mode {
	--rs-bg-primary: #111827;
	--rs-bg-secondary: #111827;
	--rs-bg-tertiary: #374151;
	--rs-text-primary: #f9fafb;
	--rs-text-secondary: #9ca3af;
	--rs-border-color: #374151;
	--rs-map-fill: #1f2937;
	--rs-map-stroke: #9ca3af;
	--rs-accent-blue: white;

	--rs-card-shadow: rgba(0, 0, 0, 0.5);
	--rs-header-bg: #2c3653;
	/* Darker blue */
	--rs-controls-bg: #1f2937;

	/* Apply to body itself */
	background-color: var(--rs-bg-secondary);
	color: var(--rs-text-primary);
	--rs-details-bg: #1f2937;
	--rs-pattern-bg: #0f172a;
	--rs-pattern-dot: #334155;
}

/* Dark Mode New Elements */
body.rs-dark-mode .rs-btn-start-search {
	background: #1f2937;
	border-color: #374151;
	color: #f9fafb;
}

body.rs-dark-mode .rs-btn-start-search:hover {


	color: black;
}

body.rs-dark-mode .rs-btn-start-search svg {
	color: #9ca3af;
}

body.rs-dark-mode .rs-get-started-box {
	background: rgba(31, 41, 55, 0.9);
	border-color: rgba(255, 255, 255, 0.1);
}

body.rs-dark-mode .rs-gs-header strong,
body.rs-dark-mode .rs-get-started-box li strong {
	color: #f9fafb;
}

body.rs-dark-mode .rs-get-started-box p,
body.rs-dark-mode .rs-get-started-box li {
	color: #d1d5db;
}

body.rs-dark-mode #rs-us-map-svg path:not(.active-state):hover {
	fill: #dddddd !important;
}

body.rs-dark-mode #rs-us-map-svg .rs-state-group:hover text {
	fill: #111827 !important;
}

body.rs-dark-mode #rs-us-map-svg path.active-state {
	fill: #ffffff !important;
	stroke: var(--rs-map-stroke);
	filter: drop-shadow(0px 2px 4px rgba(255, 255, 255, 0.4));
}

body.rs-dark-mode #rs-us-map-svg .active-state~text,
body.rs-dark-mode #rs-us-map-svg .rs-state-group.active text {
	fill: #111827 !important;
}


/* Also ensure wrapper uses vars (already set) */

/* Apply variables to existing elements */
.rs-clinic-details-box,
#rs-us-map,
.rs-card,
.rs-details-header-row,
.rs-results-content {
	background-color: var(--rs-bg-primary);
	border-color: var(--rs-border-color);
	color: var(--rs-text-primary);
}

.rs-map-controls {
	background-color: var(--rs-controls-bg);
	border-color: var(--rs-border-color);
	color: var(--rs-text-primary);
}

.rs-view-btn {
	background-color: var(--rs-bg-primary);
	border-color: var(--rs-border-color);
	color: var(--rs-text-secondary);
}

.rs-select,
.rs-view-btn:hover {
	background-color: var(--rs-bg-primary);
	border-color: var(--rs-border-color);
	color: var(--rs-text-primary);
}

.rs-map-controls,
.rs-grid-row {
	border-color: var(--rs-border-color);
	/* Ensure border uses variable */
}

.rs-grid-row {
	border-top-color: var(--rs-bg-tertiary);
}

.rs-active-filters {
	background: var(--rs-border-color);
	border-color: var(--rs-border-color);
}

.rs-active-filters .rs-active-label {
	color: var(--rs-text-primary);
}

body.rs-dark-mode .rs-active-filters .rs-active-label {
	color: var(--rs-text-primary);
}

.rs-active-filters-right {
	color: var(--rs-text-secondary);
}


#rs-us-map-svg path:not(.active-state):hover {
	fill: #c0d1ff !important;
	stroke: var(--rs-text-primary);
}

.rs-card-header h4,
.rs-col-payer strong {
	color: var(--rs-text-primary);
}

.rs-card-state,
.rs-loc,
.rs-grid-label,
.rs-col-cov,
.rs-sortable span {
	color: var(--rs-text-secondary);
}

.rs-grid-val,
.rs-sortable {
	color: var(--rs-text-primary);
}

.rs-sortable {
	white-space: nowrap;
}

.rs-grid-val {
	white-space: normal;
}



.rs-table-row {
	border-bottom-color: var(--rs-bg-tertiary);
	color: var(--rs-text-primary);
}

.rs-table-row:hover {
	background: var(--rs-bg-secondary) !important;
	color: var(--rs-text-primary) !important;
}

.rs-table-row:hover .rs-grid-val,
.rs-table-row:hover .rs-col-payer strong,
.rs-table-row:hover .rs-col-cov,
.rs-table-row:hover .rs-loc {
	color: var(--rs-text-primary) !important;
}

/* --- HEADER BAR --- */
.rs-header-bar {
	background-color: var(--rs-header-bg);
	color: var(--rs-text-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px;
	margin: 0;
	flex-wrap: wrap;
	gap: 15px;
	position: relative;
	z-index: 1000;
}




@media (min-width: 1024px) { 
	.rs-clinic-details-box { min-width: 60vw !important;}
}


@media (max-width: 768px) {
	.rs-header-bar {
		padding: 15px 20px;
		justify-content: center;
		text-align: center;
	}

	.rs-header-left {
		width: 100%;
		justify-content: center;
	}

	.rs-header-center {
		order: 3;
		width: 100%;
	}

	.rs-header-right {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px;
	}
}

.rs-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	white-space: nowrap;
}

.rs-sep {
	font-weight: 300;
	color: var(--rs-text-primary);
	margin: 0 2px;
}

.rs-page-title {
	font-weight: 400;
	color: var(--rs-text-primary);
}

/* body.rs-dark-mode .rs-sep { background: #ffffff; } */


/* --- HEADER RIGHT --- */
.rs-header-right {
	display: flex;
	align-items: center;
	gap: 15px;
	white-space: nowrap;
}

.rs-logo-link {
	text-decoration: none;
	display: block;
	border: none;
}

.rs-brand-logo {
	height: 36px;
	width: auto;
	display: block;
}

body.rs-dark-mode .rs-brand-logo {
	filter: brightness(0) invert(1);
}

.rs-last-updated {
	font-size: 11px;
	color: #696D77;
	font-weight: 500;
}

body.rs-dark-mode .rs-last-updated {
	color: #d9d9d9;
}


/* --- THEME TOGGLE --- */
.rs-theme-toggle {
	display: flex;
	align-items: center;
}

.rs-checkbox {
	opacity: 0;
	position: absolute;
}

.rs-label {
	width: 50px;
	height: 28px;
	background-color: #e5e7eb;
	/* Light grey track */
	display: flex;
	border-radius: 50px;
	align-items: center;
	padding: 2px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.4s ease;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rs-ball {
	width: 24px;
	height: 24px;
	background-color: white;
	border-radius: 50%;
	position: absolute;
	top: 2px;
	left: 2px;
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.rs-icon-sun,
.rs-icon-moon {
	width: 14px;
	height: 14px;
	position: absolute;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.rs-icon-sun {
	opacity: 1;
	transform: rotate(0deg);
	color: #f59e0b;
	/* Orange */
}

.rs-icon-moon {
	opacity: 0;
	transform: rotate(-90deg);
	color: #3b82f6;
	/* Blue */
}

/* Checked State (Dark Mode) */
.rs-checkbox:checked+.rs-label {
	background-color: #4b5563;
	/* Dark grey-blue track */
}

.rs-checkbox:checked+.rs-label .rs-ball {
	transform: translateX(22px);
}

.rs-checkbox:checked+.rs-label .rs-icon-sun {
	opacity: 0;
	transform: rotate(90deg);
}

.rs-checkbox:checked+.rs-label .rs-icon-moon {
	opacity: 1;
	transform: rotate(0deg);
}

/* Filter select specific overrides for dark mode */
body.rs-dark-mode .select2-container--default .select2-selection--single {
	background-color: var(--rs-bg-primary);
	border-color: var(--rs-border-color) !important;
}

body.rs-dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--rs-text-primary) !important;
}

body.rs-dark-mode .select2-dropdown {
	background-color: var(--rs-bg-primary);
	border-color: var(--rs-border-color) !important;
	color: var(--rs-text-primary);
}

body.rs-dark-mode .select2-search__field {
	background-color: var(--rs-bg-secondary);
	border-color: var(--rs-border-color);
	color: var(--rs-text-primary);
}

body.rs-dark-mode .select2-results__option {
	color: var(--rs-text-primary) !important;
}

body.rs-dark-mode .select2-results__option--highlighted[aria-selected] {
	background-color: var(--rs-bg-tertiary) !important;
	color: var(--rs-text-primary) !important;
}

/* --- FILTERS BAR --- */
.rs-map-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 15px;
	padding: 20px 40px;
	background-color: var(--rs-controls-bg);
	border: 1px solid var(--rs-border-color);
	align-items: flex-end;
	margin-bottom: 25px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
	.rs-map-controls {
		padding: 12px;
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.rs-map-controls {
		grid-template-columns: repeat(2, 1fr);
		padding: 15px;
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.rs-map-controls {
		grid-template-columns: 1fr;
	}
}

.rs-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 140px;
}

.rs-filter-group label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rs-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rs-select {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.9rem;
	width: 100%;
	background-color: var(--rs-bg-primary);
	color: var(--rs-text-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-select:hover {
	border-color: #9ca3af;
}

.rs-select:focus {
	border-color: var(--rs-accent-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rs-btn-clear {
	padding: 8px 16px !important;
	height: 42px;
	margin-top: auto;
	border: 1px solid #1f2937 !important;
	background: #1f2937 !important;
	color: #fff !important;
	border-radius: 6px !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-align: center !important;
	justify-content: center;
}

.rs-btn-clear:hover {
	background: var(--rs-bg-primary) !important;
	color: white !important;
	border-color: var(--rs-accent-blue) !important;
	/* transform: translateY(-1px); */
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Dark mode clear button - inverted appearance */
body.rs-dark-mode .rs-btn-clear {
	background: var(--rs-bg-primary) !important;
	color: var(--rs-text-primary) !important;
	border-color: var(--rs-border-color) !important;
}

body.rs-dark-mode .rs-btn-clear::after {
	background-color: var(--rs-accent-blue);
}

body.rs-dark-mode .rs-btn-clear:hover {
	background: var(--rs-bg-primary) !important;
	color: black !important;
	border-color: var(--rs-accent-blue) !important;
}


/* --- MAP CONTAINER & LAYOUT --- */
.rs-map-container {
	display: flex;
	flex: 1;
	gap: 30px;
	position: relative;
	align-items: flex-start;
	/* Ensure children can be sticky */
	transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
	padding: 0 30px 20px 30px;
	min-height: 0;
	/* padding-bottom: 50px; */
	/* Important for scrollable children in flex */
}

.rs-map-container.rs-no-details {
	gap: 0;
	justify-content: center;
	align-items: center;
	/* Center vertically when no details */
}

#rs-us-map {
	flex: 6;
	min-width: 0;
	position: sticky;
	top: 20px;
	background-color: transparent;
	border-radius: 12px;
	padding: 10px;
	transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
	cursor: grab;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

#rs-us-map.rs-panning {
	cursor: grabbing;
}

.rs-map-container.rs-no-details #rs-us-map {
	flex: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	position: relative;
	top: 0;
}

/* 
   DETAILS SECTION: 
   Takes 40% of the space.
*/
.rs-clinic-details-box {
	flex: 4;
	background-color: var(--rs-details-bg);
	border: 1px solid #d1d5db;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	min-width: 100px;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	/* Fill container height */
	opacity: 1;
	visibility: visible;
	transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
	transform: translateX(0);
}

.rs-map-container.rs-no-details .rs-clinic-details-box {
	flex: 0;
	min-width: 0;
	width: 0;
	opacity: 0;
	visibility: hidden;
	margin: 0;
	padding: 0;
	border: none;
	transform: translateX(40px);
	display: none;
}


/* SVG MAP */
#rs-us-map-svg {
	width: 100%;
	height: 100%;
	/* max-height: 650px; */
	display: block;
	margin: 0 auto;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#rs-us-map-svg text {
	fill: #9ca3af;
	font-weight: 600;
	pointer-events: none;
	transition: fill 0.2s ease;
}

#rs-us-map-svg path.active-state~text {
	fill: #ffffff !important;
}

body.rs-dark-mode #rs-us-map-svg text {
	fill: #ffffff;
}

#rs-us-map-svg path {
	cursor: pointer;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	fill: var(--rs-map-fill) !important;
	/* White fill */
	stroke: var(--rs-map-stroke);
	/* Dark stroke */
	stroke-width: 1;
}


#rs-us-map-svg path.active-state {
	fill: var(--rs-accent-blue) !important;
	/* stroke: #fff; */
	stroke: var(--rs-map-stroke);
	filter: drop-shadow(0px 2px 4px rgba(31, 41, 55, 0.3));
	z-index: 10;
}


/* --- RESULTS HEADER --- */
.rs-details-header-row {
	background-color: var(--rs-details-bg);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid #d1d5db;
	white-space: nowrap;
	/* overflow-x: auto; */
	gap: 12px;
	flex-wrap: wrap;
}

.rs-details-header-row h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--rs-text-primary);
}

.rs-view-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Action Buttons (Contact/Export) */
.rs-header-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	border: none;
	background: transparent;
	font-size: 0.85rem;
	font-weight: 600;
	color: #9ca3af;
	cursor: pointer;
	transition: all 0.2s;
}

.rs-header-action-btn:hover {
	color: #2563eb;
}

.rs-header-action-btn:hover svg {
	color: #2563eb;
}

.rs-header-action-btn .dashicons,
.rs-header-action-btn svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #9ca3af;
}

/* Dark mode header action buttons */
body.rs-dark-mode .rs-header-action-btn {
	color: #d1d5db;
}

body.rs-dark-mode .rs-header-action-btn:hover {
	color: white;
}

body.rs-dark-mode .rs-header-action-btn:hover svg {
	color: white;
}

body.rs-dark-mode .rs-header-action-btn .dashicons,
body.rs-dark-mode .rs-header-action-btn svg {
	color: #d1d5db;
}

/* Contact Link in Coverage Details */
.rs-contact-link {
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
}

.rs-contact-link:hover {
	color: #2563eb !important;
}

body.rs-dark-mode .rs-contact-link:hover {
	color: white !important;
}

.rs-view-btn {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 4px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.rs-view-btn:hover {
	background: #f9fafb;
	color: #111827;
	border-color: #d1d5db;
}

.rs-view-btn.active {
	background: #eff6ff;
	color: #2563eb;
	border-color: #bfdbfe;
}

/* Dark mode view controls */
body.rs-dark-mode .rs-view-btn {
	background: #374151;
	border-color: #4b5563;
	color: #9ca3af;
}

body.rs-dark-mode .rs-view-btn:hover {
	background: #4b5563;
	color: #f9fafb;
	border-color: #6b7280;
}

body.rs-dark-mode .rs-view-btn.active {
	background: #1e3a8a;
	color: white;
	border-color: #2563eb;
}


/* --- LIST VIEW (TABLE) --- */
.rs-list-header {
	display: grid;
	grid-template-columns: 140px 100px 100px 150px 80px 120px 1fr;
	gap: 15px;
	padding: 14px 24px;
	width: 100%;
	background: #fdfdfd;
	border-bottom: 1px solid #eeeeee;
	font-size: 0.7rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	min-width: 1000px !important;
	/* Add this globally */
	max-width: none !important;
	/* Add this to allow overflow */
}

body.rs-dark-mode .rs-list-header {
	background: #1f2937;
	color: #9ca3af;
	border-bottom-color: #374151;
}

/* Dark mode list header */
body.rs-dark-mode .rs-list-header {
	color: #ffffff;
	border-bottom-color: #333333;
}

body.rs-dark-mode .rs-clinic-details-box {
	border-color: #333333;
}

body.rs-dark-mode .rs-details-header-row {
	border-bottom-color: #333333;
}

.rs-sortable {
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	white-space: nowrap;
	overflow: hidden;
}

.rs-sortable:hover {
	color: #111827;
}

.rs-sort-icon {
	display: inline-flex;
	opacity: 0.5;
}

.rs-sortable:hover .rs-sort-icon {
	opacity: 1;
}

/* Dark mode sort icons */
body.rs-dark-mode .rs-sortable span {
	color: #ffffff;
}

body.rs-dark-mode .rs-sortable:hover {
	color: #ffffff;
}

.rs-results-content {
	background: var(--rs-details-bg);
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	min-height: 0;
	/* Enable internal scroll */
}

.rs-table-container {
	width: 100%;
	overflow-x: auto;
	height: 100%;
}

.rs-table-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	/* Enable internal scroll */
	min-width: 1000px !important;

}

.rs-grid-view {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}

/* Ensure details box takes available height but no more */
.rs-clinic-details-box {
	max-height: calc(100vh - 200px);
}


.rs-table-row {
	display: grid;
	grid-template-columns: 140px 100px 100px 150px 80px 120px 1fr;
	gap: 15px;
	padding: 16px 24px;
	width: 100%;
	border-bottom: 1px solid var(--rs-border-color);
	align-items: start;
	font-size: 0.9rem;
	color: var(--rs-text-primary);
	transition: background 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
	animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Staggered Animation for first 15 items */
.rs-table-row:nth-child(1) {
	animation-delay: 0.05s;
}

.rs-table-row:nth-child(2) {
	animation-delay: 0.1s;
}

.rs-table-row:nth-child(3) {
	animation-delay: 0.15s;
}

.rs-table-row:nth-child(4) {
	animation-delay: 0.2s;
}

.rs-table-row:nth-child(5) {
	animation-delay: 0.25s;
}

.rs-table-row:nth-child(6) {
	animation-delay: 0.3s;
}

.rs-table-row:nth-child(7) {
	animation-delay: 0.35s;
}

.rs-table-row:nth-child(8) {
	animation-delay: 0.4s;
}

.rs-table-row:nth-child(9) {
	animation-delay: 0.45s;
}

.rs-table-row:nth-child(10) {
	animation-delay: 0.5s;
}

.rs-table-row:nth-child(11) {
	animation-delay: 0.55s;
}

.rs-table-row:nth-child(12) {
	animation-delay: 0.6s;
}

.rs-table-row:nth-child(13) {
	animation-delay: 0.65s;
}

.rs-table-row:nth-child(14) {
	animation-delay: 0.7s;
}

.rs-table-row:nth-child(15) {
	animation-delay: 0.75s;
}

.rs-table-row:last-child {
	border-bottom: none;
}



.rs-col-payer {
	min-width: 0;
}

.rs-col-payer strong {
	display: block;
	color: var(--rs-text-primary);
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-col-payer .rs-loc {
	color: var(--rs-text-secondary);
	font-size: 0.8rem;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-col-plan,
.rs-col-prod,
.rs-col-area,
.rs-col-p-cov,
.rs-col-lives {
	min-width: 0;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	line-height: 1.4;
}

.rs-col-status {
	display: flex;
	justify-content: flex-start;
}

.rs-col-cov {
	min-width: 0;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--rs-text-secondary);
}

/* --- GRID VIEW (CARDS) --- */
.rs-grid-container {
	padding: 24px;
	display: grid;
	/* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 20px;
}

.rs-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	animation: fadeInUp 0.5s ease both;
}

/* Staggered Animation for first 12 cards */
.rs-card:nth-child(1) {
	animation-delay: 0.05s;
}

.rs-card:nth-child(2) {
	animation-delay: 0.1s;
}

.rs-card:nth-child(3) {
	animation-delay: 0.15s;
}

.rs-card:nth-child(4) {
	animation-delay: 0.2s;
}

.rs-card:nth-child(5) {
	animation-delay: 0.25s;
}

.rs-card:nth-child(6) {
	animation-delay: 0.3s;
}

.rs-card:nth-child(7) {
	animation-delay: 0.35s;
}

.rs-card:nth-child(8) {
	animation-delay: 0.4s;
}

.rs-card:nth-child(9) {
	animation-delay: 0.45s;
}

.rs-card:nth-child(10) {
	animation-delay: 0.5s;
}

.rs-card:nth-child(11) {
	animation-delay: 0.55s;
}

.rs-card:nth-child(12) {
	animation-delay: 0.6s;
}

.rs-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-color: #d1d5db;
	transform: translateY(-4px);
}

.rs-card-header {
	padding: 20px 20px 15px 20px;
}

.rs-card-header h4 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rs-text-primary);
	margin-bottom: 4px;
}

.rs-card-state {
	font-size: 0.85rem;
	color: var(--rs-text-secondary);
}

/* Dark mode card styling */
body.rs-dark-mode .rs-card {
	background: #1f2937;
	border-color: #374151;
}

body.rs-dark-mode .rs-card-header h4 {
	color: #f9fafb;
}

body.rs-dark-mode .rs-card-state {
	color: #9ca3af;
}

body.rs-dark-mode .rs-grid-label {
	color: #9ca3af;
}

body.rs-dark-mode .rs-grid-val {
	color: #f9fafb;
}

.rs-card-body {
	padding: 0 20px 20px 20px;
}

.rs-grid-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
	gap: 10px;
}

body.rs-dark-mode .rs-grid-row {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rs-card-header+.rs-card-body .rs-grid-row:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.2);

	/* padding-top: 15px; */
}

body.rs-dark-mode .rs-card-header+.rs-card-body .rs-grid-row:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rs-grid-label {
	font-size: 0.85rem;
	color: var(--rs-text-secondary);
	flex: 0 0 100px;
}

.rs-grid-val {
	font-size: 0.85rem;
	color: var(--rs-text-primary);
	font-weight: 500;
	text-align: right;
	flex: 1;
}

/* --- BADGES (Pill Style) --- */
.rs-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 8px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid transparent;
	line-height: 1.2;
	white-space: nowrap;
}

.rs-badge-green {
	background: #f0fdf4;
	color: #166534;
	border-color: #bbf7d0;
}

body.rs-dark-mode .rs-badge-green {
	background: #064e3b;
	color: #86efac;
	border-color: #065f46;
}

.rs-badge-orange {
	background: #FFEFCD;
	color: #8d6102;
	border-color: #8d6102;
}

body.rs-dark-mode .rs-badge-orange {
	background: #78350f;
	color: #fcd34d;
	border-color: #92400e;
}

.rs-badge-blue {
	background: #eff6ff;
	color: #1e40af;
	border-color: #bfdbfe;
}

body.rs-dark-mode .rs-badge-blue {
	background: #1e3a8a;
	color: #93c5fd;
	border-color: #1e40af;
}

.rs-badge-red {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

body.rs-dark-mode .rs-badge-red {
	background: #7f1d1d;
	color: #fca5a5;
	border-color: #991b1b;
}

.rs-badge-gray {
	background: #f9fafb;
	color: #374151;
	border-color: #e5e7eb;
}

body.rs-dark-mode .rs-badge-gray {
	background: #374151;
	color: #d1d5db;
	border-color: #4b5563;
}

/* Utils */
.rs-placeholder-msg {
	color: var(--rs-text-secondary);
	padding: 60px 20px;
	text-align: center;
	font-size: 1rem;
}



/* Active Filters Bar */
.rs-active-filters {
	background: var(--rs-border-color);
	/* Light gray background matching mockup */
	border-top: 1px solid var(--rs-border-color);
	border-bottom: 1px solid var(--rs-border-color);
	padding: 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	margin-bottom: 0;
	min-height: 50px;
}

.rs-active-filters-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.rs-active-label {
	color: var(--rs-text-primary);
	font-weight: 600;
	white-space: nowrap;
}

.rs-filter-chip {
	background: #1f2937;
	/* Dark black/gray background */
	color: #fff;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	transition: background 0.2s;
	white-space: nowrap;
}

.rs-filter-chip:hover {
	background: var(--rs-accent-blue);
	color: white;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-color: var(--rs-accent-blue);

}

body.rs-dark-mode .rs-filter-chip:hover {
	color: black;
}

body.rs-dark-mode .rs-filter-chip:hover .rs-chip-remove {
	color: black;
}


.rs-chip-remove {
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: #fff;
	display: flex;
	align-items: center;
}

.rs-chip-remove:hover {
	color: #fff;
}

.rs-active-filters-right {
	color: var(--rs-text-secondary);
	font-weight: 600;
	display: flex;
	gap: 20px;
	align-items: center;
	font-size: 0.85rem;
}


/* Adjust Controls Bottom Margin to merge with this bar */
.rs-map-controls {
	margin-bottom: 0 !important;
	border-bottom: none !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	padding-bottom: 15px !important;
}

/* Adjust Map Wrapper Top Padding if needed */
.rs-map-container {
	margin-top: 25px;
	position: relative;
	display: flex;
}

/* --- SELECT2 CUSTOMIZATION --- */
.select2-container .select2-selection--single {
	height: 42px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	display: flex !important;
	align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--rs-text-primary) !important;
	font-size: 0.9rem !important;
	line-height: normal !important;
	padding-left: 12px !important;
	font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px !important;
	right: 5px !important;
}

.select2-dropdown {
	border-color: #d1d5db !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
	margin-top: 5px !important;
	border: 1px solid #e5e7eb !important;
	overflow: hidden;
}

.select2-container--default .select2-results__option--selected {
	background-color: transparent !important;
	color: var(--rs-text-primary) !important;
}

/* Search Box */
.select2-search--dropdown {
	padding: 8px 12px !important;
}

.select2-search__field {
	border-radius: 6px !important;
	border: 1px solid #d1d5db !important;
	padding: 6px 12px !important;
	font-size: 0.9rem !important;
}

.select2-search__field:focus {
	border-color: var(--rs-accent-blue) !important;
	outline: none !important;
}

body.rs-dark-mode .select2-search__field:focus {
	border-color: white !important;

}


.select2-results__option {
	/* transition: font-weight ease-in-out 0.2s; */
	padding: 8px 12px !important;
	font-size: 0.9rem !important;
	color: var(--rs-text-primary);
}

.select2-results__option--highlighted[aria-selected] {
	background-color: var(--rs-bg-tertiary) !important;
	color: var(--rs-text-primary) !important;
}

.select2-results__option[aria-selected="true"] {
	background-color: var(--rs-bg-secondary) !important;
	color: var(--rs-text-primary) !important;
	font-weight: 600 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23f9fafb' class='w-4 h-4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9.135-13.5' /%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
}

/* --- STATE INFO BOX --- */
.rs-state-info-box {
	margin: 15px 24px;
	padding: 15px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	border-left: 4px solid #2563eb;
	/* Blue accent */
}

.rs-state-info-box .rs-info-title {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--rs-text-primary);
	margin-bottom: 6px;
	text-transform: uppercase;
}

.rs-state-info-box p {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--rs-text-secondary);
}

/* Dark Mode Overrides */
body.rs-dark-mode .rs-state-info-box {
	background: #1f2937;
	border-color: #374151;
	border-left-color: var(--rs-accent-blue);
}

body.rs-dark-mode .rs-state-info-box .rs-info-title {
	color: #f9fafb;
}

body.rs-dark-mode .rs-state-info-box p {
	color: #9ca3af;
}


.rs-info-icon-header {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	color: var(--rs-text-secondary);
	margin-left: 6px;
	cursor: help;
}

/* --- LOADING BAR --- */
.rs-loading-overlay {
	position: absolute;
	top: 55px;
	/* Below header */
	left: 0;
	width: 100%;
	height: 4px;
	background: #f1f5f9;
	z-index: 1000;
	overflow: hidden;
	display: none;
}

.rs-loading-bar {
	width: 35%;
	height: 100%;
	background: #2563eb;
	position: absolute;
	top: 0;
	left: -35%;
}

@keyframes loading-anim {
	0% {
		left: -35%;
	}

	100% {
		left: 100%;
	}
}

.rs-loading-active .rs-loading-bar {
	animation: loading-anim 1s infinite linear;
}


/* --- ZOOM CONTROLS --- */
.rs-zoom-controls {
	position: fixed;
	/* Fix to screen corner */
	bottom: 70px;
	left: 50px;
	display: flex;
	flex-direction: column;
	z-index: 10000;
	/* Ensure it's above everything */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	background: var(--rs-bg-primary);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--rs-border-color);
}

.rs-zoom-btn {
	width: 34px;
	height: 34px;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--rs-text-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1;
	padding: 0;
}

.rs-zoom-btn:hover {
	background: var(--rs-accent-blue);
	transform: scale(1.1);
}

.rs-zoom-btn:first-child {
	border-bottom: 1px solid var(--rs-border-color);
}

.rs-zoom-btn svg {
	width: 18px;
	height: 18px;
	stroke: var(--rs-text-primary);
	display: block;
}

.rs-zoom-btn:hover svg {
	stroke: #fff;
}

body.rs-dark-mode .rs-zoom-btn:hover svg {
	stroke: black;
}

/* --- FULL MOBILE RESPONSIVENESS (300px+) --- */

/* Medium Screens (Tablets / Small Laptops) */
@media (max-width: 1024px) {
	.rs-map-container {
		flex-direction: column;
		height: auto;
		padding: 0 20px 20px 20px;
		gap: 20px;
		flex-grow: 1;
	}

	#rs-us-map {
		width: 100%;
		height: auto;
		/* min-height: 400px; */
		position: relative;
		top: 0;
		padding: 0;
	}

	.rs-clinic-details-box {
		width: 100%;
		max-height: none;
		border-left: 1px solid var(--rs-border-color);
	}

	body {
		height: auto;
		min-height: 100dvh;
		overflow: visible;
	}

	#rs-clinics-app {
		height: auto;
		min-height: 100dvh;
		overflow: visible;
		display: flex;
		flex-direction: column;
	}

	.rs-map-container {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: 0;
		padding: 0 15px 50px 15px;
	}

	.rs-clinic-details-box {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: 0;
		min-width: 0;
		max-height: none;
	}

	/* Restore Table Header for List View on Mobile */
	.rs-list-header {
		display: grid !important;
		background: var(--rs-bg-secondary);
		position: sticky;
		top: 0;
		z-index: 10;
		grid-template-columns: 140px 100px 100px 150px 80px 120px 1fr;
		gap: 15px;
		padding: 10px 15px;
		font-size: 0.65rem;
		min-width: 1000px !important;
		flex-shrink: 0;
	}

	.rs-results-content {
		width: 100%;
		max-width: 100% !important;
		min-width: 0;
		overflow-x: auto !important;
		overflow-y: visible !important;
		-webkit-overflow-scrolling: touch;
		display: block !important;
		height: auto !important;
	}

	#rs-us-map-svg {
		height: auto;
	}

	#rs-results-container {
		width: 100%;
		/* min-width: 900px !important; */
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		height: auto !important;
		max-height: 400px;
		overflow-y: auto;
	}

	/* List View Table Body & Rows */
	.rs-table-body {
		/* min-width: 900px !important; */
		width: 100% !important;
		flex-shrink: 0;
		overflow-x: visible !important;
		overflow-y: auto !important;
		height: auto !important;
	}

	/* .rs-footer-section {
		position: relative !important;
		bottom: unset !important;
		left: unset !important;
		order: 1;
	} */

	.rs-table-body .rs-table-row {
		grid-template-columns: 140px 100px 100px 150px 80px 120px 1fr;
		min-width: 1000px;
		padding: 10px 15px;
		gap: 15px;
		border-bottom: 1px solid var(--rs-border-color);
		align-items: center;
		text-align: left;
		white-space: nowrap;
		/* flex-shrink: 0; */
	}

	/* Disable Card-Style Labels for List View */
	.rs-table-body .rs-table-row>div {
		display: block;
		text-align: left;
	}

	.rs-table-body .rs-table-row>div::before {
		display: none !important;
	}

	/* Reset Payer Column in List View */
	.rs-table-body .rs-col-payer {
		flex-direction: row;
		align-items: center !important;
		padding-bottom: 0;
		border-bottom: none;
		margin-bottom: 0;
	}

	.rs-table-body .rs-col-payer strong {
		font-size: 0.85rem;
	}

	/* Keep Grid View as Cards */
	.rs-grid-view .rs-table-row {
		grid-template-columns: 1fr;
		padding: 15px;
		gap: 8px;
		min-width: auto;
	}

	.rs-grid-view .rs-table-row>div {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: right;
	}

	.rs-grid-view .rs-table-row>div:not(.rs-col-payer)::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--rs-text-secondary);
		font-size: 0.75rem;
		text-transform: uppercase;
		flex: 1;
		text-align: left;
	}

	.rs-col-payer {
		flex-direction: column;
		align-items: flex-start !important;
		text-align: left !important;
		padding-bottom: 10px;
		border-bottom: 1px solid var(--rs-bg-tertiary);
		margin-bottom: 5px;
	}

	.rs-col-payer strong {
		font-size: 1.1rem;
	}

	.rs-map-container.rs-no-details #rs-us-map {
		flex: 1;
		width: 100%;
		max-width: none;
	}

	.rs-zoom-controls {
		position: absolute;
		bottom: 10px;
		right: 10px;
		width: fit-content;
		height: fit-content;
		left: auto;
	}
}

@media (max-width:768px) {

	.rs-get-started-box {
		top: 180px;
		left: 40px;
		transform: translateX(-50%);
		width: calc(100% - 40px);
		max-width: 320px;
		padding: 20px;
	}

	.rs-gs-header strong {
		font-size: 16px;
	}

	.rs-get-started-box p,
	.rs-get-started-box li {
		font-size: 12px;
	}

	.rs-get-started-box li:last-child {
		color: red;
	}

	.rs-footer-section {
		left: 0;
		max-width: 100%;
		margin-inline: 10px;
	}
}

@media (max-width: 480px) {
	.rs-map-controls {
		grid-template-columns: 1fr;
	}
}

/* Very Small Screens (300px+) */
@media (max-width: 400px) {
	.rs-header-bar {
		padding: 12px 15px;
	}

	.rs-header-left {
		font-size: 15px;
		gap: 6px;
	}

	.rs-brand-logo {
		height: 28px;
	}

	.rs-last-updated {
		font-size: 10px;
	}

	.rs-header-right {
		gap: 10px;
	}

	.rs-zoom-controls {
		bottom: 20px;
		left: 20px;
	}

	.rs-table-row>div::before {
		flex: 0 0 80px;
	}
}

/* Extra Small Screens (300px - 350px) */
@media (max-width: 350px) {
	.rs-page-title {
		font-size: 11px;
	}

	.rs-header-left {
		gap: 6px;
	}

	.rs-last-updated {
		display: none;
	}

	.rs-header-right {
		justify-content: center;
	}

	.rs-active-filters-right {
		font-size: 0.75rem;
	}
}

/* --- STATE TOOLTIP --- */
.rs-state-tooltip {
	position: fixed;
	padding: 8px 12px;
	background: var(--rs-bg-primary);
	color: var(--rs-text-primary);
	border: 1px solid var(--rs-border-color);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	pointer-events: none;
	z-index: 100000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	display: none;
	white-space: nowrap;
}

body.rs-dark-mode .rs-state-tooltip {
	background: #1f2937;
	color: #f9fafb;
	border-color: #374151;

}

/* --- FOOTER SECTION --- */
.rs-footer-section {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: var(--rs-bg-primary);
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	z-index: 100;
	font-size: 11px;
	color: var(--rs-text-secondary);
	line-height: 1.4;
	max-width: 90%;
}

.rs-footer-link {
	color: black;
	text-decoration: none;
	font-weight: 600;
	margin-left: 5px;
}

.rs-footer-link:hover {
	text-decoration: underline;
}

/* Dark Mode Footer */
body.rs-dark-mode .rs-footer-section {
	background: #1f2937;
	border-color: #374151;
	color: #d1d5db;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.rs-dark-mode .rs-footer-link {
	color: var(--rs-accent-blue);
}

/* --- NEW FRONTEND ELEMENTS --- */

/* Contact Buttons in Header */
.rs-contact-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
}

.rs-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--rs-text-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.rs-contact-btn:hover {
	color: var(--rs-accent-blue);
}

.rs-contact-btn svg {
	color: var(--rs-text-secondary);
}

body.rs-dark-mode .rs-contact-btn {
	color: #d1d5db;
}

body.rs-dark-mode .rs-contact-btn:hover {
	color: #fff;
}

/* Tooltip Wrapper (Ref ID) */
.rs-tooltip-wrapper {
	position: relative;
	display: inline-block;
}

.rs-header-tooltip {
	margin-left: 5px;
	vertical-align: middle;
	display: inline-flex;
}

.rs-info-icon-svg {
	width: 14px;
	height: 14px;
	color: var(--rs-text-secondary);
	cursor: pointer;
}

.rs-info-icon-svg:hover {
	color: var(--rs-accent-blue);
}

body.rs-dark-mode .rs-info-icon-svg:hover {
	color: #fff;
}

.rs-tooltip {
	visibility: hidden;
	opacity: 0;
	width: 280px;
	max-width: 90vw;
	background-color: var(--rs-bg-primary);
	color: var(--rs-text-primary);
	text-align: left;
	border-radius: 6px;
	padding: 10px 14px;
	position: absolute;
	z-index: 1000;
	font-size: 12px;
	line-height: 1.5;
	transition: opacity 0.3s;
	border: 1px solid var(--rs-border-color);

	/* Position the tooltip */
	top: 130%;
	left: 50%;
	transform: translateX(-50%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.rs-tooltip::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 96%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent var(--rs-bg-primary) transparent;
}

body.rs-dark-mode .rs-tooltip {
	background-color: #1f2937;
	color: #f9fafb;
	border-color: #374151;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.rs-dark-mode .rs-tooltip::after {
	border-color: transparent transparent #1f2937 transparent;
}

/* Specific adjustment for header tooltip to prevent right-edge clipping */
.rs-header-tooltip .rs-tooltip {
	left: auto;
	right: -10px;
	transform: none;
	width: 280px;
	text-align: left;
}

.rs-header-tooltip .rs-tooltip::after {
	left: auto;
	right: 12px;
}

.rs-tooltip-wrapper:hover .rs-tooltip {
	visibility: visible;
	opacity: 1;
}

/* Coverage Info Icon */
.rs-info-icon-small {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	cursor: pointer;
	vertical-align: middle;
}

.rs-info-icon-small svg {
	color: var(--rs-text-secondary);
	transition: color 0.2s;
}

.rs-info-icon-small:hover svg {
	color: var(--rs-accent-blue);
}

body.rs-dark-mode .rs-info-icon-small:hover svg {
	color: #fff;
}


/* Modal styling */
.rs-coverage-modal {
	display: none;
	position: fixed;
	z-index: 200000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}

.rs-coverage-modal.active {
	display: flex;
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.rs-modal-content {
	background-color: #fff;
	padding: 30px;
	border-radius: 12px;
	max-width: 600px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.rs-dark-mode .rs-modal-content {
	background-color: #1f2937;
	color: #f3f4f6;
	border: 1px solid #374151;
}

.rs-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: var(--rs-text-secondary);
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
	transition: color 0.2s;
}

.rs-modal-close:hover {
	color: black !important;
}

body.rs-dark-mode .rs-modal-close:hover {
	color: #fff !important;
}

.rs-modal-content h2 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
	color: var(--rs-text-primary);
}

.rs-modal-body p {
	line-height: 1.6;
	margin-bottom: 15px;
	color: var(--rs-text-secondary);
}

.rs-modal-body strong {
	font-weight: 600;
	color: var(--rs-text-primary);
}



.rs-tooltip-wrapper-contact {
	position: relative;
	display: inline-block;
}

.rs-contact-tooltip {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
	padding: 0;
	min-width: 320px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	overflow: hidden;
}

.rs-contact-tooltip.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rs-contact-tooltip-section {
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
}

.rs-contact-tooltip-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rs-contact-tooltip-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	color: #1f2937;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 5px;
	transition: background 0.2s;
	margin-bottom: 2px;
}

.rs-contact-tooltip-item:last-child {
	margin-bottom: 0;
}

.rs-contact-tooltip-item:hover {
	background: #f3f4f6;
}

.rs-contact-tooltip-item span {
	font-size: 14px;
}

.rs-copy-icon {
	margin-left: auto;
	opacity: 0.4;
	cursor: pointer;
	transition: opacity 0.2s, color 0.2s;
}

.rs-contact-tooltip-item:hover .rs-copy-icon {
	opacity: 0.7;
}

.rs-copy-icon:hover {
	opacity: 1 !important;
	color: #2563eb;
}

.rs-copy-icon.copied {
	color: #10b981;
	opacity: 1 !important;
}

.rs-contact-tooltip-info {
	padding: 10px 14px;
	background: #f9fafb;
}

.rs-contact-tooltip-info p {
	font-size: 12px;
	color: #6b7280;
	margin: 0 0 4px 0;
	line-height: 1.4;
	text-wrap: auto;
}

.rs-contact-tooltip-info p:last-child {
	margin-bottom: 0;
}

/* Dark Mode */
.rs-dark-mode .rs-contact-tooltip {
	background: #1f2937;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.rs-dark-mode .rs-contact-tooltip-section {
	border-bottom-color: #374151;
}

.rs-dark-mode .rs-contact-tooltip-label {
	color: #9ca3af;
}

.rs-dark-mode .rs-contact-tooltip-item {
	color: #f3f4f6;
}

.rs-dark-mode .rs-contact-tooltip-item:hover {
	background: #374151;
}

.rs-dark-mode .rs-contact-tooltip-info {
	background: #111827;
}

.rs-dark-mode .rs-contact-tooltip-info p {
	color: #9ca3af;
}

/* Tablet - below 992px */
@media (max-width: 991px) {
	.rs-contact-tooltip {
		min-width: 300px;
	}

	.rs-contact-tooltip-item {
		padding: 8px 10px;
		font-size: 13px;
	}
}

/* Mobile - below 768px */
@media (max-width: 767px) {
	.rs-contact-tooltip {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		margin-top: 0;
		min-width: 100%;
		border-radius: 12px 12px 0 0;
		transform: translateY(100%);
	}

	.rs-contact-tooltip.active {
		transform: translateY(0);
	}

	.rs-contact-tooltip-section {
		padding: 14px 16px;
	}

	.rs-contact-tooltip-label {
		font-size: 11px;
		margin-bottom: 10px;
	}

	.rs-contact-tooltip-item {
		padding: 10px 12px;
		font-size: 15px;
		gap: 10px;
	}

	.rs-contact-tooltip-info {
		padding: 12px 16px;
	}

	.rs-contact-tooltip-info p {
		font-size: 13px;
	}

	.rs-tooltip-wrapper-contact::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		z-index: 999;
		pointer-events: none;
	}

	.rs-tooltip-wrapper-contact.overlay-active::before {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.rs-footer-section {
		left: 0;
		max-width: 100%;
		margin-inline: 10px;
	}
}

/* Small Mobile - below 480px */
@media (max-width: 479px) {
	.rs-contact-tooltip-section {
		padding: 14px;
	}

	.rs-contact-tooltip-item {
		padding: 10px 12px;
	}
}

/* Bulb Icon */
.rs-bulb-icon {
	position: absolute;
	top: 100px;
	left: 40px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	z-index: 2147483647;
	/* Max Z-index */
	transition: all 0.3s ease;
	animation: slideIn 0.5s ease-out;
	background: white;
	border-radius: 50%;
	padding: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	display: none;
	/* Initially hidden */
	align-items: center;
	justify-content: center;
}

body.rs-dark-mode .rs-bulb-icon {
	background: #1f2937;
	border-color: #374151;
}

.rs-bulb-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	color: #f59e0b;
	/* Yellow/Orange */
	fill: #fcd34d;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
	transition: all 0.3s ease;
}

.rs-bulb-icon:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rs-bulb-icon:hover svg {
	filter: drop-shadow(0 0 10px rgba(255, 223, 0, 0.8));
	animation: bulbPulse 1s infinite alternate;
}

@keyframes bulbPulse {
	0% {
		transform: scale(1);
		filter: drop-shadow(0 0 10px rgba(255, 223, 0, 0.6));
	}

	100% {
		transform: scale(1.1);
		filter: drop-shadow(0 0 25px rgba(255, 223, 0, 1));
	}
}

.rs-results-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 24px;
	border-bottom: 1px solid var(--rs-border-color);
}

.rs-effective-update {
	margin-top: 8px !important;
	font-weight: 500;
	color: var(--rs-text-secondary);
}

.rs-copyright-corner {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
}

.rs-copyright-corner .rs-tooltip {
	width: 220px !important;
	background-color: #1f2937 !important;
	color: #fff !important;
	text-transform: none !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
}

.rs-copyright-corner .rs-tooltip::after {
	border-color: transparent transparent #1f2937 transparent !important;
}