/*
Theme Name:  Boundary
Theme URI:   https://boundary-re.jp
Author:      Boundary Real Estate
Author URI:  https://boundary-re.jp
Description: Premium real estate corporate theme for Boundary Real Estate, Niseko.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boundary
Tags:        real-estate, minimal, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
	/* Colors */
	--color-bg:          #ffffff;
	--color-bg-sub:      #f5f5f3;
	--color-text:        #111111;
	--color-text-sub:    #666666;
	--color-text-hint:   #999999;
	--color-border:      rgba(0, 0, 0, 0.12);
	--color-border-md:   rgba(0, 0, 0, 0.25);
	--color-cta-bg:      #0f1c2e;
	--color-hero-overlay: rgba(10, 20, 35, 0.42);

	/* Badge colors */
	--color-badge-sale-bg:    #1a2535;
	--color-badge-sale-text:  #ffffff;
	--color-badge-rent-bg:    #ffffff;
	--color-badge-rent-text:  #333333;
	--color-badge-invest-bg:  #e8e6e0;
	--color-badge-invest-text: #555555;

	/* Status badge colors */
	--color-status-available-bg:   #e4f0e8;
	--color-status-available-text: #2d6e3e;
	--color-status-sold-bg:        #f0e4e4;
	--color-status-sold-text:      #6e2d2d;

	/* Typography */
	--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Border — 1px for reliable rendering on all mobile browsers */
	--border-thin:   1px solid rgba(0, 0, 0, 0.08);
	--border-md:     1px solid rgba(0, 0, 0, 0.16);

	/* Border radius */
	--radius-sm:  4px;
	--radius-md:  8px;
	--radius-lg: 12px;

	/* Spacing */
	--section-padding-lg: 72px 48px;
	--section-padding-md: 64px 48px;
	--nav-height: 64px;
	--page-padding-x: 48px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.75;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
	line-height: 1.3;
}

/* Screen-reader only utility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-bg);
	border-bottom: var(--border-thin);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
	padding: 0 var(--page-padding-x);
}

/* Logo */
.nav-logo {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.nav-logo__main {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--color-text);
}

.nav-logo__sub {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.12em;
	color: var(--color-text-hint);
	margin-top: 1px;
}

/* Center links */
.nav-links {
	display: flex;
	gap: 32px;
}

.nav-links a {
	font-size: 13px;
	color: var(--color-text-sub);
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 1.5px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.current-menu-item,
.nav-links a[aria-current="page"] {
	font-weight: 500;
	color: var(--color-text);
	border-bottom-color: #111;
}

/* Right controls */
.nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.lang-switch {
	font-size: 12px;
	color: var(--color-text-sub);
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	cursor: pointer;
	background: transparent;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.lang-switch:hover {
	background: var(--color-bg-sub);
}

.btn-inquiry {
	font-size: 12px;
	font-weight: 500;
	background: var(--color-text);
	color: var(--color-bg);
	border-radius: var(--radius-sm);
	padding: 6px 14px;
	transition: opacity 0.15s;
}

.btn-inquiry:hover {
	opacity: 0.8;
}

/* Polylang language switcher overrides */
.pll-parent-menu-item {
	list-style: none;
}

.pll-parent-menu-item a {
	font-size: 12px;
	color: var(--color-text-sub);
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background-color: #c0cad2;
}

.hero__bg-img {
	display: block;
	width: 100%;
	height: auto;
}

/* TOP page hero: cap height so the upper (sky) area is less dominant */
.home .hero {
	height: 68vh;
}

.home .hero .hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background: #c8cfd8;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__mountain {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 260px;
	pointer-events: none;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--color-hero-overlay);
}

.hero__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	padding: 0 64px 60px;
}

.hero__eyebrow {
	font-size: 11px;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 14px;
}

.hero__title {
	font-size: 38px;
	font-weight: 500;
	color: #fff;
	line-height: 1.22;
	margin-bottom: 18px;
}

.hero__sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.75;
	max-width: 440px;
	margin-bottom: 30px;
}

.hero__actions {
	display: flex;
	gap: 12px;
}

.hero__btn {
	display: inline-block;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 500;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	transition: opacity 0.15s;
}

.hero__btn:hover {
	opacity: 0.88;
}

