/*
Theme Name: LeoList Classifieds
Theme URI: https://leolist.vc
Author: LeoList.vc
Author URI: https://leolist.vc
Description: Premium classifieds theme for LeoList.vc — dark & crimson design.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leolist-classifieds
Tags: block-theme, classifieds, premium
*/

/* ============================================
   CSS Variables & Root Styles
   ============================================ */

:root {
	--primary-gradient: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
	--premium-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	--dark-bg: #222222;
	--card-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
	--card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
	--premium-border: linear-gradient(135deg, #fbbf24 0%, #FF385C 50%, #fbbf24 100%);
	--premium-red: #FF385C;
	--premium-dark-red: #E31C5F;
}

* {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #222222;
	background: #ffffff;
	margin: 0;
	padding: 0;
}

/* ============================================
   Typography
   ============================================ */

.logo-text {
	font-family: 'Playfair Display', serif;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.5px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
	margin-bottom: 1rem;
}

a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #005177;
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   Premium Header
   ============================================ */

.premium-header {
	background: #ffffff;
	border-bottom: 1px solid #DDDDDD;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 0;
	z-index: 50;
}

.premium-nav {
	background: #ffffff;
	border-bottom: 1px solid #EBEBEB;
	box-shadow: none;
}

.premium-search {
	background: #F7F7F7;
	border: 1px solid #DDDDDD;
	border-radius: 40px;
	padding: 12px 20px;
	font-size: 14px;
	color: #222222;
}

.premium-search:focus {
	border-color: #222222;
	box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
	outline: none;
}

.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 0.5rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
	z-index: 1000;
	display: none;
	max-height: 320px;
	overflow-y: auto;
}

.search-suggestions.visible {
	display: block;
}

.search-suggestion-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	color: #1e293b;
	text-decoration: none;
}

.search-suggestion-item:hover {
	background: #f8fafc;
	text-decoration: none;
}

.search-suggestion-item.muted {
	color: #64748b;
	cursor: default;
}

.search-suggestion-thumb {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	background: #f1f5f9;
	flex-shrink: 0;
}

.search-suggestion-title {
	font-size: 14px;
	font-weight: 600;
}

.search-suggestion-sub {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.premium-btn {
	background: #FF385C;
	transition: all 0.2s ease;
	box-shadow: none;
	color: white;
	border: none;
	cursor: pointer;
	border-radius: 8px;
	font-weight: 600;
}

.premium-btn:hover {
	background: #E31C5F;
	box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
	text-decoration: none;
	color: white;
}

/* ============================================
   Ad Cards
   ============================================ */

.ad-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
	position: relative;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border: 1px solid #EBEBEB;
}

/* PC: always-visible Like/Favorite icons */
.ad-card-image-wrapper {
	position: relative;
}

.ad-card-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 8px;
	opacity: 1;
	transition: opacity 0.2s ease;
	z-index: 10;
}

.ad-card-action-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ad-card-action-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.ad-card-like-btn.active {
	background: #10b981;
	color: #fff;
}

.ad-card-favorite-btn.active {
	background: #8b5cf6;
	color: #fff;
}

footer .ad-card {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	cursor: default;
	display: block;
	height: auto;
}

footer .ad-card:hover {
	transform: none;
	box-shadow: none;
}

.ad-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.ad-card:hover {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
	text-decoration: none;
	color: inherit;
}

.ad-card:hover::before {
	opacity: 0;
}

.ad-card-image-wrapper {
	position: relative;
	overflow: hidden;
	height: 14rem;
	background: #F7F7F7;
	flex-shrink: 0;
	border-radius: 12px 12px 0 0;
}

.ad-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ad-card:hover .ad-card-image {
	transform: scale(1.03);
}

.ad-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 2;
}

.ad-card:hover .ad-card-overlay {
	opacity: 1;
}

.ad-card-content {
	position: relative;
	z-index: 3;
	background: white;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
}

/* Контейнер бейджей в карточках */
.ad-card-content .flex.gap-2,
.ad-card-content > div:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	min-height: 60px;
	align-content: flex-start;
}

/* Все бейджи в карточках */
.ad-card-content .premium-badge,
.ad-card-content .badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	height: 26px;
	box-sizing: border-box;
	flex: 0 0 auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ad-card-content .premium-badge i,
.ad-card-content .premium-badge svg,
.ad-card-content .badge i,
.ad-card-content .badge svg {
	width: 12px !important;
	height: 12px !important;
	font-size: 12px !important;
	flex-shrink: 0;
}

/* ============================================
   Badges
   ============================================ */

.premium-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
	white-space: nowrap;
	height: 26px;
	line-height: 1.2;
	box-sizing: border-box;
}

