:root {
  --thayu-green: #1f4e3d;
  --thayu-green-2: #2c6e57;
  --thayu-gold: #f7c35f;
  --thayu-text: #17251f;
  --thayu-muted: #6d7a74;
  --thayu-border: #e9efea;
  --thayu-bg: #ffffff;
  --thayu-soft: #f8faf9;
  --thayu-radius: 22px;
  --thayu-shadow: 8px 8px 18px rgba(31, 78, 61, 0.10), -6px -6px 14px rgba(255, 255, 255, 0.95);
  --thayu-shadow-hover: 12px 12px 26px rgba(31, 78, 61, 0.16), -8px -8px 18px rgba(255, 255, 255, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--thayu-bg);
  color: var(--thayu-text);
  font-family: Quicksand, Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--thayu-green); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--thayu-green);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--thayu-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.site-title {
  color: var(--thayu-green);
  font-size: 28px;
  font-weight: 800;
}

.site-tagline {
  margin: 0;
  color: var(--thayu-muted);
  font-size: 13px;
}

.primary-nav ul,
.site-footer ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--thayu-border);
  border-radius: 999px;
  background: #fff;
  color: var(--thayu-green);
  cursor: pointer;
  box-shadow: var(--thayu-shadow);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.mobile-menu-open .menu-toggle-lines { background: transparent; }
.mobile-menu-open .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-open .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.post-button,
.thayu-button,
.thayu-search button,
.submit-listing-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--thayu-green);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}

.thayu-button.gold,
.card-link.whatsapp {
  background: var(--thayu-gold);
  color: var(--thayu-text);
}

.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
  padding: 48px 0 36px;
}

.hero-inner { text-align: center; }
.hero-inner h1 {
  margin: 0;
  color: var(--thayu-green);
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: -1.6px;
}
.hero-inner p {
  margin: 8px auto 24px;
  color: var(--thayu-muted);
  font-size: 18px;
}

.thayu-search {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr auto;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--thayu-border);
  border-radius: 28px;
  box-shadow: var(--thayu-shadow);
  padding: 12px;
}

.thayu-search input,
.thayu-search select,
.submit-listing-form input,
.submit-listing-form select,
.submit-listing-form textarea {
  width: 100%;
  border: 1px solid var(--thayu-border);
  border-radius: 16px;
  color: var(--thayu-text);
  font: inherit;
  padding: 12px 14px;
  outline: 0;
  background: #fff;
}

.thayu-search input:focus,
.thayu-search select:focus,
.submit-listing-form input:focus,
.submit-listing-form select:focus,
.submit-listing-form textarea:focus {
  border-color: var(--thayu-green);
}

.listings-section,
.submit-section,
.single-layout,
.page-section,
.error-404-section {
  padding: 36px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--thayu-green);
}
.section-heading a {
  color: var(--thayu-green);
  font-weight: 700;
}
.stacked {
  align-items: stretch;
  flex-direction: column;
}

.masonry-grid {
  column-count: 4;
  column-gap: 18px;
}

.thayu-card,
.thayu-ad {
  break-inside: avoid;
  background: #fff;
  border: 1px solid var(--thayu-border);
  border-radius: var(--thayu-radius);
  box-shadow: var(--thayu-shadow);
  margin: 0 0 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.thayu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--thayu-shadow-hover);
}

.card-image img,
.single-image img {
  width: 100%;
  object-fit: cover;
}

.image-placeholder {
  min-height: 170px;
  display: grid;
  place-items: center;
  background: var(--thayu-soft);
  color: var(--thayu-green);
  font-weight: 800;
}

.card-content,
.single-card,
.submit-card {
  padding: 18px;
}

.card-meta a {
  display: inline-flex;
  margin: 0 6px 8px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(247, 195, 95, .24);
  color: var(--thayu-green);
  font-size: 12px;
  font-weight: 800;
}

.card-title {
  margin: 0 0 8px;
  color: var(--thayu-green);
  font-size: 19px;
  line-height: 1.25;
}

.card-location,
.single-location {
  color: var(--thayu-muted);
  font-weight: 700;
  margin: 0 0 8px;
}

.card-excerpt p { margin: 0; color: var(--thayu-text); }
.card-actions,
.single-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-link {
  border-radius: 999px;
  background: var(--thayu-soft);
  color: var(--thayu-green);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.thayu-ad {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--thayu-muted);
  background: linear-gradient(135deg, #fff, #f8faf9);
  font-size: 13px;
}
.thayu-ad-header { margin-bottom: 14px; }
.thayu-ad-mobile-sticky { display: none; }

.single-listing,
.page-card,
.error-404-card {
  max-width: 840px;
  margin: 0 auto;
}

.single-image,
.single-card,
.submit-card {
  background: #fff;
  border: 1px solid var(--thayu-border);
  border-radius: var(--thayu-radius);
  box-shadow: var(--thayu-shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.single-card h1,
.submit-card h1 {
  color: var(--thayu-green);
  margin-top: 0;
}

.page-featured-image {
  margin: 18px 0;
}

.error-404-card {
  text-align: center;
}

.error-code {
  color: var(--thayu-gold);
  font-size: clamp(54px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 12px;
}

.error-actions {
  justify-content: center;
}

.submit-listing-form {
  display: grid;
  gap: 12px;
}
.submit-listing-form label {
  color: var(--thayu-green);
  font-weight: 800;
}
.submit-listing-form small {
  color: var(--thayu-muted);
  font-size: 13px;
  margin-top: -6px;
}
.thayu-honeypot {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

.notice.error {
  background: #fff2f2;
  border: 1px solid #ffd4d4;
  border-radius: 14px;
  color: #9b1c1c;
  padding: 12px;
}
.pagination-wrap { margin-top: 24px; }

.site-footer {
  border-top: 1px solid var(--thayu-border);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--thayu-muted);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 980px) {
  .masonry-grid { column-count: 3; }
  .thayu-search { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1180px); }
  .menu-toggle { display: inline-flex; order: 2; }
  .brand { flex: 1; }
  .primary-nav {
    display: none;
    order: 4;
    width: 100%;
    background: #fff;
    border: 1px solid var(--thayu-border);
    border-radius: 20px;
    box-shadow: var(--thayu-shadow);
    padding: 12px;
  }
  .mobile-menu-open .primary-nav { display: block; }
  .primary-nav ul {
    display: grid;
    gap: 4px;
  }
  .primary-nav a {
    display: block;
    border-radius: 14px;
    color: var(--thayu-green);
    font-weight: 800;
    padding: 10px 12px;
  }
  .primary-nav a:hover { background: var(--thayu-soft); }
  .post-button { order: 3; }
  .masonry-grid { column-count: 2; column-gap: 12px; }
  .thayu-search { grid-template-columns: 1fr; border-radius: 22px; }
  .footer-inner { flex-direction: column; }
  .site-footer ul { flex-wrap: wrap; }
  .thayu-ad-mobile-sticky {
    display: grid;
    position: sticky;
    bottom: 0;
    z-index: 80;
    border-radius: 18px 18px 0 0;
    margin: 0;
  }
}

@media (max-width: 460px) {
  .masonry-grid { column-count: 1; }
  .hero-section { padding-top: 32px; }
  .post-button { width: 100%; order: 5; }
}
