/* Tillväxt Members — Medlemsregister */

.tm-directory {
	margin: 0;
	padding: 0;
}

/* ---- Topprad: sök ---- */
.tm-topbar {
	margin-bottom: 0.75rem;
}

.tm-search-box {
	position: relative;
	flex: 1;
	max-width: 560px;
}

.tm-search-icon {
	display: none;
}

.tm-search-input {
	width: 100% !important;
	padding: 1.1rem 2.75rem 1.1rem 3.5rem !important;
	font-size: 1.05rem !important;
	font-family: inherit !important;
	border: none !important;
	border-radius: 10px !important;
	background-color: rgba(13, 66, 89, 0.17) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300435a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 1.25rem center !important;
	background-size: 20px 20px !important;
	color: #1d1d1d !important;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box !important;
}

.tm-search-input:focus {
	outline: none !important;
	background-color: rgba(13, 66, 89, 0.22) !important;
	box-shadow: none !important;
}

.tm-search-input::placeholder {
	color: #5a7585 !important;
}

.tm-search-clear {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: #8a9ba8;
	cursor: pointer;
	line-height: 1;
	display: none;
}

.tm-search-clear:hover {
	color: #00435a;
}

.tm-sort-btn {
	display: inline;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	font-weight: 600;
	color: #00435a;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.tm-sort-btn:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Räknare ---- */
.tm-count {
	margin: 0 0 1.25rem 0;
	font-size: 0.85rem;
	color: #8a9ba8;
}

/* ---- Medlemslista ---- */
.tm-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 0.75rem;
}

/* ---- Medlemskort ---- */
.tm-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.1rem 1.5rem;
	border: none;
	border-radius: 10px;
	text-decoration: none;
	color: #1d1d1d;
	background: rgba(246, 240, 224, 0.73);
	transition: transform 0.1s;
}

a.tm-card,
a.tm-card:visited,
a.tm-card:focus {
	text-decoration: none !important;
	color: #1d1d1d !important;
}

a.tm-card:hover {
	transform: translateY(-1px);
	text-decoration: none !important;
	color: #00435A !important;
}

a.tm-card:hover .tm-card-arrow {
	opacity: 1;
}

.tm-card-name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
}

.tm-card-arrow {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.5;
	color: #00435a;
	transition: opacity 0.15s;
}

div.tm-card {
	color: #1d1d1d;
	cursor: default;
}

/* ---- Tomt meddelande ---- */
.tm-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #8a9ba8;
	font-size: 1rem;
}

/* ---- Dolda kort vid filtrering ---- */
.tm-card--hidden {
	display: none;
}

/* ---- Responsivt ---- */
@media (max-width: 600px) {
	.tm-search-box {
		max-width: 100%;
	}

	.tm-list {
		grid-template-columns: 1fr;
	}
}
