/**
 * Listdom WPGIS Theme Adaptation
 * Адаптация оформления плагина listdom по подобию плагина wpgis
 * Сохраняет размеры и компактность текущего расположения элементов
 */

/* Основные стили - шрифт и цвета в стиле wpgis */
.lsd-dashboard,
.lsd-widget,
.lsd-skin-wrapper,
.lsd-box-white,
.lsd-box-attribute-upsert,
.lsd-alert {
	font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
	color: #202124;
	line-height: 1.5;
}

/* Дашборд - карточки в стиле context export (деликатные рамки) */
.lsd-dashboard {
	background: #fff;
}

.lsd-dashboard .lsd-box-white,
.lsd-dashboard .lsd-box-attribute-upsert {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

.lsd-dashboard .lsd-box-white:hover,
.lsd-dashboard .lsd-box-attribute-upsert:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14);
	transform: translateY(-2px);
}

/* Заголовки в стиле wpgis */
.lsd-dashboard h1,
.lsd-dashboard h2,
.lsd-dashboard h3 {
	font-weight: 500;
	color: #202124;
}

.lsd-dashboard h2 {
	font-size: 16px;
	margin: 0 0 12px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8eaed;
}

/* Виджеты - компактные карточки в стиле context export */
.lsd-widget {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	margin-bottom: 16px;
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

.lsd-widget:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14);
	transform: translateY(-2px);
}

.lsd-widget .widget-title {
	font-size: 14px;
	font-weight: 500;
	color: #202124;
	margin: 0 0 10px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e8eaed;
}

/* Карты - сохранение размеров в стиле context export */
.lsd-skin-wrapper .lsd-map,
.lsd-widget .lsd-map {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
}

/* Скины - обертки в стиле context export */
.lsd-skin-wrapper {
	background: #fff;
	border: none;
	border-radius: 18px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7), 0 24px 48px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

.lsd-skin-wrapper:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.8), 0 28px 60px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

/* Уведомления в стиле wpgis */
.lsd-alert {
	border-left: 3px solid;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 16px 0;
	font-size: 13px;
	border-right: none;
	border-top: none;
	border-bottom: none;
}

.lsd-alert.lsd-success {
	border-color: #34a853;
	background: #e8f5e9;
	color: #1e7e34;
}

.lsd-alert.lsd-error {
	border-color: #ea4335;
	background: #fce8e6;
	color: #c5221f;
}

.lsd-alert.lsd-warning {
	border-color: #fbbc04;
	background: #fef7e0;
	color: #b06000;
}

.lsd-alert.lsd-info {
	border-color: #1a73e8;
	background: #e8f0fe;
	color: #174ea6;
}

/* Формы - поля ввода */
.lsd-form-row input[type="text"],
.lsd-form-row input[type="number"],
.lsd-form-row input[type="email"],
.lsd-form-row input[type="url"],
.lsd-form-row textarea,
.lsd-form-row select,
.lsd-box-attribute-upsert input[type="text"],
.lsd-box-attribute-upsert input[type="number"],
.lsd-box-attribute-upsert select {
	border-radius: 12px;
	border: 1px solid rgba(226, 232, 240, 0.6);
	padding: 10px 12px;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	background-clip: padding-box;
	-webkit-background-clip: padding-box;
}

.lsd-form-row input[type="text"]:focus,
.lsd-form-row input[type="number"]:focus,
.lsd-form-row input[type="email"]:focus,
.lsd-form-row input[type="url"]:focus,
.lsd-form-row textarea:focus,
.lsd-form-row select:focus,
.lsd-box-attribute-upsert input[type="text"]:focus,
.lsd-box-attribute-upsert input[type="number"]:focus,
.lsd-box-attribute-upsert select:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
	outline: none;
}

/* Кнопки используют стандартные стили плагина listdom */

/* Таблицы в стиле wpgis */
.lsd-dashboard table,
.lsd-skin-wrapper table {
	margin: 0;
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	border: 1px solid #dadce0;
	border-radius: 8px;
	overflow: hidden;
}

.lsd-dashboard table th,
.lsd-skin-wrapper table th {
	font-weight: 500;
	background: #f8f9fa;
	color: #5f6368;
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e8eaed;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lsd-dashboard table td,
.lsd-skin-wrapper table td {
	padding: 10px 12px;
	border-bottom: 1px solid #f1f3f4;
	color: #202124;
}

.lsd-dashboard table tbody tr:hover,
.lsd-skin-wrapper table tbody tr:hover {
	background: #f8f9fa;
}

.lsd-dashboard table tbody tr:last-child td,
.lsd-skin-wrapper table tbody tr:last-child td {
	border-bottom: none;
}

/* Списки в стиле wpgis */
.lsd-dashboard ul,
.lsd-widget ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.lsd-dashboard ul li,
.lsd-widget ul li {
	color: #202124;
	line-height: 1.5;
}

/* Карточки списков в дашборде в стиле context export */
.lsd-dashboard-listings-list-items {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lsd-dashboard-listings-list-items li {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

.lsd-dashboard-listings-list-items li:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14);
	transform: translateY(-2px);
}

/* Фильтры статусов */
.lsd-dashboard-listing-status-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px 0;
	padding: 0;
	list-style: none;
}

