/**
 * DirPress Frontend Styles
 */

:root {
	--dp-primary: #2563eb;
	--dp-primary-hover: #1d4ed8;
	--dp-success: #10b981;
	--dp-danger: #ef4444;
	--dp-warning: #f59e0b;
	--dp-star: #fbbf24;
	--dp-bg-gray: #f8fafc;
	--dp-card-bg: #ffffff;
	--dp-border: #e2e8f0;
	--dp-text: #1e293b;
	--dp-text-muted: #64748b;
	--dp-radius: 10px;
	--dp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--dp-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

.dirpress-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: var(--dp-text);
	box-sizing: border-box;
}

.dirpress-container * {
	box-sizing: border-box;
}

/* ==========================================================================
   Filter Bar & Directory Controls
   ========================================================================== */

.dirpress-filter-bar {
	background: #ffffff;
	padding: 16px 20px;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow);
	margin-bottom: 30px;
}

.dirpress-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.dirpress-filter-col {
	flex: 1 1 200px;
}

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

.dirpress-filter-col.submit-col {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
}

.dirpress-search-input,
.dirpress-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--dp-border);
	border-radius: 6px;
	font-size: 15px;
	background-color: #f8fafc;
	color: var(--dp-text);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dirpress-search-input:focus,
.dirpress-select:focus {
	outline: none;
	border-color: var(--dp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	background-color: #ffffff;
}

.dirpress-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.dirpress-btn-primary {
	background-color: var(--dp-primary);
	color: #ffffff !important;
}

.dirpress-btn-primary:hover {
	background-color: var(--dp-primary-hover);
}

.dirpress-btn-outline {
	background-color: transparent;
	border-color: var(--dp-border);
	color: var(--dp-text-muted) !important;
}

.dirpress-btn-outline:hover {
	background-color: #f1f5f9;
	color: var(--dp-text) !important;
}

.dirpress-btn-block {
	width: 100%;
	background-color: #f1f5f9;
	color: var(--dp-primary) !important;
	border-color: #e2e8f0;
}

.dirpress-btn-block:hover {
	background-color: var(--dp-primary);
	color: #ffffff !important;
	border-color: var(--dp-primary);
}

/* ==========================================================================
   Listings Grid & Cards
   ========================================================================== */

.dirpress-listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 25px;
}

.dirpress-card {
	background: var(--dp-card-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	overflow: hidden;
	box-shadow: var(--dp-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.dirpress-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--dp-shadow-hover);
}

.dirpress-card-media {
	position: relative;
	width: 100%;
	height: 200px;
	background-color: #f1f5f9;
	overflow: hidden;
}

.dirpress-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.dirpress-card:hover .dirpress-card-img {
	transform: scale(1.03);
}

.dirpress-card-cat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	z-index: 2;
}

.dirpress-card-cat-badge a {
	color: #ffffff !important;
	text-decoration: none;
}

.dirpress-verified-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #10b981;
	color: #ffffff;
	border-radius: 20px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: bold;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dirpress-card-body {
	padding: 18px 20px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.dirpress-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.dirpress-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.dirpress-card-title a {
	color: var(--dp-text);
	text-decoration: none;
}

.dirpress-card-title a:hover {
	color: var(--dp-primary);
}

.dirpress-pill-status {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 12px;
	white-space: nowrap;
}

.dirpress-pill-status.status-open {
	background-color: #d1fae5;
	color: #065f46;
}

.dirpress-pill-status.status-closed {
	background-color: #fee2e2;
	color: #991b1b;
}

.dirpress-pill-status.status-unknown,
.popup-status.status-unknown {
	background-color: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.dirpress-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 13px;
}

.dirpress-card-rating .score {
	font-weight: 700;
	color: #b45309;
}

.dirpress-card-rating .votes {
	color: var(--dp-text-muted);
}

.dirpress-card-snippet {
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 14px 0;
	flex: 1 1 auto;
}

.dirpress-card-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--dp-text-muted);
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
}

.dirpress-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dirpress-meta-item a {
	color: inherit;
	text-decoration: none;
}

.dirpress-meta-item a:hover {
	color: var(--dp-primary);
	text-decoration: underline;
}

.dirpress-card-footer {
	padding: 12px 20px 16px 20px;
	background: #ffffff;
}

/* ==========================================================================
   Star Rating Component
   ========================================================================== */

.dirpress-stars-wrapper {
	display: inline-block;
	position: relative;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	cursor: default;
}

.dirpress-stars-back {
	color: #e2e8f0;
}

.dirpress-stars-front {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--dp-star);
	white-space: nowrap;
}

/* ==========================================================================
   Single Listing Page
   ========================================================================== */

.dirpress-single-wrapper {
	background-color: #f8fafc;
	min-height: 80vh;
	padding-bottom: 40px;
	width: 100%;
	overflow-x: clip;
}

.dirpress-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-size: 14px;
	margin-bottom: 20px;
	color: var(--dp-text-muted);
}

.dirpress-breadcrumb a {
	color: var(--dp-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.dirpress-breadcrumb a:hover {
	text-decoration: underline;
}

.dirpress-breadcrumb-home {
	color: var(--dp-text-muted) !important;
	transition: color 0.2s ease;
	line-height: 1;
}

.dirpress-breadcrumb-home:hover {
	color: var(--dp-primary) !important;
	text-decoration: none !important;
}

.dirpress-breadcrumb-home svg {
	width: 17px;
	height: 17px;
	display: block;
}

.dirpress-breadcrumb .sep {
	margin: 0 8px;
	color: #cbd5e1;
	user-select: none;
}

.dirpress-single-hero {
	background: #ffffff;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 30px;
	box-shadow: var(--dp-shadow);
	margin-bottom: 25px;
}

.dirpress-hero-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.dirpress-hero-titles {
	flex: 1 1 500px;
}

.dirpress-hero-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.dirpress-category-pill {
	background: #eff6ff;
	color: var(--dp-primary);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 16px;
	text-decoration: none;
}

.dirpress-category-pill:hover {
	background: #dbeafe;
}

.dirpress-badge-verified {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 16px;
}

.dirpress-single-title {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 8px 0;
	color: #0f172a;
	line-height: 1.2;
}

.dirpress-original-title {
	margin: 0 0 12px 0;
	color: var(--dp-text-muted);
	font-size: 15px;
}

.dirpress-hero-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
}

.dirpress-hero-rating .rating-number {
	font-weight: 700;
	color: #b45309;
}

.dirpress-hero-rating .rating-votes {
	font-size: 14px;
	color: var(--dp-text-muted);
}

.dirpress-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.dirpress-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	cursor: pointer;
}

