/* Mall Directory - Frontend styles */

.malldir-wrapper {
	--malldir-columns: 4;
	--malldir-primary: #000000;
	--malldir-accent: #e63946;
	--malldir-border: #e5e5e5;
	--malldir-radius: 10px;
	font-family: 'Montserrat', Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	color: #222;
}

.malldir-wrapper * {
	box-sizing: border-box;
	font-family: 'Montserrat', Arial, sans-serif;
}

/* Filtros */
.malldir-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.malldir-filter {
	flex: 1 1 220px;
}

.malldir-filter--search {
	flex: 2 1 280px;
}

@media (max-width: 768px) {
	.malldir-filter,
	.malldir-filter--search {
		flex: 1 1 auto;
		width: 100%;
	}
    .malldir-card-logo {
        margin-bottom: 0px !important;
    }
	
}

.malldir-wrapper input.malldir-input,
.malldir-wrapper select.malldir-select {
	display: block;
	box-sizing: border-box !important;
	width: 100%;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid var(--malldir-border) !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 44px !important;
	font-family: 'Montserrat', Arial, sans-serif !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: #222 !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	outline: none !important;
	vertical-align: middle;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.malldir-wrapper select.malldir-select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px !important;
	cursor: pointer;
}

.malldir-wrapper input.malldir-input:focus,
.malldir-wrapper select.malldir-select:focus {
	outline: none !important;
	border-color: var(--malldir-accent) !important;
	box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12) !important;
}

/* Grid */
.malldir-grid {
	display: grid;
	grid-template-columns: repeat(var(--malldir-columns), 1fr);
	gap: 22px;
}

@media (max-width: 900px) {
	.malldir-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.malldir-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.malldir-filters {
		flex-direction: column;
	}
}

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


/* Tarjeta de tienda */
.malldir-card {
	background: #fff;
	border: 1px solid var(--malldir-border);
	border-radius: var(--malldir-radius);
	padding: 18px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.malldir-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.malldir-card-logo {
	width: 120px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.malldir-logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.malldir-logo-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #f1f1f4;
	color: #999;
	font-size: 32px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}

.malldir-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
	color: var(--malldir-primary);
}

.malldir-card-phone {
	font-size: 13px;
	font-weight: 400;
	color: #666;
	margin: 0 0 14px;
}

.malldir-card-phone a {
	color: #666;
	text-decoration: none;
}

.malldir-card-phone a:hover {
	color: var(--malldir-accent);
}

.malldir-card-nivel {
	margin: 0 0 14px;
}

/* Botones */
.malldir-btn {
	display: inline-block;
	margin-top: auto;
	padding: 10px 18px;
	background: var(--malldir-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 14px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
	letter-spacing: 0.2px;
}

.malldir-btn:hover {
	background: var(--malldir-accent);
	color: #fff;
}

.malldir-btn-website {
	background: var(--malldir-accent);
	color:#000 !important;
}

.malldir-btn-website:hover {
	background: var(--malldir-primary);
}

.malldir-no-results {
	text-align: center;
	font-size: 15px;
	color: #777;
	padding: 40px 0;
}

/* Popup (Magnific Popup) */
.malldir-popup-content {
	max-width: 420px;
	width: 90%;
	margin: 40px auto;
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	position: relative;
	font-family: 'Montserrat', Arial, sans-serif;
}

.malldir-popup-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--malldir-border);
}

.malldir-popup-logo {
	width: 150px;
	height: 64px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.malldir-popup-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.malldir-popup-header h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color:#000;
}

.malldir-popup-nivel {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	background: #f1f1f4;
	color: #666;
	padding: 3px 10px;
	border-radius: 20px;
}

.malldir-popup-row {
	font-size: 14px;
	margin: 0 0 14px;
	color: #222;
	text-align:center;
}

.malldir-popup-row strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #999;
	font-weight: 600;
	margin-bottom: 4px;
}

.malldir-popup-row a {
	color: var(--malldir-primary);
	text-decoration: none;
	font-weight: 800;
}

.malldir-popup-schedule {
	font-size: 14px;
	line-height: 1.6;
	text-align:center;
	font-weight:bold;
}

.malldir-popup-actions {
	margin: 18px 0 10px;
	text-align:center;
}

.malldir-popup-actions .malldir-btn {
	/*width: 100%;*/
	text-align: center;
	padding: 12px;
}

.malldir-popup-social {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 14px;
}

.malldir-social-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.malldir-social-icon:hover {
	opacity: 0.85;
}

.malldir-social-facebook {
	background: #1877f2;
}

.malldir-social-instagram {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Magnific Popup overrides */
.mfp-bg {
	background: #1a1a2e;
	opacity: 0.7;
}

.mfp-close {
	color: #333 !important;
	font-size: 32px !important;
}

.mfp-close:hover,
.mfp-close:focus {
	background: transparent !important;
	color: #e63946 !important;
}

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

.malldir-wrapper input.malldir-input {
	padding-right: 40px !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' d='M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm9 19-4.35-4.35'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px 18px;
	color:#222 !important;
}