.lsd-dashboard-listing-status-filter li {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	box-shadow: none;
}

.lsd-dashboard-listing-status-filter a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid #dadce0;
	background: #fff;
	color: #5f6368;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.2s ease;
}

.lsd-dashboard-listing-status-filter a:hover {
	background: #f8f9fa;
	border-color: #1a73e8;
	color: #1a73e8;
}

/* Меню дашборда в стиле context export */
.lsd-dashboard-menus-wrapper {
	background: #fff;
	border: none;
	border-radius: 18px;
	padding: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7), 0 24px 48px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

.lsd-dashboard-menus-wrapper ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lsd-dashboard-menus-wrapper ul li {
	margin: 0 0 8px 0;
	padding: 0;
	background: none;
	border: none;
	box-shadow: none;
}

.lsd-dashboard-menus-wrapper ul li a {
	display: block;
	padding: 10px 12px;
	border-radius: 4px;
	color: #5f6368;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}

.lsd-dashboard-menus-wrapper ul li a:hover {
	background: #f8f9fa;
	color: #1a73e8;
}

/* Формы дашборда в стиле context export */
.lsd-dashboard-form {
	background: #fff;
	border: none;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7), 0 24px 48px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

.lsd-dashboard-form .lsd-dashboard-title input {
	font-size: 18px;
	font-weight: 500;
	color: #202124;
	border: none;
	border-bottom: 2px solid #e8eaed;
	border-radius: 0;
	padding: 12px 0;
	margin-bottom: 20px;
	width: 100%;
	transition: border-color 0.2s ease;
}

.lsd-dashboard-form .lsd-dashboard-title input:focus {
	border-bottom-color: #1a73e8;
	outline: none;
	box-shadow: none;
}

/* Пагинация */
.lsd-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 20px 0;
}

.lsd-pagination a,
.lsd-pagination span {
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #dadce0;
	background: #fff;
	color: #5f6368;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.2s ease;
}

.lsd-pagination a:hover {
	background: #f8f9fa;
	border-color: #1a73e8;
	color: #1a73e8;
}

.lsd-pagination .current {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
}

/* Чекбоксы и радиокнопки */
.lsd-form-row input[type="checkbox"],
.lsd-form-row input[type="radio"],
.lsd-box-attribute-upsert input[type="checkbox"],
.lsd-box-attribute-upsert input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
}

/* Описания полей */
.lsd-form-row .description,
.lsd-box-attribute-upsert .description {
	color: #5f6368;
	font-size: 12px;
	margin-top: 6px;
}

/* Модальные окна и диалоги */
.lsd-modal,
#lsd-deactivate-feedback-dialog-wrapper {
	font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

#lsd-deactivate-feedback-dialog-form {
	border-radius: 8px;
	box-shadow: 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12), 0 5px 5px -3px rgba(0,0,0,.2);
}

