/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* ========================================
   Custom Marker Icon
   ======================================== */

/* Icon size is now controlled by JavaScript settings */
/* Width and height are set dynamically from admin settings */

/* Auto height markers - maintain aspect ratio */
.tp-marker-auto-height {
	height: auto !important;
}

/* ========================================
   Marker Clustering - Custom Styles
   ======================================== */

.tp-marker-cluster {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
	text-align: center;
	font-weight: bold;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.tp-marker-cluster:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

.tp-marker-cluster div {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.tp-marker-cluster span {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

/* Cluster sizes */
.tp-marker-cluster-small {
	width: 40px !important;
	height: 40px !important;
}

.tp-marker-cluster-small span {
	font-size: 13px;
}

.tp-marker-cluster-medium {
	width: 50px !important;
	height: 50px !important;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tp-marker-cluster-medium:hover {
	box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
}

.tp-marker-cluster-medium span {
	font-size: 15px;
}

.tp-marker-cluster-large {
	width: 60px !important;
	height: 60px !important;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.tp-marker-cluster-large:hover {
	box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
}

.tp-marker-cluster-large span {
	font-size: 16px;
}

/* RTL Support for Clusters */
[dir="rtl"] .tp-marker-cluster {
	direction: ltr; /* Keep numbers LTR */
}

/* ========================================
   Store Locator Wrapper - Clean & Elegant
   ======================================== */

.tp-store-locator-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* ========================================
   Controls Section
   ======================================== */

.tp-store-controls {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
	align-items: center;
}

.tp-store-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 300px;
}

.tp-search-input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #374151;
}

.tp-search-input:focus {
	outline: none;
	border-color: #9ca3af;
	box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

.tp-search-button,
.tp-near-me-button {
	padding: 10px 20px;
	background: #ffffff;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tp-search-button:hover,
.tp-near-me-button:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tp-near-me-button {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tp-location-icon {
	font-size: 18px;
}

/* ========================================
   Category Filter
   ======================================== */

.tp-category-filter {
	position: relative;
}

.tp-category-filter-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #ffffff;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	white-space: nowrap;
}

.tp-category-filter-toggle:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tp-category-filter-toggle.active {
	background: #f0f9ff;
	border-color: #22d3ee;
	color: #0891b2;
}

.tp-filter-icon {
	font-size: 16px;
}

.tp-filter-count {
	display: none;
	padding: 2px 8px;
	background: linear-gradient(135deg, rgba(103, 232, 249, 0.95), rgba(34, 211, 238, 0.95));
	color: white;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
}

.tp-filter-count.active {
	display: inline-block;
}

.tp-filter-arrow {
	font-size: 10px;
	transition: transform 0.2s ease;
}

.tp-category-filter-toggle.active .tp-filter-arrow {
	transform: rotate(180deg);
}

.tp-category-filter-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 280px;
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 1000;
}

.tp-category-filter-dropdown.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tp-category-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 600;
	font-size: 13px;
	color: #374151;
}

.tp-category-clear-all {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.tp-category-clear-all:hover {
	background: #fef2f2;
}

.tp-category-filter-list {
	max-height: 300px;
	overflow-y: auto;
	padding: 8px;
}

.tp-category-filter-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s ease;
	margin-bottom: 4px;
}

.tp-category-filter-item:hover {
	background: #f9fafb;
}

.tp-category-checkbox {
	display: none;
}

.tp-category-checkbox-custom {
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.tp-category-checkbox:checked + .tp-category-checkbox-custom {
	background: linear-gradient(135deg, rgba(103, 232, 249, 0.95), rgba(34, 211, 238, 0.95));
	border-color: #22d3ee;
}

.tp-category-checkbox:checked + .tp-category-checkbox-custom::after {
	content: '✓';
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.tp-category-name {
	font-size: 14px;
	color: #374151;
	flex: 1;
}

/* Color indicators for categories */
.tp-category-filter-item[data-category-index="0"] .tp-category-checkbox-custom {
	border-color: rgba(103, 232, 249, 0.5);
}

.tp-category-filter-item[data-category-index="1"] .tp-category-checkbox-custom {
	border-color: rgba(96, 165, 250, 0.5);
}

.tp-category-filter-item[data-category-index="2"] .tp-category-checkbox-custom {
	border-color: rgba(52, 211, 153, 0.5);
}

.tp-category-filter-item[data-category-index="3"] .tp-category-checkbox-custom {
	border-color: rgba(251, 146, 60, 0.5);
}

.tp-category-filter-item[data-category-index="4"] .tp-category-checkbox-custom {
	border-color: rgba(244, 114, 182, 0.5);
}

.tp-category-filter-item[data-category-index="5"] .tp-category-checkbox-custom {
	border-color: rgba(248, 113, 113, 0.5);
}

.tp-category-filter-item[data-category-index="6"] .tp-category-checkbox-custom {
	border-color: rgba(250, 204, 21, 0.5);
}

.tp-category-filter-item[data-category-index="7"] .tp-category-checkbox-custom {
	border-color: rgba(134, 239, 172, 0.5);
}

/* ========================================
   Content Layout
   ======================================== */

.tp-store-content {
	display: grid;
	gap: 10px;
	height: calc(100vh - 200px);
	min-height: 600px;
}

/* Default 50-50 ratio */
.tp-store-locator-wrapper[data-view="both"] .tp-store-content {
	grid-template-columns: 1fr 1fr;
}

/* 30% Map / 70% List - Map is FIRST, List is SECOND */
.tp-store-locator-wrapper[data-view="both"][data-ratio="30-70"] .tp-store-content {
	grid-template-columns: 0.3fr 0.7fr; /* Map 30%, List 70% */
}

/* 40% Map / 60% List */
.tp-store-locator-wrapper[data-view="both"][data-ratio="40-60"] .tp-store-content {
	grid-template-columns: 0.4fr 0.6fr; /* Map 40%, List 60% */
}

/* 50% Map / 50% List (Default) */
.tp-store-locator-wrapper[data-view="both"][data-ratio="50-50"] .tp-store-content {
	grid-template-columns: 1fr 1fr; /* Map 50%, List 50% */
}

/* 60% Map / 40% List */
.tp-store-locator-wrapper[data-view="both"][data-ratio="60-40"] .tp-store-content {
	grid-template-columns: 0.6fr 0.4fr; /* Map 60%, List 40% */
}

/* 70% Map / 30% List */
.tp-store-locator-wrapper[data-view="both"][data-ratio="70-30"] .tp-store-content {
	grid-template-columns: 0.7fr 0.3fr; /* Map 70%, List 30% */
}

.tp-store-locator-wrapper[data-view="map"] .tp-store-list-container,
.tp-store-locator-wrapper[data-view="list"] .tp-store-map-container {
	display: none;
}

/* ========================================
   Map Container
   ======================================== */

.tp-store-map-container {
	background: #f9fafb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	height: 100%;
}

.tp-store-map {
	height: 100%;
	width: 100%;
}

/* ========================================
   Store List Container
   ======================================== */

.tp-store-list-container {
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;
}

/* Custom scrollbar */
.tp-store-list-container::-webkit-scrollbar {
	width: 6px;
}

.tp-store-list-container::-webkit-scrollbar-track {
	background: #f3f4f6;
	border-radius: 10px;
}

.tp-store-list-container::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 10px;
}

.tp-store-list-container::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

/* ========================================
   View Toggle
   ======================================== */

.tp-view-toggle {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;
	background: #f3f4f6;
	padding: 4px;
	border-radius: 8px;
	width: fit-content;
}

.tp-view-btn {
	padding: 8px 16px;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #6b7280;
}

.tp-view-btn:hover {
	background: #e5e7eb;
}

.tp-view-btn.active {
	background: white;
	color: #3b82f6;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tp-view-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* ========================================
   Store List
   ======================================== */

.tp-stores-list {
	display: grid;
	gap: 10px;
}

.tp-stores-list.tp-layout-grid {
	grid-template-columns: repeat(2, 1fr);
}

.tp-stores-list.tp-layout-list {
	grid-template-columns: 1fr;
}

/* ========================================
   Store Card - Luxury Design
   ======================================== */

.tp-store-card {
	background: white;
	border-radius: 8px;
	margin: 0 10px 0 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	border: 1px solid #e5e7eb;
	cursor: pointer;
	display: flex;
	position: relative;
	flex-direction: row;
	min-height: 180px;
}

.tp-layout-list .tp-store-card {
	margin-bottom: 12px;
}

.tp-layout-grid .tp-store-card {
	flex-direction: column;
	height: auto;
	min-height: auto;
}

.tp-store-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-color: #d1d5db;
}

.tp-store-card.tp-store-highlighted {
	border: 2px solid #3b82f6;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.tp-store-image {
	width: 240px;
	height: 100%;
	overflow: hidden;
	background: #f3f4f6;
	flex-shrink: 0;
	position: relative;
}

.tp-layout-grid .tp-store-image {
	width: 100%;
	height: 200px;
}

.tp-store-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tp-store-card:hover .tp-store-image img {
	transform: scale(1.05);
}

/* Category Tags */
.tp-category-tags {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-end;
	z-index: 2;
}

.tp-category-tag {
	display: inline-block !important;
	padding: 4px 10px !important;
	border-radius: 12px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: white !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
	backdrop-filter: blur(4px) !important;
	white-space: nowrap !important;
}

/* Pastel colors for different categories */
.tp-category-tag[data-category-index="0"] {
	background: linear-gradient(135deg, rgb(103 150 156), rgb(155 193 205));
}

.tp-category-tag[data-category-index="1"] {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(59, 130, 246, 0.95));
}

.tp-category-tag[data-category-index="2"] {
	background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.tp-category-tag[data-category-index="3"] {
	background: linear-gradient(135deg, rgba(251, 146, 60, 0.95), rgba(249, 115, 22, 0.95));
}

.tp-category-tag[data-category-index="4"] {
	background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(236, 72, 153, 0.95));
}

.tp-category-tag[data-category-index="5"] {
	background: linear-gradient(135deg, rgba(248, 113, 113, 0.95), rgba(239, 68, 68, 0.95));
}

.tp-category-tag[data-category-index="6"] {
	background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(234, 179, 8, 0.95));
}

.tp-category-tag[data-category-index="7"] {
	background: linear-gradient(135deg, rgba(134, 239, 172, 0.95), rgba(74, 222, 128, 0.95));
}

/* For categories beyond index 7, cycle through colors */
.tp-category-tag:not([data-category-index="0"]):not([data-category-index="1"]):not([data-category-index="2"]):not([data-category-index="3"]):not([data-category-index="4"]):not([data-category-index="5"]):not([data-category-index="6"]):not([data-category-index="7"]) {
	background: linear-gradient(135deg, rgba(156, 163, 175, 0.95), rgba(107, 114, 128, 0.95));
}

.tp-store-info {
	padding: 16px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: visible;
}

.tp-layout-grid .tp-store-info {
	padding: 20px;
}

.tp-store-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px 0;
	color: #1f2937;
	line-height: 1.3;
}

.tp-layout-grid .tp-store-title {
	font-size: 20px;
	margin-bottom: 12px;
}

.tp-store-address,
.tp-store-phone,
.tp-store-email {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 3px 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

.tp-layout-grid .tp-store-address,
.tp-layout-grid .tp-store-phone,
.tp-layout-grid .tp-store-email {
	font-size: 14px;
	margin: 8px 0;
	gap: 8px;
}

.tp-store-address .tp-icon,
.tp-store-phone .tp-icon,
.tp-store-email .tp-icon {
	font-size: 13px;
	flex-shrink: 0;
	margin-top: 2px;
}

.tp-layout-grid .tp-store-address .tp-icon,
.tp-layout-grid .tp-store-phone .tp-icon,
.tp-layout-grid .tp-store-email .tp-icon {
	font-size: 14px;
}

.tp-store-phone a,
.tp-store-email a {
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tp-store-phone a:hover,
.tp-store-email a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* ========================================
   ACF Fields
   ======================================== */

.tp-store-acf-fields {
	margin: 12px 0 8px 0;
	padding: 12px;
	background: #fef3c7;
	border-radius: 6px;
	border-left: 3px solid #f59e0b;
}

.tp-layout-grid .tp-store-acf-fields {
	margin: 16px 0 12px 0;
	padding: 15px;
}

.tp-acf-field {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 3px 0;
	font-size: 12px;
	line-height: 1.4;
}

.tp-layout-grid .tp-acf-field {
	font-size: 13px;
	margin: 5px 0;
	gap: 8px;
}

.tp-acf-label {
	font-weight: 600;
	color: #92400e;
	min-width: 80px;
	flex-shrink: 0;
}

.tp-layout-grid .tp-acf-label {
	min-width: 100px;
}

.tp-acf-value {
	color: #78350f;
	flex: 1;
}

.tp-acf-value a {
	color: #d97706;
	text-decoration: none;
}

.tp-acf-value a:hover {
	text-decoration: underline;
}

.tp-acf-image {
	max-width: 60px;
	height: auto;
	border-radius: 4px;
	display: block;
}

.tp-layout-grid .tp-acf-image {
	max-width: 80px;
}

.tp-acf-color {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1px solid #d1d5db;
	vertical-align: middle;
	margin-right: 4px;
}

/* ========================================
   Gallery Slider
   ======================================== */

.tp-store-gallery {
	position: relative;
	width: 240px !important;
	height: 240px !important;
	margin-bottom: 0;
	background: #f3f4f6;
	flex-shrink: 0;
}

.tp-layout-grid .tp-store-gallery {
	width: 100%;
	height: 200px;
}

.tp-store-gallery .owl-stage-outer,
.tp-store-gallery .owl-stage,
.tp-store-gallery .owl-item {
	height: 100%;
}

.tp-store-gallery .tp-gallery-item {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f3f4f6;
}

.tp-store-gallery .tp-gallery-item img {
	width: 100%;
	/* height: 100%; */
	object-fit: cover;
	display: block;
}

/* Owl Carousel Navigation */
.tp-store-gallery .owl-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	z-index: 10;
	padding: 0 10px;
}

.tp-store-gallery .owl-nav button {
	pointer-events: all;
	background: rgba(255, 255, 255, 0.9) !important;
	color: #1f2937 !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 28px !important;
	line-height: 1 !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tp-store-gallery .owl-nav button:hover {
	background: rgba(255, 255, 255, 1) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
	transform: scale(1.1) !important;
}

.tp-store-gallery .owl-nav button.disabled {
	opacity: 0.3 !important;
	cursor: not-allowed !important;
}

.tp-store-gallery .owl-nav button.disabled:hover {
	transform: none !important;
}

.tp-store-gallery .owl-nav button span {
	display: block;
	line-height: 1;
}

/* Owl Carousel Dots */
.tp-store-gallery .owl-dots {
	position: absolute;
	bottom: 15px;
	left: 0;
	right: 0;
	display: flex !important;
	justify-content: center;
	gap: 8px;
	z-index: 10;
}

.tp-store-gallery .owl-dot {
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	margin: 0 !important;
}

.tp-store-gallery .owl-dot.active {
	background: rgba(255, 255, 255, 1) !important;
	width: 24px !important;
	border-radius: 4px !important;
}

.tp-store-gallery .owl-dot:hover {
	background: rgba(255, 255, 255, 0.9) !important;
}

/* RTL Support for Owl Carousel */
[dir="rtl"] .tp-store-gallery .owl-nav button.owl-prev {
	transform: scaleX(-1);
}

[dir="rtl"] .tp-store-gallery .owl-nav button.owl-next {
	transform: scaleX(-1);
}

/* Category tags on gallery */
.tp-store-gallery + .tp-category-tags {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 11;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

[dir="rtl"] .tp-store-gallery + .tp-category-tags {
	left: auto;
	right: 10px;
}

/* ========================================
   Opening Hours
   ======================================== */

.tp-store-hours {
	margin: 12px 0 8px 0;
	padding: 0;
	background: #f9fafb;
	border-radius: 6px;
	border-left: 3px solid #3b82f6;
}

.tp-layout-grid .tp-store-hours {
	margin: 0;
	padding: 0;
}

.tp-store-hours strong {
	display: block;
	margin-bottom: 8px;
	color: #1f2937;
	font-size: 13px;
}

.tp-layout-grid .tp-store-hours strong {
	font-size: 14px;
	margin-bottom: 10px;
}

.tp-hours-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tp-hours-list li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 12px;
	color: #6b7280;
	border-bottom: 1px solid #e5e7eb;
}

.tp-layout-grid .tp-hours-list li {
	padding: 6px 0;
	font-size: 13px;
}

.tp-hours-list li:last-child {
	border-bottom: none;
}

.tp-day {
	font-weight: 600;
	color: #374151;
	min-width: 35px;
}

.tp-layout-grid .tp-day {
	min-width: 40px;
}

.tp-open {
	color: #10b981;
	font-weight: 500;
}

.tp-closed {
	color: #ef4444;
	font-weight: 500;
}

.tp-hours-note {
	margin-top: 10px;
	font-size: 12px;
	color: #9ca3af;
}

/* Collapsed Hours */
.tp-view-hours-btn {
	display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    justify-content: center;
    margin-top: 0;
}

.tp-layout-grid .tp-view-hours-btn {
	padding: 5px;
    font-size: 14px;
    width: 100%;
    margin-top: 0;
}

.tp-view-hours-btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.tp-view-hours-btn .tp-icon {
	font-size: 14px;
}

.tp-layout-grid .tp-view-hours-btn .tp-icon {
	font-size: 16px;
}

/* Hours Popup */
.tp-hours-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tp-hours-popup-content {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	max-width: 500px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: tp-popup-slide-in 0.3s ease;
}

@keyframes tp-popup-slide-in {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tp-hours-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	color: #9ca3af;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.tp-hours-popup-close:hover {
	background: #f3f4f6;
	color: #374151;
}

.tp-hours-popup-content h4 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
}

.tp-hours-popup-content .tp-hours-list {
	background: #f9fafb;
	padding: 15px;
	border-radius: 8px;
}

/* Info Popup */
.tp-info-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tp-info-popup-content {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	max-width: 600px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: tp-popup-slide-in 0.3s ease;
}

.tp-info-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	color: #9ca3af;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
	z-index: 1;
}

.tp-info-popup-close:hover {
	background: #f3f4f6;
	color: #374151;
}

.tp-info-popup-content h4 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	padding-right: 40px;
}