.hero__btn--outline {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero__btn--outline:hover {
	background: rgba(255, 255, 255, 0.1);
	opacity: 1;
}

/* ==========================================================================
   Search Bar (overlaps hero bottom)
   ========================================================================== */

.search-bar-wrap {
	padding: 0 var(--page-padding-x);
	margin-top: -28px;
	position: relative;
	z-index: 2;
}

.search-bar {
	background: var(--color-bg);
	border: var(--border-thin);
	border-radius: var(--radius-md);
	padding: 20px 24px;
	display: flex;
	gap: 12px;
	align-items: flex-end;
}

.search-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.search-field label {
	font-size: 10px;
	color: var(--color-text-hint);
	letter-spacing: 0.09em;
}

.search-field select,
.search-field input {
	font-size: 13px;
	color: var(--color-text);
	background: var(--color-bg-sub);
	border: var(--border-thin);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	-webkit-appearance: none;
	appearance: none;
}

.search-field--wide {
	flex: 2;
}

.search-divider {
	width: 0.5px;
	background: rgba(0, 0, 0, 0.12);
	height: 40px;
	flex-shrink: 0;
}

.search-submit {
	background: var(--color-text);
	color: var(--color-bg);
	border-radius: var(--radius-sm);
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: opacity 0.15s;
}

.search-submit:hover {
	opacity: 0.8;
}

/* ==========================================================================
   Section Commons
   ========================================================================== */

.section {
	padding: var(--section-padding-lg);
}

.section--sub {
	background: var(--color-bg-sub);
}

.section__label {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--color-text-hint);
	margin-bottom: 10px;
}

.section__title {
	font-size: 23px;
	font-weight: 500;
	margin-bottom: 8px;
}

.section__sub {
	font-size: 14px;
	color: var(--color-text-sub);
	line-height: 1.75;
	max-width: 500px;
	margin-bottom: 40px;
}

.section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
}

.view-all {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: var(--border-md);
	border-radius: var(--radius-sm);
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.view-all:hover {
	background: var(--color-text);
	color: var(--color-bg);
}

/* ==========================================================================
   Property Card
   ========================================================================== */

.prop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.prop-card {
	background: var(--color-bg);
	border: var(--border-thin);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
}

.prop-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.prop-card__body a,
.prop-card__img a {
	position: relative;
	z-index: 2;
}

.prop-card__img {
	height: 185px;
	position: relative;
	background: #cdd5dc;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.prop-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prop-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 3px;
}

.prop-badge--sale      { background: var(--color-badge-sale-bg);    color: var(--color-badge-sale-text); }
.prop-badge--rent      { background: var(--color-badge-rent-bg);    color: var(--color-badge-rent-text); border: 1px solid rgba(0, 0, 0, 0.14); }
.prop-badge--invest    { background: var(--color-badge-invest-bg);  color: var(--color-badge-invest-text); }

.status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 3px;
}

.status-badge--available { background: var(--color-status-available-bg); color: var(--color-status-available-text); }
.status-badge--sold      { background: var(--color-status-sold-bg);      color: var(--color-status-sold-text); }

.prop-card__body {
	padding: 16px 20px 20px;
}

.prop-card__type {
	font-size: 10px;
	color: var(--color-text-hint);
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}

.prop-card__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	margin-bottom: 8px;
}

.prop-card__area {
	font-size: 12px;
	color: var(--color-text-sub);
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 14px;
}

.prop-card__divider {
	border: none;
	border-top: var(--border-thin);
	margin-bottom: 14px;
}

.prop-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.prop-card__price {
	font-size: 17px;
	font-weight: 500;
}

.prop-card__price-unit {
	font-size: 11px;
	color: var(--color-text-sub);
	font-weight: 400;
}

.prop-card__size {
	font-size: 12px;
	color: var(--color-text-sub);
}

/* ==========================================================================
   Service Card
   ========================================================================== */

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.service-card {
	padding: 28px 24px;
	border: var(--border-thin);
	border-radius: var(--radius-lg);
}

.service-card__icon {
	width: 36px;
	height: 36px;
	background: var(--color-bg-sub);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.service-card__icon i {
	font-size: 18px;
	color: var(--color-text-sub);
}

.service-card__name {
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 8px;
}

.service-card__desc {
	font-size: 13px;
	color: var(--color-text-sub);
	line-height: 1.7;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.about-img-block {
	height: 360px;
	background: #cdd2d8;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.about-img-block img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 36px;
}

.stat-item {
	padding: 20px;
	background: var(--color-bg-sub);
	border: var(--border-thin);
	border-radius: var(--radius-md);
}

.stat-item__num {
	font-size: 26px;
	font-weight: 500;
	margin-bottom: 4px;
}

.stat-item__label {
	font-size: 12px;
	color: var(--color-text-sub);
}

.stat-item__num--qual {
	font-size: 18px;
	letter-spacing: 0.05em;
	color: var(--color-accent);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
	background: var(--color-cta-bg);
	padding: var(--section-padding-lg);
	text-align: center;
}

.cta-section__label {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.38);
	margin-bottom: 12px;
}

.cta-section__title {
	font-size: 26px;
	font-weight: 500;
	color: #fff;
	margin-bottom: 12px;
}

.cta-section__sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 32px;
}

