.iip-column {
      float: left;
      padding: 10px 0;
}

.iip-column.col-9 {
      width: 75%;
}

.iip-column.col-8 {
      width: 70%;
}

.iip-column.col-6 {
      width: 50%;
}

.iip-column.col-4 {
      width: 30%;
}

.iip-column.col-3 {
      width: 25%;
}

.iip-column.col-12 {
      width: 100%;
}

.iip-row:after {
      content: "";
      display: table;
      clear: both;
}

/**
 * # Table
 * ---------------------------------------------------------------------------------------------------- */

.form-table.iip-table th {
	padding-bottom: 0;
	width: 130px;
}

.form-table.iip-table td {
	padding-bottom: 0;
}

/**
 * ## Table - Input
 * --------------------------- */

.connect-realstate-manual-action #logwrapper {
	border: 1px solid #aaa;
	margin: 10px auto;
}
.connect-realstate-manual-action fieldset {
	padding: 20px;
	width: auto;
}
.connect-realstate-manual-action #loglist {
	border: 1px solid #AAAAAA;
	height: 380px;
	overflow: auto;
}
.connect-realstate-manual-action #loglist > p {
	margin: 0;
	padding: 3px 5px;
}
.connect-realstate-manual-action #loglist > p.odd {
	background: #dfdfdf;
}
.connect-realstate-manual-action #loglist > p.finish {
	background: #76d771;
}


.connect-realstate-log #logwrapper {
  border: 1px solid #aaa;
  margin: 10px auto;
}

.connect-realstate-log fieldset {
  padding: 20px;
  width: auto;
}

.connect-realstate-log #loglist {
  border: 1px solid #AAAAAA;
  height: 380px;
  overflow: auto;
}

.connect-realstate-log #loglist>p {
  margin: 0;
  padding: 3px 5px;
}

.connect-realstate-log #loglist>p.odd {
  background: #dfdfdf;
}

.connect-realstate-log #loglist>p.finish {
  background: #76d771;
}

.connect-realstate-log .error {
  color: red;
}

.connect-realstate-log .warning {
  color: orange;
}

/**
 * ## Merge variables
 * --------------------------- */

.form-table.iip-table-merge-variables td {
	padding-bottom: 0;
}

.form-table.iip-table-merge-variables td.ccrmre-label {
	width: 40%;
}

/**
 * ## Property Post Type Metaboxes
 * --------------------------- */

/* Property Meta Table */
.property-meta-table {
	width: 100%;
	border-collapse: collapse;
}

.property-meta-table th,
.property-meta-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.property-meta-table th {
	background-color: #f0f0f1;
	font-weight: 600;
}

.property-meta-table tr:hover {
	background-color: #f9f9f9;
}

/* Property Photos Sidebar */
.ccrmre-sidebar-featured {
	margin-bottom: 15px;
}

.ccrmre-sidebar-featured img {
	width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin-bottom: 8px;
}

.ccrmre-sidebar-featured p {
	margin: 0;
	font-size: 11px;
	color: #666;
	word-break: break-all;
}

.ccrmre-sidebar-gallery {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.ccrmre-sidebar-gallery h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-weight: 600;
}

.ccrmre-sidebar-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.ccrmre-sidebar-gallery-grid img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.2s;
}

.ccrmre-sidebar-gallery-grid img:hover {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	z-index: 10;
}

.ccrmre-no-photos {
	padding: 15px;
	text-align: center;
	color: #666;
	font-style: italic;
}

/**
 * ## Import Statistics Cards
 * --------------------------- */

.ccrmre-import-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-bottom: 25px;
}

.ccrmre-stat-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: box-shadow 0.2s;
}

.ccrmre-stat-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ccrmre-stat-card.loading {
	opacity: 0.6;
}

.ccrmre-stat-icon {
	font-size: 32px;
	line-height: 1;
}

.ccrmre-icon-api {
	color: #2271b1;
}

.ccrmre-icon-wp {
	color: #0073aa;
}

.ccrmre-icon-import {
	color: #00a32a;
}

.ccrmre-icon-delete {
	color: #d63638;
}

