/* =========================================================
   New Theme - Main Stylesheet
   Χρώματα/διαστάσεις ελέγχονται δυναμικά από CSS variables
   που εκτυπώνονται στο <head> (βλ. inc/dynamic-css.php)
   ========================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--newset-body-bg, #ffffff);
	color: #1a1a1a;
	line-height: 1.6;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

.newset-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

/* =========================================================
   HEADER
   ========================================================= */
.newset-header {
	background-color: var(--newset-header-bg, #ffffff);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.newset-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.newset-header-brand-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	flex: 1;
}

/* Λογότυπο αριστερά (default) */
body.newset-logo-left .newset-header-inner {
	justify-content: space-between;
}

/* Λογότυπο στο κέντρο: reorder με flex ώστε logo+menu να πάνε στο κέντρο */
body.newset-logo-center .newset-header-inner {
	position: relative;
	justify-content: center;
}
body.newset-logo-center .newset-header-brand-nav {
	flex: 0 0 auto;
}
body.newset-logo-center .newset-header-actions {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.newset-logo img {
	max-height: 60px;
	width: auto;
}

.newset-site-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #182d56;
}

/* Μενού - κουμπιά */
.newset-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.newset-menu li a {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	background-color: var(--newset-menu-btn-bg, #182d56);
	color: var(--newset-menu-btn-text, #ffffff);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.newset-menu li a:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.newset-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Actions (δεξιά): CTA + account */
.newset-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.newset-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #f2a93b;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 20px;
	border-radius: 999px;
	white-space: nowrap;
	transition: filter 0.2s ease;
}
.newset-cta-btn-plus {
	font-size: 17px;
	font-weight: 800;
	line-height: 1;
}
.newset-cta-btn:hover {
	filter: brightness(0.94);
}

/* Account round icon */
.newset-account-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	padding: 8px 16px 8px 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #182d56;
	position: relative;
	z-index: 5;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

/* Εξασφαλίζει ότι τίποτα άλλο στο header δεν "κόβει" το tap σε mobile/tablet */
.newset-header-actions {
	position: relative;
	z-index: 5;
}

.newset-account-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #182d56;
	color: #ffffff;
	flex-shrink: 0;
}

.newset-account--logged-in {
	position: relative;
}
.newset-account--logged-in .newset-account-btn img {
	border-radius: 50%;
	width: 34px;
	height: 34px;
}

.newset-account-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	min-width: 200px;
	padding: 6px;
	z-index: 500;
}
.newset-account-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border-radius: 8px;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	color: #182d56;
	cursor: pointer;
}
.newset-account-menu-item:hover {
	background-color: #f4f5f8;
}
.newset-account-menu-item--logout {
	color: #c0392b;
}

/* Mobile hamburger (κρυφό σε desktop) */
.newset-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
}
.newset-mobile-toggle span {
	display: block;
	height: 2px;
	background: #182d56;
	border-radius: 2px;
}

/* Κουμπί κλεισίματος (X) του mobile μενού — κρυφό σε desktop, εμφανίζεται
   μόνο μέσα στο popup πλήρους οθόνης σε κινητά/tablet (βλ. media query). */
.newset-nav-close {
	display: none;
}

/* Κουμπί "Νέα Αγγελία" μέσα στο popup μενού — κρυφό σε desktop, εμφανίζεται
   μόνο μέσα στο popup πλήρους οθόνης σε κινητά/tablet (βλ. media query). */
.newset-nav-cta {
	display: none;
}

/* Notice banner (π.χ. επιβεβαίωση εγγραφής) */
.newset-notice {
	text-align: center;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
}
.newset-notice--success {
	background-color: #1e8e3e;
	color: #ffffff;
}

/* =========================================================
   HERO SECTION (εικόνα ή YouTube video)
   ========================================================= */
.newset-hero {
	position: relative;
	width: 100%;
	height: var(--newset-hero-height, 700px);
	overflow: hidden;
	background-color: #0e1526;
}

.newset-hero-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}

.newset-hero-video-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.newset-hero-video-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;       /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh;   /* 16:9 */
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

.newset-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: var(--newset-hero-overlay, 0);
	pointer-events: none;
}

.newset-hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 24px;
}

/* =========================================================
   LISTINGS GRID
   ========================================================= */
.newset-listings {
	padding: 60px 0;
}

.newset-section-title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 28px;
	color: #182d56;
}

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

.newset-listing-card {
	border: 1px solid #ececec;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	background: #fff;
}
.newset-listing-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.newset-listing-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}
.newset-listing-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.newset-listing-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef1f7, #dfe4ee);
}