.cta-section__btn {
	display: inline-block;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 500;
	padding: 13px 32px;
	border-radius: var(--radius-sm);
	transition: opacity 0.15s;
}

.cta-section__btn:hover {
	opacity: 0.88;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: var(--border-thin);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 48px;
}

.footer-logo__main {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	margin-bottom: 2px;
}

.footer-logo__sub {
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--color-text-hint);
	margin-bottom: 10px;
}

.footer-tagline {
	font-size: 12px;
	color: var(--color-text-hint);
	line-height: 1.7;
	max-width: 220px;
}

.footer-addr {
	font-size: 12px;
	color: var(--color-text-hint);
	line-height: 1.7;
	margin-top: 10px;
}

.footer-col__title {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--color-text-sub);
	margin-bottom: 14px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	font-size: 13px;
	color: var(--color-text-sub);
	transition: color 0.15s;
}

.footer-links a:hover {
	color: var(--color-text);
}

.footer-bottom {
	padding: 20px 48px;
	border-top: var(--border-thin);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copy {
	font-size: 12px;
	color: var(--color-text-hint);
}

.footer-legal {
	display: flex;
	gap: 16px;
}

.footer-legal a {
	font-size: 12px;
	color: var(--color-text-hint);
	transition: color 0.15s;
}

.footer-legal a:hover {
	color: var(--color-text);
}

/* ==========================================================================
   Page Header (archive / inner pages)
   ========================================================================== */

.page-header {
	padding: 40px var(--page-padding-x) 32px;
	border-bottom: var(--border-thin);
}

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--color-text-hint);
	margin-bottom: 16px;
}

.breadcrumb a {
	color: var(--color-text-hint);
	transition: color 0.15s;
}

.breadcrumb a:hover {
	color: var(--color-text-sub);
}

.breadcrumb i {
	font-size: 11px;
}

.page-title {
	font-size: 26px;
	font-weight: 500;
	margin-bottom: 6px;
}

.page-template-page-about .page-title {
	font-size: 13px;
	font-weight: 400;
}

.page-sub {
	font-size: 13px;
	color: var(--color-text-sub);
}

/* ==========================================================================
   Archive: two-column layout
   ========================================================================== */

.list-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 700px;
}

/* ==========================================================================
   Sidebar (property filter)
   ========================================================================== */

.property-sidebar {
	background: var(--color-bg-sub);
	border-right: var(--border-thin);
	padding: 28px 24px;
}

.filter-section {
	margin-bottom: 28px;
}

.filter-title {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--color-text-hint);
	margin-bottom: 12px;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-text-sub);
	cursor: pointer;
	user-select: none;
}

.filter-chip input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: var(--color-text);
	flex-shrink: 0;
}

.filter-chip:has(input:checked) {
	color: var(--color-text);
	font-weight: 500;
}

.filter-count {
	margin-left: auto;
	font-size: 11px;
	color: var(--color-text-hint);
	font-weight: 400;
}

.filter-divider {
	border: none;
	border-top: var(--border-thin);
	margin: 0 0 28px;
}

/* Price range */
.price-range {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.price-inputs {
	display: flex;
	gap: 8px;
	align-items: center;
	min-width: 0;
}

.price-inputs input {
	flex: 1;
	min-width: 0;
	width: 0;
	font-size: 12px;
	padding: 6px 8px;
	border: var(--border-thin);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
}

.price-inputs input:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.35);
}

.price-inputs__sep {
	font-size: 12px;
	color: var(--color-text-hint);
	flex-shrink: 0;
}

/* Apply / Reset */
.apply-btn {
	width: 100%;
	font-size: 12px;
	font-weight: 500;
	padding: 9px;
	background: var(--color-text);
	color: var(--color-bg);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	margin-top: 16px;
	transition: opacity 0.15s;
}

.apply-btn:hover {
	opacity: 0.8;
}

.reset-link {
	font-size: 12px;
	color: var(--color-text-hint);
	text-decoration: none;
	display: block;
	text-align: center;
	margin-top: 10px;
	cursor: pointer;
	transition: color 0.15s;
}

.reset-link:hover {
	color: var(--color-text-sub);
}

/* ==========================================================================
   Archive: main column
   ========================================================================== */

.list-main {
	padding: 24px 32px;
}

/* Toolbar */
.list-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.result-count {
	font-size: 13px;
	color: var(--color-text-sub);
}

.result-count strong {
	color: var(--color-text);
	font-weight: 500;
}

.toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sort-select {
	font-size: 12px;
	padding: 6px 10px;
	border: var(--border-thin);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.view-toggle {
	display: flex;
	border: var(--border-thin);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.view-btn {
	padding: 6px 10px;
	font-size: 14px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-sub);
	transition: background 0.15s, color 0.15s;
}

.view-btn.is-active {
	background: var(--color-text);
	color: var(--color-bg);
}

/* Archive grid: 2-column override */
.prop-grid--archive {
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* List view */
.prop-grid--list {
	grid-template-columns: 1fr;
	gap: 12px;
}

.prop-grid--list .prop-card {
	display: grid;
	grid-template-columns: 220px 1fr;
}

.prop-grid--list .prop-card__img {
	height: 100%;
	min-height: 140px;
	border-radius: 0;
}

/* No-results message */
.no-results {
	font-size: 14px;
	color: var(--color-text-sub);
	padding: 48px 0;
	text-align: center;
	grid-column: 1 / -1;
}

/* Loading state */
.prop-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: var(--border-thin);
}

.pagination-wrap a,
.pagination-wrap span {
	min-width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border: var(--border-thin);
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: var(--color-text-sub);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.pagination-wrap span.current {
	background: var(--color-text);
	color: var(--color-bg);
	border-color: var(--color-text);
	font-weight: 500;
}

.pagination-wrap a:hover {
	background: var(--color-bg-sub);
	color: var(--color-text);
}

.pagination-wrap .prev,
.pagination-wrap .next {
	color: var(--color-text-hint);
}

.pagination-wrap .dots {
	border: none;
	color: var(--color-text-hint);
}

/* ==========================================================================
   Buttons (global)
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 500;
	transition: opacity 0.15s;
	cursor: pointer;
}

.btn--primary {
	background: var(--color-text);
	color: var(--color-bg);
}

.btn--primary:hover {
	opacity: 0.8;
}

.btn--outline {
	background: transparent;
	color: var(--color-text);
	border: var(--border-md);
}

.btn--outline:hover {
	background: var(--color-bg-sub);
}

.btn--full {
	width: 100%;
}

/* ==========================================================================
   Contact page layout
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 64px;
	padding: var(--section-padding-lg);
	max-width: 1100px;
	margin: 0 auto;
	align-items: start;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding-top: 8px;
}

.contact-info__block {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.contact-info__label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-hint);
}

.contact-info__value {
	font-size: 14px;
	line-height: 1.7;
	color: var(--color-text-sub);
	font-style: normal;
}

.contact-info__value a {
	color: var(--color-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-success[hidden] {
	display: none;
}

.contact-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 56px 24px;
	gap: 12px;
}

.contact-success .ti {
	font-size: 52px;
	color: var(--color-status-available-text);
}

.contact-success h2 {
	font-size: 24px;
	font-weight: 600;
}

.contact-success p {
	font-size: 15px;
	color: var(--color-text-sub);
	max-width: 360px;
}

/* ==========================================================================
   Contact Form 7 — layout overrides
   ========================================================================== */

.wpcf7-form .cf7-row {
	display: grid;
	gap: 16px;
	margin-bottom: 0;
}

.wpcf7-form .cf7-row--2col {
	grid-template-columns: 1fr 1fr;
}

.wpcf7-form .cf7-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

.wpcf7-form .cf7-row .cf7-field {
	margin-bottom: 0;
}

.wpcf7-form label {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	letter-spacing: 0.01em;
}

.wpcf7-form .required {
	color: #c0392b;
	margin-left: 2px;
}

/* Inputs, select, textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	background: var(--color-bg-sub);
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: var(--font-sans);
	color: var(--color-text);
	transition: border-color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.5);
}

/* Custom select arrow */
.wpcf7-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 36px;
	cursor: pointer;
}

.wpcf7-form textarea {
	resize: vertical;
	min-height: 140px;
}

/* Topic chips */
.cf7-topic-chips .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.cf7-topic-chips .wpcf7-list-item {
	margin: 0;
	list-style: none;
}

.cf7-topic-chips .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cf7-topic-chips .wpcf7-list-item label:hover {
	background: var(--color-bg-sub);
}

/* Hide actual radio button; use :has() for checked state */
.cf7-topic-chips .wpcf7-list-item input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.cf7-topic-chips .wpcf7-list-item label:has(input:checked) {
	background: var(--color-text);
	color: var(--color-bg);
	border-color: var(--color-text);
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
	width: 100%;
	padding: 14px;
	background: #111111;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-sans);
	cursor: pointer;
	transition: opacity 0.15s;
	margin-top: 8px;
}

.wpcf7-form input[type="submit"]:hover {
	opacity: 0.8;
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form input[type="submit"][disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* CF7 validation */
.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-not-valid-tip {
	display: block;
	font-size: 12px;
	color: #c0392b;
	margin-top: 4px;
}

.wpcf7-not-valid {
	border-color: rgba(192, 57, 43, 0.5) !important;
}

/* Response output bar */
.wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13px;
	border: none !important;
}

.wpcf7-mail-sent-ok {
	background: var(--color-status-available-bg);
	color: var(--color-status-available-text);
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
	background: var(--color-status-sold-bg);
	color: var(--color-status-sold-text);
}

/* Hide CF7 ajax spinner (we rely on form opacity) */
.wpcf7 .ajax-loader {
	display: none !important;
}

/* ==========================================================================
   Single property page
   ========================================================================== */

/* ==========================================================================
   Property Gallery
   ========================================================================== */

.prop-gallery {
	position: relative;
	background: #0a0f18;
}

.prop-gallery__badges {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	gap: 8px;
	z-index: 10;
}

.prop-gallery__badges .prop-badge,
.prop-gallery__badges .status-badge {
	position: static;
}

.prop-gallery__main {
	position: relative;
	height: 520px;
	overflow: hidden;
	background: #0a0f18;
}

.prop-gallery__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.prop-gallery__slide.is-active {
	opacity: 1;
}

.prop-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.prop-gallery__nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.prop-gallery__nav--prev { left: 20px; }
.prop-gallery__nav--next { right: 20px; }

.prop-gallery__counter {
	position: absolute;
	bottom: 16px;
	right: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.05em;
}

.prop-gallery__thumbs {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: #0a0f18;
	overflow-x: auto;
	scrollbar-width: none;
}

.prop-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.prop-gallery__thumb {
	flex-shrink: 0;
	width: 100px;
	height: 66px;
	overflow: hidden;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s, opacity 0.2s;
	padding: 0;
	opacity: 0.55;
}

.prop-gallery__thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

.prop-gallery__thumb:hover {
	opacity: 0.85;
}

.prop-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Expand button on main image */
.prop-gallery__expand {
	position: absolute;
	bottom: 56px;
	right: 20px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.prop-gallery__expand:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* Fullscreen lightbox */
.gallery-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: rgba(0, 0, 0, 0.95);
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gallery-lightbox.is-open {
	display: flex;
}

.gallery-lightbox__img-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	padding: 60px 80px 16px;
}

.gallery-lightbox__img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 4px;
}

.gallery-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.gallery-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.gallery-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }

.gallery-lightbox__thumbs {
	display: flex;
	gap: 6px;
	padding: 12px 20px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 100%;
}

.gallery-lightbox__thumbs::-webkit-scrollbar { display: none; }

.gallery-lightbox__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 48px;
	border-radius: 3px;
	overflow: hidden;
	border: 2px solid transparent;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s, border-color 0.2s;
	padding: 0;
}

.gallery-lightbox__thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

.gallery-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-lightbox__counter {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	letter-spacing: 0.05em;
}

.single-prop__hero {
	position: relative;
	height: 480px;
	overflow: hidden;
}

.single-prop__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-prop__hero .prop-badge {
	position: absolute;
	top: 24px;
	left: var(--page-padding-x);
}

.single-prop__hero .status-badge {
	position: absolute;
	top: 24px;
	left: calc(var(--page-padding-x) + 90px);
}

.single-prop__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
	padding: var(--section-padding-lg);
	max-width: 1100px;
	margin: 0 auto;
	align-items: start;
}

.single-prop__header {
	margin-bottom: 28px;
}

.single-prop__location {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--color-text-hint);
	margin-bottom: 8px;
}

.single-prop__title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.25;
}

.single-prop__description {
	margin-bottom: 32px;
	line-height: 1.8;
	color: var(--color-text-sub);
}

.single-prop__specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 20px;
	padding: 24px;
	background: var(--color-bg-sub);
	border-radius: var(--radius-md);
	margin-bottom: 32px;
}

.prop-spec {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.prop-spec__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-hint);
}

.prop-spec__value {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text);
}

.single-prop__content {
	font-size: 15px;
	line-height: 1.8;
	color: var(--color-text-sub);
}

.single-prop__content p {
	margin-bottom: 16px;
}

/* Sticky CTA card */
.single-prop__sidebar {
	position: sticky;
	top: calc(var(--nav-height) + 24px);
}

.single-prop__cta-card {
	border: var(--border-thin);
	border-radius: var(--radius-md);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cta-card__price {
	font-size: 22px;
	font-weight: 600;
	color: var(--color-text);
}

.cta-card__note {
	font-size: 12px;
	color: var(--color-text-hint);
	text-align: center;
}

/* ==========================================================================
   Responsive — contact & single property
   ========================================================================== */

@media (max-width: 900px) {
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 40px 24px;
	}

	.single-prop__layout {
		grid-template-columns: 1fr;
		padding: 40px 24px;
	}

	.single-prop__sidebar {
		position: static;
		order: -1;
	}

	.single-prop__hero {
		height: 300px;
	}

	.single-prop__hero .prop-badge,
	.single-prop__hero .status-badge {
		left: 20px;
	}

	.single-prop__hero .status-badge {
		left: 110px;
	}

	.wpcf7-form .cf7-row--2col {
		grid-template-columns: 1fr;
	}

	.services-section .service-grid {
		grid-template-columns: 1fr;
	}

	.about-story {
		grid-template-columns: 1fr;
	}

	.about-values__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Section label (shared utility)
   ========================================================================== */

.section-label {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-hint);
	margin-bottom: 12px;
}

