/* ============================================================
   Ακίνητα Listings — front-end styles
   Ουδέτερο styling, scoped κάτω από .akin-* ώστε να μην
   συγκρούεται με το theme του πελάτη.
   ============================================================ */

:root {
	--akin-primary: var(--akin-primary);
	--akin-primary-dark: var(--akin-primary-dark);
	--akin-icon: #888888;
}


.akin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

/* ---------- Κάρτα ---------- */
.akin-card {
	position: relative;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
	display: flex;
	flex-direction: column;
}
.akin-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}
/* Κλικ σε όλη την κάρτα (stretched link μέσω του τίτλου) */
.akin-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.akin-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
	overflow: hidden;
}
.akin-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.akin-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	font-size: 14px;
}
.akin-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--akin-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
}
.akin-badge-inline {
	position: static;
	display: inline-block;
	margin-bottom: 6px;
}
.akin-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.akin-card-title {
	font-size: 17px;
	margin: 0;
	line-height: 1.3;
}
.akin-card-title a {
	color: inherit;
	text-decoration: none;
}
.akin-card-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--akin-primary);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}
.akin-card-persqm {
	font-size: 12px;
	font-weight: 500;
	color: #999;
}
.akin-card-loc {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #666;
}
.akin-card-loc svg {
	width: 15px;
	height: 15px;
	color: var(--akin-primary);
	flex: 0 0 auto;
}
.akin-card-typestatus {
	font-size: 13px;
	color: #777;
}
.akin-card-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 4px 0 0;
}
.akin-card-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.akin-card-ref {
	font-size: 12px;
	color: #aaa;
	white-space: nowrap;
}
.akin-card-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: #555;
	font-size: 14px;
}
.akin-card-specs li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.akin-card-specs svg {
	width: 17px;
	height: 17px;
	color: var(--akin-icon);
}

/* ---------- Επιλογή στηλών ---------- */
.akin-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}
.akin-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}
.akin-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}
.akin-cols-1 {
	grid-template-columns: 1fr;
	gap: 16px;
}
/* Το excerpt εμφανίζεται μόνο στην προβολή λίστας (1 στήλη) */
.akin-grid:not(.akin-cols-1) .akin-card-excerpt {
	display: none;
}

/* ---------- Προβολή λίστας (1 στήλη = σαν post) ---------- */
.akin-cols-1 .akin-card {
	flex-direction: row;
}
.akin-cols-1 .akin-card-media {
	flex: 0 0 38%;
	max-width: 340px;
	aspect-ratio: auto;
}
.akin-cols-1 .akin-card-body {
	flex: 1 1 auto;
	padding: 20px 22px;
	gap: 6px;
	justify-content: center;
}
.akin-cols-1 .akin-card-title {
	font-size: 20px;
}
.akin-cols-1 .akin-card-price {
	font-size: 22px;
}

@media (max-width: 900px) {
	.akin-cols-3,
	.akin-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.akin-cols-2,
	.akin-cols-3,
	.akin-cols-4 {
		grid-template-columns: 1fr;
	}
	.akin-cols-1 .akin-card {
		flex-direction: column;
	}
	.akin-cols-1 .akin-card-media {
		flex-basis: auto;
		max-width: none;
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Φίλτρα ---------- */
.akin-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	align-items: end;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 16px;
}
.akin-filter label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}
.akin-filter select,
.akin-filter input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.akin-filter-submit {
	display: flex;
	align-items: flex-end;
}

/* ---------- Μπάρα αποτελεσμάτων ---------- */
.akin-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 0;
	padding-top: 4px;
}
.akin-results-count {
	font-size: 15px;
	color: #444;
}
.akin-results-count strong {
	color: var(--akin-primary);
}
.akin-results-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.akin-clear {
	font-size: 13px;
	color: #c0392b;
	text-decoration: none;
	white-space: nowrap;
}
.akin-clear:hover {
	text-decoration: underline;
}
.akin-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
}
.akin-sort select {
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

/* ---------- Εναλλαγή προβολής (πλέγμα/λίστα) ---------- */
.akin-view-toggle {
	display: inline-flex;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}
.akin-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 34px;
	color: #888;
	background: #fff;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.akin-view-btn + .akin-view-btn {
	border-left: 1px solid #ccc;
}
.akin-view-btn svg {
	width: 18px;
	height: 18px;
}
.akin-view-btn:hover {
	color: var(--akin-primary);
}
.akin-view-btn.is-active {
	background: var(--akin-primary);
	color: #fff;
}