.tp-info-content {
	color: #374151;
	line-height: 1.6;
}

.tp-info-content p {
	margin-bottom: 15px;
}

.tp-info-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 15px 0;
}

.tp-info-content h1,
.tp-info-content h2,
.tp-info-content h3,
.tp-info-content h4,
.tp-info-content h5,
.tp-info-content h6 {
	margin-top: 20px;
	margin-bottom: 10px;
	color: #1f2937;
}

.tp-info-content ul,
.tp-info-content ol {
	margin: 15px 0;
	padding-left: 25px;
}

.tp-info-content li {
	margin-bottom: 8px;
}

.tp-info-content a {
	color: #3b82f6;
	text-decoration: underline;
}

.tp-info-content a:hover {
	color: #2563eb;
}

/* ========================================
   Store Actions
   ======================================== */

.tp-store-actions {
	display: flex;
	gap: 6px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.tp-layout-grid .tp-store-actions {
	margin-top: 16px;
	gap: 10px;
}

.tp-btn {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	border: none;
	white-space: nowrap;
}

.tp-layout-grid .tp-btn {
	padding: 10px 20px;
	font-size: 14px;
}

.tp-btn-primary {
	background: #3b82f6;
	color: white;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tp-btn-primary:hover {
	background: #2563eb;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: white;
}

.tp-btn-secondary {
	background: white;
	color: #374151;
	border: 1px solid #d1d5db;
}

.tp-btn-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #374151;
}

/* ========================================
   No Stores Message
   ======================================== */

.tp-no-stores {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
	font-size: 16px;
}

/* ========================================
   Leaflet Popup Customization
   ======================================== */

.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
	margin: 15px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tp-popup-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #1f2937;
}

