:root {
  --navy: #0b2545;
  --sea: #1b6fb8;
  --aqua: #22b8cf;
  --sun: #f4a324;
  --bg: #fff;
  --soft: #eef5fb;
  --ink: #12263a;
  --muted: #5b6b7b;
  --line: #dbe6f0;
  --bad: #a12b29;
  color-scheme: light;
  font-family: Onest, "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  border-color: var(--sea);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: var(--sea);
  color: var(--bg);
  border-color: var(--sea);
}
input,
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-block: 0 16px;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 900px;
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 20px;
  line-height: 1.35;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}
.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.bar {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 19px;
}
.switches {
  margin-inline-start: auto;
  display: flex;
  gap: 8px;
}
.switches select {
  padding-inline: 8px;
}
.intro {
  padding-block: 48px 24px;
}
.eyebrow {
  color: var(--sea);
  font-size: 14px;
  font-weight: 600;
  margin-block-end: 12px;
}
.lead,
.muted {
  color: var(--muted);
}
.lead {
  font-size: 18px;
  max-width: 750px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 24px;
}
.tabs a {
  padding: 10px 24px;
  border-radius: 24px;
  background: var(--soft);
  font-weight: 600;
}
.tabs a[aria-current="true"] {
  background: var(--navy);
  color: var(--bg);
}
.filters {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  margin-block: 0 24px;
}
.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.filters details {
  margin-block-start: 16px;
}
.filters summary {
  cursor: pointer;
  color: var(--sea);
  padding-block: 8px;
}
.advanced {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 16px;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 24px;
}
.results-bar p {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.card-photo {
  aspect-ratio: 4/3;
  background: var(--soft);
  position: relative;
  display: block;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.card:hover .card-photo img {
  transform: scale(1.025);
}
.photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
.badge {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  background: var(--bg);
  color: var(--navy);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
}
.card-body {
  padding: 20px;
}
.card h3 {
  margin-block: 8px 16px;
}
.location {
  font-size: 14px;
  color: var(--muted);
}
.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--sea);
}
.price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-block-start: 16px;
  margin-block-start: 16px;
  font-size: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-block: 32px 48px;
}
.empty {
  padding: 48px 24px;
  background: var(--soft);
  border-radius: 12px;
  text-align: center;
  grid-column: 1/-1;
}
.error {
  color: var(--bad);
}
.breadcrumbs {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-block: 24px;
}
.hero {
  margin-block-end: 8px;
}
.hero-stage {
  position: relative;
  aspect-ratio: 16/9;
  max-height: min(calc(100vh - 290px), 680px);
  inline-size: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
}
.hero.no-photo .hero-stage {
  aspect-ratio: auto;
  min-height: 360px;
}
.hero-photo {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}
.hero-photo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, rgb(11 37 69 / 0), rgb(11 37 69 / 0.78));
  pointer-events: none;
}
.hero.no-photo .hero-stage::after {
  display: none;
}
.hero .photo-placeholder {
  margin: 0;
  padding: 48px 32px 200px;
  color: #fff;
}
.hero-caption {
  position: absolute;
  inset-inline: 40px;
  inset-block-end: 32px;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
  color: #fff;
  pointer-events: none;
}
.hero-caption > * {
  pointer-events: auto;
}
.hero-caption .eyebrow {
  grid-column: 1;
  margin: 0 0 6px;
  color: #bfe9f2;
}
.hero-caption h1 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.35);
}
.hero-place {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 17px;
}
.hero-place svg {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 2;
}
.hero-price {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-price small {
  font-size: 15px;
  font-weight: 500;
}
.hero-request {
  display: none;
}
.hero-nav {
  position: absolute;
  inset-block-start: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 72px;
  block-size: 52px;
  margin-block-start: -26px;
  border: 0;
  border-radius: 999px;
  background: rgb(18 22 28 / 0.82);
  color: #fff;
  cursor: pointer;
}
.hero-nav:hover {
  background: #12161c;
}
.hero-nav svg {
  inline-size: 22px;
  block-size: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#hero-prev {
  inset-inline-start: 20px;
}
#hero-next {
  inset-inline-end: 20px;
}
.hero-counter {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(18 22 28 / 0.6);
  color: #fff;
  font-size: 14px;
}
.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) 110px;
  gap: 16px;
  margin-block-start: 16px;
}
.hero-thumbs button {
  aspect-ratio: 16/10;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
}
.hero-thumbs button[aria-current="true"] {
  border-color: var(--sea);
}
.hero-thumbs img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.hero-thumbs .hero-all {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.15;
}
.hero-all svg {
  inline-size: 24px;
  block-size: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.hero-all strong {
  font-size: 24px;
}
.hero-all span {
  font-size: 13px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  margin-block: 32px 48px;
}
.section {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.section:first-child {
  padding-block-start: 0;
}
.description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-block: 0 32px;
}
.key-facts strong {
  display: block;
  font-size: 24px;
  color: var(--navy);
}
.key-facts span {
  font-size: 14px;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span {
  border-radius: 6px;
  background: var(--soft);
  padding: 8px 12px;
  font-size: 14px;
}
.enquiry {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  align-self: start;
  position: sticky;
  inset-block-start: 24px;
}
.enquiry h3 {
  margin-block-start: 24px;
}
.enquiry form {
  display: grid;
  gap: 14px;
  margin-block: 20px;
}
.enquiry .price {
  margin-block-end: 16px;
}
.company {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block: 20px;
}
.company img {
  width: 48px;
  height: 48px;
}
.company p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-buttons a {
  font-size: 14px;
  flex: 1;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  inset-inline-start: -9999px;
}
.map {
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
}
.map svg {
  width: 100%;
  height: 260px;
}
.map p {
  padding: 12px 16px;
  margin: 0;
}
.related {
  margin-block: 32px 64px;
}
footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
dialog#viewer {
  border: 0;
  padding: 0;
  margin: 0;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #0b0f14;
  color: #fff;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
dialog#viewer[open] {
  display: grid;
}
dialog::backdrop {
  background: #0b0f14;
}
.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.viewer-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 600 15px/1 var(--font, inherit);
  cursor: pointer;
}
.viewer-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
#photo-count {
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.8);
}
.viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 88px;
}
.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}
.viewer-nav {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.viewer-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.viewer-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#prev-photo {
  inset-inline-start: 20px;
}
#next-photo {
  inset-inline-end: 20px;
}
.viewer-thumbs {
  display: flex;
  gap: 8px;
  justify-content: safe center;
  overflow-x: auto;
  padding: 12px 20px 16px;
  scrollbar-width: none;
}
.viewer-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.55;
  background: none;
  cursor: pointer;
}
.viewer-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: #fff;
}
.viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 950px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .advanced {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .wrap {
    padding-inline: 16px;
  }
  .bar {
    min-height: 72px;
    gap: 12px;
  }
  .bar > a:not(.logo) {
    display: none;
  }
  .logo {
    gap: 8px;
    font-size: 16px;
  }
  .logo img {
    width: 36px;
    height: 36px;
  }
  .switches {
    gap: 4px;
  }
  .switches select {
    font-size: 16px;
    max-width: 76px;
  }
  .intro {
    padding-block: 32px 16px;
  }
  .lead {
    font-size: 16px;
  }
  .tabs {
    gap: 6px;
    margin-block: 20px;
  }
  .tabs a {
    padding: 10px 16px;
    font-size: 14px;
  }
  .filters {
    padding: 16px;
  }
  .filter-row {
    gap: 12px;
  }
  .filter-row label:first-child {
    grid-column: 1/-1;
  }
  .advanced {
    gap: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .results-bar {
    font-size: 14px;
  }
  .results-bar select {
    max-width: 190px;
    font-size: 16px;
  }
  .card-photo {
    aspect-ratio: 4/3;
  }
  .hero-stage {
    aspect-ratio: auto;
    max-height: none;
    border-radius: 14px;
    background: var(--soft);
  }
  .hero-stage::after {
    display: none;
  }
  .hero-photo {
    aspect-ratio: 4/3;
    block-size: auto;
  }
  .hero-caption {
    position: static;
    display: block;
    padding: 20px 20px 22px;
    color: var(--ink);
  }
  .hero-caption .eyebrow {
    color: var(--sea);
  }
  .hero-caption h1 {
    font-size: 28px;
    color: var(--navy);
    text-shadow: none;
  }
  .hero-price {
    display: inline-block;
    margin-block-start: 16px;
    font-size: 18px;
  }
  .hero-place {
    align-items: start;
    font-size: 16px;
  }
  .hero-place svg {
    stroke: var(--sea);
  }
  .hero-request {
    display: inline-flex;
    margin-block-start: 16px;
    font-size: 14px;
  }
  .hero-nav {
    inset-block-start: calc((100vw - 32px) * 0.375);
    inline-size: 56px;
    block-size: 44px;
    margin-block-start: -22px;
  }
  #hero-prev {
    inset-inline-start: 10px;
  }
  #hero-next {
    inset-inline-end: 10px;
  }
  .hero-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .hero-thumbs button {
    flex: 0 0 31%;
    scroll-snap-align: start;
  }
  .hero-thumbs .hero-all {
    flex: 0 0 22%;
  }
  .detail-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-block-start: 24px;
  }
  .key-facts {
    gap: 24px;
  }
  .enquiry {
    position: static;
    width: 100%;
    padding: 20px;
  }
  .related {
    margin-block: 32px;
  }
  .contact-buttons a {
    min-height: 44px;
  }
  .viewer-stage {
    padding: 0;
  }
  .viewer-nav {
    width: 44px;
    height: 44px;
  }
  #prev-photo {
    inset-inline-start: 8px;
  }
  #next-photo {
    inset-inline-end: 8px;
  }
  .viewer-thumbs button {
    width: 64px;
    height: 46px;
  }
  footer {
    gap: 16px;
  }
  input,
  textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.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;
}