/* ==========================================================================
   Services page — section wrapper (distinct from front-page .service-grid)
   ========================================================================== */

.services-section {
	padding: var(--section-padding-lg);
	max-width: 1100px;
	margin: 0 auto;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-story {
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 72px;
	align-items: center;
	padding: var(--section-padding-lg);
	max-width: 1100px;
	margin: 0 auto;
}

.about-story__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.about-story__heading {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
}

.about-story__text p {
	font-size: 15px;
	line-height: 1.8;
	color: var(--color-text-sub);
}

.about-story__image {
	height: 440px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-bg-sub);
}

.about-story__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-values {
	background: var(--color-bg-sub);
	padding: var(--section-padding-lg);
	text-align: center;
}

.about-values__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	max-width: 900px;
	margin: 32px auto 0;
}

.value-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 32px 24px;
	background: var(--color-bg);
	border: var(--border-thin);
	border-radius: var(--radius-lg);
}

.value-item .ti {
	font-size: 28px;
	color: var(--color-text-sub);
}

.value-item h3 {
	font-size: 15px;
	font-weight: 600;
}

.value-item p {
	font-size: 13px;
	color: var(--color-text-sub);
	line-height: 1.7;
	text-align: center;
}

/* ==========================================================================
   CTA strip (shared — Services & About pages)
   ========================================================================== */

.cta-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 64px 48px;
	border-top: var(--border-thin);
}

.cta-strip__text {
	font-size: 18px;
	font-weight: 500;
}

@media (max-width: 600px) {
	.cta-strip {
		flex-direction: column;
		gap: 16px;
		padding: 48px 24px;
		text-align: center;
	}
}

/* ==========================================================================
   Services page (.page-services)
   ========================================================================== */

/* Breadcrumb — standalone row with border */
.page-services .breadcrumb {
	padding: 16px 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Hero --- */
.page-services .hero {
	position: relative;
	overflow: hidden;
	background: #c0cad2;
	height: 68vh;
}

.page-services .hero-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.page-services .hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 16, 28, 0.5);
}

.page-services .hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	padding: 0 64px 48px;
}

.page-services .hero-eyebrow {
	font-size: 10px;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 12px;
}

.page-services .hero-title {
	font-size: 30px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.28;
	margin-bottom: 12px;
}

.page-services .hero-sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.75;
	max-width: 560px;
}

/* --- Intro / Overview --- */
.page-services .intro-section {
	padding: 64px 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-services .intro-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 64px;
	align-items: start;
}

.page-services .intro-label {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--color-text-hint);
	margin-bottom: 12px;
}

.page-services .intro-title {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.35;
}

.page-services .intro-body {
	font-size: 14px;
	color: var(--color-text-sub);
	line-height: 1.85;
}

/* --- Service blocks --- */
.page-services .svc-block {
	padding: 64px 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--color-bg);
}

.page-services .svc-block.alt {
	background: var(--color-bg-sub);
}

.page-services .svc-header {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.page-services .svc-num {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--color-text-hint);
	background: var(--color-bg-sub);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	padding: 4px 10px;
	white-space: nowrap;
	margin-top: 3px;
	flex-shrink: 0;
}

.page-services .svc-block.alt .svc-num {
	background: var(--color-bg);
}

.page-services .svc-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	margin-bottom: 6px;
}

.page-services .svc-subtitle {
	font-size: 12px;
	color: var(--color-text-hint);
}

.page-services .svc-body {
	font-size: 14px;
	color: var(--color-text-sub);
	line-height: 1.85;
	margin-bottom: 28px;
	max-width: 720px;
}

/* --- Detail cards --- */
.page-services .detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.page-services .detail-card {
	background: var(--color-bg);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-lg);
	padding: 20px 22px;
}

.page-services .detail-icon {
	font-size: 18px;
	color: var(--color-text-hint);
	margin-bottom: 10px;
}

.page-services .detail-title {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
}

.page-services .detail-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.page-services .detail-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: var(--color-text-sub);
	line-height: 1.6;
}

.page-services .detail-item i {
	font-size: 13px;
	color: var(--color-text-hint);
	margin-top: 2px;
	flex-shrink: 0;
}

/* --- Affiliated note --- */
.page-services .affiliated-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--color-bg);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-md);
	font-size: 12px;
	color: var(--color-text-sub);
	line-height: 1.65;
}

