/* ============================================================
   SCI Locations Archive — region tabs + location cards
   ============================================================ */

/* ---- Region tab row (archive page) ---- */
.sci-regions-tabs {}

.sci-regions-tab-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sci-regions-tab-list li {
	margin: 0;
}
.sci-regions-tab-btn {
	padding: 10px 20px;
	background: #1F8290;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s;
}
.sci-regions-tab-btn:hover,
.sci-regions-tab-btn.active {
	background: #167380;
}

/* ---- Region sections ---- */
.sci-region-section {
	display: none;
}
.sci-region-section.active {
	display: block;
}
.sci-region-title {
	margin-bottom: 20px;
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: #167380;
}

/* ---- Location card grid ---- */
.sci-location-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	margin-bottom: 48px;
}
@media ( max-width: 900px ) {
	.sci-location-grid { grid-template-columns: repeat( 2, 1fr ); }
}
@media ( max-width: 540px ) {
	.sci-location-grid { grid-template-columns: 1fr; }
}

.sci-location-card {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.sci-location-card--coming-soon {
	opacity: .85;
}

/* Card image */
.sci-card-img-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
}
.sci-card-img-wrap .sci-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* SC logo overlay — bottom-left branded badge.
   If the logo overlay is CSS-only, place a background-image on this element.
   The actual logo image path should be set via the theme or customizer. */
.sci-card-logo-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 140px;
	height: 50px;
	/* Uncomment and set the correct path once hosted:
	background: url('../img/sc-logo-badge.png') no-repeat left bottom / contain;
	*/
}
.sci-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 3px;
}

/* Card body */
.sci-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.sci-card-city {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #1F8290;
	text-decoration: none;
}
.sci-card-city:hover {
	text-decoration: underline;
}
.sci-card-office-name {
	font-size: 16px;
	font-weight: 700;
	margin: 6px 0;
	color: #1a1a1a;
}
.sci-card-address {
	font-size: 13px;
	color: #555;
	margin: 0 0 14px;
	flex: 1;
}

/* Card action buttons */
.sci-card-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sci-btn {
	display: inline-block;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: 3px;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.sci-btn--primary {
	background: #1F8290;
	color: #fff;
	border: 2px solid #1F8290;
}
.sci-btn--primary:hover {
	background: #167380;
	border-color: #167380;
}
.sci-btn--outline {
	background: transparent;
	color: #1F8290;
	border: 2px solid #1F8290;
}
.sci-btn--outline:hover {
	background: #1F8290;
	color: #fff;
}

/* ============================================================
   Homepage Location Tabs — [sci_locations_tabs]
   ============================================================ */

/* Tab nav — classic underline style */
.sci-hometabs-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	border-bottom: 2px solid #e0e0e0;
}
.sci-hometabs-nav__item { margin: 0; }

.sci-hometabs-nav__btn {
	display: block;
	padding: 12px 22px;
	background: transparent !important;
	color: #444;
	border: none !important;
	border-bottom: 3px solid transparent !important;
	border-radius: 0 !important;
	margin-bottom: -2px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
	box-shadow: none !important;
	outline: none;
}
.sci-hometabs-nav__btn:hover,
.sci-hometabs-nav__btn:focus,
.sci-hometabs-nav__btn:active {
	background: transparent !important;
	color: #1F8290;
	border-bottom: 3px solid #1F8290 !important;
	box-shadow: none !important;
}
.sci-hometabs-nav__item--active .sci-hometabs-nav__btn,
.sci-hometabs-nav__btn.active {
	background: transparent !important;
	color: #1F8290;
	border-bottom: 3px solid #1F8290 !important;
}

/* Tab panels */
.sci-hometab {
	display: none;
}
.sci-hometab--active,
.sci-hometab.active {
	display: block;
	border: 1px solid #e0e0e0;
	border-top: none;
	padding: 28px 24px;
}

.sci-hometab__content {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 32px;
	align-items: start;
}
@media ( max-width: 700px ) {
	.sci-hometab__content { grid-template-columns: 1fr; }
	.sci-hometab__photo { order: -1; }
}

.sci-hometab__tagline {
	font-size: 16px;
	color: #333;
	margin-bottom: 16px;
}

.sci-hometab__city-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 3;
	column-gap: 16px;
}
@media ( max-width: 600px ) {
	.sci-hometab__city-list { columns: 2; }
}
.sci-hometab__city-list li {
	break-inside: avoid;
	margin-bottom: 6px;
}
.sci-hometab__city-list a {
	color: #1F8290;
	text-decoration: none;
	font-size: 14px;
}
.sci-hometab__city-list a:hover {
	text-decoration: underline;
}

.sci-hometab__photo {}
.sci-hometab__img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

/* ============================================================
   Single Location Page
   ============================================================ */

.sci-location-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 400px;
	display: flex;
	align-items: flex-end;
}
.sci-location-hero__overlay {
	background: linear-gradient( to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 100% );
	width: 100%;
	padding: 48px 32px 40px;
	position: relative;
}
.sci-location-hero__logo {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 60px;
	/* background: url('../img/sc-logo-white.svg') no-repeat center / contain; */
}
.sci-location-hero__name {
	color: #fff;
	font-size: 32px;
	margin: 0 0 8px;
}
.sci-location-hero__address {
	color: rgba(255,255,255,.85);
	font-size: 16px;
	margin: 0 0 20px;
}

.sci-location-county-tag {
	display: inline-block;
	background: #1F8290;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 12px;
	margin: 16px 0 0 32px;
	border-radius: 2px;
}

.sci-location-content {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 24px;
}

.sci-location-accordion {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin: 16px 0;
}
.sci-location-accordion summary {
	padding: 14px 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.sci-location-accordion summary::-webkit-details-marker { display: none; }
.sci-location-accordion__body {
	padding: 0 16px 16px;
}

.sci-location-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 24px 0;
}
@media ( max-width: 700px ) {
	.sci-location-gallery { grid-template-columns: repeat(2, 1fr); }
}
.sci-location-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}
.sci-location-gallery__title {
	font-size: 12px;
	margin-top: 6px;
	color: #555;
}

.sci-location-doctors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin: 16px 0;
}
.sci-location-doctor-card a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
}
.sci-location-doctor-card img {
	border-radius: 50%;
	width: 90px;
	height: 90px;
	object-fit: cover;
	margin-bottom: 8px;
}
.sci-location-doctor-card__name {
	font-size: 13px;
	font-weight: 600;
}

/* Admin-only buttons on coming soon cards */
.sci-btn--admin-only {
	border-style: dashed;
	opacity: .8;
}
.sci-btn--admin-edit {
	background: #f0f0f0;
	color: #555;
	border-color: #aaa;
	font-size: 11px;
}
.sci-btn--admin-edit:hover {
	background: #e0e0e0;
	color: #222;
}
.sci-admin-tag {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	background: #c0392b;
	color: #fff;
	border-radius: 2px;
	padding: 1px 4px;
	margin-left: 4px;
	letter-spacing: .05em;
	text-transform: uppercase;
	vertical-align: middle;
}
.sci-hometab__city-soon {
	color: #999;
	font-size: 14px;
}
.sci-hometab__city-soon em {
	font-size: 11px;
}

.sci-badge--coming-soon {
	display: inline-block;
	background: #c0392b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-top: 10px;
}

.sci-social-link {
	display: inline-block;
	margin: 4px 8px 4px 0;
	padding: 6px 14px;
	border: 1px solid #1F8290;
	border-radius: 3px;
	color: #1F8290;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.sci-social-link:hover {
	background: #1F8290;
	color: #fff;
}