.tp-popup-address,
.tp-popup-phone {
	font-size: 13px;
	color: #6b7280;
	margin: 5px 0;
}

.tp-popup-actions {
	margin-top: 15px;
	display: flex;
	gap: 8px;
}

.tp-view-details-btn {
	display: none !important;
}

.leaflet-popup {
	min-width: 250px;
}

/* ========================================
   Dynamic Ratio Adjustments (Desktop Only)
   ======================================== */

@media (min-width: 1025px) {
	/* 70% Map / 30% List - ULTRA COMPACT */
	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-stores-list.tp-layout-grid {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-card {
		flex-direction: column !important;
		min-height: auto !important;
		margin: 0 0 6px 8px !important;
		position: relative !important; /* For absolute positioning of image */
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-image,
	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-gallery {
		position: absolute !important;
		top: 10px !important;
		left: 10px !important; /* LTR: left corner */
		width: 50px !important;
		height: 50px !important;
		border-radius: 6px !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
		z-index: 10 !important;
		display: block !important; /* Show as small thumbnail */
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-gallery .owl-nav {
		display: none !important; /* Hide arrows in small thumbnail */
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-title {
		font-size: 13px !important;
		margin-bottom: 4px !important;
		line-height: 1.2 !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-info {
		padding: 8px !important;
		padding-left: 70px !important; /* LTR: Space for image on left */
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-address,
	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-phone,
	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-email {
		font-size: 10px !important;
		margin-bottom: 3px !important;
		line-height: 1.3 !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-icon {
		font-size: 10px !important;
		margin-right: 3px !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-actions {
		margin-top: 6px !important;
		gap: 4px !important;
		flex-direction: column !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-btn {
		padding: 4px 6px !important;
		font-size: 10px !important;
		width: 100% !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-category-tag {
		font-size: 9px !important;
		padding: 1px 4px !important;
	}

	.tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-hours {
		display: none !important; /* Hide hours */
	}

	/* 60% Map / 40% List - COMPACT */
	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-stores-list.tp-layout-grid {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-card {
		flex-direction: column !important;
		min-height: auto !important;
		margin: 0 0 8px 10px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-image,
	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-gallery {
		width: 100% !important;
		height: 100px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-title {
		font-size: 14px !important;
		margin-bottom: 5px !important;
		line-height: 1.3 !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-info {
		padding: 10px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-address,
	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-phone,
	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-email {
		font-size: 11px !important;
		margin-bottom: 4px !important;
		line-height: 1.4 !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-icon {
		font-size: 11px !important;
		margin-right: 4px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-store-actions {
		margin-top: 8px !important;
		gap: 5px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-btn {
		padding: 5px 8px !important;
		font-size: 11px !important;
	}

	.tp-store-locator-wrapper[data-ratio="60-40"] .tp-category-tag {
		font-size: 10px !important;
		padding: 2px 5px !important;
	}
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
	.tp-store-locator-wrapper[data-view="both"] .tp-store-content {
		grid-template-columns: 1fr;
		height: auto;
	}

	.tp-store-map-container {
		height: 400px;
	}

	.tp-store-list-container {
		height: auto;
		max-height: 600px;
	}
}

@media (max-width: 768px) {
	.tp-stores-list.tp-layout-grid {
		grid-template-columns: 1fr;
	}

	.tp-store-card {
		flex-direction: column;
		height: auto;
	}

	.tp-store-image,
	.tp-store-gallery {
		width: 100%;
		height: 180px;
	}

	.tp-store-controls {
		flex-direction: column;
	}

	.tp-store-search {
		width: 100%;
		min-width: auto;
	}

	.tp-search-button,
	.tp-near-me-button {
		width: 100%;
	}

	.tp-store-actions {
		flex-direction: column;
	}

	.tp-btn {
		width: 100%;
	}

	.tp-store-map-container {
		height: 300px;
	}

	.tp-store-list-container {
		max-height: 500px;
	}
}

@media (max-width: 480px) {
	.tp-store-locator-wrapper {
		padding: 10px;
	}

	.tp-store-title {
		font-size: 18px;
	}

	.tp-store-info {
		padding: 15px;
	}
}

/* ========================================
   RTL Support for All Ratios
   ======================================== */

[dir="rtl"] .tp-store-card {
	margin: 0 0 0 10px; /* Flip margin */
}

/* RTL: Compact ratios - flip margin */
[dir="rtl"] .tp-store-locator-wrapper[data-view="both"][data-ratio="70-30"] .tp-store-card {
	margin: 0 10px 0 0;
}

/* RTL: Flip image position for 70-30 ratio */
[dir="rtl"] .tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-image,
[dir="rtl"] .tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-gallery {
	right: auto !important;
	left: 10px !important; /* RTL: right corner */
}

/* RTL: Flip padding for 70-30 ratio */
[dir="rtl"] .tp-store-locator-wrapper[data-ratio="70-30"] .tp-store-info {
	padding-left: 8px !important;
	padding-right: 70px !important; /* RTL: Space for image on right */
}

[dir="rtl"] .tp-store-locator-wrapper[data-view="both"][data-ratio="60-40"] .tp-store-card {
	margin: 0 12px 0 0;
}

[dir="rtl"] .tp-store-controls {
	direction: rtl;
}

[dir="rtl"] .tp-search-input {
	text-align: right;
}

[dir="rtl"] .tp-store-info {
	text-align: right;
}

[dir="rtl"] .tp-category-tag {
	margin-left: 6px;
	margin-right: 0;
}

[dir="rtl"] .tp-icon {
	margin-left: 6px;
	margin-right: 0;
}

[dir="rtl"] .tp-info-popup-close {
	right: auto;
	left: 15px;
}

[dir="rtl"] .tp-info-popup-content h4 {
	padding-right: 0;
	padding-left: 40px;
}

[dir="rtl"] .tp-hours-popup-close {
	right: auto;
	left: 15px;
}

[dir="rtl"] .tp-info-content {
	text-align: right;
}

[dir="rtl"] .tp-info-content ul,
[dir="rtl"] .tp-info-content ol {
	padding-left: 0;
	padding-right: 25px;
}

/* RTL: Grid columns flip automatically in RTL, no need to override */
/* The browser handles the visual order reversal automatically with dir="rtl" */


/* ========================================
   Open/Closed Status Badge
   ======================================== */

.tp-store-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	margin: 6px 0;
	font-size: 11px;
	font-weight: 400;
	color: #6b7280;
}

.tp-store-status-icon {
	font-size: 10px;
	line-height: 1;
	flex-shrink: 0;
}

.tp-store-status-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.tp-store-status-main {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
}

.tp-store-status-sub {
	font-size: 10px;
	font-weight: 400;
	opacity: 0.75;
	line-height: 1.4;
}

/* Open Status - Green */
.tp-store-status.tp-status-open .tp-store-status-main {
	color: #059669;
}

.tp-store-status.tp-status-open .tp-store-status-sub {
	color: #6b7280;
}

@keyframes tp-pulse-green {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}
}

/* Closing Soon Status - Orange */
.tp-store-status.tp-status-closing-soon .tp-store-status-main {
	color: #d97706;
}

.tp-store-status.tp-status-closing-soon .tp-store-status-sub {
	color: #6b7280;
}

.tp-store-status.tp-status-closing-soon .tp-store-status-icon {
	animation: tp-subtle-pulse 2s ease-in-out infinite;
}

@keyframes tp-subtle-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}

/* Closed Status - Red */
.tp-store-status.tp-status-closed .tp-store-status-main {
	color: #dc2626;
}

.tp-store-status.tp-status-closed .tp-store-status-sub {
	color: #6b7280;
}

.tp-store-status.tp-status-closed .tp-store-status-icon {
	opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
	.tp-store-status {
		font-size: 10px;
	}

	.tp-store-status-main {
		font-size: 10px;
	}

	.tp-store-status-sub {
		font-size: 9px;
	}
}

/* Grid Layout */
.tp-layout-grid .tp-store-status {
	margin: 6px 0;
}

/* List Layout */
.tp-layout-list .tp-store-status {
	margin: 6px 0;
}

/* Map Popup Status */
.tp-popup-content .tp-store-status {
	margin: 8px 0;
	font-size: 11px;
}

.tp-popup-content .tp-store-status-main {
	font-size: 11px;
}

.tp-popup-content .tp-store-status-sub {
	font-size: 10px;
}

/* ========================================
   Autocomplete Dropdown
   ======================================== */

.tp-autocomplete-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 4px;
	max-height: 320px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

.tp-autocomplete-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #f3f4f6;
}

.tp-autocomplete-item:last-child {
	border-bottom: none;
}

.tp-autocomplete-item:hover {
	background-color: #f9fafb;
}

.tp-autocomplete-image {
	width: 50px;
	height: 50px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tp-autocomplete-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-autocomplete-no-image {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.tp-autocomplete-no-image span {
	font-size: 24px;
}

.tp-autocomplete-info {
	flex: 1;
	min-width: 0;
}

.tp-autocomplete-title {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tp-autocomplete-address {
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Scrollbar styling */
.tp-autocomplete-dropdown::-webkit-scrollbar {
	width: 6px;
}

.tp-autocomplete-dropdown::-webkit-scrollbar-track {
	background: #f3f4f6;
	border-radius: 0 8px 8px 0;
}

.tp-autocomplete-dropdown::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 3px;
}

.tp-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
	.tp-autocomplete-dropdown {
		max-height: 250px;
	}

	.tp-autocomplete-item {
		padding: 8px 10px;
		gap: 10px;
	}

	.tp-autocomplete-image {
		width: 40px;
		height: 40px;
	}

	.tp-autocomplete-title {
		font-size: 13px;
	}

	.tp-autocomplete-address {
		font-size: 11px;
	}
}