/* ---------- Κουμπιά ---------- */
.akin-btn {
	background: var(--akin-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
	width: 100%;
}
.akin-btn:hover {
	background: var(--akin-primary-dark);
}
.akin-btn-block {
	width: 100%;
}

.akin-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 40px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.akin-empty .akin-btn-ghost {
	width: auto;
}

/* ---------- Pagination ---------- */
.akin-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 24px 0;
}
.akin-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
}
.akin-pagination .page-numbers.current {
	background: var(--akin-primary);
	color: #fff;
	border-color: var(--akin-primary);
}

/* ---------- Single ---------- */
.akin-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
}
.akin-single-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 1px solid #eee;
	padding-bottom: 16px;
	margin-bottom: 24px;
}
.akin-single-title {
	margin: 0 0 6px;
	font-size: 28px;
}
.akin-single-meta {
	color: #666;
	margin: 0;
}
.akin-single-price {
	text-align: right;
}
.akin-single-price strong {
	display: block;
	font-size: 28px;
	color: var(--akin-primary);
}
.akin-single-grid {
	display: grid;
	grid-template-columns: 2.5fr 1fr;
	gap: 32px;
	align-items: start;
}

/* ---------- Gallery (full-width mosaic) ---------- */
.akin-gallery-wrap {
	margin: 0 0 28px;
	overflow: hidden;
}
.akin-gallery {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 8px;
	height: 340px;
	max-height: 340px;
	overflow: hidden;
}
.akin-gallery--single {
	grid-template-columns: 1fr;
}
.akin-gallery-hero {
	display: block;
	height: 100%;
	min-height: 0;
	min-width: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}
.akin-gallery-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.akin-gallery-hero:hover img {
	transform: scale(1.03);
}
.akin-gallery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	height: 100%;
	min-height: 0;
}
.akin-gallery-cell {
	position: relative;
	display: block;
	min-height: 0;
	min-width: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}
.akin-gallery-cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .2s ease;
}
.akin-gallery-cell:hover img {
	opacity: .85;
}
.akin-gallery-hidden {
	display: none !important;
}
.akin-gallery-more::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
}
.akin-gallery-more-label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	z-index: 1;
}

/* Gallery σε mobile: hero + οριζόντια λωρίδα (slider) */
@media (max-width: 780px) {
	.akin-gallery,
	.akin-gallery--single {
		display: block;
		height: auto;
	}
	.akin-gallery-hero img {
		height: auto;
		max-height: 300px;
	}
	.akin-gallery-grid {
		display: flex;
		gap: 8px;
		margin-top: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
	}
	.akin-gallery-cell {
		flex: 0 0 46%;
		height: 130px;
		scroll-snap-align: start;
	}
	.akin-gallery-hidden {
		display: block !important;
	}
	.akin-gallery-more::after,
	.akin-gallery-more-label {
		display: none;
	}
}

/* ---------- Lightbox ---------- */
.akin-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}
.akin-lightbox.is-open {
	display: flex;
}
.akin-lb-figure {
	margin: 0;
	max-width: 90vw;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.akin-lb-img {
	max-width: 90vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.akin-lb-counter {
	color: #ddd;
	font-size: 14px;
	margin-top: 12px;
}
.akin-lb-close,
.akin-lb-prev,
.akin-lb-next {
	position: absolute;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: none;
	cursor: pointer;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
}
.akin-lb-close:hover,
.akin-lb-prev:hover,
.akin-lb-next:hover {
	background: rgba(255, 255, 255, .28);
}
.akin-lb-close {
	top: 20px;
	right: 20px;
	font-size: 30px;
}
.akin-lb-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.akin-lb-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}
@media (max-width: 600px) {
	.akin-lb-prev { left: 8px; }
	.akin-lb-next { right: 8px; }
	.akin-lb-close { top: 10px; right: 10px; }
}
.akin-single-main h2 {
	font-size: 20px;
	margin: 28px 0 12px;
}

/* Πίνακας χαρακτηριστικών */
.akin-specs-table dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0;
	margin: 0;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}
.akin-spec-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
}
.akin-spec-row dt {
	color: #777;
	font-weight: 500;
}
.akin-spec-row dd {
	margin: 0;
	font-weight: 600;
}

/* Χάρτης */
#akin-map {
	height: 360px;
	width: 100%;
	border-radius: 10px;
	z-index: 0;
}

/* ---------- Overview (εικονίδια σύνοψης) ---------- */
.akin-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
	margin: 24px 0 8px;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fafafa;
}
.akin-ov-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
}
.akin-ov-icon {
	color: var(--akin-primary);
}
.akin-ov-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}
.akin-ov-value {
	font-weight: 700;
	font-size: 16px;
	color: #222;
}
.akin-ov-label {
	font-size: 12px;
	color: #777;
}