.dirpress-action-btn .dirpress-btn-icon {
	flex-shrink: 0;
	transition: transform 0.22s ease;
}

.dirpress-action-btn .dirpress-btn-arrow {
	flex-shrink: 0;
	opacity: 0.85;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.dirpress-action-btn:hover {
	transform: translateY(-2px);
}

.dirpress-action-btn:active {
	transform: translateY(0);
}

/* Call Button (Emerald Green Gradient & Ambient Glow) */
.dirpress-action-btn.btn-call {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff !important;
	border-color: #059669;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dirpress-action-btn.btn-call:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	border-color: #047857;
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dirpress-action-btn.btn-call:hover .dirpress-btn-icon {
	transform: scale(1.12) rotate(-8deg);
}

/* Website Button (Royal Blue Gradient & Crisp Arrow) */
.dirpress-action-btn.btn-website {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #ffffff !important;
	border-color: #2563eb;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dirpress-action-btn.btn-website:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border-color: #1d4ed8;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dirpress-action-btn.btn-website:hover .dirpress-btn-icon {
	transform: scale(1.1);
}

.dirpress-action-btn.btn-website:hover .dirpress-btn-arrow {
	transform: translate(2px, -2px);
	opacity: 1;
}

/* Booking Button (Purple Gradient) */
.dirpress-action-btn.btn-book {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	color: #ffffff !important;
	border-color: #7c3aed;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dirpress-action-btn.btn-book:hover {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
	border-color: #6d28d9;
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dirpress-action-btn.btn-book:hover .dirpress-btn-icon {
	transform: scale(1.1);
}

.dirpress-action-btn.btn-directions {
	background-color: var(--dp-primary);
	border-color: var(--dp-primary);
	color: #ffffff !important;
}

.dirpress-action-btn.btn-directions:hover {
	background-color: var(--dp-primary-hover);
}

/* Layout Columns */
.dirpress-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 25px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	align-items: start;
}

.dirpress-main-column,
.dirpress-sidebar-column {
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.dirpress-media-banner {
	position: relative;
	border-radius: var(--dp-radius);
	overflow: hidden;
	margin-bottom: 25px;
	box-shadow: var(--dp-shadow);
	max-height: 440px;
	background: #000;
}

.dirpress-featured-image {
	width: 100%;
	height: 100%;
	max-height: 440px;
	object-fit: cover;
	display: block;
}

.dirpress-photo-count-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	padding: 4px 10px;
	font-size: 12px;
	border-radius: 4px;
}

.dirpress-section {
	background: #ffffff;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: var(--dp-shadow);
}

.dirpress-related-section,
.dirpress-section.dirpress-related-section {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.dirpress-section-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.dirpress-entry-content {
	line-height: 1.7;
	font-size: 15px;
	color: #334155;
}

/* Rating Breakdown */
.dirpress-rating-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
}

.dirpress-rating-score-box {
	text-align: center;
	padding: 20px;
	background: #f8fafc;
	border-radius: 8px;
	min-width: 160px;
}

.score-large {
	font-size: 48px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
	margin-bottom: 8px;
}

.stars-large {
	margin-bottom: 8px;
}

.score-caption {
	font-size: 12px;
	color: var(--dp-text-muted);
}

.dirpress-rating-bars-box {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
}

.dirpress-rating-bars-box .dirpress-section-subtitle {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #334155;
}

.dirpress-dist-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 13px;
}

.dirpress-dist-row:last-child {
	margin-bottom: 0;
}

.dirpress-dist-star-label,
.dirpress-dist-label {
	width: 38px;
	font-weight: 600;
	color: #475569;
}

.dirpress-dist-bar-track,
.dirpress-dist-track {
	flex: 1 1 auto;
	height: 10px;
	background-color: #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
}

.dirpress-dist-bar-fill,
.dirpress-dist-fill {
	height: 100%;
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	border-radius: 5px;
	transition: width 0.4s ease;
}

.dirpress-dist-star-count,
.dirpress-dist-count {
	width: 110px;
	text-align: right;
	color: var(--dp-text-muted);
	font-size: 12px;
}

/* Sidebar Cards */
.dirpress-sidebar-card {
	background: #ffffff;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: var(--dp-shadow);
}

.dirpress-sidebar-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 15px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f5f9;
}

/* Reviews Sidebar Card */
.dirpress-reviews-card .dirpress-rating-overview {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.dirpress-reviews-card .dirpress-rating-score-box {
	text-align: center;
	padding: 12px 10px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
}

.dirpress-reviews-card .dirpress-rating-bars-box {
	width: 100%;
	flex: 0 0 auto;
	height: auto;
}

/* Hours Component */
.dirpress-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
}

.dirpress-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.dirpress-status-badge.status-open {
	background-color: #d1fae5;
	color: #065f46;
}

.dirpress-status-badge.status-open .dirpress-status-dot {
	background-color: #10b981;
}

.dirpress-status-badge.status-closed {
	background-color: #fee2e2;
	color: #991b1b;
}

.dirpress-status-badge.status-closed .dirpress-status-dot {
	background-color: #ef4444;
}