.page-services .affiliated-note i {
	font-size: 15px;
	color: var(--color-text-hint);
	margin-top: 1px;
	flex-shrink: 0;
}

/* --- Strengths --- */
.page-services .strengths-section {
	padding: 64px 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-services .sec-label {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--color-text-hint);
	margin-bottom: 10px;
}

.page-services .sec-title {
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 36px;
}

.page-services .strengths-list {
	display: flex;
	flex-direction: column;
}

.page-services .strength-row {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	padding: 32px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	align-items: start;
}

.page-services .strength-row:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-services .strength-left {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.page-services .strength-icon {
	width: 36px;
	height: 36px;
	background: var(--color-bg-sub);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.page-services .strength-icon i {
	font-size: 17px;
	color: var(--color-text-sub);
}

.page-services .strength-name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin-top: 7px;
}

.page-services .strength-body {
	font-size: 13px;
	color: var(--color-text-sub);
	line-height: 1.8;
	padding-top: 8px;
}

/* --- CTA section --- */
.page-services .svc-cta {
	background: #0f1c2e;
	padding: 64px 48px;
	text-align: center;
}

.page-services .svc-cta__label {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.38);
	margin-bottom: 12px;
}

.page-services .svc-cta__title {
	font-size: 24px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 10px;
}

.page-services .svc-cta__sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 28px;
}

.page-services .svc-cta__btn {
	display: inline-block;
	background: #ffffff;
	color: #111111;
	font-size: 13px;
	font-weight: 500;
	padding: 12px 30px;
	border-radius: 4px;
	text-decoration: none;
	transition: opacity 0.15s;
}

.page-services .svc-cta__btn:hover {
	opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.page-services .breadcrumb {
		padding: 14px 24px;
	}

	.page-services .hero-content {
		padding: 0 24px 36px;
	}

	.page-services .hero-title {
		font-size: 22px;
	}

	.page-services .intro-section,
	.page-services .svc-block,
	.page-services .strengths-section,
	.page-services .svc-cta {
		padding: 48px 24px;
	}

	.page-services .intro-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.page-services .detail-grid {
		grid-template-columns: 1fr;
	}

	.page-services .strength-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ==========================================================================
   Mobile navigation toggle button
   ========================================================================== */

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: none;
	border: var(--border-thin);
	color: var(--color-text);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.15s;
	flex-shrink: 0;
}

.nav-toggle:hover {
	background: var(--color-bg-sub);
}

/* ==========================================================================
   Sidebar header (mobile close button row)
   ========================================================================== */

.sidebar-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: var(--border-thin);
	margin-bottom: 8px;
}

.sidebar-header__title {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.sidebar-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: none;
	border: var(--border-thin);
	color: var(--color-text);
	font-size: 17px;
	cursor: pointer;
	transition: background 0.15s;
}

.sidebar-close:hover {
	background: var(--color-bg-sub);
}

/* Sidebar overlay backdrop */
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 199;
}

.sidebar-overlay.is-open {
	display: block;
}

/* Filter toggle button (mobile only — hidden on desktop) */
.filter-toggle-btn {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: var(--border-md);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.filter-toggle-btn:hover {
	background: var(--color-bg-sub);
}

/* ==========================================================================
   Responsive — 900px (tablet + mobile)
   ========================================================================== */

@media (max-width: 900px) {
	/* --- CSS variables --- */
	:root {
		--page-padding-x:     24px;
		--section-padding-lg: 48px 24px;
		--section-padding-md: 40px 24px;
	}

	/* --- Navigation --- */
	.nav-toggle {
		display: flex;
	}

	/* Hide Inquiry CTA on mobile — Contact is accessible via the hamburger menu */
	.btn-inquiry {
		display: none;
	}

	/* Give explicit gap between hamburger and language button */
	.nav-right {
		gap: 12px;
	}

	.nav-links {
		display: none;
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--color-bg);
		flex-direction: column;
		padding: 8px 0;
		z-index: 99;
		border-top: var(--border-thin);
		overflow-y: auto;
		gap: 0;
	}

	.nav-links.is-open {
		display: flex;
	}

	.nav-links a {
		font-size: 16px;
		padding: 18px 24px;
		border-bottom: var(--border-thin);
		color: var(--color-text);
	}

	.nav-links a:hover,
	.nav-links a.current-menu-item,
	.nav-links a[aria-current="page"] {
		border-bottom-color: var(--color-border);
		background: var(--color-bg-sub);
	}

	/* --- Hero --- */
	.hero__content {
		padding: 0 32px 48px;
	}

	.hero__title {
		font-size: 28px;
	}

	/* --- Search bar --- */
	.search-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.search-divider {
		display: none;
	}

	/* --- Section header --- */
	.section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	/* --- Property grid (3-col → 2-col) --- */
	.prop-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* --- About grid --- */
	.about-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.about-img-block {
		height: 240px;
	}

	/* --- Footer --- */
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		padding: 40px 24px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 10px;
		text-align: center;
		padding: 16px 24px;
	}

	.footer-legal {
		justify-content: center;
	}

	/* --- Archive: filter drawer --- */
	.filter-toggle-btn {
		display: inline-flex;
	}

	.sidebar-header {
		display: flex;
	}

	.sidebar-close {
		display: flex;
	}

	.list-layout {
		grid-template-columns: 1fr;
	}

	.property-sidebar {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 280px;
		z-index: 200;
		overflow-y: auto;
		box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
		padding-top: 0;
	}

	.property-sidebar.is-open {
		display: block;
	}

	/* --- Gallery --- */
	.prop-gallery__main {
		height: 320px;
	}

	.prop-gallery__expand {
		bottom: 16px;
		right: 12px;
	}

	/* --- About page --- */
	.about-story {
		grid-template-columns: 1fr; /* 基本スタイルの 1fr 480px を上書き */
		gap: 36px;
	}

	.about-story__image {
		height: 300px;
	}

	.about-story__heading {
		font-size: 15px;
	}

	/* タブレットでは 2 列をキープ（既存の 1 列指定を上書き） */
	.about-values__grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.cta-strip {
		padding: 48px 24px;
	}

	/* --- Single property layout (already responsive at 900px in existing rules, keeping) --- */
}

