/* Listados — Frontend */
.tys-directory,
.tys-directory * {
	font-family: "Poppins", sans-serif !important;
	box-sizing: border-box;
}

.tys-directory h1,
.tys-directory h2,
.tys-directory p {
	font-family: "Poppins", sans-serif !important;
}

.tys-directory {
	--tys-green: #1f7a45;
	--tys-green-hover: #186338;
	--tys-text: #414142;
	--tys-muted: #414142;
	--tys-border: #d8d8d8;
	--tys-panel: #f3f3f3;
	--tys-card: #ffffff;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	color: var(--tys-text);
}

.tys-directory .tys-header__h1,
.tys-directory .tys-header__sub,
.tys-directory .tys-header__h2,
.tys-directory .tys-accordion-trigger,
.tys-directory .tys-card__title,
.tys-directory .tys-card__prop,
.tys-directory .tys-card__email,
.tys-directory .tys-card__icon,
.tys-directory .tys-card__building,
.tys-directory .tys-empty,
.tys-directory .tys-search__input,
.tys-directory .tys-search__option-label,
.tys-directory .tys-search__option-sub {
	color: #414142 !important;
}

.tys-directory .tys-card__icon svg,
.tys-directory .tys-card__building svg {
	fill: #414142 !important;
}

/* --- Buscador (debajo del H2, centrado) --- */
.tys-search {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 18px auto 28px;
}

.tys-search__wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--tys-border);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.tys-search__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 12px;
	color: var(--tys-muted);
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1;
}

.tys-search__icon .fa,
.tys-search__icon .fas,
.tys-search__icon .far,
.tys-search__icon .fa-solid {
	font-size: 14px;
	line-height: 1;
}

.tys-search__input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 10px 10px;
	border: 0;
	outline: none;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: var(--tys-text);
	background: transparent;
}

.tys-search__input::placeholder {
	color: #414142;
}

.tys-search__clear {
	border: 0;
	background: transparent;
	color: var(--tys-muted);
	font-size: 22px;
	line-height: 1;
	padding: 8px 14px;
	cursor: pointer;
}

.tys-search__clear:hover {
	color: var(--tys-text);
}

.tys-search__suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--tys-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 280px;
	overflow-y: auto;
}

.tys-search__option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	cursor: pointer;
}

.tys-search__option:hover,
.tys-search__option:focus {
	background: #f3f8f5;
}

.tys-search__option-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--tys-text);
}

.tys-search__option-sub {
	font-size: 12px;
	color: var(--tys-muted);
}

.tys-search__empty {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--tys-muted);
}

/* --- Cabecera títulos --- */
.tys-header {
	display: block;
	width: 100%;
	text-align: center !important;
	margin: 0 auto 0;
	padding: 0 12px;
}

.tys-header__h1,
.tys-header__sub,
.tys-header__h2 {
	display: block;
	width: 100%;
	text-align: center !important;
	margin-left: auto;
	margin-right: auto;
}

.tys-header__h1 {
	margin-top: 0;
	margin-bottom: 12px;
	font-family: "Poppins", sans-serif !important;
	font-size: 28px;
	font-weight: 700 !important;
	line-height: 1.25;
	color: #414142 !important;
}

.tys-header__sub {
	margin-top: 0;
	margin-bottom: 18px;
	font-family: "Poppins", sans-serif !important;
	font-size: 15px;
	font-weight: 500 !important;
	line-height: 1.45;
	color: #414142 !important;
}

.tys-header__h2 {
	margin-top: 0;
	margin-bottom: 0;
	font-family: "Poppins", sans-serif !important;
	font-size: 20px;
	font-weight: 700 !important;
	line-height: 1.3;
	color: #414142 !important;
}

@media (max-width: 767px) {
	.tys-header__h1 {
		font-size: 20px;
	}
	.tys-header__sub {
		font-size: 13px;
	}
	.tys-header__h2 {
		font-size: 16px;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tys-accordion-item {
	background: var(--tys-panel);
	border-radius: 4px;
	margin-bottom: 8px;
	overflow: hidden;
}

.tys-accordion-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--tys-text);
	line-height: 1.3;
}

.tys-accordion-icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 8px solid #414142;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.tys-accordion-item.is-open .tys-accordion-icon {
	transform: rotate(90deg);
}

.tys-accordion-panel {
	padding: 0 14px 16px;
}

.tys-empty {
	margin: 0;
	padding: 8px 4px 4px;
	color: var(--tys-muted);
	font-size: 14px;
}

.tys-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: stretch;
}

.tys-item {
	min-width: 0;
	height: 100%;
}

.tys-item[hidden],
.tys-item--filtered-out,
.tys-accordion-item[hidden],
.tys-section--empty {
	display: none !important;
}

.tys-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	height: 100%;
	padding: 14px 16px;
	background: var(--tys-card);
	border: 1px solid var(--tys-border);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tys-card__main {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 8px;
	flex: 0 1 auto;
	min-width: 0;
	width: 100%;
}