/* Унифицированные иконки в бейджах */
.premium-badge i,
.premium-badge svg {
	width: 12px !important;
	height: 12px !important;
	font-size: 12px !important;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.badge-verified {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-sponsored {
	background: var(--premium-gold);
	color: #7c2d12;
	box-shadow: 0 2px 8px rgba(246, 211, 101, 0.4);
	font-weight: 700;
}

.badge-available {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.8; }
}

/* Desktop Grid: унифицированные бейджи */
@media (min-width: 768px) {
	.listings-grid .ad-card-content {
		min-height: 140px;
	}

	.listings-grid .ad-card-content .flex.gap-2,
	.listings-grid .ad-card-content > div:last-child {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		min-height: 64px;
		align-content: flex-start;
		margin-top:10px;
	}

	.listings-grid .premium-badge,
	.listings-grid .badge {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 5px 10px;
		border-radius: 14px;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
		height: 26px;
		box-sizing: border-box;
		flex: 0 0 auto;
	}

	.listings-grid .premium-badge i,
	.listings-grid .premium-badge svg,
	.listings-grid .badge i,
	.listings-grid .badge svg {
		width: 12px !important;
		height: 12px !important;
		font-size: 12px !important;
		flex-shrink: 0;
	}
}

.premium-price {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	padding: 6px 14px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sponsored-border {
	position: relative;
}

.sponsored-border::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: var(--premium-border);
	border-radius: 16px;
	z-index: -1;
	animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

/* ============================================
   Navigation Links
   ============================================ */

.nav-link {
	position: relative;
	transition: all 0.3s ease;
	color: #222222;
	text-decoration: none;
	font-weight: 500;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: #FF385C;
	transition: width 0.3s ease;
}

.nav-link:hover {
	color: #FF385C;
	text-decoration: none;
}

.nav-link:hover::after {
	width: 100%;
}

/* ============================================
   Utilities
   ============================================ */

.truncate-2-lines {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.section-title {
	font-size: 2rem;
	font-weight: 800;
	background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 2rem;
	letter-spacing: -0.5px;
}

/* Filters bar on main listings (City filter) */
.listings-filters-bar {
	align-items: center;
}
.listings-filters-label {
	color: #374151;
	font-weight: 500;
}
.listings-filters-form select.listings-filter-city {
	min-width: 180px;
	font-size: 1rem;
}
@media (max-width: 767px) {
	.listings-filters-bar {
		flex-direction: column;
		align-items: flex-start;
	}
	.listings-filters-form {
		width: 100%;
	}
	.listings-filters-form select.listings-filter-city {
		flex: 1;
		min-width: 0;
	}
}

.load-more-btn {
	background: #ffffff;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0;
	box-shadow: none;
	transition: all 0.2s ease;
	color: #222222;
	border: 1px solid #222222;
	cursor: pointer;
}

.load-more-btn:hover {
	background: #F7F7F7;
	box-shadow: none;
	color: #222222;
	text-decoration: none;
}

.floating-btn {
	background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
	transition: all 0.3s ease;
	color: white;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.floating-btn:hover {
	transform: scale(1.1) rotate(90deg);
	box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
	color: white;
	text-decoration: none;
}

/* ============================================
   Footer
   ============================================ */

.premium-footer {
	background: #F7F7F7;
	position: relative;
	overflow: hidden;
	color: #222222;
	border-top: 1px solid #DDDDDD;
}

.premium-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0;
	background: none;
}

.premium-footer a {
	color: #717171;
}

.premium-footer a:hover {
	color: #222222;
	text-decoration: underline;
}

/* ============================================
   Layout & Utility Classes (Tailwind-like)
   ============================================ */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.px-4 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.py-3 {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.py-5 {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.py-10 {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.py-12 {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-center {
	justify-content: center;
}

.space-x-2 > * + * {
	margin-left: 0.5rem;
}

.space-x-4 > * + * {
	margin-left: 1rem;
}

.space-x-6 > * + * {
	margin-left: 1.5rem;
}

.space-x-8 > * + * {
	margin-left: 2rem;
}

.space-y-3 > * + * {
	margin-top: 0.75rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

.w-full {
	width: 100%;
}

.max-w-2xl {
	max-width: 42rem;
}

.flex-1 {
	flex: 1 1 0%;
}

.text-sm {
	font-size: 0.875rem;
}

.text-base {
	font-size: 1rem;
}

.text-lg {
	font-size: 1.125rem;
}

.text-xl {
	font-size: 1.25rem;
}

.text-2xl {
	font-size: 1.5rem;
}

.text-3xl {
	font-size: 1.875rem;
}

.text-4xl {
	font-size: 2.25rem;
}

.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

.font-extrabold {
	font-weight: 800;
}

.text-white {
	color: white;
}

.text-gray-400 {
	color: #9ca3af;
}

.text-gray-500 {
	color: #6b7280;
}

.text-gray-600 {
	color: #4b5563;
}

.text-gray-700 {
	color: #374151;
}

.text-red-500 {
	color: #FF385C;
}

.text-green-500 {
	color: #10b981;
}

.text-blue-500 {
	color: #3b82f6;
}

.text-blue-600 {
	color: #2563eb;
}

.bg-white {
	background-color: white;
}

.bg-gray-700 {
	background-color: #374151;
}

.bg-gray-800 {
	background-color: #1f2937;
}

.rounded-lg {
	border-radius: 0.5rem;
}

.rounded-xl {
	border-radius: 0.75rem;
}

.rounded-full {
	border-radius: 9999px;
}

.border-2 {
	border-width: 2px;
}

.border-gray-200 {
	border-color: #e5e7eb;
}

.border-gray-700 {
	border-color: #374151;
}

.border-b {
	border-bottom-width: 1px;
}

.border-t {
	border-top-width: 1px;
}

.border-gray-100 {
	border-color: #f3f4f6;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-5 {
	margin-bottom: 1.25rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mr-1 {
	margin-right: 0.25rem;
}

.mr-2 {
	margin-right: 0.5rem;
}

.mt-2 {
	margin-top: 0.5rem;
}

.mt-6 {
	margin-top: 1.5rem;
}

.mt-10 {
	margin-top: 2.5rem;
}

.mt-12 {
	margin-top: 3rem;
}

.mt-20 {
	margin-top: 5rem;
}

.pt-8 {
	padding-top: 2rem;
}

.p-5 {
	padding: 1.25rem;
}

.px-5 {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.px-6 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.py-2 {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.py-3 {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.sticky {
	position: sticky;
}

.top-0 {
	top: 0;
}

.right-3 {
	right: 0.75rem;
}

.right-6 {
	right: 1.5rem;
}

.bottom-6 {
	bottom: 1.5rem;
}

.z-50 {
	z-index: 50;
}

.z-100 {
	z-index: 100;
}

.h-52 {
	height: 13rem;
}

.hover\:text-white:hover {
	color: white;
}

.hover\:text-blue-600:hover {
	color: #2563eb;
}

.hover\:text-gray-900:hover {
	color: #111827;
}

.transition-colors {
	transition-property: color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.transition-all {
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.duration-200 {
	transition-duration: 200ms;
}

.duration-300 {
	transition-duration: 300ms;
}

.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.leading-relaxed {
	line-height: 1.625;
}

.opacity-0\.5 {
	opacity: 0.5;
}

/* Responsive grid */
@media (min-width: 768px) {
	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lg\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.xl\:grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.desktop-version {
	display: block;
}

.mobile-version {
	display: none;
}

/* Footer home view switcher: hide on desktop */
.mobile-footer-view-switcher {
	display: none;
}

/* ============================================
   Mobile Styles
   ============================================ */

@media (max-width: 767px) {
	.desktop-version {
		display: none !important;
	}
	
	/* Desktop header+nav never on mobile (avoids duplicate menu under mobile header) */
	.desktop-header-only {
		display: none !important;
	}
	
	.mobile-version {
		display: block;
	}

	/* Home view: show Grid (2-col) when "grid" mode; only main content, not desktop header */
	body.mobile-home-view-grid .mobile-home-carousel-view {
		display: none !important;
	}
	body.mobile-home-view-grid main .desktop-version {
		display: block !important;
	}
	/* Hide PC filter bar in mobile Grid view (no duplicate filter) */
	body.mobile-home-view-grid .listings-filters-bar {
		display: none !important;
	}
	/* H1 visible in Grid with top spacing */
	body.mobile-home-view-grid main .desktop-version .section-title {
		margin-top: 2rem;
		display: block;
	}
	body.mobile-home-view-grid .listings-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	/* Badges in Grid: do not force 50% min-width so they don't shift */
	body.mobile-home-view-grid .ad-card-content .flex.gap-2 > *,
	body.mobile-home-view-grid .ad-card-content .flex.gap-4 > * {
		min-width: auto;
		flex: 0 1 auto;
	}

	/* === Grid cards: вертикальные бейджи (один под другим) === */
	body.mobile-home-view-grid .listings-grid .ad-card {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 0;
	}

	body.mobile-home-view-grid .listings-grid .ad-card-image-wrapper {
		height: 200px;
		min-height: 200px;
		flex-shrink: 0;
		position: relative;
		overflow: hidden;
	}

	body.mobile-home-view-grid .listings-grid .ad-card-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		position: absolute;
		top: 0;
		left: 0;
	}

	body.mobile-home-view-grid .listings-grid .ad-card-content {
		display: flex;
		flex-direction: column;
		flex: 1;
		padding: 10px 12px 12px;
	}

	/* Заголовок (название) */
	body.mobile-home-view-grid .listings-grid .ad-card-content h3,
	body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-title {
		font-size: 13px;
		font-weight: 600;
		line-height: 1.3;
		margin: 0 0 4px 0;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Город (location) */
	body.mobile-home-view-grid .listings-grid .ad-card-content p,
	body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-location {
		font-size: 12px;
		color: #64748b;
		margin: 0 0 8px 0;
		display: flex;
		align-items: center;
		gap: 4px;
	}

	body.mobile-home-view-grid .listings-grid .ad-card-content p i,
	body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-location i {
		font-size: 11px;
		flex-shrink: 0;
	}

	/* Контейнер бейджей: вертикальная колонка */
	body.mobile-home-view-grid .listings-grid .ad-card-content .flex.gap-2,
	body.mobile-home-view-grid .listings-grid .ad-card-content > div:last-child {
		display: flex !important;
		flex-direction: column !important;
		gap: 5px;
		margin-top: auto;
		align-items: stretch;
	}

	/* Каждый бейдж — полная ширина, одна строка */
	body.mobile-home-view-grid .listings-grid .premium-badge,
	body.mobile-home-view-grid .listings-grid .badge {
		display: flex !important;
		align-items: center;
		justify-content: flex-start;
		gap: 6px;
		padding: 6px 10px !important;
		border-radius: 12px !important;
		font-size: 11px !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
		white-space: nowrap;
		height: 28px !important;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: ellipsis;
		width: 100%;
		flex-shrink: 0;
	}

	/* Иконки в бейджах */
	body.mobile-home-view-grid .listings-grid .premium-badge i,
	body.mobile-home-view-grid .listings-grid .premium-badge svg,
	body.mobile-home-view-grid .listings-grid .badge i,
	body.mobile-home-view-grid .listings-grid .badge svg {
		width: 13px !important;
		height: 13px !important;
		font-size: 13px !important;
		line-height: 1;
		flex-shrink: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Текст внутри бейджа */
	body.mobile-home-view-grid .listings-grid .premium-badge span,
	body.mobile-home-view-grid .listings-grid .badge span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		flex: 1;
	}

	/* Цвета бейджей */
	body.mobile-home-view-grid .listings-grid .badge-verified {
		background: linear-gradient(135deg, #10b981 0%, #059669 100%);
		color: white;
	}

	body.mobile-home-view-grid .listings-grid .badge-sponsored {
		background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
		color: #7c2d12;
	}

	body.mobile-home-view-grid .listings-grid .badge-available {
		background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
		color: white;
	}

	/* Адаптация для маленьких экранов (≤375px) */
	@media (max-width: 375px) {
		body.mobile-home-view-grid .listings-grid .ad-card-image-wrapper {
			height: 180px;
			min-height: 180px;
		}

		body.mobile-home-view-grid .listings-grid .ad-card-content {
			padding: 8px 10px 10px;
		}

		body.mobile-home-view-grid .listings-grid .ad-card-content h3,
		body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-title {
			font-size: 12px;
		}

		body.mobile-home-view-grid .listings-grid .ad-card-content p,
		body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-location {
			font-size: 11px;
			margin-bottom: 6px;
		}

		body.mobile-home-view-grid .listings-grid .premium-badge,
		body.mobile-home-view-grid .listings-grid .badge {
			padding: 5px 8px !important;
			font-size: 10px !important;
			height: 26px !important;
			gap: 5px;
		}

		body.mobile-home-view-grid .listings-grid .premium-badge i,
		body.mobile-home-view-grid .listings-grid .premium-badge svg,
		body.mobile-home-view-grid .listings-grid .badge i,
		body.mobile-home-view-grid .listings-grid .badge svg {
			width: 11px !important;
			height: 11px !important;
			font-size: 11px !important;
		}
	}

	/* Адаптация для средних экранов (414-767px) */
	@media (min-width: 414px) and (max-width: 767px) {
		body.mobile-home-view-grid .listings-grid .ad-card-content {
			padding: 11px 13px 13px;
		}

		body.mobile-home-view-grid .listings-grid .ad-card-content h3,
		body.mobile-home-view-grid .listings-grid .ad-card-content .ad-card-title {
			font-size: 13.5px;
		}

		body.mobile-home-view-grid .listings-grid .premium-badge,
		body.mobile-home-view-grid .listings-grid .badge {
			padding: 6px 11px !important;
			font-size: 11.5px !important;
			height: 29px !important;
		}
	}

	/* Footer home view switcher: show on mobile home */
	.mobile-footer-view-switcher {
		display: block;
	}

	/* Home view switcher (menu + footer): Carousel / List */
	.mobile-home-view-switcher {
		display: flex;
		gap: 0;
		border-radius: 12px;
		overflow: hidden;
		border: 2px solid rgba(255, 56, 92, 0.3);
		background: rgba(248, 250, 252, 0.9);
	}
	.mobile-home-view-switcher-in-menu {
		margin: 0 1rem 1rem;
	}
	.mobile-home-view-btn {
		flex: 1;
		padding: 10px 14px;
		border: none;
		background: transparent;
		color: #64748b;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		font-size: 14px;
		font-weight: 500;
		cursor: pointer;
		transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	}
	.mobile-home-view-btn:hover {
		background: rgba(255, 56, 92, 0.08);
		color: #FF385C;
	}
	.mobile-home-view-btn.active {
		background: #FF385C;
		color: #fff;
		font-weight: 600;
		border: 2px solid #E31C5F;
		box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
	}
	.mobile-home-view-btn i {
		font-size: 1rem;
	}
	.mobile-home-view-switcher-in-footer .mobile-home-view-btn {
		color: rgba(255, 255, 255, 0.9);
	}
	.mobile-home-view-switcher-in-footer .mobile-home-view-btn.active {
		background: #FF385C;
		color: #fff;
		border-color: #E31C5F;
	}

	.premium-footer {
		margin-top: 2rem;
		padding-bottom: 6rem;
	}
	
	body {
		overflow-x: hidden;
		overflow-y: auto;
		min-height: 100vh;
		min-height: 100dvh;
	}
	
	.mobile-header {
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		width: 100%;
	}

	/* Mobile home: Filters (collapsed) + "in [city]" above card slider */
	.mobile-listings-filters {
		padding-top: 4rem;
		padding-left: 1rem;
		padding-right: 1rem;
		padding-bottom: 1rem;
		width: 100%;
		box-sizing: border-box;
	}
	.mobile-listings-filters-trigger {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
		padding: 0.6rem 0;
		margin: 0;
		background: none;
		border: none;
		font-size: 1rem;
		font-weight: 600;
		color: #374151;
		cursor: pointer;
		text-align: left;
		-webkit-tap-highlight-color: transparent;
	}
	.mobile-listings-filters-trigger i:first-child {
		color: #6b7280;
	}
	.mobile-listings-filters-chevron {
		margin-left: auto;
		font-size: 0.75rem;
		color: #9ca3af;
		transition: transform 0.2s ease;
	}
	.mobile-listings-filters.mobile-listings-filters-panel-open .mobile-listings-filters-chevron {
		transform: rotate(180deg);
	}
	.mobile-listings-filters .mobile-listings-title {
		margin-top: 0.25rem;
		margin-bottom: 0;
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.3;
	}
	.mobile-listings-filters-panel {
		display: none;
		padding-top: 0.75rem;
	}
	.mobile-listings-filters.mobile-listings-filters-panel-open .mobile-listings-filters-panel {
		display: block;
	}
	.mobile-listings-filters .mobile-listings-filters-form {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		width: 100%;
	}
	.mobile-city-picker {
		position: relative;
		width: 100%;
	}
	.mobile-city-search {
		width: 100%;
		min-height: 44px;
		padding: 0.5rem 1rem 0.5rem 2.5rem;
		font-size: 1rem;
		border-radius: 0.5rem;
		border: 1px solid #d1d5db;
		box-sizing: border-box;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 10px center;
		background-size: 18px 18px;
	}
	.mobile-city-search::placeholder {
		color: #9ca3af;
	}
	.mobile-city-list {
		position: relative;
		margin-top: 0.25rem;
		max-height: 200px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		border: 1px solid #e5e7eb;
		border-radius: 0.5rem;
		background: #fff;
		box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	}
	.mobile-city-item {
		display: block;
		width: 100%;
		padding: 0.6rem 1rem;
		margin: 0;
		border: none;
		border-bottom: 1px solid #f3f4f6;
		background: none;
		font-size: 0.9375rem;
		text-align: left;
		color: #1f2937;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.mobile-city-item:last-child {
		border-bottom: none;
	}
	.mobile-city-item:hover,
	.mobile-city-item:focus {
		background: #f9fafb;
	}
	.mobile-city-item.mobile-city-item--hidden {
		display: none;
	}
	.mobile-listings-filters .mobile-listings-filters-form .premium-btn {
		min-height: 44px;
		padding: 0.5rem 1.25rem;
		align-self: flex-start;
	}

	.mobile-header-top {
		padding: 0.75rem 1rem;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.mobile-header-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
	}

	/* Hamburger Menu Button */
	.mobile-menu-toggle {
		background: transparent;
		border: none;
		padding: 8px;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		width: 32px;
		height: 32px;
		z-index: 1001;
	}

	.hamburger-line {
		width: 24px;
		height: 2px;
		background: #1f2937;
		border-radius: 2px;
		transition: all 0.3s ease;
	}

	.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
		transform: rotate(45deg) translate(6px, 6px);
	}

	.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
		opacity: 0;
	}

	.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
		transform: rotate(-45deg) translate(6px, -6px);
	}

	/* Logo */
	.mobile-logo {
		flex: 1;
		margin: 0;
		min-width: 0;
		text-align: center;
	}

	.mobile-logo a {
		display: inline-block;
		font-size: 1.25rem;
		font-weight: 700;
		text-decoration: none;
		background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.mobile-logo .logo-dot {
		background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
	}

	/* Header Actions */
	.mobile-header-actions {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.mobile-search-toggle,
	.mobile-user-icon {
		background: transparent;
		border: none;
		padding: 8px;
		cursor: pointer;
		color: #4b5563;
		font-size: 1.25rem;
		text-decoration: none;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: color 0.2s ease;
	}

	.mobile-search-toggle:hover,
	.mobile-user-icon:hover {
		color: #1f2937;
	}

	.mobile-search-toggle.active {
		color: #FF385C;
	}

	/* Search Bar */
	.mobile-header-search {
		padding: 0.5rem 1rem 0.75rem;
		display: block;
	}

	.mobile-header-search.hidden {
		display: none;
	}

	.mobile-header-search .premium-search {
		font-size: 14px;
		padding-right: 1rem;
	}

	/* Hide search button in mobile header - search works on Enter key */
	.mobile-header-search .premium-btn {
		display: none;
	}

	.mobile-header-search .search-suggestions {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-top: 0.5rem;
		z-index: 1001;
	}

	/* Mobile Menu Overlay */
	.mobile-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.mobile-menu-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	/* Mobile Menu Drawer: main background like site (#f8fafc), accents solid */
	.mobile-menu-drawer {
		position: fixed;
		top: 0;
		left: 0;
		width: 280px;
		max-width: 85vw;
		height: 100vh;
		background: #f8fafc;
		box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		z-index: 10000;
		display: flex;
		flex-direction: column;
	}

	.mobile-menu-overlay.active .mobile-menu-drawer {
		transform: translateX(0);
	}

	.mobile-menu-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 1rem;
		border-bottom: 1px solid #e5e7eb;
		background: #FF385C;
		color: white;
	}

	.mobile-menu-title {
		font-size: 1.25rem;
		font-weight: 700;
		margin: 0;
		color: white;
	}

	.mobile-menu-close {
		background: transparent;
		border: none;
		color: white;
		font-size: 1.5rem;
		cursor: pointer;
		padding: 4px 8px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Mobile Menu Navigation */
	.mobile-menu-nav {
		padding: 0;
		flex: 1;
		overflow-y: auto;
	}

	.mobile-menu-list {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mobile-menu-link {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 1rem;
		color: #1f2937;
		text-decoration: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
		transition: background 0.2s ease;
		font-weight: 500;
		background: transparent;
	}

	.mobile-menu-link:hover {
		background: #f1f5f9;
		text-decoration: none;
	}

	.mobile-menu-link i {
		width: 24px;
		text-align: center;
		color: #3b82f6;
		font-size: 1.125rem;
		flex-shrink: 0;
	}
	
	/* Highlight active menu item (like Dashboard) */
	.mobile-menu-list li.current-menu-item > .mobile-menu-link,
	.mobile-menu-list li.current_page_item > .mobile-menu-link {
		background: #FF385C;
		color: white;
	}
	
	.mobile-menu-list li.current-menu-item > .mobile-menu-link i,
	.mobile-menu-list li.current_page_item > .mobile-menu-link i {
		color: white;
	}

	.mobile-menu-link span {
		flex: 1;
	}

	.mobile-menu-link-primary {
		background: #FF385C;
		color: white;
		font-weight: 600;
	}

	.mobile-menu-link-primary:hover {
		background: #E31C5F;
	}

	.mobile-menu-link-primary i {
		color: white;
	}

	.mobile-menu-user-section {
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 2px solid #e5e7eb;
	}

	/* Отступ сверху для всего контента мобильной версии (под фиксированный хедер) */
	main.container {
		padding-top: 20%;
	}

	body.home main.container,
	body.front-page main.container {
		padding-top: 2.5rem;
		padding-bottom: 0;
	}

	/* Prevent body scroll when menu is open */
	body.mobile-menu-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
	}

	/* Carousel — компактная версия с видимыми краями соседних карточек */
	.carousel-container {
		position: relative;
		width: 100%;
		margin-top: 0;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		height: auto;
		overflow: visible;
	}

	/* Glide slider inside carousel */
	.carousel-container .glide {
		padding: 8px 0;
		margin-top: 0;
		height: auto;
	}
	.carousel-container .glide__track {
		height: auto;
		overflow: visible;
	}
	.carousel-container .glide__slides {
		height: auto;
		display: flex;
		align-items: center;
	}
	.carousel-container .glide__slide {
		display: flex;
		justify-content: center;
		align-items: center;
		height: auto;
		padding: 8px 0;
		opacity: 0.5;
		transform: scale(0.85);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}
	.carousel-container .glide__slide--active {
		opacity: 1;
		transform: scale(1);
		z-index: 2;
	}
	
	.mobile-card-link {
		display: block;
		text-decoration: none;
		color: inherit;
		width: 100%;
	}

	.mobile-card {
		width: 100%;
		max-width: 340px;
		display: flex;
		flex-direction: column;
		height: auto;
		background: white;
		border-radius: 24px;
		overflow: hidden;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
		position: relative;
		cursor: grab;
		user-select: none;
		transform-origin: center center;
		transition: transform 0.3s ease;
		margin: 0 auto;
	}
	.mobile-card:active {
		cursor: grabbing;
	}
	
	.mobile-card-image-wrapper {
		width: 100%;
		height: 420px;
		position: relative;
		overflow: hidden;
		background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
		border-radius: 24px 24px 0 0;
		flex-shrink: 0;
	}
	.mobile-card-image {
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		object-fit: cover;
		object-position: center center;
	}
	
	.mobile-card-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
		pointer-events: none;
	}
	
	.mobile-card-badge {
		position: absolute;
		top: 16px;
		padding: 8px 16px;
		border-radius: 20px;
		font-weight: 700;
		font-size: 18px;
		text-transform: uppercase;
		letter-spacing: 2px;
		z-index: 100;
		opacity: 0.95 !important;
		transition: all 0.3s ease;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		cursor: pointer;
		pointer-events: auto;
		user-select: none;
		border: 2px solid white;
	}
	
	.mobile-card-badge.like {
		right: 16px;
		background: linear-gradient(135deg, #10b981 0%, #059669 100%);
		color: white;
	}
	
	.mobile-card-badge.nope {
		left: 16px;
		background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
		color: white;
	}
	
	.mobile-card-badge:hover {
		opacity: 1 !important;
		transform: scale(1.05);
	}
	
	.mobile-card-badge:active {
		transform: scale(0.95);
	}
	
	.mobile-card-content {
		padding: 14px 18px 16px;
		flex: 0 0 auto;
		display: flex;
		flex-direction: column;
		background: white;
		overflow: visible;
		gap: 8px;
	}
	
	.mobile-card-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 0;
	}
	
	.mobile-card-title {
		font-size: 16px;
		font-weight: 700;
		color: #1e293b;
		margin: 0;
		line-height: 1.3;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	
	.mobile-card-name {
		font-size: 22px;
		font-weight: 800;
		color: #1e293b;
		margin: 0;
		line-height: 1.2;
	}
	
	.mobile-card-location {
		font-size: 14px;
		color: #64748b;
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 4px;
	}
	
	.mobile-card-location i {
		color: #FF385C;
	}
	
	.mobile-badge {
		display: inline-block;
		padding: 4px 10px;
		border-radius: 12px;
		font-size: 12px;
		font-weight: 600;
		margin-right: 6px;
		margin-bottom: 4px;
	}
	
	.mobile-badge.category {
		background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
		color: white;
	}
	
	.mobile-badge.verified {
		background: linear-gradient(135deg, #10b981 0%, #059669 100%);
		color: white;
	}
	
	.mobile-badge.sponsored {
		background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
		color: white;
	}
	
	.mobile-card-age {
		font-size: 22px;
		font-weight: 600;
		color: #64748b;
		line-height: 1.2;
	}
	
	.mobile-card-info {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
	}
	
	.mobile-card-info-item {
		font-size: 13px;
		color: #64748b;
		display: flex;
		align-items: center;
		gap: 4px;
		line-height: 1.3;
	}
	
	.badge {
		display: inline-flex;
		align-items: center;
		padding: 4px 10px;
		border-radius: 12px;
		font-size: 12px;
		font-weight: 600;
	}

	.mobile-card-badges {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin-top: 10px;
	}
	.mobile-card-badges .badge {
		padding: 4px 10px;
		border-radius: 12px;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
	}
	
	/* Liked and Favorite card styles */
	.mobile-card.liked {
		box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 10px 40px rgba(0, 0, 0, 0.2);
		animation: pulse-liked 2s ease-in-out infinite;
	}
	
	.mobile-card.favorite {
		box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), 0 10px 40px rgba(0, 0, 0, 0.2);
		border: 2px solid rgba(139, 92, 246, 0.8);
	}
	
	@keyframes pulse-liked {
		0%, 100% {
			box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 10px 40px rgba(0, 0, 0, 0.2);
		}
		50% {
			box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 10px 40px rgba(0, 0, 0, 0.2);
		}
	}
	
	.liked-indicator,
	.favorite-indicator {
		position: absolute;
		top: 20px;
		z-index: 10;
		background: rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	}
	
	.liked-indicator {
		right: 20px;
		color: #10b981;
	}
	
	.favorite-indicator {
		left: 20px;
		color: #8b5cf6;
	}
	
	/* PC version card styles */
	.ad-card.liked {
		box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), var(--card-shadow);
		animation: pulse-liked-pc 2s ease-in-out infinite;
	}
	
	.ad-card.favorite {
		box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), var(--card-shadow);
		border: 2px solid rgba(139, 92, 246, 0.6);
	}
	
	@keyframes pulse-liked-pc {
		0%, 100% {
			box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), var(--card-shadow);
		}
		50% {
			box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), var(--card-shadow);
		}
	}
	
	.ad-card-image-wrapper {
		position: relative;
	}
	
	.ad-card-actions {
		position: absolute;
		top: 10px;
		right: 10px;
		display: flex;
		gap: 8px;
		opacity: 0.9;
		transition: opacity 0.3s ease;
		z-index: 4;
	}
	
	.ad-card:hover .ad-card-actions {
		opacity: 1;
	}
	
	.ad-card-action-btn {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		border: none;
		background: rgba(255, 255, 255, 0.9);
		color: #64748b;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
		transition: all 0.3s ease;
	}
	
	.ad-card-action-btn:hover {
		transform: scale(1.1);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	}
	
	.ad-card-like-btn.active {
		background: #10b981;
		color: white;
	}
	
	.ad-card-favorite-btn.active {
		background: #8b5cf6;
		color: white;
	}
	
	.mobile-action-buttons {
		position: fixed;
		bottom: 16px;
		left: 0;
		right: 0;
		display: flex;
		justify-content: center;
		gap: 12px;
		z-index: 100;
		padding: 0 20px;
	}
	
	.mobile-action-btn {
		width: 56px;
		height: 56px;
		border-radius: 50%;
		border: none;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 22px;
		cursor: pointer;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
		transition: all 0.3s ease;
		flex-shrink: 0;
	}
	
	.mobile-action-btn:active {
		transform: scale(0.9);
	}
	
	.mobile-btn-nope {
		background: white;
		color: #FF385C;
	}
	
	.mobile-btn-super-like {
		background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
		color: white;
		width: 48px;
		height: 48px;
		font-size: 20px;
	}
	
	.mobile-btn-like {
		background: white;
		color: #10b981;
	}
	
	.mobile-btn-info {
		background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
		color: white;
		width: 48px;
		height: 48px;
		font-size: 20px;
	}
	
	.mobile-empty-state {
		text-align: center;
		padding: 40px 20px;
		color: #64748b;
	}
	
	.mobile-empty-state-icon {
		font-size: 64px;
		margin-bottom: 20px;
		opacity: 0.5;
	}
	
	.mobile-empty-state-text {
		font-size: 18px;
		font-weight: 600;
	}
}

@media (max-width: 375px) {
	.mobile-card {
		max-width: 300px;
	}
	.mobile-card-image-wrapper {
		height: 380px;
	}
	.mobile-card-name,
	.mobile-card-age {
		font-size: 20px;
	}
}

@media (min-width: 414px) and (max-width: 767px) {
	.mobile-card {
		max-width: 380px;
	}
	.mobile-card-image-wrapper {
		height: 460px;
	}
}

@media (min-width: 768px) {
	.ad-card-image-wrapper {
		height: 12rem;
	}

	.md\:grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ============================================
   WordPress Compatibility
   ============================================ */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	z-index: 999999;
}

.skip-link:focus {
	top: 0;
}

/* ============================================
   Profile Page (matches profile.html prototype)
   ============================================ */

.profile-header-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-image-container {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-image-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
	z-index: 1;
}

.profile-stats-bar {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
	padding: 16px;
	border-radius: 16px;
	background: rgba(248, 250, 252, 0.8);
	border: 1px solid rgba(226, 232, 240, 0.5);
	transition: all 0.3s ease;
}

.info-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-radius: 24px;
	padding: 24px;
	color: white;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	position: relative;
	overflow: hidden;
}

.pricing-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.pricing-card > * {
	position: relative;
	z-index: 2;
}

.contact-btn {
	background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
	border: none;
	border-radius: 16px;
	padding: 16px 24px;
	font-weight: 600;
	color: white;
	transition: all 0.3s ease;
	box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.contact-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.gallery-item {
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gallery-item:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbnail {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.thumbnail.active {
	outline: 3px solid rgba(239, 68, 68, 0.85);
	outline-offset: 2px;
}

/* ============================================
   Front-end "button" helpers
   (Used by dashboard/profile-edit templates)
   ============================================ */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0.875rem;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	color: #1e293b !important;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 1);
	color: #0f172a !important;
}

.button:active {
	transform: translateY(0);
}

.button-primary {
	background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
	border: none;
	color: #ffffff !important;
	box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
	font-weight: 600;
}

.button-primary:hover {
	box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
	color: #ffffff !important;
	background: linear-gradient(135deg, #E31C5F 0%, #E31C5F 100%);
}

.button-small {
	padding: 0.5rem 0.9rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
}

/* ============================================
   Profile Page (profile.html parity)
   ============================================ */
.main-image {
	width: 100%;
	height: 600px;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.thumbnail {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 3px solid transparent;
	display: block;
}
.thumbnail:hover {
	transform: scale(1.05);
	border-color: #FF385C;
}
.thumbnail.active {
	border-color: #FF385C;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Галерея профиля: строго один горизонтальный ряд, каждая миниатюра по 25% (как WooCommerce) */
.profile-gallery-thumbs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	width: 100%;
	gap: 0.75rem;
}
.profile-gallery-thumb {
	flex: 1 1 0;
	min-width: 0;
	width: 25%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
}
.profile-gallery-thumb .thumbnail {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: unset !important;
	object-fit: cover;
	display: block;
}
/* Перебиваем любые height у .thumbnail на странице профиля */
body.single-model_profile .profile-gallery-thumb .thumbnail {
	height: 100% !important;
	width: 100% !important;
	aspect-ratio: unset !important;
	object-fit: cover;
	min-height: 0;
}
/* Fallback: если ещё старая разметка (div.grid.grid-cols-4 > img.thumbnail) — всё равно в ряд и квадраты */
body.single-model_profile .profile-gallery-main + div.grid.grid-cols-4.mb-8,
body.single-model_profile .profile-gallery-main + div.grid.mb-8 {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 0.75rem;
	width: 100%;
}
body.single-model_profile .profile-gallery-main + div.grid.mb-8 > .thumbnail {
	width: 25% !important;
	flex: 1 1 0 !important;
	min-width: 0;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

/* Profile gallery (click to open, swipe/next/prev) */
.profile-gallery-main {
	position: relative;
	cursor: zoom-in;
}

.profile-gallery-open {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(15, 23, 42, 0.55);
	color: #ffffff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.profile-gallery-open:hover {
	background: rgba(15, 23, 42, 0.65);
}

.escorts-gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
}

.escorts-gallery-modal.hidden {
	display: none;
}

.escorts-gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.escorts-gallery-content {
	position: relative;
	z-index: 10051;
	width: min(980px, 92vw);
	height: min(720px, 82vh);
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	grid-template-rows: 56px 1fr 48px;
	align-items: center;
	overflow: hidden;
}

.escorts-gallery-img {
	grid-column: 1 / 4;
	grid-row: 1 / 4;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.escorts-gallery-btn {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.10);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.escorts-gallery-btn:hover {
	background: rgba(255, 255, 255, 0.16);
}

.escorts-gallery-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10052;
}

.escorts-gallery-prev {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10052;
}

.escorts-gallery-next {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10052;
}

.escorts-gallery-counter {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	z-index: 10052;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.55);
	color: #ffffff;
	font-size: 13px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

body.escorts-gallery-open {
	overflow: hidden;
}
.info-card {
	background: white;
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}
.info-card:hover {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
	transform: translateY(-5px);
}
.service-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	margin: 4px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	color: #0369a1;
	border: 2px solid #bae6fd;
}
a.service-badge {
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
a.service-badge:hover {
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	border-color: #7dd3fc;
	color: #0369a1;
}
.price-card {
	background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
	color: white;
	border-radius: 16px;
	padding: 1.5rem;
	text-align: center;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.price-amount {
	font-size: 2.5rem;
	font-weight: 800;
	margin: 0.5rem 0;
}
.review-card {
	background: white;
	border-radius: 16px;
	padding: 1.5rem;
	margin-bottom: 1rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border-left: 4px solid #FF385C;
}
.star-rating {
	color: #fbbf24;
}
.verified-badge {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
	line-height: 1.5;
	vertical-align: middle;
	height: auto;
}
.available-badge {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	animation: pulse 2s infinite;
	line-height: 1.5;
	vertical-align: middle;
	height: auto;
}
.stats-item {
	text-align: center;
	padding: 1rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 12px;
}
.stats-number {
	font-size: 2rem;
	font-weight: 800;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.section-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid;
	border-image: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%) 1;
}

.profile-page {
	width: 100%;
}

.container {
	max-width: 1536px;
}

.profile-header-card {
	padding: 2rem;
	text-align: left;
}

.profile-header {
	width: 100%;
}

.profile-header-left {
	flex: 1;
	min-width: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	margin-right: auto;
}

.profile-title {
	margin-bottom: 0.5rem;
}

.profile-header-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
}

.profile-cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	align-self: center;
}

.profile-rating-line {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
	line-height: 1.5;
	vertical-align: middle;
	height: auto;
}

.profile-badges {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: flex-start;
	line-height: 1.5;
	height: auto;
}

.profile-badges > * {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 1.5;
	margin: 0;
}
.profile-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.profile-stats-grid .stats-item {
	width: 100%;
}

.profile-cta {
	flex-wrap: wrap;
}

.profile-cta .contact-btn,
.profile-cta .premium-btn {
	white-space: nowrap;
}
.contact-btn {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.contact-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

body.single-model_profile #profileContactCard {
	overflow: hidden;
}

body.single-model_profile #profileContactCard #showContactBtn,
body.single-model_profile #profileContactCard #callNowLink {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.single-model_profile #profileContactCard #contactBox {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.single-model_profile #profileContactCard #contactBox .space-y-3 > div > div:last-child {
	min-width: 0;
	flex: 1;
}

body.single-model_profile #escortsPhone,
body.single-model_profile #escortsContactValue {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 768px) {
	.main-image { height: 400px; }
}

@media (max-width: 767px) {
	.profile-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-model_profile .profile-header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	body.single-model_profile .profile-cta {
		flex-direction: column;
		width: 100%;
	}

	body.single-model_profile .profile-cta {
		margin-left: 0;
	}

	body.single-model_profile .profile-cta .contact-btn,
	body.single-model_profile .profile-cta .premium-btn {
		width: 100%;
		justify-content: center;
	}

	body.single-model_profile #profileContactCard.info-card {
		padding: 1rem;
	}

	body.single-model_profile #profileContactCard #showContactBtn,
	body.single-model_profile #profileContactCard #callNowLink {
		padding-left: 1rem;
		padding-right: 1rem;
		line-height: 1.2;
	}

	body.single-model_profile #profileContactCard #contactBox .space-y-3 > div {
		padding: 0.75rem;
	}

	body.single-model_profile .profile-gallery-thumbs {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 0.5rem;
	}
	body.single-model_profile .profile-gallery-thumb .thumbnail {
		height: 100% !important;
		width: 100% !important;
	}
}

@media (max-width: 480px) {
	.profile-stats-grid {
		grid-template-columns: 1fr;
	}

	body.single-model_profile .profile-gallery-thumbs {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 0.5rem;
	}
	body.single-model_profile .profile-gallery-thumb .thumbnail {
		height: 100% !important;
		width: 100% !important;
	}
}

/* ============================================
   Mobile Cards (index slider)
   ============================================ */
.mobile-badge.available {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
}

/* ============================================
   Universal Responsive Styles for Pages
   ============================================ */

/* Container adjustments for mobile */
@media (max-width: 767px) {
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	.max-w-5xl,
	.max-w-6xl,
	.max-w-7xl {
		max-width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	/* Page titles */
	h1 {
		font-size: 1.75rem;
		line-height: 1.3;
	}
	
	h2 {
		font-size: 1.5rem;
		line-height: 1.3;
	}
	
	h3 {
		font-size: 1.25rem;
		line-height: 1.3;
	}
	
	/* Cards and containers */
	.bg-white {
		padding: 1rem;
	}
	
	.rounded-2xl {
		border-radius: 1rem;
	}
	
	/* Forms */
	form input[type="text"],
	form input[type="email"],
	form input[type="password"],
	form input[type="tel"],
	form input[type="number"],
	form input[type="date"],
	form input[type="time"],
	form select,
	form textarea {
		width: 100%;
		padding: 12px;
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	form label {
		display: block;
		margin-bottom: 0.5rem;
		font-weight: 500;
	}
	
	/* Buttons */
	.button,
	button.button,
	input[type="submit"],
	button[type="submit"] {
		width: 100%;
		padding: 12px 20px;
		font-size: 16px;
		margin-bottom: 0.5rem;
	}
	
	.button.button-small {
		padding: 8px 16px;
		font-size: 14px;
	}
	
	/* Grid layouts */
	.grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.grid.grid-cols-2,
	.grid.grid-cols-3,
	.grid.grid-cols-4 {
		grid-template-columns: 1fr;
	}
	
	/* Flex layouts */
	.flex {
		flex-wrap: wrap;
	}
	
	.flex.flex-col {
		flex-direction: column;
	}
	
	/* Tables */
	table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: 100%;
	}
	
	table thead,
	table tbody,
	table tr {
		display: table;
		width: 100%;
		table-layout: fixed;
	}
	
	table th,
	table td {
		padding: 8px 4px;
		font-size: 14px;
		word-wrap: break-word;
	}
	
	/* Spacing adjustments */
	.space-y-3 > * + *,
	.space-y-4 > * + *,
	.space-y-6 > * + * {
		margin-top: 0.75rem;
	}
	
	.mb-4,
	.mb-6,
	.mb-8 {
		margin-bottom: 1rem;
	}
	
	.mt-4,
	.mt-6,
	.mt-8 {
		margin-top: 1rem;
	}
	
	.py-8,
	.py-10 {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
	
	.px-4,
	.px-6,
	.px-8 {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	/* Text sizes */
	.text-3xl {
		font-size: 1.75rem;
	}
	
	.text-4xl {
		font-size: 2rem;
	}
	
	.text-2xl {
		font-size: 1.5rem;
	}
	
	.text-xl {
		font-size: 1.25rem;
	}
	
	/* Image galleries */
	.gallery,
	.image-gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
	
	/* Modals */
	.modal,
	.modal-content {
		width: 95%;
		max-width: 95%;
		margin: 1rem auto;
		padding: 1rem;
	}
	
	/* Tabs (universal) */
	.tabs,
	.tab-list {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
	}
	
	.tab,
	.tab-button {
		white-space: nowrap;
		flex-shrink: 0;
		padding: 10px 16px;
		font-size: 14px;
	}
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
	.container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	
	.max-w-5xl {
		max-width: 90%;
	}
	
	.max-w-6xl {
		max-width: 95%;
	}
	
	.max-w-7xl {
		max-width: 100%;
	}
	
	.grid.grid-cols-3,
	.grid.grid-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	form input[type="text"],
	form input[type="email"],
	form input[type="password"],
	form select,
	form textarea {
		font-size: 16px;
	}
	
	.button {
		padding: 12px 24px;
	}
}

/* Large screens - ensure proper max-width */
@media (min-width: 1024px) {
	.container {
		max-width: 1536px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Page-specific responsive styles */
@media (max-width: 767px) {
	/* Create/Edit Listing pages */
	.create-listing-page,
	.booking-calendar-page {
		padding: 1rem;
	}
	
	.create-listing-page .bg-white,
	.booking-calendar-page .bg-white {
		padding: 1rem;
	}
	
	/* Form groups */
	.form-group,
	.space-y-4 > *,
	.space-y-6 > * {
		margin-bottom: 1rem;
	}
	
	/* File upload areas */
	.upload-area,
	.image-upload-area {
		padding: 1rem;
		min-height: 150px;
	}
	
	/* Image galleries in forms */
	.image-gallery-preview,
	.media-gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
	
	/* Calendar */
	.fc,
	.fullcalendar {
		font-size: 12px;
	}
	
	.fc-toolbar {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.fc-button {
		padding: 6px 12px;
		font-size: 12px;
	}
	
	/* Profile settings */
	.profile-settings-form {
		padding: 1rem;
	}
	
	.profile-settings-form .form-row {
		flex-direction: column;
		margin-bottom: 1rem;
	}
	
	/* Suspended page */
	.suspended-page {
		padding: 1rem;
	}
	
	.suspended-page .bg-white {
		padding: 1.5rem 1rem;
	}
	
	/* Message sent, profile created pages */
	.page-message-sent,
	.page-profile-created {
		padding: 1rem;
		text-align: center;
	}
	
	/* Wide tables - make scrollable */
	.widefat {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.widefat thead,
	.widefat tbody,
	.widefat tr {
		display: table;
		width: 100%;
		table-layout: fixed;
	}
	
	.widefat th,
	.widefat td {
		padding: 8px 4px;
		font-size: 13px;
	}
	
	/* Card layouts */
	.card,
	.ad-card {
		margin-bottom: 1rem;
	}
	
	/* Action buttons row */
	.flex.gap-2,
	.flex.gap-4 {
		flex-wrap: wrap;
	}
	
	.flex.gap-2 > *,
	.flex.gap-4 > * {
		flex: 1 1 auto;
		min-width: calc(50% - 0.25rem);
	}
	
	/* Text alignment */
	.text-center {
		text-align: center;
	}
	
	.text-left {
		text-align: left;
	}
	
	/* Hide on mobile if needed */
	.hide-mobile {
		display: none !important;
	}
	
	/* Show on mobile only */
	.show-mobile {
		display: block !important;
	}
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
	.create-listing-page,
	.booking-calendar-page {
		padding: 1.5rem;
	}
	
	.grid.grid-cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.grid.grid-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.image-gallery-preview,
	.media-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Ensure viewport meta tag is respected */
@media (max-width: 767px) {
	html {
		-webkit-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
	}
	
	body {
		font-size: 16px; /* Prevents zoom on iOS */
		line-height: 1.5;
	}
	
	/* Prevent horizontal scroll */
	body,
	html {
		overflow-x: hidden;
		max-width: 100%;
	}
	
	img,
	video,
	iframe {
		height: auto;
		max-width: 100%;
	}
}

/* ============================================
   Toast Notifications
   ============================================ */

.escorts-toast {
	position: fixed;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 300px;
	max-width: 90%;
	padding: 16px 20px;
	background: #10b981;
	color: white;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: translateY(-20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.escorts-toast.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.escorts-toast-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.escorts-toast-content i {
	font-size: 20px;
	flex-shrink: 0;
}

.escorts-toast-content span {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.escorts-toast-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin-left: 16px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.escorts-toast-close:hover {
	opacity: 1;
}

.escorts-toast-close:focus {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Desktop: top-right */
@media (min-width: 768px) {
	.escorts-toast {
		top: 20px;
		right: 20px;
		left: auto;
		bottom: auto;
		transform: translateX(100%);
		max-width: 400px;
	}
	
	.escorts-toast.show {
		transform: translateX(0);
	}
}

/* Mobile: bottom-center */
@media (max-width: 767px) {
	.escorts-toast {
		bottom: 20px;
		left: 50%;
		right: auto;
		top: auto;
		transform: translate(-50%, 20px);
		width: calc(100% - 40px);
		max-width: 400px;
	}
	
	.escorts-toast.show {
		transform: translate(-50%, 0);
	}
}

/* Success variant (green) */
.escorts-toast-success {
	background: #10b981;
}

/* Error variant (red) - for future use */
.escorts-toast-error {
	background: #FF385C;
}

/* Warning variant (yellow) - for future use */
.escorts-toast-warning {
	background: #f59e0b;
	color: #1f2937;
}

/* Info variant (blue) - for future use */
.escorts-toast-info {
	background: #3b82f6;
}

