/* Baan Hatyai visual refresh — warm, editorial property styling. */
:root {
  --refresh-forest: #10382f;
  --refresh-forest-2: #174b40;
  --refresh-brass: #bd8b4a;
  --refresh-paper: #fcfaf6;
  --refresh-edge: rgba(19, 59, 50, .12);
  --refresh-shadow: 0 22px 58px rgba(16, 56, 47, .11);
}

.public-main-nav {
  background: rgba(252, 250, 246, .94);
  box-shadow: 0 10px 34px rgba(16, 56, 47, .055);
}
.public-main-nav nav a {
  position: relative;
  padding-block: 5px;
}
.public-main-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--refresh-brass);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.public-main-nav nav a:hover::after,
.public-main-nav nav a:focus-visible::after {
  transform: scaleX(1);
}
.public-main-nav .nav-cta {
  background: linear-gradient(135deg, var(--refresh-forest), var(--refresh-forest-2));
  box-shadow: 0 10px 24px rgba(16, 56, 47, .18);
}

.hero:not(.hero-campaign) .hero-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(189, 139, 74, .14), transparent 34%),
    linear-gradient(145deg, #fffdf9, #f4eee4);
}
.hero:not(.hero-campaign) .hero-copy::after {
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -175px;
  width: min(34vw, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(189, 139, 74, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(189, 139, 74, .045),
    0 0 0 58px rgba(19, 59, 50, .025);
  content: "";
  pointer-events: none;
}
.hero:not(.hero-campaign) .hero-copy > * {
  position: relative;
  z-index: 1;
}
.hero:not(.hero-campaign) .hero h1,
.landing-hero h1,
.section-head h2 {
  text-wrap: balance;
}
.hero:not(.hero-campaign) .hero-copy > p {
  max-width: 54ch;
}
.hero:not(.hero-campaign) .hero-price {
  border-color: rgba(19, 59, 50, .16);
}
.hero:not(.hero-campaign) .hero-price strong {
  color: var(--refresh-forest);
}
.hero:not(.hero-campaign) .hero-actions .btn,
.landing-actions .btn,
.landing-cta .btn {
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.hero:not(.hero-campaign) .hero-actions .btn:hover,
.landing-actions .btn:hover,
.landing-cta .btn:hover {
  box-shadow: 0 14px 30px rgba(16, 56, 47, .2);
  transform: translateY(-3px);
}

.property-section {
  background:
    radial-gradient(ellipse at 0 15%, rgba(189, 139, 74, .055), transparent 31%),
    var(--cream);
}
.property-discovery {
  border-color: var(--refresh-edge);
  box-shadow: 0 22px 56px rgba(16, 56, 47, .085);
}
.property-discovery input:hover,
.property-discovery select:hover {
  border-color: rgba(189, 139, 74, .58);
}
.property-filter-reset {
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.property-filter-reset:hover {
  transform: translateY(-1px);
}
.property-card,
.landing-card {
  transition:
    transform .28s cubic-bezier(.2, .75, .25, 1),
    box-shadow .28s ease,
    border-color .28s ease;
}
.property-card:focus-within,
.landing-card:focus-within {
  border-color: rgba(189, 139, 74, .52);
  box-shadow: 0 0 0 3px rgba(189, 139, 74, .13), var(--refresh-shadow);
}
.card-media::after,
.landing-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(10, 34, 28, .17));
  content: "";
  pointer-events: none;
}
.card-media img,
.landing-media img {
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.card-media .availability-badge,
.landing-media .availability-badge {
  z-index: 1;
}
.card-body h3,
.landing-card h3 {
  text-wrap: balance;
}
.card-foot > strong,
.landing-card footer > strong {
  color: var(--refresh-forest);
  letter-spacing: -.02em;
}
.landing-hero {
  position: relative;
  isolation: isolate;
}
.landing-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.2), transparent);
  content: "";
  pointer-events: none;
}
.landing-hero aside {
  border-color: rgba(189, 139, 74, .22);
  box-shadow: 0 26px 72px rgba(16, 56, 47, .12);
}
.landing-cta {
  background:
    radial-gradient(circle at 92% 12%, rgba(219, 180, 111, .2), transparent 26%),
    linear-gradient(135deg, #0e332b, #174b40);
}
.mobile-bar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(252, 250, 246, .96);
  backdrop-filter: blur(14px);
}
.mobile-bar a:first-child {
  color: var(--refresh-forest);
}
.mobile-bar a:last-child {
  background: linear-gradient(135deg, #b78645, #c79754);
}

@media (max-width: 900px) {
  .hero:not(.hero-campaign) .hero-copy::after {
    top: -95px;
    right: -110px;
    width: 250px;
  }
}
@media (max-width: 600px) {
  .public-main-nav {
    box-shadow: 0 8px 24px rgba(16, 56, 47, .06);
  }
  .hero:not(.hero-campaign) .hero-copy::after {
    top: -78px;
    right: -115px;
    width: 210px;
  }
  .property-discovery {
    background: rgba(255, 255, 255, .9);
  }
  .mobile-bar {
    min-height: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-main-nav nav a::after,
  .hero:not(.hero-campaign) .hero-actions .btn,
  .landing-actions .btn,
  .landing-cta .btn,
  .property-filter-reset,
  .property-card,
  .landing-card,
  .card-media img,
  .landing-media img {
    transition: none;
  }
  .hero:not(.hero-campaign) .hero-actions .btn:hover,
  .landing-actions .btn:hover,
  .landing-cta .btn:hover,
  .property-filter-reset:hover,
  .card-media img:hover,
  .landing-media img:hover {
    transform: none;
  }
}