.newset-listing-body {
	padding: 16px;
}
.newset-listing-title {
	font-size: 16px;
	margin: 0 0 6px;
	color: #182d56;
}
.newset-listing-excerpt {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.newset-empty-state {
	color: #777;
	font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */
.newset-footer {
	background-color: #f7f7f9;
	margin-top: 40px;
	padding: 40px 0 24px;
}
.newset-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}
.newset-footer-menu-list {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 18px;
	padding: 0;
	margin: 0 0 16px;
	font-size: 14px;
}
.newset-footer-copy {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* =========================================================
   AJAX AUTH PANEL (slide-in από δεξιά)
   ========================================================= */
.newset-auth-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 35, 0.5);
	z-index: 999998;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.newset-auth-overlay.is-visible {
	opacity: 1;
}

.newset-auth-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	height: 100dvh; /* σωστό ύψος σε mobile browsers με κρυφή/ορατή μπάρα διεύθυνσης */
	width: 420px;
	max-width: 92vw;
	background: #fff;
	z-index: 999999;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.35s ease;
	padding: 32px 28px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.newset-auth-panel.is-open {
	transform: translateX(0);
}

.newset-auth-close {
	position: absolute;
	top: 18px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.newset-auth-tabs {
	display: flex;
	gap: 8px;
	margin: 8px 0 24px;
	background: #f2f2f5;
	border-radius: 999px;
	padding: 4px;
}
.newset-auth-tab {
	flex: 1;
	border: none;
	background: none;
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	color: #555;
}
.newset-auth-tab.is-active {
	background: #182d56;
	color: #ffffff;
}

.newset-auth-form {
	display: none;
	flex-direction: column;
	gap: 14px;
}
.newset-auth-form.is-active {
	display: flex;
}
.newset-auth-form h3 {
	margin: 0 0 6px;
	color: #182d56;
}

.newset-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.newset-field label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.newset-field input[type="text"],
.newset-field input[type="email"],
.newset-field input[type="password"] {
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}
.newset-field input:focus {
	outline: 2px solid var(--newset-menu-btn-bg, #182d56);
	outline-offset: 1px;
}

.newset-field-inline {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}
.newset-forgot-link {
	color: var(--newset-menu-btn-bg, #182d56);
	font-weight: 600;
}

.newset-auth-help {
	font-size: 13px;
	color: #666;
	margin: -6px 0 4px;
}

.newset-back-to-login {
	text-align: center;
	margin: 4px 0 0;
}
.newset-back-to-login a {
	font-size: 13px;
	font-weight: 600;
	color: var(--newset-menu-btn-bg, #182d56);
}

.newset-auth-submit {
	background-color: var(--newset-cta-btn-bg, #f2a93b);
	color: var(--newset-cta-btn-text, #ffffff);
	border: none;
	border-radius: 999px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.newset-auth-submit:hover {
	filter: brightness(0.94);
}
.newset-auth-submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Τα κουμπιά "Σύνδεση", "Εγγραφή" και "Αποθήκευση" (Dashboard) είναι πάντα
   σε αυτά τα χρώματα, ανεξάρτητα από τη γενική ρύθμιση χρώματος του CTA. */
#newset-login-form .newset-auth-submit,
#newset-register-form .newset-auth-submit,
#newset-lostpassword-form .newset-auth-submit,
#newset-resetpassword-form .newset-auth-submit,
#newset-dashboard-profile-form .newset-auth-submit {
	background-color: #f2a93b;
	color: #ffffff;
}

.newset-field input[readonly],
.newset-field input[disabled] {
	background-color: #f4f5f8;
	color: #888;
	cursor: not-allowed;
}

.newset-auth-messages {
	min-height: 0;
	font-size: 14px;
	margin-bottom: 6px;
}
.newset-auth-messages:empty {
	display: none;
}
.newset-auth-messages.has-error {
	color: #ffffff;
	background-color: #c0392b;
	border: 1px solid #a93226;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
}
.newset-auth-messages.has-success {
	color: #ffffff;
	background-color: #1e8e3e;
	border: 1px solid #197a35;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
}

/* =========================================================
   DASHBOARD
   ========================================================= */
.newset-dashboard-wrap {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 28px;
	padding: 40px 0 60px;
	align-items: start;
}

.newset-dashboard-sidebar {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 20px;
	position: sticky;
	top: 90px;
}

.newset-dashboard-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 12px;
	border-bottom: 1px solid #ececec;
}
.newset-dashboard-user img {
	border-radius: 50%;
	width: 56px;
	height: 56px;
}
.newset-dashboard-user strong {
	display: block;
	color: #182d56;
	font-size: 15px;
}
.newset-dashboard-user span {
	display: block;
	font-size: 12px;
	color: #888;
}

.newset-dashboard-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.newset-dashboard-menu-item {
	text-align: left;
	background: none;
	border: none;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}
.newset-dashboard-menu-item:hover {
	background-color: #f4f5f8;
}
.newset-dashboard-menu-item.is-active {
	background-color: var(--newset-menu-btn-bg, #182d56);
	color: var(--newset-menu-btn-text, #ffffff);
}
.newset-dashboard-menu-item--logout {
	color: #c0392b;
	margin-top: 8px;
	border-top: 1px solid #ececec;
	padding-top: 14px;
}

.newset-dashboard-content {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 28px;
	min-height: 320px;
}
.newset-dashboard-content[aria-busy="true"] {
	opacity: 0.6;
}

.newset-dashboard-title {
	margin: 0 0 20px;
	font-size: 20px;
	color: #182d56;
}

.newset-dashboard-divider {
	border: none;
	border-top: 1px solid #ececec;
	margin: 32px 0;
}

.newset-dashboard-subtitle {
	margin: 0 0 16px;
	font-size: 16px;
	color: #182d56;
}

.newset-dashboard-field-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #ececec;
}
.newset-dashboard-field-group:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.newset-field-optional {
	font-weight: 400;
	font-size: 13px;
	color: #888;
}

.newset-field-hint {
	font-size: 12px;
	color: #888;
	margin: -6px 0 0;
}

.newset-dashboard-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
}

.newset-dashboard-messages {
	margin-bottom: 4px;
}
.newset-dashboard-messages:empty {
	display: none;
}
.newset-dashboard-messages.has-error {
	color: #ffffff;
	background-color: #c0392b;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 14px;
}
.newset-dashboard-messages.has-success {
	color: #ffffff;
	background-color: #1e8e3e;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 14px;
}

.newset-dashboard-listings {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.newset-dashboard-listing-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
}
.newset-dashboard-listing-item a:first-child {
	font-weight: 700;
	color: #182d56;
}
.newset-dashboard-listing-status {
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.newset-dashboard-listing-edit {
	color: var(--newset-menu-btn-bg, #182d56);
	font-weight: 600;
}

@media (max-width: 782px) {
	.newset-dashboard-wrap {
		grid-template-columns: 1fr;
	}
	.newset-dashboard-sidebar {
		position: static;
	}
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.newset-breadcrumbs {
	margin: 20px 0;
	font-size: 13px;
	color: #888;
}
.newset-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.newset-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
}
.newset-breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: #ccc;
	margin-left: 6px;
}
.newset-breadcrumbs a {
	color: #888;
}
.newset-breadcrumbs a:hover {
	color: var(--newset-menu-btn-bg, #182d56);
}
.newset-breadcrumbs [aria-current="page"] {
	color: #333;
	font-weight: 600;
}

/* =========================================================
   404
   ========================================================= */
.newset-404 {
	text-align: center;
	padding: 60px 0;
}
.newset-404 p {
	color: #666;
	margin-bottom: 18px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
	.newset-header-brand-nav {
		gap: 18px;
	}
	.newset-menu {
		gap: 6px;
	}
	.newset-menu li a {
		padding: 8px 14px;
		font-size: 13px;
	}
}

@media (max-width: 782px) {
	.newset-hero {
		height: 450px;
	}

	.newset-account-label {
		display: none; /* Σε mobile/tablet μόνο το εικονίδιο */
	}
	.newset-account-btn {
		padding: 8px;
		border: none;
	}

	/* Το κουμπί "Νέα Αγγελία" δεν εμφανίζεται πλέον στη γραμμή του header σε
	   κινητά/tablet — μεταφέρεται μόνιμα μέσα στο popup μενού (βλ. παρακάτω). */
	.newset-cta-btn {
		display: none;
	}

	.newset-mobile-toggle {
		display: flex;
	}

	.newset-nav {
		display: none;
	}

	/* Διάταξη: hamburger αριστερά — λογότυπο στο κέντρο — ανθρωπάκι δεξιά. */
	.newset-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: nowrap;
	}
	.newset-mobile-toggle {
		order: 1;
		flex: 0 0 auto;
	}
	.newset-header-brand-nav {
		order: 2;
		flex: 1 1 auto;
		justify-content: center;
		min-width: 0;
	}
	.newset-header-actions {
		order: 3;
		flex: 0 0 auto;
		position: static;
		transform: none;
	}

	.newset-nav.is-open {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100dvh;
		background-color: #182d56;
		z-index: 99999;
		padding: 90px 28px 40px;
		overflow-y: auto;
	}
	.newset-nav-close {
		display: none;
	}
	.newset-nav.is-open .newset-nav-close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
		background: none;
		border: none;
		color: #ffffff;
		font-size: 32px;
		line-height: 1;
		cursor: pointer;
	}

	/* Μόνιμο κουμπί "+ Νέα Αγγελία" μέσα στο popup μενού — ανεξάρτητο από το
	   δυναμικό μενού του WordPress, πάντα ορατό στην κορυφή. */
	.newset-nav-cta {
		display: none;
	}
	.newset-nav.is-open .newset-nav-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background-color: #f2a93b;
		color: #ffffff;
		font-size: 16px;
		font-weight: 700;
		padding: 14px 20px;
		border-radius: 999px;
		margin-bottom: 24px;
		flex-shrink: 0;
	}

	.newset-nav.is-open .newset-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 0;
	}
	.newset-nav.is-open .newset-menu li a {
		background: transparent;
		color: #ffffff;
		font-size: 18px;
		font-weight: 600;
		padding: 16px 10px;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		justify-content: flex-start;
	}
	.newset-nav.is-open .newset-menu li a:hover {
		opacity: 0.8;
		transform: none;
	}

	.newset-auth-panel {
		width: 100%;
		max-width: 100vw;
	}
}