/* ---------- Παροχές ---------- */
.akin-features-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 20px;
}
.akin-features-list li {
	position: relative;
	padding-left: 26px;
	font-size: 15px;
	color: #333;
	line-height: 1.5;
}
.akin-features-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--akin-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center;
}

/* ---------- Ενεργειακή κλάση ---------- */
.akin-energy-scale {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-width: 480px;
}
.akin-energy-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.akin-energy-bar {
	position: relative;
	height: 26px;
	border-radius: 0 4px 4px 0;
	display: flex;
	align-items: center;
	min-width: 60px;
	opacity: .55;
	transition: opacity .2s ease;
}
.akin-energy-letter {
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	padding-left: 12px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.akin-energy-row.is-active .akin-energy-bar {
	opacity: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.akin-energy-marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.akin-energy-note {
	font-size: 12px;
	color: #999;
	margin: 12px 0 0;
}

/* ---------- Φόρμα ενδιαφέροντος ---------- */
.akin-single-sidebar {
	position: sticky;
	top: 24px;
}
.akin-inquiry-box {
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
}
.akin-inquiry-box h3 {
	margin: 0 0 16px;
	font-size: 18px;
}
/* Κάθε πεδίο σε δικό του block· label πάνω, control κάτω. */
.akin-inquiry-form .akin-field {
	margin: 0 0 14px;
}
.akin-inquiry-form .akin-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #333;
	line-height: 1.3;
}
/* !important σε layout-properties ώστε να μην τα πατάει το theme
   (π.χ. Themify στυλάρει input[type="email"]/[type="tel"] ξεχωριστά). */
.akin-inquiry-form .akin-field input,
.akin-inquiry-form .akin-field textarea,
.akin-inquiry-form .akin-field select {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	font-family: inherit;
	line-height: 1.4;
}
.akin-inquiry-form .akin-field textarea {
	min-height: 110px;
	resize: vertical;
}
.akin-hp {
	position: absolute !important;
	left: -9999px !important;
}
.akin-inquiry-status {
	margin: 12px 0 0;
	font-size: 14px;
}
.akin-inquiry-status.akin-ok {
	color: #1a7f37;
}
.akin-inquiry-status.akin-err {
	color: #c00;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.akin-single-grid {
		grid-template-columns: 1fr;
	}
	.akin-single-sidebar {
		position: static;
	}
}

/* ---------- Ghost button (Google Maps) ---------- */
.akin-btn-ghost {
	display: inline-flex;
	align-items: center;
	width: auto;
	background: #fff;
	color: var(--akin-primary);
	border: 1px solid var(--akin-primary);
	white-space: nowrap;
}
.akin-btn-ghost:hover {
	background: var(--akin-primary);
	color: #fff;
}

/* ---------- Address bar ---------- */
.akin-address-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 12px;
}
.akin-address-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #333;
	font-size: 15px;
}
.akin-address-text svg {
	width: 18px;
	height: 18px;
	color: var(--akin-primary);
	flex: 0 0 auto;
}

/* ---------- Ομάδες παροχών ---------- */
.akin-feature-group + .akin-feature-group {
	margin-top: 18px;
}
.akin-feature-group-title {
	font-size: 15px !important;
	margin: 0 0 10px !important;
	color: var(--akin-primary);
	font-weight: 700;
}

/* ---------- Παρόμοια ακίνητα ---------- */
.akin-similar {
	margin-top: 40px;
	padding-top: 8px;
	border-top: 1px solid #eee;
}
.akin-similar h2 {
	font-size: 22px;
	margin: 20px 0 4px;
}

/* ---------- Live filtering loading state ---------- */
.akin-listing {
	position: relative;
	transition: opacity .15s ease;
}
.akin-listing.akin-loading {
	opacity: .5;
	pointer-events: none;
}
.akin-listing.akin-loading::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid #ccc;
	border-top-color: var(--akin-primary);
	border-radius: 50%;
	animation: akin-spin .7s linear infinite;
	z-index: 5;
}
@keyframes akin-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Χάρτης ακινήτων ---------- */
#akin-listmap {
	width: 100%;
	border-radius: 10px;
	z-index: 0;
	margin: 8px 0;
}
.akin-map-popup {
	width: 200px;
}
.akin-map-popup img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	margin-bottom: 6px;
}
.akin-map-popup-title {
	font-weight: 600;
	font-size: 14px;
	color: #222;
	text-decoration: none;
	display: block;
	line-height: 1.3;
}
.akin-map-popup-title:hover {
	color: var(--akin-primary);
}
.akin-map-popup-price {
	color: var(--akin-primary);
	font-weight: 700;
	margin-top: 2px;
}