/* ==========================================================================
   Responsive — 600px (small mobile)
   ========================================================================== */

@media (max-width: 600px) {
	/* --- CSS variables --- */
	:root {
		--page-padding-x:     16px;
		--section-padding-lg: 40px 16px;
		--section-padding-md: 32px 16px;
	}

	/* --- Hero (TOP page & Services) --- */
	.home .hero,
	.page-services .hero {
		min-height: 380px;
	}

	.home .hero__bg-img,
	.page-services .hero-bg-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.hero__content {
		padding: 0 16px 40px;
	}

	.hero__title {
		font-size: 22px;
	}

	.hero__sub {
		font-size: 13px;
		margin-bottom: 22px;
	}

	.hero__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	/* --- Search bar wrap: stop negative overlap on small screens --- */
	.search-bar-wrap {
		margin-top: 12px;
		padding: 0 16px;
	}

	/* --- Property grid (2-col → 1-col) --- */
	.prop-grid {
		grid-template-columns: 1fr;
	}

	/* --- Service grid --- */
	.service-grid {
		grid-template-columns: 1fr;
	}

	/* --- Footer --- */
	.footer-grid {
		grid-template-columns: 1fr;
		padding: 32px 16px;
		gap: 28px;
	}

	.footer-bottom {
		padding: 14px 16px;
	}

	/* --- Gallery --- */
	.prop-gallery__main {
		height: 220px;
	}

	.prop-gallery__thumbs {
		display: none;
	}

	/* --- Archive --- */
	.prop-grid--archive {
		grid-template-columns: 1fr;
	}

	/* List view: shrink image column on narrow screens */
	.prop-grid--list .prop-card {
		grid-template-columns: 120px 1fr;
	}

	.prop-grid--list .prop-card__img {
		min-height: 110px;
	}

	/* Stack category + status badges vertically so they don't overlap
	   in the narrow 120px image column */
	.prop-grid--list .prop-badge {
		font-size: 10px;
		padding: 2px 6px;
		top: 8px;
		left: 8px;
	}

	.prop-grid--list .status-badge {
		font-size: 10px;
		padding: 2px 6px;
		top: 30px;
		right: auto;
		left: 8px;
	}

	/* Price + size: stack vertically instead of side-by-side */
	.prop-card__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.list-main {
		padding: 16px;
	}

	.list-toolbar {
		flex-wrap: wrap;
		gap: 10px;
	}

	/* --- Page header --- */
	.page-header {
		padding: 24px 16px 20px;
	}

	/* --- Contact form 2-col rows → single col --- */
	.wpcf7-form .cf7-row--2col {
		grid-template-columns: 1fr;
	}

	/* --- CTA section --- */
	.cta-section {
		padding: 48px 16px;
	}

	/* --- Single property gallery lightbox padding --- */
	.gallery-lightbox__img-wrap {
		padding: 52px 16px 8px;
	}

	.gallery-lightbox__nav--prev { left: 8px; }
	.gallery-lightbox__nav--next { right: 8px; }

	/* --- About page --- */
	.about-story {
		gap: 24px;
	}

	.about-story__image {
		height: 220px;
	}

	.about-story__heading {
		font-size: 15px;
	}

	/* スマホでは 1 列 */
	.about-values__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.value-item {
		padding: 24px 20px;
	}

	.cta-strip {
		gap: 14px;
	}
}