.dirpress-status-badge.status-unknown {
	background-color: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.dirpress-status-badge.status-unknown .dirpress-status-dot {
	background-color: #94a3b8;
}

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

.dirpress-hours-toggle {
	background: none;
	border: none;
	color: var(--dp-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.dirpress-hours-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dirpress-hours-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.dirpress-hours-table td {
	padding: 8px 4px;
}

.dirpress-hours-table .day-col {
	font-weight: 600;
	color: #334155;
	width: auto;
	white-space: nowrap;
	padding-right: 12px;
}

.dirpress-hours-table .time-col {
	color: #475569;
	text-align: right;
	white-space: normal;
	word-break: break-word;
}

.dirpress-today-row {
	background-color: #eff6ff;
	border-radius: 4px;
}

.today-tag {
	font-size: 10px;
	background: var(--dp-primary);
	color: #ffffff;
	padding: 1px 5px;
	border-radius: 3px;
	margin-left: 4px;
}

/* Contact & Info list */
.dirpress-contact-list,
.dirpress-address-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
}

.dirpress-contact-list li,
.dirpress-address-info-list li {
	margin-bottom: 10px;
	line-height: 1.4;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.dirpress-contact-list a {
	color: var(--dp-primary);
	text-decoration: none;
}

.dirpress-contact-list a:hover {
	text-decoration: underline;
}

.dirpress-address-text {
	margin: 0 0 10px 0;
	line-height: 1.5;
	font-size: 14px;
}

.dirpress-coordinates {
	margin-top: 10px;
	font-family: monospace;
	color: var(--dp-text-muted);
}

/* Pagination */
.dirpress-pagination {
	margin-top: 30px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.dirpress-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--dp-border);
	background: #ffffff;
	border-radius: 6px;
	color: var(--dp-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.dirpress-pagination .page-numbers.current {
	background: var(--dp-primary);
	color: #ffffff;
	border-color: var(--dp-primary);
}

/* Mobile Hours Jump Button */
.dirpress-mobile-hours-wrap {
	display: none;
}

#dirpress-hours-card {
	scroll-margin-top: 30px;
}

/* ==========================================================================
   Single Listing Responsive Styles
   ========================================================================== */

@media (max-width: 860px) {
	.dirpress-single-layout {
		display: flex;
		flex-direction: column;
		gap: 20px;
		width: 100%;
		min-width: 0;
	}

	.dirpress-main-column,
	.dirpress-sidebar-column {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	/* Mobile Hours Button */
	.dirpress-mobile-hours-wrap {
		display: block;
		margin-bottom: 20px;
	}

	.dirpress-mobile-hours-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 9px;
		width: 100%;
		box-sizing: border-box;
		padding: 13px 20px;
		background: #ffffff;
		color: var(--dp-primary, #2563eb);
		border: 1.5px solid var(--dp-border, #e2e8f0);
		border-radius: var(--dp-radius, 12px);
		font-size: 14.5px;
		font-weight: 700;
		text-decoration: none !important;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
		transition: all 0.2s ease;
	}

	.dirpress-mobile-hours-btn:hover,
	.dirpress-mobile-hours-btn:focus {
		background-color: #f8fafc;
		border-color: var(--dp-primary, #2563eb);
		color: var(--dp-primary-hover, #1d4ed8);
		text-decoration: none !important;
	}

	.dirpress-mobile-hours-btn:active {
		transform: translateY(1px);
	}

	.dirpress-mobile-hours-btn .dirpress-btn-icon {
		flex-shrink: 0;
	}

	.dirpress-mobile-hours-btn .dirpress-btn-arrow {
		flex-shrink: 0;
		transition: transform 0.2s ease;
	}

	.dirpress-mobile-hours-btn:hover .dirpress-btn-arrow {
		transform: translateY(2px);
	}
}

@media (max-width: 768px) {
	.dirpress-container {
		padding: 15px 12px;
	}

	.dirpress-single-hero {
		padding: 20px 16px;
		margin-bottom: 20px;
	}

	.dirpress-hero-header {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.dirpress-hero-titles {
		flex: 1 1 auto;
		width: 100%;
	}

	.dirpress-single-title {
		font-size: 24px;
	}

	/* Action Buttons: Llamar & Atención Web side by side; Reservar Online below */
	.dirpress-hero-actions {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		gap: 8px;
	}

	.dirpress-hero-actions .dirpress-action-btn {
		min-width: 0;
		padding: 10px 8px;
		font-size: 13.5px;
		gap: 6px;
		justify-content: center;
		text-align: center;
		box-sizing: border-box;
	}

	.dirpress-hero-actions .dirpress-action-btn.btn-call,
	.dirpress-hero-actions .dirpress-action-btn.btn-website {
		flex: 1 1 calc(50% - 4px);
	}

	.dirpress-hero-actions .dirpress-action-btn.btn-book {
		flex: 1 1 100%;
		width: 100%;
	}

	.dirpress-hero-actions .dirpress-action-btn .dirpress-btn-text {
		white-space: nowrap;
	}

	/* Sections & Cards Spacing */
	.dirpress-section,
	.dirpress-sidebar-card {
		padding: 16px 14px;
		margin-bottom: 16px;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}

	.dirpress-section-title {
		font-size: 17px;
		margin-bottom: 12px;
		padding-bottom: 8px;
	}

	/* Ratings Section Mobile: Horizontal Layout (Score on Left, Bars on Right) */
	.dirpress-rating-overview {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.dirpress-rating-score-box {
		flex: 0 0 90px;
		width: 90px;
		min-width: 90px;
		max-width: 90px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 10px 4px;
		background: #f8fafc;
		border: 1px solid #f1f5f9;
		border-radius: 8px;
		box-sizing: border-box;
	}

	.dirpress-rating-score-box .score-large {
		font-size: 28px;
		font-weight: 800;
		color: #0f172a;
		line-height: 1;
		margin-bottom: 4px;
	}

	.dirpress-rating-score-box .stars-large {
		margin-bottom: 4px;
	}

	.dirpress-rating-score-box .stars-large .dirpress-stars-wrapper {
		font-size: 11px;
		letter-spacing: 0.5px;
	}

	.dirpress-rating-score-box .score-caption {
		font-size: 9.5px;
		line-height: 1.2;
		color: var(--dp-text-muted);
	}

	.dirpress-rating-bars-box {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		box-sizing: border-box;
	}

	.dirpress-rating-bars-box .dirpress-section-subtitle {
		display: none;
	}

	.dirpress-dist-row {
		display: flex;
		align-items: center;
		gap: 5px;
		margin-bottom: 3px;
		font-size: 11px;
		width: 100%;
	}

	.dirpress-dist-row:last-child {
		margin-bottom: 0;
	}

	.dirpress-dist-star-label,
	.dirpress-dist-label {
		width: 20px;
		font-size: 10.5px;
		font-weight: 600;
		color: #475569;
		flex-shrink: 0;
	}

	.dirpress-dist-bar-track,
	.dirpress-dist-track {
		flex: 1 1 auto;
		min-width: 15px;
		height: 6px;
		background-color: #e2e8f0;
		border-radius: 3px;
		overflow: hidden;
	}

	.dirpress-dist-bar-fill,
	.dirpress-dist-fill {
		height: 100%;
		border-radius: 3px;
	}

	.dirpress-dist-star-count,
	.dirpress-dist-count {
		width: auto;
		font-size: 10px;
		color: var(--dp-text-muted);
		text-align: right;
		flex-shrink: 0;
		white-space: nowrap;
	}

	/* Map header badge wrapping */
	.dirpress-map-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.dirpress-map-address-badge {
		max-width: 100%;
		white-space: normal;
		word-break: break-word;
	}

	/* Work hours mobile table */
	.dirpress-hours-card {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.dirpress-hours-table {
		font-size: 12px;
		width: 100%;
	}

	.dirpress-hours-table td {
		padding: 6px 3px;
	}

	.dirpress-hours-table .day-col {
		width: auto;
		white-space: nowrap;
		padding-right: 6px;
	}

	.dirpress-hours-table .time-col {
		text-align: right;
		white-space: normal;
		word-break: break-word;
	}
}

@media (max-width: 420px) {
	.dirpress-container {
		padding: 12px 8px;
	}

	.dirpress-single-hero {
		padding: 16px 12px;
	}

	.dirpress-single-title {
		font-size: 21px;
	}

	.dirpress-hero-actions {
		gap: 6px;
	}

	.dirpress-hero-actions .dirpress-action-btn {
		padding: 9px 6px;
		font-size: 12px;
		gap: 4px;
	}

	.dirpress-hero-actions .dirpress-action-btn .dirpress-btn-icon {
		width: 14px;
		height: 14px;
	}

	.dirpress-hero-actions .dirpress-action-btn .dirpress-btn-arrow {
		width: 10px;
		height: 10px;
	}

	.dirpress-section,
	.dirpress-sidebar-card {
		padding: 14px 10px;
	}

	.dirpress-rating-overview {
		gap: 8px;
	}

	.dirpress-rating-score-box {
		flex: 0 0 80px;
		width: 80px;
		min-width: 80px;
		max-width: 80px;
		padding: 8px 2px;
	}

	.dirpress-rating-score-box .score-large {
		font-size: 24px;
	}

	.dirpress-rating-score-box .stars-large .dirpress-stars-wrapper {
		font-size: 9.5px;
		letter-spacing: 0;
	}

	.dirpress-rating-score-box .score-caption {
		font-size: 8.5px;
	}

	.dirpress-dist-star-label,
	.dirpress-dist-label {
		width: 18px;
		font-size: 9.5px;
	}

	.dirpress-dist-star-count,
	.dirpress-dist-count {
		font-size: 9.5px;
	}
}

/* ==========================================================================
   OpenStreetMap & Leaflet Integrations
   ========================================================================== */

/* Leaflet Tile & Layer Overrides */
.dirpress-osm-map img.leaflet-tile {
	max-width: none !important;
	max-height: none !important;
}

.dirpress-osm-map {
	z-index: 1;
	position: relative;
	background: #e2e8f0;
	width: 100%;
	min-height: 380px;
}

#dirpress-single-map {
	min-height: 380px;
	height: 380px;
}

/* Map Section in Single Listing */
.dirpress-map-section {
	margin-bottom: 25px;
}

.dirpress-map-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 12px;
}

.dirpress-map-address-badge {
	font-size: 13px;
	color: #334155;
	background: #f1f5f9;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 500;
}

/* Custom Vector Location Pin on Coordinates */
.dirpress-custom-pin-marker {
	background: transparent !important;
	border: none !important;
}

.dirpress-pin-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dirpress-pin-svg-wrap {
	position: relative;
	z-index: 3;
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.dirpress-pin-svg-wrap:hover {
	transform: scale(1.15) translateY(-3px);
}

.dirpress-pin-pulse {
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 14px;
	height: 7px;
	background: rgba(220, 38, 38, 0.4);
	border-radius: 50%;
	z-index: 1;
	animation: dirpress-pin-ripple 2s infinite ease-out;
}

@keyframes dirpress-pin-ripple {
	0% {
		width: 10px;
		height: 5px;
		opacity: 0.9;
	}

	70% {
		width: 26px;
		height: 12px;
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* Single Listing Map Container */
.dirpress-map-wrapper {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--dp-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dirpress-map-sublinks {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 6px 12px;
	font-size: 12px;
	color: #64748b;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
}

.dirpress-osm-map .leaflet-control-attribution,
.dirpress-multi-map .leaflet-control-attribution,
#dirpress-single-map .leaflet-control-attribution,
.leaflet-control-attribution,
.dirpress-map-credit {
	display: none !important;
}

.dirpress-map-credit a,
.dirpress-osm-external-link {
	color: var(--dp-primary);
	text-decoration: none;
	font-weight: 600;
}

.dirpress-osm-external-link:hover {
	text-decoration: underline;
}

/* Directory View Toolbar (Grid vs Map) */
.dirpress-view-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dp-border);
	flex-wrap: wrap;
	gap: 12px;
}

.dirpress-toolbar-left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.dirpress-toolbar-filters {
	display: inline-flex;
	align-items: center;
}

.dirpress-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	text-decoration: none;
}

.dirpress-filter-pill:hover {
	border-color: #94a3b8;
	background: #f8fafc;
	color: #0f172a;
}

.dirpress-filter-pill.active {
	background: #ecfdf5;
	border-color: #10b981;
	color: #065f46;
	box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.dirpress-filter-pill .status-indicator-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
	display: inline-block;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.dirpress-filter-pill.active .status-indicator-dot {
	background: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.dirpress-filter-pill .pill-badge {
	background: #e2e8f0;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 10px;
	margin-left: 2px;
	transition: all 0.2s ease;
}

.dirpress-filter-pill.active .pill-badge {
	background: #a7f3d0;
	color: #065f46;
}

.dirpress-total-subtext {
	font-size: 12.5px;
	font-weight: normal;
	color: #64748b;
	margin-left: 4px;
}

.dirpress-checkbox-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	user-select: none;
	padding: 6px 0;
}

.dirpress-checkbox-inline input[type="checkbox"] {
	margin: 0;
	cursor: pointer;
}

.dirpress-checkbox-inline .status-indicator-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	display: inline-block;
}

.dirpress-no-open-results {
	margin: 25px 0;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: var(--dp-radius);
	padding: 35px 20px;
}

.dirpress-empty-state .dirpress-empty-icon {
	font-size: 34px;
	display: block;
	margin-bottom: 10px;
}

.dirpress-empty-state h3 {
	margin: 0 0 6px 0;
	font-size: 17px;
	color: #1e293b;
	font-weight: 700;
}

.dirpress-empty-state p {
	margin: 0 0 16px 0;
	color: #64748b;
	font-size: 13.5px;
}

.dirpress-empty-state .dirpress-reset-open-filter {
	cursor: pointer;
}

.dirpress-results-count {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
}

.dirpress-view-toggle-group {
	display: inline-flex;
	background: #f1f5f9;
	padding: 3px;
	border-radius: 8px;
	gap: 3px;
}

.dirpress-view-btn {
	background: transparent;
	border: none;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.dirpress-view-btn:hover {
	color: #0f172a;
}

.dirpress-view-btn.active {
	background: #ffffff;
	color: var(--dp-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dirpress-view-btn .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.dirpress-view-btn .icon svg {
	display: block;
	width: 15px;
	height: 15px;
	stroke-width: 2.2;
}

.dirpress-view-btn .badge {
	background: #e2e8f0;
	color: #334155;
	padding: 1px 6px;
	border-radius: 10px;
	font-size: 11px;
}

.dirpress-view-btn.active .badge {
	background: #dbeafe;
	color: var(--dp-primary);
}

/* ==========================================================================
   Directory Content Layout (Grid vs Split Map View)
   ========================================================================== */

.dirpress-directory-content-layout {
	width: 100%;
}

.dirpress-directory-content-layout.is-grid-view .dirpress-directory-map-pane {
	display: none !important;
}

.dirpress-directory-content-layout.is-grid-view .dirpress-directory-listings-pane {
	width: 100%;
}

/* Map View (Split Layout: Listings on Left in Desktop, Below Map in Mobile) */
.dirpress-directory-content-layout.is-map-view {
	display: grid;
	grid-template-columns: 430px minmax(0, 1fr);
	grid-template-areas: "listings map";
	gap: 24px;
	align-items: start;
	margin-bottom: 30px;
	min-width: 0;
	width: 100%;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane {
	grid-area: listings;
	max-height: 720px;
	overflow-y: auto;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	min-width: 0;
	width: 100%;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane::-webkit-scrollbar {
	width: 6px;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane::-webkit-scrollbar-track {
	background: transparent;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.dirpress-directory-content-layout.is-map-view .dirpress-listings-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	width: 100%;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane {
	grid-area: map;
	position: sticky;
	top: 20px;
	height: 720px;
	display: block;
	min-width: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-wrapper {
	height: 100%;
	margin-bottom: 0;
	border-radius: var(--dp-radius);
	overflow: hidden;
	border: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow);
	background: #ffffff;
}

.dirpress-directory-content-layout.is-map-view .dirpress-osm-map,
.dirpress-directory-content-layout.is-map-view .dirpress-multi-map {
	height: 100% !important;
	min-height: 100%;
	width: 100%;
}

/* Card styling when inside Map View */
.dirpress-directory-content-layout.is-map-view .dirpress-card {
	display: flex;
	flex-direction: row;
	border-radius: 10px;
	overflow: hidden;
	background: var(--dp-card-bg);
	border: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--dp-shadow-hover);
	border-color: #93c5fd;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card.dirpress-card-highlight {
	border-color: var(--dp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
	transform: translateY(-2px);
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-media {
	width: 135px;
	min-width: 135px;
	max-width: 135px;
	height: auto;
	min-height: 135px;
	position: relative;
	flex-shrink: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-body {
	padding: 12px 14px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-header {
	margin-bottom: 4px;
	gap: 6px;
	min-width: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1 1 auto;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-cat-badge {
	font-size: 10px;
	padding: 2px 7px;
	top: 8px;
	left: 8px;
}

.dirpress-directory-content-layout.is-map-view .dirpress-verified-badge {
	font-size: 9px;
	padding: 2px 6px;
	top: 8px;
	right: 8px;
}

.dirpress-directory-content-layout.is-map-view .dirpress-pill-status {
	font-size: 10px;
	padding: 2px 6px;
	flex-shrink: 0;
	white-space: nowrap;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-rating {
	margin-bottom: 4px;
	font-size: 12px;
	min-width: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-rating .score {
	font-size: 12px;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-snippet {
	font-size: 12px;
	color: var(--dp-text-muted);
	line-height: 1.35;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-meta {
	font-size: 11px;
	gap: 6px;
	margin-top: 0;
	min-width: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-meta-item {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	max-width: 100%;
}

.dirpress-directory-content-layout.is-map-view .dirpress-meta-item .text,
.dirpress-directory-content-layout.is-map-view .dirpress-meta-item a {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.dirpress-directory-content-layout.is-map-view .dirpress-card-footer {
	display: none;
}

/* Marker hover & active slight enlargement animation */
.dirpress-custom-pin-marker.dirpress-marker-highlight,
.dirpress-custom-pin-marker.dirpress-marker-active {
	z-index: 1000 !important;
}

.dirpress-custom-pin-marker.dirpress-marker-highlight .dirpress-pin-svg-wrap {
	transform-origin: 50% 100%;
	transform: scale(1.22) translateY(-2px);
	filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.5));
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
}

.dirpress-custom-pin-marker.dirpress-marker-active .dirpress-pin-svg-wrap {
	transform-origin: 50% 100%;
	animation: dirpress-pin-scale-grow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.65));
}

@keyframes dirpress-pin-scale-grow {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.3) translateY(-4px);
	}
	100% {
		transform: scale(1.22) translateY(-2px);
	}
}

.dirpress-directory-content-layout.is-map-view .dirpress-card.dirpress-card-active {
	border-color: var(--dp-primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Mobile Responsive (<= 920px): Map on Top, Listings Below */
@media (max-width: 920px) {
	.dirpress-directory-content-layout.is-map-view {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"map"
			"listings";
		gap: 20px;
		width: 100%;
		max-width: 100%;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane {
		grid-area: map;
		position: relative;
		top: 0;
		height: 380px;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane .dirpress-directory-map-wrapper,
	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane .dirpress-multi-map {
		height: 380px !important;
		min-height: 380px;
		width: 100%;
		max-width: 100%;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-directory-listings-pane {
		grid-area: listings;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-card-media {
		width: 120px;
		min-width: 120px;
		max-width: 120px;
	}
}

@media (max-width: 520px) {
	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane,
	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane .dirpress-directory-map-wrapper,
	.dirpress-directory-content-layout.is-map-view .dirpress-directory-map-pane .dirpress-multi-map {
		height: 300px !important;
		min-height: 300px;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-card-media {
		width: 105px;
		min-width: 105px;
		max-width: 105px;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-card-snippet {
		display: none;
	}
}

@media (max-width: 380px) {
	.dirpress-directory-content-layout.is-map-view .dirpress-card-media {
		width: 95px;
		min-width: 95px;
		max-width: 95px;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-card-body {
		padding: 10px 10px;
	}

	.dirpress-directory-content-layout.is-map-view .dirpress-card-title {
		font-size: 14px;
	}
}

.dirpress-directory-map-wrapper,
.dirpress-map-shortcode-wrapper {
	border-radius: var(--dp-radius);
	overflow: hidden;
	border: 1px solid var(--dp-border);
	margin-bottom: 30px;
	box-shadow: var(--dp-shadow);
	background: #ffffff;
}

/* Leaflet Zoom Control Styling */
.dirpress-osm-map .leaflet-control-zoom,
.dirpress-multi-map .leaflet-control-zoom {
	border: none !important;
	border-radius: 8px !important;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

.dirpress-osm-map .leaflet-control-zoom a,
.dirpress-multi-map .leaflet-control-zoom a {
	background-color: #ffffff;
	color: #1e293b;
	transition: background-color 0.15s ease, color 0.15s ease;
	width: 32px;
	height: 32px;
	line-height: 32px;
	font-size: 16px;
}

.dirpress-osm-map .leaflet-control-zoom a:hover,
.dirpress-multi-map .leaflet-control-zoom a:hover {
	background-color: #f1f5f9;
	color: var(--dp-primary);
}

.dirpress-osm-map .leaflet-bottom.leaflet-right,
.dirpress-multi-map .leaflet-bottom.leaflet-right {
	margin-bottom: 12px;
	margin-right: 12px;
}

@media (max-width: 768px) {

	/* Relocate any top-left controls to bottom-right to prevent popup overlap on mobile */
	.dirpress-osm-map .leaflet-top.leaflet-left,
	.dirpress-multi-map .leaflet-top.leaflet-left {
		top: auto !important;
		bottom: 12px !important;
		left: auto !important;
		right: 12px !important;
	}

	.dirpress-osm-popup {
		padding: 10px 12px;
		font-size: 12px;
		max-width: 250px;
	}

	.dirpress-osm-popup .popup-title {
		font-size: 13px;
		margin-bottom: 4px;
	}

	.dirpress-osm-popup .popup-address {
		font-size: 11px;
		line-height: 1.3;
		margin-bottom: 6px;
	}
}

/* Leaflet Popups Custom Styling */
.leaflet-popup-content-wrapper {
	border-radius: 8px !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
	padding: 0 !important;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0 !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
}

.dirpress-osm-popup {
	padding: 12px 14px;
	font-size: 13px;
	min-width: 180px;
}

.dirpress-osm-popup .popup-title {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.dirpress-osm-popup .popup-address {
	margin: 0 0 8px 0;
	font-size: 12px;
	color: #64748b;
}

.dirpress-osm-popup .popup-btn {
	display: inline-block;
	padding: 5px 10px;
	background: #2563eb;
	color: #ffffff !important;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
}

.dirpress-osm-card-popup {
	width: 230px;
	overflow: hidden;
}

.dirpress-osm-card-popup .popup-thumb img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
}

.dirpress-osm-card-popup .popup-body {
	padding: 10px 12px;
}

.dirpress-osm-card-popup .popup-cat {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #2563eb;
	font-weight: 700;
	display: block;
	margin-bottom: 2px;
}

.dirpress-osm-card-popup .popup-title {
	margin: 0 0 4px 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.dirpress-osm-card-popup .popup-title a {
	color: #0f172a;
	text-decoration: none;
}

.dirpress-osm-card-popup .popup-title a:hover {
	color: #2563eb;
}

.dirpress-osm-card-popup .popup-rating {
	font-size: 12px;
	font-weight: 700;
	color: #b45309;
	margin-bottom: 4px;
}

.dirpress-osm-card-popup .popup-address {
	font-size: 11px;
	color: #64748b;
	margin-bottom: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dirpress-osm-card-popup .popup-view-btn {
	display: block;
	text-align: center;
	padding: 5px;
	background: #f1f5f9;
	color: #2563eb;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.dirpress-osm-card-popup .popup-view-btn:hover {
	background: #2563eb;
	color: #ffffff;
}

/* ==========================================================================
   Parent Category Subcategories Grid
   ========================================================================== */

.dirpress-subcategories-section {
	margin: 20px 0 40px;
}

.dirpress-subcategories-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--dp-border);
}

.dirpress-subcategories-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--dp-text);
	margin: 0 0 6px;
}

.dirpress-subcategories-subtitle {
	font-size: 15px;
	color: var(--dp-text-muted);
	margin: 0;
}

.dirpress-subcategories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.dirpress-subcategory-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--dp-card-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--dp-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dirpress-subcategory-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--dp-shadow-hover);
	border-color: var(--dp-primary);
}

.dirpress-archive-header.has-category-image {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 28px;
	background: #f8fafc;
	padding: 24px 28px;
	border-radius: var(--dp-radius, 12px);
	border: 1px solid var(--dp-border, #e2e8f0);
}

.dirpress-archive-header-image {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border: 2px solid #ffffff;
}

.dirpress-archive-header-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dirpress-archive-header-content {
	flex: 1;
}

@media (max-width: 640px) {
	.dirpress-archive-header.has-category-image {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 20px;
	}

	.dirpress-archive-header-image {
		width: 80px;
		height: 80px;
	}
}

.dirpress-subcategory-thumb {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f1f5f9;
	border: 1px solid var(--dp-border, #e2e8f0);
}

.dirpress-subcategory-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dirpress-subcategory-card:hover .dirpress-subcategory-thumb img {
	transform: scale(1.08);
}

.dirpress-subcategory-icon {
	width: 50px;
	height: 50px;
	background: #eff6ff;
	color: var(--dp-primary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.dirpress-subcategory-card:hover .dirpress-subcategory-icon {
	background: var(--dp-primary);
	color: #ffffff;
}

.dirpress-subcategory-body {
	flex: 1;
	min-width: 0;
}

.dirpress-subcategory-name {
	font-size: 17px;
	font-weight: 600;
	color: var(--dp-text);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dirpress-subcategory-card:hover .dirpress-subcategory-name {
	color: var(--dp-primary);
}

.dirpress-subcategory-desc {
	font-size: 13px;
	color: var(--dp-text-muted);
	margin: 0 0 6px;
	line-height: 1.4;
}

.dirpress-subcategory-count {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--dp-text-muted);
	background: var(--dp-bg-gray);
	padding: 3px 8px;
	border-radius: 12px;
}

.dirpress-subcategory-arrow {
	font-size: 20px;
	color: #cbd5e1;
	transition: transform 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.dirpress-subcategory-card:hover .dirpress-subcategory-arrow {
	color: var(--dp-primary);
	transform: translateX(4px);
}

/* ==========================================================================
   Single Listing: OpenAI "Información del Local" Generator
   ========================================================================== */

.dirpress-ai-trigger-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #ffffff !important;
	border: none;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
	transition: all 0.2s ease;
}

.dirpress-ai-trigger-btn:hover {
	background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
	transform: translateY(-1px);
}

.dirpress-chip-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	padding: 3px 10px;
	font-size: 11.5px;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dirpress-chip-btn:hover {
	background: #eef2ff;
	border-color: #818cf8;
	color: #4338ca;
	transform: translateY(-1px);
}

.dirpress-ai-preview-content {
	line-height: 1.75;
	font-size: 15px;
	color: #1e293b;
}

.dirpress-ai-preview-content h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 18px 0 8px;
	color: #0f172a;
}

.dirpress-ai-preview-content ul {
	margin: 10px 0 16px 20px;
	list-style-type: disc;
}

.dirpress-ai-preview-content li {
	margin-bottom: 5px;
}

/* ==========================================================================
   Category Article Section (Editorial Guide / SEO Content)
   ========================================================================== */

.dirpress-category-article-section {
	margin-top: 48px;
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid var(--dp-border, #e2e8f0);
	border-radius: var(--dp-radius, 12px);
	box-shadow: var(--dp-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.07));
	padding: 36px 42px;
	box-sizing: border-box;
	clear: both;
}

.dirpress-category-article-inner {
	width: 100%;
}

.dirpress-category-article-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f1f5f9;
}

.dirpress-category-article-title {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* Editorial Content Typography & Hierarchy (Prose) */
.dirpress-category-article-content.dirpress-prose {
	font-size: 16px;
	line-height: 1.8;
	color: #334155;
	word-wrap: break-word;
}

.dirpress-category-article-content.dirpress-prose h2 {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 32px 0 14px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.dirpress-category-article-content.dirpress-prose h3 {
	font-size: 19px;
	font-weight: 700;
	color: #1e293b;
	margin: 26px 0 12px;
	line-height: 1.4;
}

.dirpress-category-article-content.dirpress-prose h4 {
	font-size: 16.5px;
	font-weight: 600;
	color: #1e293b;
	margin: 20px 0 10px;
}

.dirpress-category-article-content.dirpress-prose p {
	margin: 0 0 18px;
}

.dirpress-category-article-content.dirpress-prose p:last-child {
	margin-bottom: 0;
}

.dirpress-category-article-content.dirpress-prose ul,
.dirpress-category-article-content.dirpress-prose ol {
	margin: 14px 0 22px 24px;
	padding: 0;
}

.dirpress-category-article-content.dirpress-prose ul {
	list-style-type: disc;
}

.dirpress-category-article-content.dirpress-prose ol {
	list-style-type: decimal;
}

.dirpress-category-article-content.dirpress-prose li {
	margin-bottom: 8px;
	padding-left: 4px;
}

.dirpress-category-article-content.dirpress-prose strong,
.dirpress-category-article-content.dirpress-prose b {
	font-weight: 700;
	color: #0f172a;
}

.dirpress-category-article-content.dirpress-prose em,
.dirpress-category-article-content.dirpress-prose i {
	font-style: italic;
}

.dirpress-category-article-content.dirpress-prose a {
	color: var(--dp-primary, #2563eb);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.dirpress-category-article-content.dirpress-prose a:hover {
	color: var(--dp-primary-hover, #1d4ed8);
}

.dirpress-category-article-content.dirpress-prose blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: #f8fafc;
	border-left: 4px solid var(--dp-primary, #2563eb);
	border-radius: 0 8px 8px 0;
	color: #475569;
	font-style: italic;
}

.dirpress-category-article-content.dirpress-prose blockquote p:last-child {
	margin-bottom: 0;
}

.dirpress-category-article-content.dirpress-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 18px 0;
}

@media (max-width: 768px) {
	.dirpress-category-article-section {
		margin-top: 36px;
		padding: 24px 20px;
		border-radius: 10px;
	}

	.dirpress-category-article-title {
		font-size: 21px;
	}

	.dirpress-category-article-content.dirpress-prose {
		font-size: 15px;
		line-height: 1.75;
	}

	.dirpress-category-article-content.dirpress-prose h2 {
		font-size: 19px;
		margin: 24px 0 12px;
	}

	.dirpress-category-article-content.dirpress-prose h3 {
		font-size: 17px;
		margin: 20px 0 10px;
	}
}

/* ==========================================================================
   Reviews System & Star Rating Form
   ========================================================================== */

.dirpress-reviews-section {
	margin-top: 30px;
}

.dirpress-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.dirpress-reviews-header-info .dirpress-section-title {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 4px;
}

.dirpress-reviews-header-info .dirpress-section-desc {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.dirpress-write-review-btn {
	background: #4f46e5;
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.dirpress-write-review-btn:hover {
	background: #4338ca;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

/* Review Submission Form */
.dirpress-review-form-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 25px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dirpress-review-form-header {
	margin-bottom: 18px;
}

.dirpress-review-form-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
	display: flex;
	align-items: center;
}

.dirpress-review-form-subtitle {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}

.dirpress-form-group {
	margin-bottom: 16px;
}

.dirpress-form-label {
	display: block;
	font-size: 13.5px;
	color: #1e293b;
	margin-bottom: 6px;
}

.dirpress-form-label .dirpress-subtext {
	font-size: 12px;
	color: #94a3b8;
	font-weight: normal;
	margin-left: 4px;
}

.dirpress-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.dirpress-form-col {
	flex: 1;
}

.dirpress-form-input,
.dirpress-form-textarea {
	width: 100%;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: #1e293b;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.dirpress-form-input:focus,
.dirpress-form-textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dirpress-form-textarea {
	resize: vertical;
	min-height: 95px;
	line-height: 1.5;
}

/* Interactive Star Rating Selector */
.dirpress-star-picker-group {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
}

.dirpress-star-hint {
	font-size: 12.5px;
	color: #94a3b8;
	font-weight: normal;
	margin-left: 6px;
}

.dirpress-star-picker {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.dirpress-star-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.dirpress-star-label {
	font-size: 32px;
	line-height: 1;
	color: #cbd5e1;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
	user-select: none;
}

.dirpress-star-label:hover,
.dirpress-star-label:hover ~ .dirpress-star-label {
	color: #f59e0b;
	transform: scale(1.15);
}

.dirpress-star-radio:checked ~ .dirpress-star-label {
	color: #f59e0b;
}

.dirpress-star-radio:focus ~ .dirpress-star-label {
	outline: 2px dotted #4f46e5;
}

.dirpress-rating-value-badge {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #b45309;
	background: #fef3c7;
	padding: 3px 10px;
	border-radius: 6px;
}

/* Button & Spinner */
.dirpress-btn-review {
	background: #4f46e5;
	color: #ffffff;
	border: none;
	padding: 11px 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s, opacity 0.2s;
}

.dirpress-btn-review:hover {
	background: #4338ca;
}

.dirpress-btn-review:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dirpress-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: dpSpin 0.7s infinite linear;
}

@keyframes dpSpin {
	to { transform: rotate(360deg); }
}

/* Feedback Alerts */
.dirpress-review-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 13.5px;
	line-height: 1.5;
}

.dirpress-review-alert.alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.dirpress-review-alert.alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.dirpress-review-alert.alert-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

/* Reviews List & Items */
.dirpress-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dirpress-review-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 20px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dirpress-review-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.dirpress-review-item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.dirpress-review-author-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dirpress-review-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #f1f5f9;
}

.dirpress-review-author-name {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 2px 0;
}

.dirpress-review-date {
	font-size: 12px;
	color: #94a3b8;
}

.dirpress-review-rating-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dirpress-review-rating-num {
	font-size: 13px;
	font-weight: 700;
	color: #d97706;
}

.dirpress-review-content {
	font-size: 14.5px;
	line-height: 1.65;
	color: #334155;
}

.dirpress-review-content p:last-child {
	margin-bottom: 0;
}

/* Empty Reviews State */
.dirpress-empty-reviews {
	text-align: center;
	padding: 35px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
}

.dirpress-empty-reviews-text {
	margin: 0;
	font-size: 14.5px;
	color: #64748b;
}

/* Sidebar Review CTA */
.dirpress-sidebar-review-link {
	display: inline-block;
	color: #4f46e5;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 6px;
	background: #eef2ff;
	transition: background 0.2s, color 0.2s;
}

.dirpress-sidebar-review-link:hover {
	background: #e0e7ff;
	color: #4338ca;
}

@media (max-width: 640px) {
	.dirpress-form-row {
		flex-direction: column;
		gap: 12px;
	}

	.dirpress-star-label {
		font-size: 28px;
	}

	.dirpress-reviews-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.dirpress-write-review-btn {
		width: 100%;
		justify-content: center;
	}
}