/* Адаптивность - сохранение компактности и максимальная ширина на мобильных */
@media (max-width: 782px) {
	/* Убираем все отступы у основных контейнеров WordPress */
	body .site-content,
	body .content-area,
	body .entry-content,
	body .wp-block-group,
	body .wp-block-columns,
	body .wp-block-column {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	
	.lsd-dashboard .lsd-row {
		flex-direction: column;
		margin: 0 !important;
		padding: 0 !important;
	}
	
	.lsd-dashboard .lsd-col-2,
	.lsd-dashboard .lsd-col-10 {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	.lsd-widget {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	.lsd-dashboard-form {
		padding: 10px !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 12px !important;
		box-sizing: border-box;
	}
	
	.lsd-dashboard .lsd-box-white,
	.lsd-dashboard .lsd-box-attribute-upsert {
		padding: 10px !important;
		border-radius: 12px !important;
		margin: 0 0 8px 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Поисковые модули - минимальные отступы */
	.lsd-search-module,
	.lsd-search {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Все карточки и виджеты - на всю ширину */
	.lsd-box-white,
	.lsd-box-attribute-upsert,
	.lsd-alllistings-widget,
	.lsd-taxonomy-shortcode-wrapper.lsd-widget {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
}

/* Сохранение размеров карт и виджетов */
.lsd-skin-wrapper .lsd-map,
.lsd-widget .lsd-map {
	height: auto;
	min-height: 300px;
}

.lsd-halfmap-view-map-section-wrapper .lsd-map {
	height: 100%;
}

/* Стили для элементов поиска в стиле context export */
.lsd-search-module,
.lsd-search {
	background: #fff;
	border: none;
	border-radius: 18px;
	padding: 16px;
	margin-bottom: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7), 0 24px 48px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

/* Контейнеры форм поиска */
.lsd-search-devices-wrapper,
.lsd-search-fields-device,
.lsd-search-filters {
	overflow: hidden;
	position: relative;
}

/* Строки поиска */
.lsd-search-row,
.lsd-search-more-options {
	overflow: visible;
	position: relative;
}

/* Внутренние элементы поиска - корректное скругление */
.lsd-search-module input[type="text"],
.lsd-search-module input[type="number"],
.lsd-search-module input[type="email"],
.lsd-search-module select,
.lsd-search-module textarea,
.lsd-search input[type="text"],
.lsd-search input[type="number"],
.lsd-search input[type="email"],
.lsd-search select,
.lsd-search textarea {
	border-radius: 12px;
	border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Контейнеры полей поиска */
.lsd-search-module .lsd-search-field,
.lsd-search-module .lsd-form-row,
.lsd-search .lsd-search-field,
.lsd-search .lsd-form-row {
	position: relative;
	overflow: visible;
}

/* Убираем обрывы границ на углах */
.lsd-search-module *,
.lsd-search * {
	box-sizing: border-box;
}

.lsd-search-module input:focus,
.lsd-search-module select:focus,
.lsd-search-module textarea:focus,
.lsd-search input:focus,
.lsd-search select:focus,
.lsd-search textarea:focus {
	border-color: rgba(26, 115, 232, 0.4);
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
	background-clip: padding-box;
	-webkit-background-clip: padding-box;
}

/* Исправление обрывов для всех input/select внутри скругленных контейнеров */
.lsd-box-white input,
.lsd-box-white select,
.lsd-box-white textarea,
.lsd-box-attribute-upsert input,
.lsd-box-attribute-upsert select,
.lsd-box-attribute-upsert textarea,
.lsd-widget input,
.lsd-widget select,
.lsd-widget textarea,
.lsd-dashboard-form input,
.lsd-dashboard-form select,
.lsd-dashboard-form textarea,
.lsd-search-module input,
.lsd-search-module select,
.lsd-search-module textarea,
.lsd-search input,
.lsd-search select,
.lsd-search textarea {
	background-clip: padding-box;
	-webkit-background-clip: padding-box;
	border-radius: 12px;
}

/* Select2 элементы в формах поиска */
.lsd-search .select2-container,
.lsd-search-module .select2-container {
	border-radius: 12px;
	overflow: hidden;
}

.lsd-search .select2-container .select2-selection,
.lsd-search-module .select2-container .select2-selection {
	border-radius: 12px;
	border: 1px solid rgba(226, 232, 240, 0.6);
}

.lsd-search .select2-container--open .select2-selection,
.lsd-search-module .select2-container--open .select2-selection {
	border-color: rgba(26, 115, 232, 0.4);
}

/* Стили для сортировки */
.lsd-sortbar {
	background: #f8f9fa;
	border: 1px solid #e8eaed;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 16px;
	overflow: hidden;
	position: relative;
}

/* Исправление обрывов границ на скругленных углах - общие правила */
.lsd-box-white,
.lsd-box-attribute-upsert,
.lsd-widget,
.lsd-skin-wrapper,
.lsd-dashboard-form,
.lsd-search-module,
.lsd-search,
.lsd-map-card-wrapper,
.lsd-infowindow,
.lsd-taxonomy-shortcode-wrapper.lsd-widget,
.lsd-alllistings-widget,
.lsd-dashboard-menus-wrapper,
.lsd-dashboard-listings-list-items li {
	/* Исправление обрывов на углах - используем isolation для правильного обрезания */
	isolation: isolate;
	/* Убеждаемся, что все содержимое обрезается правильно */
	will-change: transform;
	/* Исправление рендеринга границ на скругленных углах */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}

/* Исправление обрывов для псевдоэлементов и дочерних элементов */
.lsd-box-white::before,
.lsd-box-white::after,
.lsd-box-attribute-upsert::before,
.lsd-box-attribute-upsert::after,
.lsd-widget::before,
.lsd-widget::after,
.lsd-skin-wrapper::before,
.lsd-skin-wrapper::after,
.lsd-dashboard-form::before,
.lsd-dashboard-form::after,
.lsd-search-module::before,
.lsd-search-module::after,
.lsd-search::before,
.lsd-search::after {
	border-radius: inherit;
}

/* Исправление обрывов для дочерних элементов с границами */
.lsd-box-white > *,
.lsd-box-attribute-upsert > *,
.lsd-widget > *,
.lsd-dashboard-form > *,
.lsd-search-module > *,
.lsd-search > * {
	position: relative;
	z-index: 1;
}

/* Исправление для элементов с собственными границами внутри скругленных контейнеров */
.lsd-box-white input,
.lsd-box-white select,
.lsd-box-white textarea,
.lsd-box-attribute-upsert input,
.lsd-box-attribute-upsert select,
.lsd-box-attribute-upsert textarea,
.lsd-widget input,
.lsd-widget select,
.lsd-widget textarea,
.lsd-dashboard-form input,
.lsd-dashboard-form select,
.lsd-dashboard-form textarea {
	/* Убеждаемся, что границы не обрываются */
	border-style: solid;
	border-image: none;
	-webkit-border-image: none;
}

/* Исправление для Select2 и других библиотек */
.lsd-search .select2-dropdown,
.lsd-search-module .select2-dropdown {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(226, 232, 240, 0.75);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.lsd-search .select2-results,
.lsd-search-module .select2-results {
	border-radius: 12px;
	overflow: hidden;
}

/* Внутренние элементы не должны выходить за границы */
.lsd-box-white > *:first-child,
.lsd-box-attribute-upsert > *:first-child,
.lsd-widget > *:first-child,
.lsd-dashboard-form > *:first-child,
.lsd-search-module > *:first-child,
.lsd-search > *:first-child {
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}

.lsd-box-white > *:last-child,
.lsd-box-attribute-upsert > *:last-child,
.lsd-widget > *:last-child,
.lsd-dashboard-form > *:last-child,
.lsd-search-module > *:last-child,
.lsd-search > *:last-child {
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
}

/* Сохранение компактности элементов управления */
.lsd-map-controls {
	padding: 8px;
}

.lsd-map-controls .button {
	padding: 6px 12px;
	font-size: 12px;
	margin: 2px;
}

/* Карточки на карте в стиле context export */
.lsd-map-card-wrapper {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 12px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

.lsd-map-card-wrapper:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14);
	transform: translateY(-2px);
}

.lsd-map-card-body {
	padding: 0;
}

.lsd-map-card-body .lsd-listing-title {
	font-size: 14px;
	font-weight: 500;
	color: #202124;
	margin: 0 0 8px 0;
}

.lsd-map-card-body .lsd-listing-title a {
	color: #1a73e8;
	text-decoration: none;
}

.lsd-map-card-body .lsd-listing-title a:hover {
	text-decoration: underline;
}

.lsd-map-card-body .lsd-listing-address {
	font-size: 12px;
	color: #5f6368;
	margin-bottom: 6px;
}

/* Канвас карты */
.lsd-map-canvas {
	border-radius: 8px;
	overflow: hidden;
}

.lsd-map-wrapper {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
}

/* Боковая панель карты в стиле context export */
.lsd-map-sidebar-wrapper {
	background: #fff;
	border: none;
	border-radius: 18px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7), 0 24px 48px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

.lsd-map-sidebar {
	background: #fff;
	padding: 16px;
}

.lsd-map-sidebar-toggle {
	background: #f8f9fa;
	border: 1px solid #dadce0;
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.lsd-map-sidebar-toggle:hover {
	background: #e8eaed;
}

/* Виджет всех листингов в стиле context export */
.lsd-alllistings-widget {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

/* Строки в виджетах (форма настроек виджета) */
.lsd-widget-row {
	margin-bottom: 12px;
}

.lsd-widget-row label {
	display: block;
	font-weight: 500;
	color: #202124;
	font-size: 13px;
	margin-bottom: 6px;
}

.lsd-widget-row input[type="text"],
.lsd-widget-row input[type="number"],
.lsd-widget-row select {
	width: 100%;
	border-radius: 4px;
	border: 1px solid #dadce0;
	padding: 8px 10px;
	font-size: 13px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lsd-widget-row input[type="text"]:focus,
.lsd-widget-row input[type="number"]:focus,
.lsd-widget-row select:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
	outline: none;
}

/* Обертки для карт в разных видах */
.lsd-list-view-top-wrapper .lsd-map,
.lsd-listgrid-view-top-wrapper .lsd-map {
	margin-bottom: 16px;
}

.lsd-halfmap-view-map-section-wrapper {
	padding-right: 12px;
}

.lsd-halfmap-view-list-section-wrapper {
	padding-left: 12px;
}

/* Инфоокна на картах в стиле context export */
.lsd-infowindow {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 12px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	overflow: hidden;
	position: relative;
}

/* Таксономии в виджетах в стиле context export */
.lsd-taxonomy-shortcode-wrapper.lsd-widget {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

/* Элементы списков в боковой панели карты */
.lsd-map-sidebar-listings {
	max-height: 400px;
	overflow-y: auto;
	padding-right: 8px;
}

.lsd-map-sidebar-listings .lsd-listing-item {
	background: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.28s ease;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 12px 24px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	position: relative;
}

.lsd-map-sidebar-listings .lsd-listing-item:hover {
	background: #f8f9fa;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 18px 42px rgba(15, 23, 42, 0.1);
	transform: translateY(-1px);
}

/* Кнопка загрузки еще в боковой панели - стандартный стиль плагина */
.lsd-map-sidebar-loadmore {
	margin-top: 12px;
	text-align: center;
}

/* Карточки листингов на фронтенде в стиле context export (деликатные рамки) */
.lsd-listing,
.lsd-listing-item,
.lsd-list-view-listings-wrapper .lsd-listing,
.lsd-grid-view-listings-wrapper .lsd-listing,
.lsd-listgrid-view-listings-wrapper .lsd-listing {
	background: #fff;
	border: none !important;
	border-radius: 16px;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08) !important;
	transition: box-shadow 0.28s ease, transform 0.28s ease;
	overflow: hidden;
	position: relative;
}

/* Внутренние элементы карточек - корректное скругление */
.lsd-listing *,
.lsd-listing-item * {
	box-sizing: border-box;
}

/* Изображения в карточках - скругление верхних углов */
.lsd-listing .lsd-listing-image,
.lsd-listing-item .lsd-listing-image {
	border-radius: 16px 16px 0 0;
	overflow: hidden;
}

.lsd-listing .lsd-listing-image img,
.lsd-listing-item .lsd-listing-image img {
	border-radius: 16px 16px 0 0;
	display: block;
}

.lsd-listing:hover,
.lsd-listing-item:hover,
.lsd-list-view-listings-wrapper .lsd-listing:hover,
.lsd-grid-view-listings-wrapper .lsd-listing:hover,
.lsd-listgrid-view-listings-wrapper .lsd-listing:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14) !important;
	transform: translateY(-2px);
}

/* Убираем двойные границы и исправляем обрывы */
.lsd-listing *,
.lsd-listing-item * {
	box-sizing: border-box;
}

/* Элементы внутри карточек не должны выходить за границы */
.lsd-listing > *:first-child,
.lsd-listing-item > *:first-child {
	border-radius: 16px 16px 0 0;
}

.lsd-listing > *:last-child,
.lsd-listing-item > *:last-child {
	border-radius: 0 0 16px 16px;
}

/* Карточки в сетке в стиле context export */
.lsd-viewstyle-grid .lsd-listing,
.lsd-viewstyle-masonry .lsd-listing {
	border: none !important;
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

.lsd-viewstyle-grid .lsd-listing:hover,
.lsd-viewstyle-masonry .lsd-listing:hover {
	box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 22px 50px rgba(15, 23, 42, 0.14) !important;
	transform: translateY(-2px);
}

/* ============================================
   СТРАНИЦА SINGLE LISTING - СТИЛИ В CONTEXT EXPORT
   ============================================ */

/* Основной контейнер страницы listing - общая подложка как в панели AI */
.lsd-single-page-wrapper {
	font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
	color: #202124;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.7);
	border-radius: 18px;
	padding: 26px 28px;
	margin: 32px 0 12px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	overflow: hidden;
}

/* Секции страницы listing в стиле карточек AI панели */
.lsd-single-page-section {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.75);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 0;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	position: relative;
	min-height: auto;
}

.lsd-single-page-section:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* Заголовки секций */
.lsd-single-page-section-title {
	font-size: 18px;
	font-weight: 500;
	color: #202124;
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* Обертки для элементов */
.lsd-single-attributes-box,
.lsd-single-availability-box,
.lsd-single-owner-box,
.lsd-single-abuse-box,
.lsd-single-content-wrapper,
.lsd-single-locations-box,
.lsd-single-abuse-wrapper {
	background: transparent;
	border-radius: 12px;
	overflow: hidden;
}

/* Элементы внутри секций */
.lsd-single-element {
	position: relative;
}

/* Секция с ценой - в стиле карточки AI */
.lsd-single-page-price {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.75);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 0;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsd-single-page-price:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* Секция с картой - в стиле карточки AI */
.lsd-single-page-section-map-top {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.75);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 0;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsd-single-page-section-map-top:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* Верхняя часть страницы listing - в стиле карточки AI */
.listdom-single-top {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.75);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 0;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listdom-single-top:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.listdom-single-title-wrapper {
	margin-bottom: 16px;
}

.listdom-single-top-bottom {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* Категории и метки */
.lsd-single-category,
.lsd-listing-category {
	margin-bottom: 12px;
}

/* Изображения на странице listing */
.lsd-single-image-wrapper {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}

.lsd-single-image-wrapper img {
	border-radius: 16px;
	display: block;
	width: 100%;
	height: auto;
}

/* Галерея */
.lsd-single-gallery {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}

/* Контактная информация - в стиле карточки AI */
.lsd-single-contact-info {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.75);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 0;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsd-single-contact-info:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* Исправление обрывов для секций single page */
.lsd-single-page-wrapper {
	isolation: isolate;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.lsd-single-page-section,
.lsd-single-page-price,
.lsd-single-page-section-map-top,
.listdom-single-top,
.lsd-single-contact-info {
	isolation: isolate;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Внутренние элементы секций */
.lsd-single-page-section > *:first-child,
.lsd-single-page-price > *:first-child,
.listdom-single-top > *:first-child {
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}

.lsd-single-page-section > *:last-child,
.lsd-single-page-price > *:last-child,
.listdom-single-top > *:last-child {
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
}

/* Таблицы и списки внутри секций */
.lsd-single-page-section table,
.lsd-single-attributes-box table {
	border-radius: 12px;
	overflow: hidden;
}

.lsd-single-page-section ul,
.lsd-single-page-section ol {
	padding-left: 20px;
}

/* Кнопки и ссылки в секциях */
.lsd-single-page-section .button,
.lsd-single-page-section a.button {
	border-radius: 12px;
	transition: all 0.28s ease;
}

/* Атрибуты внутри секций */
.lsd-single-attributes-box .lsd-row {
	margin: 0;
}

.lsd-single-attributes-box .lsd-col-6 {
	padding: 12px 16px;
	margin-bottom: 8px;
	background: rgba(248, 249, 250, 0.5);
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.lsd-single-attributes-box .lsd-col-6:hover {
	background: rgba(248, 249, 250, 0.8);
}

.lsd-single-attributes-box .lsd-attr-key {
	font-weight: 500;
	color: #202124;
	font-size: 14px;
	display: inline-block;
	margin-right: 8px;
}

.lsd-single-attributes-box .lsd-attr-icon {
	margin-right: 6px;
	color: #1a73e8;
}

.lsd-single-attributes-box .lsd-attr-value {
	color: #5f6368;
	font-size: 14px;
}

.lsd-single-attributes-box .lsd-separator {
	font-size: 16px;
	font-weight: 500;
	color: #202124;
	padding: 16px 0 8px 0;
	margin-bottom: 8px;
	border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

/* Features (особенности) */
.lsd-features-style-list,
.lsd-features-style-grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lsd-features-style-list li,
.lsd-features-style-grid li {
	padding: 8px 12px;
	margin-bottom: 6px;
	background: rgba(248, 249, 250, 0.5);
	border-radius: 8px;
	font-size: 14px;
	color: #202124;
	transition: background-color 0.2s ease;
}

.lsd-features-style-list li:hover,
.lsd-features-style-grid li:hover {
	background: rgba(248, 249, 250, 0.8);
}

/* Теги */
.lsd-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.lsd-tags a,
.lsd-tags span {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(26, 115, 232, 0.1);
	color: #1a73e8;
	border-radius: 16px;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.lsd-tags a:hover {
	background: rgba(26, 115, 232, 0.2);
	transform: translateY(-1px);
}

/* Контактная информация */
.lsd-single-contact-info .lsd-contact-item {
	padding: 12px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.lsd-single-contact-info .lsd-contact-item:last-child {
	border-bottom: none;
}

.lsd-single-contact-info .lsd-contact-label {
	font-weight: 500;
	color: #202124;
	font-size: 14px;
	margin-bottom: 4px;
}

.lsd-single-contact-info .lsd-contact-value {
	color: #5f6368;
	font-size: 14px;
}

.lsd-single-contact-info .lsd-contact-value a {
	color: #1a73e8;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lsd-single-contact-info .lsd-contact-value a:hover {
	color: #1765cc;
	text-decoration: underline;
}

/* Владелец (owner) */
.lsd-single-owner-box {
	background: rgba(248, 249, 250, 0.3);
	border-radius: 12px;
	padding: 16px;
}

/* Доступность (availability) */
.lsd-single-availability-box {
	background: rgba(248, 249, 250, 0.3);
	border-radius: 12px;
	padding: 16px;
}

/* Категории */
.lsd-listing-category a,
.lsd-single-category a {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(26, 115, 232, 0.1);
	color: #1a73e8;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-right: 8px;
	margin-bottom: 8px;
}

.lsd-listing-category a:hover,
.lsd-single-category a:hover {
	background: rgba(26, 115, 232, 0.2);
	transform: translateY(-1px);
}

/* Label элементы - автоматическое определение цвета текста на основе фона */
.lsd-labels-list,
.lsd-labels-simple {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lsd-labels-list-item,
.lsd-labels-simple-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Label элементы - уважаем inline стили из PHP, которые автоматически определяют контрастный цвет */
.lsd-labels-list-item a,
.lsd-labels-list-item span,
.lsd-labels-simple-item a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	/* Не переопределяем цвет - используем только inline стили из PHP (LSD_Color::text_color) */
	/* Inline стили имеют высокую специфичность и правильно определяют контрастный цвет */
}

/* Label элементы - inline стили из PHP имеют приоритет и правильно определяют контрастный цвет */
/* Для светлых фонов (зеленый) - черный текст, для темных (синий) - белый */
/* PHP функция LSD_Color::text_color() использует алгоритм YIQ для определения контрастности */

/* Адаптивность для мобильных устройств - максимальное использование ширины */
@media (max-width: 768px) {
	/* Убираем все отступы у основных контейнеров WordPress и body */
	body,
	html {
		margin: 0 !important;
		padding: 0 !important;
	}
	
	body .site-content,
	body .content-area,
	body .entry-content,
	body .wp-block-group,
	body .wp-block-columns,
	body .wp-block-column,
	body .container,
	body .wrapper,
	body .main-content,
	body .content-wrapper {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Основной контейнер - убираем отступы, используем всю ширину */
	.lsd-single-page-wrapper {
		padding: 8px !important;
		border-radius: 12px !important;
		margin: 0 !important;
		gap: 8px;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Секции - минимальные отступы, с небольшим скруглением */
	.lsd-single-page-section,
	.lsd-single-page-price,
	.listdom-single-top,
	.lsd-single-contact-info,
	.lsd-single-page-section-map-top {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	.lsd-single-page-section-title {
		font-size: 16px;
		margin-bottom: 8px !important;
		padding-bottom: 6px !important;
	}
	
	.lsd-single-attributes-box .lsd-col-6 {
		padding: 8px 10px;
		font-size: 13px;
	}
	
	/* Карточки листингов - на всю ширину, с небольшим скруглением */
	.lsd-listing,
	.lsd-listing-item,
	.lsd-list-view-listings-wrapper .lsd-listing,
	.lsd-grid-view-listings-wrapper .lsd-listing,
	.lsd-listgrid-view-listings-wrapper .lsd-listing {
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Виджеты - минимальные отступы */
	.lsd-widget {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Поисковые модули - на всю ширину */
	.lsd-search-module,
	.lsd-search {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Контейнеры списков - убираем отступы */
	.lsd-list-view-listings-wrapper,
	.lsd-grid-view-listings-wrapper,
	.lsd-listgrid-view-listings-wrapper {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Элементы внутри карточек - скругление верхних углов */
	.lsd-listing .lsd-listing-image,
	.lsd-listing-item .lsd-listing-image {
		border-radius: 12px 12px 0 0 !important;
	}
	
	.lsd-listing > *:first-child,
	.lsd-listing-item > *:first-child {
		border-radius: 12px 12px 0 0 !important;
	}
	
	.lsd-listing > *:last-child,
	.lsd-listing-item > *:last-child {
		border-radius: 0 0 12px 12px !important;
	}
	
	/* Убираем лишние отступы у контейнеров */
	.lsd-skin-wrapper {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 12px !important;
		box-sizing: border-box;
	}
	
	.lsd-dashboard {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Контейнеры карт и виджетов */
	.lsd-skin-wrapper .lsd-map,
	.lsd-widget .lsd-map,
	.lsd-halfmap-view-map-section-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		border-radius: 12px !important;
	}
	
	/* Контейнеры списков и сеток */
	.lsd-list-view-listings-wrapper,
	.lsd-grid-view-listings-wrapper,
	.lsd-listgrid-view-listings-wrapper,
	.lsd-carousel-view-listings-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	/* Элементы внутри сеток */
	.lsd-viewstyle-grid .lsd-listing,
	.lsd-viewstyle-masonry .lsd-listing {
		width: 100% !important;
		margin: 0 0 8px 0 !important;
	}
	
	/* Боковая панель карты - на всю ширину */
	.lsd-map-sidebar {
		width: 100% !important;
		max-width: 100% !important;
		padding: 10px !important;
		box-sizing: border-box;
	}
	
	/* Карточки в боковой панели */
	.lsd-map-sidebar .lsd-listing,
	.lsd-map-sidebar .lsd-listing-item {
		margin-bottom: 8px !important;
		padding: 10px !important;
	}
	
	/* Общие стили для всех контейнеров - убираем ограничения ширины */
	.lsd-container,
	.lsd-wrapper,
	.lsd-content-wrapper,
	.lsd-main-content,
	.lsd-box-white,
	.lsd-box-attribute-upsert,
	.lsd-alllistings-widget,
	.lsd-taxonomy-shortcode-wrapper,
	.lsd-dashboard-menus-wrapper,
	.lsd-dashboard-form,
	.lsd-map-card-wrapper,
	.lsd-infowindow,
	.lsd-map-sidebar-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box;
	}
	
	/* Убираем отступы у body и основных контейнеров WordPress */
	body .lsd-skin-wrapper,
	body .lsd-dashboard,
	body .lsd-widget,
	body .lsd-listing,
	body .lsd-listing-item {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	/* Все карточки и блоки информации - минимальные внутренние отступы */
	.lsd-box-white,
	.lsd-box-attribute-upsert,
	.lsd-alllistings-widget,
	.lsd-taxonomy-shortcode-wrapper.lsd-widget,
	.lsd-dashboard-menus-wrapper,
	.lsd-map-card-wrapper,
	.lsd-infowindow {
		padding: 10px !important;
		border-radius: 12px !important;
	}
	
	/* Текст должен быть читаемым, но без лишних отступов - сохраняем темный цвет */
	.lsd-single-page-section p,
	.lsd-single-page-section li,
	.lsd-single-page-section td,
	.lsd-single-page-section th,
	.lsd-box-white p,
	.lsd-box-white li,
	.lsd-box-white td,
	.lsd-box-white th,
	.lsd-widget p,
	.lsd-widget li {
		font-size: 14px;
		line-height: 1.5;
		color: #202124 !important;
	}
	
	/* Заголовки компактнее - темный цвет */
	.lsd-single-page-section h1,
	.lsd-single-page-section h2,
	.lsd-single-page-section h3,
	.lsd-box-white h1,
	.lsd-box-white h2,
	.lsd-box-white h3,
	.lsd-widget h1,
	.lsd-widget h2,
	.lsd-widget h3 {
		font-size: 18px;
		margin-top: 0;
		margin-bottom: 8px;
		color: #202124 !important;
	}
	
	/* Таблицы на всю ширину */
	.lsd-single-page-section table,
	.lsd-single-attributes-box table {
		width: 100% !important;
		margin: 0 !important;
	}
	
	/* Списки без лишних отступов */
	.lsd-single-page-section ul,
	.lsd-single-page-section ol {
		padding-left: 20px;
		margin: 6px 0;
	}
	
	/* Иконки - сохраняем синий цвет */
	.lsd-single-attributes-box .lsd-attr-icon,
	.lsd-box-white .lsd-attr-icon,
	.lsd-widget .lsd-attr-icon,
	.lsd-single-page-section .lsd-attr-icon {
		color: #1a73e8 !important;
	}
	
	/* Ссылки - синий цвет, но исключаем label элементы, которые имеют inline стили с background-color */
	.lsd-single-page-section a:not([style*="background-color"]),
	.lsd-box-white a:not([style*="background-color"]),
	.lsd-widget a:not([style*="background-color"]) {
		color: #1a73e8 !important;
	}
	
}

/* Кнопки используют стандартные стили плагина listdom */

/* Дополнительные правила для максимального использования ширины на мобильных */
@media (max-width: 768px) {
	/* Убираем все возможные ограничения ширины у родительских контейнеров WordPress */
	.site-content,
	.content-area,
	.entry-content,
	.wp-block-group,
	.wp-block-columns,
	.wp-block-column {
		max-width: 100% !important;
	}
	
	/* Специфично для контейнеров, содержащих listdom элементы */
	.site-content .lsd-skin-wrapper,
	.site-content .lsd-dashboard,
	.site-content .lsd-widget,
	.site-content .lsd-listing,
	.content-area .lsd-skin-wrapper,
	.content-area .lsd-dashboard,
	.content-area .lsd-widget,
	.content-area .lsd-listing,
	.entry-content .lsd-skin-wrapper,
	.entry-content .lsd-dashboard,
	.entry-content .lsd-widget,
	.entry-content .lsd-listing {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	/* Убираем отступы у всех элементов списка дашборда */
	.lsd-dashboard-listings-list-items li {
		padding: 10px !important;
		border-radius: 12px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Карточки на карте - минимальные отступы */
	.lsd-map-card-wrapper {
		padding: 10px !important;
		border-radius: 12px !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Инфоокна на картах */
	.lsd-infowindow {
		padding: 10px !important;
		border-radius: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Боковая панель карты */
	.lsd-map-sidebar-wrapper {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 0 !important;
		box-sizing: border-box;
	}
	
	/* Элементы списка в боковой панели */
	.lsd-map-sidebar-listings .lsd-listing-item {
		padding: 10px !important;
		border-radius: 0 !important;
		margin-bottom: 8px !important;
	}
	
	/* Меню дашборда */
	.lsd-dashboard-menus-wrapper {
		padding: 10px !important;
		border-radius: 0 !important;
		margin: 0 0 8px 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Таксономии в виджетах */
	.lsd-taxonomy-shortcode-wrapper.lsd-widget {
		padding: 10px !important;
		border-radius: 0 !important;
		margin: 0 0 8px 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Виджет всех листингов */
	.lsd-alllistings-widget {
		padding: 10px !important;
		border-radius: 0 !important;
		margin: 0 0 8px 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Убираем отступы у всех элементов listdom с классом box */
	.lsd-box-white,
	.lsd-box-attribute-upsert,
	.lsd-single-attributes-box,
	.lsd-single-availability-box,
	.lsd-single-owner-box,
	.lsd-single-abuse-box {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	/* Сохраняем темный цвет текста для всех элементов */
	.lsd-dashboard,
	.lsd-widget,
	.lsd-skin-wrapper,
	.lsd-box-white,
	.lsd-box-attribute-upsert,
	.lsd-listing,
	.lsd-listing-item,
	.lsd-single-page-section,
	.lsd-single-page-price,
	.listdom-single-top,
	.lsd-single-contact-info {
		color: #202124 !important;
	}
	
	/* Сохраняем синий цвет для иконок и ссылок, но исключаем label элементы с inline стилями */
	.lsd-dashboard .lsd-attr-icon,
	.lsd-widget .lsd-attr-icon,
	.lsd-box-white .lsd-attr-icon,
	.lsd-single-page-section .lsd-attr-icon,
	.lsd-dashboard a:not(.button):not(.lsd-primary-button):not([style*="background-color"]),
	.lsd-widget a:not(.button):not(.lsd-primary-button):not([style*="background-color"]),
	.lsd-box-white a:not(.button):not(.lsd-primary-button):not([style*="background-color"]),
	.lsd-single-page-section a:not(.button):not(.lsd-primary-button):not([style*="background-color"]) {
		color: #1a73e8 !important;
	}
	
}