.tys-card__name,
.tys-card__prop {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 8px;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.tys-card__building,
.tys-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--tys-muted);
	font-size: 16px;
	line-height: 1;
}

.tys-card__building .fa,
.tys-card__building .fas,
.tys-card__building .far,
.tys-card__icon .fa,
.tys-card__icon .fas,
.tys-card__icon .far {
	font-size: 16px;
	line-height: 1;
	width: 16px;
	text-align: center;
}

.tys-card__building img,
.tys-card__building svg,
.tys-card__icon svg {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
}

.tys-card__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--tys-text);
	line-height: 1.25;
	min-width: 0;
}

.tys-card__prop {
	font-size: 13px;
	font-weight: 400;
	color: var(--tys-text);
	word-break: break-word;
}

.tys-card__prop > span:last-child {
	min-width: 0;
}

.tys-directory .tys-card__link,
.tys-directory .tys-card__prop a {
	color: #3B9AE1 !important;
	text-decoration: underline !important;
	font-weight: 600;
	word-break: break-word;
}

.tys-card__email {
	text-decoration: none;
	color: var(--tys-text);
	overflow-wrap: anywhere;
}

.tys-card__email:hover,
.tys-card__email:focus {
	color: #95BFE4 !important;
}

.tys-card__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	padding-top: 8px;
}

.tys-card__actions {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
}

.tys-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 5px;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, fill 0.15s ease;
}

.tys-btn__icon {
	display: inline-flex;
	align-items: center;
	color: #ffffff;
}

.tys-btn__icon svg,
.tys-btn__svg,
.tys-btn__icon path {
	fill: #ffffff;
	color: #ffffff;
}

.tys-directory a.tys-btn.tys-btn--call,
.tys-directory a.tys-btn.tys-btn--map,
.tys-directory span.tys-btn.tys-btn--call,
.tys-directory span.tys-btn.tys-btn--map {
	background: #333333 !important;
	color: #ffffff !important;
	border: 2px solid #333333 !important;
	font-weight: 700 !important;
	box-shadow: none;
}

.tys-directory a.tys-btn.tys-btn--call *,
.tys-directory a.tys-btn.tys-btn--map *,
.tys-directory span.tys-btn.tys-btn--call *,
.tys-directory span.tys-btn.tys-btn--map *,
.tys-directory a.tys-btn .tys-btn__icon,
.tys-directory a.tys-btn .tys-btn__icon svg,
.tys-directory a.tys-btn .tys-btn__icon svg path,
.tys-directory a.tys-btn .tys-btn__svg,
.tys-directory span.tys-btn .tys-btn__icon,
.tys-directory span.tys-btn .tys-btn__icon svg,
.tys-directory span.tys-btn .tys-btn__icon svg path,
.tys-directory span.tys-btn .tys-btn__svg {
	color: #ffffff !important;
	fill: #ffffff !important;
	stroke: #ffffff !important;
	font-weight: 700 !important;
}

.tys-directory a.tys-btn.tys-btn--call:hover,
.tys-directory a.tys-btn.tys-btn--call:focus,
.tys-directory a.tys-btn.tys-btn--map:hover,
.tys-directory a.tys-btn.tys-btn--map:focus {
	background: #96c0e6 !important;
	border-color: #96c0e6 !important;
	color: #333333 !important;
	font-weight: 700 !important;
	box-shadow: none;
}

.tys-directory a.tys-btn.tys-btn--call:hover *,
.tys-directory a.tys-btn.tys-btn--call:focus *,
.tys-directory a.tys-btn.tys-btn--map:hover *,
.tys-directory a.tys-btn.tys-btn--map:focus *,
.tys-directory a.tys-btn.tys-btn--call:hover .tys-btn__icon,
.tys-directory a.tys-btn.tys-btn--call:hover .tys-btn__icon svg,
.tys-directory a.tys-btn.tys-btn--call:hover .tys-btn__icon svg path,
.tys-directory a.tys-btn.tys-btn--map:hover .tys-btn__icon,
.tys-directory a.tys-btn.tys-btn--map:hover .tys-btn__icon svg,
.tys-directory a.tys-btn.tys-btn--map:hover .tys-btn__icon svg path,
.tys-directory a.tys-btn.tys-btn--call:hover .tys-btn__svg,
.tys-directory a.tys-btn.tys-btn--map:hover .tys-btn__svg {
	color: #333333 !important;
	fill: #333333 !important;
	stroke: #333333 !important;
	font-weight: 700 !important;
}

.tys-btn--call span:last-child {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tys-card__phones-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin: 0;
}

.tys-btn--call-list {
	display: flex;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	white-space: normal;
	text-align: center;
	justify-content: center;
}

.tys-btn--map {
	display: flex;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	white-space: normal;
	text-align: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.tys-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tys-items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tys-accordion-trigger {
		font-size: 16px;
		padding: 14px;
	}
	.tys-card {
		padding: 12px 14px;
	}
}