.ccrmre-stat-content {
	flex: 1;
}

.ccrmre-stat-value {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: #1d2327;
}

.ccrmre-stat-label {
	font-size: 13px;
	color: #646970;
	margin-top: 4px;
}

.ccrmre-stat-sublabel {
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}

/**
 * ## Two Column Layout - Automatic Sync + Manual Import
 * --------------------------- */

.ccrmre-two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.ccrmre-cron-logs h3,
.ccrmre-manual-import h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
}

.import-button-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.import-mode-select {
	flex: 0 0 auto;
	min-width: 180px;
}

.import-button-wrapper button:disabled,
.import-button-wrapper select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/**
 * ## Unified Log Container with Tabs
 * --------------------------- */

.ccrmre-log-container {
	margin-top: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.ccrmre-log-tabs {
	display: flex;
	background: #f9f9f9;
	border-bottom: 1px solid #ddd;
	gap: 0;
}

.ccrmre-tab-button {
	flex: 1;
	padding: 12px 20px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #646970;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ccrmre-tab-button:hover {
	background: #fff;
	color: #2271b1;
}

.ccrmre-tab-button.active {
	background: #fff;
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.ccrmre-tab-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.ccrmre-tab-content {
	padding: 15px;
}

.ccrmre-tab-pane {
	display: none;
}

.ccrmre-tab-pane.active {
	display: block;
}

.ccrmre-log-list {
	max-height: 400px;
	overflow-y: auto;
	padding: 0;
}

/* Accordion log item styles */
.ccrmre-log-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.ccrmre-log-item:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ccrmre-log-header {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	user-select: none;
	background: #fff;
	transition: background-color 0.2s;
}

.ccrmre-log-header:hover {
	background: #f8f9fa;
}

.ccrmre-log-item.active .ccrmre-log-header {
	background: #f0f6fc;
	border-bottom: 1px solid #ddd;
}

.ccrmre-log-toggle {
	color: #646970;
	margin-right: 8px;
	transition: transform 0.2s;
	flex-shrink: 0;
}

.ccrmre-log-title {
	flex: 1;
	font-size: 13px;
	color: #2c3338;
	font-weight: 500;
}

.ccrmre-log-content {
	padding: 0;
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
	max-height: 400px;
	overflow-y: auto;
}

.ccrmre-log-loading {
	padding: 20px;
	text-align: center;
	color: #646970;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.ccrmre-log-data {
	padding: 15px;
	font-family: monospace;
	font-size: 12px;
	line-height: 1.6;
	color: #2c3338;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Manual import log styles */
#logwrapper {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#loglist {
	border: 1px solid #ddd;
	border-radius: 3px;
	height: 400px;
	overflow: auto;
	background: #f9f9f9;
	padding: 5px;
}

#loglist > p {
	margin: 0;
	padding: 5px 8px;
	background: #fff;
	border-radius: 3px;
	margin-bottom: 3px;
}

#loglist > p.odd {
	background: #f5f5f5;
}

#loglist > p.finish {
	background: #d4edda;
	color: #155724;
	font-weight: 500;
}

/* Responsive: Stack on small screens */
@media screen and (max-width: 782px) {
	.ccrmre-import-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ccrmre-two-columns {
		grid-template-columns: 1fr;
	}

	.import-button-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.import-mode-select {
		min-width: 100%;
	}

	.ccrmre-tab-button {
		padding: 10px 12px;
		font-size: 13px;
	}

	.ccrmre-tab-button .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}
}

/* Property Info meta box */
.ccrmre-property-info-table {
	width: 100%;
	border-collapse: collapse;
}

.ccrmre-property-info-table th,
.ccrmre-property-info-table td {
	padding: 5px 4px;
	vertical-align: top;
	font-size: 12px;
	line-height: 1.5;
}

.ccrmre-property-info-table th {
	color: #646970;
	font-weight: 600;
	white-space: nowrap;
	padding-right: 8px;
	width: 40%;
}

.ccrmre-property-info-table code {
	font-size: 11px;
	background: #f0f0f1;
	padding: 1px 4px;
	border-radius: 2px;
	word-break: break-all;
}