/* ── Self-hosted fonts (no third-party requests) ── */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/PlayfairDisplay.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Lato-700.woff2') format('woff2');
}

:root {
  --bg: #FAF8F5;
  --card-bg: #FFFFFF;
  --text: #2C2418;
  --text-secondary: #7A6B5A;
  --accent: #C17F4A;
  --accent-dark: #9E6437;
  --border: #EDE8E0;
  --shadow: 0 2px 12px rgba(44, 36, 24, 0.08);
  --shadow-hover: 0 8px 28px rgba(44, 36, 24, 0.16);
  --radius: 12px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; }

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

/* ── Header ── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Hero ── */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--accent-dark);
}

.hero-cta svg {
  flex-shrink: 0;
}

/* ── Listings section ── */
.listings-section {
  padding: 32px 0 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.listing-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Grid ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ── Card ── */
.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.listing-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: var(--bg);
}

.card-body {
  padding: 14px 16px 18px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.page-btn {
  padding: 10px 24px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.page-btn:disabled {
  border-color: var(--border);
  color: var(--text-secondary);
  cursor: default;
}

.page-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 100px;
  text-align: center;
}

/* ── Loading / error states ── */
.loading-state,
.error-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

.loading-state p,
.error-state p {
  font-size: 1rem;
}

.error-state a {
  color: var(--accent);
  text-decoration: underline;
}

.hidden { display: none !important; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer ── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ── Privacy page ── */
.privacy-page-main {
  padding: 60px 0 80px;
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 36px;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}

.back-link:hover { opacity: 0.75; }

.privacy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 44px;
  display: block;
}

.privacy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.privacy-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.privacy-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.privacy-content li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.privacy-content a {
  color: var(--accent);
}

.privacy-content strong {
  font-weight: 700;
}

.contact-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}

.contact-box p {
  margin-bottom: 4px;
}

.contact-box a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 28px; }
  .privacy-content h1 { font-size: 1.7rem; }
  .header-inner { height: 60px; }
  .logo-name { font-size: 1.2rem; }
}
