/* ============================================================
   สหชาติ วัสดุก่อสร้าง — การปรับแต่งจากธีม Regna
   ไฟล์นี้ทำงานต่อจาก assets/css/main.css
   เปลี่ยนสีหลักได้ที่ตัวแปร --accent-color ด้านล่าง
   ============================================================ */

:root {
  --default-font: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --heading-font: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --nav-font: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;

  --background-color: #ffffff;
  --default-color: #5b6673;
  --heading-color: #18212b;
  --accent-color: #c34e00;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #ffffff;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #5b6673;
  --nav-dropdown-hover-color: #c34e00;

  --brand-dark: #0a1a2f;
  --brand-dark-2: #12273f;
  --brand-navy: #0b1e33;
  --brand-navy-deep: #071322;
  --brand-cream: #f7f2ea;
  --brand-line: #e7dfd4;
  --brand-muted: #5b6673;
  --brand-orange: #ff7a1a;
  --shadow-soft: 0 18px 45px rgba(4, 12, 24, 0.32);
  --shadow-card: 0 10px 30px rgba(4, 12, 24, 0.24);
}

.light-background {
  --background-color: #0b1e33;
  --default-color: rgba(232, 239, 247, 0.72);
  --heading-color: #ffffff;
  --surface-color: #10243a;
  background: transparent;
}

.dark-background {
  --background-color: #081827;
  --default-color: rgba(232, 239, 247, 0.76);
  --heading-color: #ffffff;
  --surface-color: #0f2238;
  --contrast-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--brand-navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background:
    radial-gradient(72% 58% at 82% -10%, rgba(255, 122, 26, 0.13), transparent 64%),
    radial-gradient(68% 56% at 2% 72%, rgba(42, 98, 160, 0.16), transparent 68%),
    radial-gradient(90% 70% at 50% 112%, rgba(3, 9, 18, 0.85), transparent 62%),
    linear-gradient(168deg, #0c2239 0%, #081a2c 48%, #06121f 100%);
}

body::after {
  z-index: -2;
  background:
    radial-gradient(40% 36% at 22% 24%, rgba(255, 122, 26, 0.07), transparent 70%),
    radial-gradient(46% 42% at 80% 70%, rgba(42, 98, 160, 0.11), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 34%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 34%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
  animation: siteGlow 18s ease-in-out infinite alternate;
}

@keyframes siteGlow {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

.site-aurora {
  position: fixed;
  inset: -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34% 30% at 30% 38%, rgba(255, 122, 26, 0.1), transparent 72%),
    radial-gradient(38% 34% at 72% 62%, rgba(57, 118, 190, 0.13), transparent 74%);
  animation: auroraDrift 28s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

.site-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    420px circle at var(--glow-x, 50%) var(--glow-y, 30%),
    rgba(255, 148, 76, 0.09),
    rgba(58, 130, 200, 0.05) 42%,
    transparent 72%
  );
}

.site-glow.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .site-aurora {
    animation: none;
  }

  .site-glow {
    display: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-color);
}

a:hover {
  color: #a84200;
}

::selection {
  background: rgba(195, 78, 0, 0.18);
  color: var(--heading-color);
}

.section {
  padding: 96px 0;
}

@media (max-width: 767.98px) {
  .section {
    padding: 72px 0;
  }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.header {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header .logo {
  line-height: 1;
}

.header .logo .logo-mark {
  width: 44px;
  height: 44px;
  max-height: 44px;
  margin-right: 11px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.header .logo .logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.header .logo .logo-text small {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.scrolled .header {
  --background-color: rgba(6, 18, 32, 0.97);
  box-shadow: 0 10px 30px rgba(2, 8, 16, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 1199.98px) {
  .navmenu {
    --nav-mobile-background-color: #081827;
    --nav-dropdown-color: rgba(255, 255, 255, 0.82);
    --nav-dropdown-hover-color: #ffab73;
  }

  .navmenu ul {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 54px rgba(2, 8, 16, 0.45);
  }

  .mobile-nav-active .navmenu {
    background: rgba(3, 10, 20, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}

@media (min-width: 1200px) {
  .navmenu > ul > li {
    padding: 15px 12px;
  }

  .navmenu a,
  .navmenu a:focus {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 575.98px) {
  .header .logo .logo-mark {
    width: 38px;
    height: 38px;
    max-height: 38px;
    border-radius: 10px;
  }

  .header .logo .logo-text {
    font-size: 18px;
  }

  .header .logo .logo-text small {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

/* ------------------------------------------------------------
   Section titles
   ------------------------------------------------------------ */
.section-title {
  padding-bottom: 44px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #ffab73;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-color);
}

.section-title h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none;
}

.section-title p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--default-color);
  font-size: 16px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 0 90px;
}

.hero img {
  object-position: center 76%;
}

.hero:before {
  background: linear-gradient(
    180deg,
    rgba(5, 15, 29, 0.88) 0%,
    rgba(7, 21, 39, 0.66) 42%,
    rgba(4, 12, 24, 0.93) 100%
  );
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(195, 78, 0, 0.24), transparent 42%),
    radial-gradient(circle at 80% 24%, rgba(44, 102, 168, 0.26), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(255, 122, 26, 0.12), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.hero .container {
  z-index: 3;
}

.hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero .hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.hero h1 .accent {
  color: #ff8a3d;
}

.hero p.hero-lead {
  max-width: 730px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.7;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.hero .btn-hero-primary {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(195, 78, 0, 0.32);
}

.hero .btn-hero-primary:hover {
  background: #a84200;
  color: #ffffff;
  transform: translateY(-2px);
}

.hero .btn-hero-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.hero .btn-hero-outline:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.hero .hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero .hero-meta i {
  color: #ff9a57;
  font-size: 15px;
}

.hero .hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .hero-scroll i {
  font-size: 20px;
  animation: hero-bounce 1.8s infinite;
}

@keyframes hero-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 120px 0 90px;
  }

  .hero .hero-scroll {
    display: none;
  }
}

/* ------------------------------------------------------------
   Departments (Services)
   ------------------------------------------------------------ */
#departments {
  --default-color: rgba(232, 239, 247, 0.72);
  --heading-color: #ffffff;
  background: transparent;
}

.services .service-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-top: 36px;
  padding: 54px 26px 28px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(2, 8, 16, 0.26);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services .service-item .icon {
  top: -32px;
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  margin: 0 0 14px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--dept-color, var(--accent-color)),
    color-mix(in srgb, var(--dept-color, var(--accent-color)), #000 20%)
  );
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--dept-color, var(--accent-color)), transparent 70%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .service-item h3 {
  margin: 6px 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.services .service-item p {
  margin-bottom: 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.65;
}

.services .service-item:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 65%);
  background: #ffffff;
  box-shadow: 0 26px 54px rgba(2, 8, 16, 0.4);
  transform: translateY(-4px);
}

.services .service-item:hover .icon {
  border-color: #ffffff;
  background: linear-gradient(
    145deg,
    var(--dept-color, var(--accent-color)),
    color-mix(in srgb, var(--dept-color, var(--accent-color)), #000 20%)
  );
  box-shadow: 0 14px 30px color-mix(in srgb, var(--dept-color, var(--accent-color)), transparent 58%);
  transform: translateY(-2px) scale(1.05);
}

.services .service-item:hover .icon i {
  color: #ffffff;
}

.dept-card .stretched-link {
  color: inherit;
}

.dept-card .stretched-link h3 {
  color: #18212b;
  transition: color 0.25s ease;
}

.dept-card .stretched-link:hover h3 {
  color: var(--accent-color);
}

.dept-card .dept-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--brand-line);
  color: var(--brand-muted);
  font-size: 12.5px;
  text-align: left;
}

.dept-card .dept-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dept-card .dept-meta i {
  color: var(--accent-color);
  font-size: 14px;
}

.dept-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Store zones (Portfolio)
   ------------------------------------------------------------ */
.portfolio .portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  padding: 0 0 28px;
}

.portfolio .portfolio-filters li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.portfolio .portfolio-filters li:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.portfolio .portfolio-filters li.filter-active {
  border-color: rgba(255, 255, 255, 0.92);
  background: #ffffff;
  color: var(--brand-dark);
}

.portfolio .portfolio-filters li:first-child,
.portfolio .portfolio-filters li:last-child {
  margin: 0;
}

.portfolio .portfolio-content.zone-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(2, 8, 16, 0.28);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio .portfolio-content.zone-card:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 26px 54px rgba(2, 8, 16, 0.42);
  transform: translateY(-6px);
}

.zone-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  outline-offset: 3px;
}

.zone-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 19, 34, 0.92), rgba(10, 32, 54, 0.55)),
    url("../img/shop-interior.jpg") center 74% / cover no-repeat;
}

.zone-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 76% 22%,
    color-mix(in srgb, var(--zone-color), transparent 48%),
    transparent 58%
  );
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.zone-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 34, 0.05), rgba(5, 15, 29, 0.6));
}

.zone-visual.has-photo {
  background:
    linear-gradient(180deg, rgba(6, 17, 31, 0.16), rgba(5, 14, 27, 0.58)),
    var(--zone-photo) var(--zone-photo-pos, center) / cover no-repeat;
}

.zone-visual.has-photo::before {
  opacity: 0.22;
}

.zone-visual.has-photo::after {
  background: linear-gradient(180deg, rgba(7, 19, 34, 0), rgba(5, 15, 29, 0.52));
}

.zone-card:hover .zone-visual.has-photo::before {
  opacity: 0.45;
}

.zone-category {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.zone-number {
  position: absolute;
  right: 16px;
  bottom: 4px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--heading-font);
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.zone-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 38px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, background 0.35s ease;
}

.zone-card:hover .zone-icon {
  background: color-mix(in srgb, var(--zone-color), transparent 78%);
  transform: scale(1.08) rotate(-3deg);
}

.zone-card:hover .zone-visual::before {
  opacity: 1;
}

.zone-owner {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  background: rgba(6, 18, 32, 0.62);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zone-owner i {
  color: #ff9a57;
}

.portfolio .portfolio-content .portfolio-info {
  padding: 20px 20px 22px;
  border-top: 0;
  background-color: #ffffff;
}

.portfolio .portfolio-content .portfolio-info h3 {
  min-height: 48px;
  margin-bottom: 6px;
  padding-right: 0;
  color: #18212b;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.portfolio .portfolio-content .portfolio-info p {
  min-height: 44px;
  padding-right: 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.6;
}

.zone-note {
  margin-top: 30px;
  color: rgba(232, 239, 247, 0.6);
  font-size: 13px;
  text-align: center;
}

.zone-note i {
  color: var(--accent-color);
}

@media (max-width: 575.98px) {
  .zone-visual {
    height: 180px;
  }

  .zone-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }

  .portfolio .portfolio-filters li {
    min-height: 44px;
    padding: 9px 16px;
  }
}

/* ------------------------------------------------------------
   Detail modal
   ------------------------------------------------------------ */
#detailModal .modal-dialog {
  max-width: 760px;
}

#detailModal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

#detailModal .modal-header {
  padding: 14px 22px;
  border-bottom: 3px solid var(--accent-color);
  background: var(--brand-dark);
  color: #ffffff;
}

#detailModal .modal-header .btn-close {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: -8px -8px -8px 0;
  background-size: 14px;
  opacity: 0.9;
}

#detailModal .modal-header .btn-close:hover,
#detailModal .modal-header .btn-close:focus-visible {
  opacity: 1;
}

#detailModal .modal-title {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#detailModal .modal-body {
  max-height: 76vh;
  overflow-y: auto;
  padding: 28px 28px 30px;
  background: #ffffff;
}

.detail-photo {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef3f8;
}

.detail-photo img {
  display: block;
  width: 100%;
  height: clamp(170px, 30vw, 260px);
  object-fit: cover;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    var(--person-color),
    color-mix(in srgb, var(--person-color), #000 24%)
  );
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--person-color), transparent 70%);
  overflow: hidden;
}

.detail-avatar.zone-avatar {
  border-radius: 50%;
}

.detail-eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--accent-color);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-hero h3 {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.detail-name {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.detail-summary {
  margin: 0 0 22px;
  color: var(--default-color);
  font-size: 14.5px;
  line-height: 1.75;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-section h4 i {
  color: var(--accent-color);
  font-size: 15px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 50px;
  background: var(--brand-cream);
  color: var(--heading-color);
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.detail-chip:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #ffffff;
}

.detail-chip i {
  color: var(--accent-color);
  font-size: 13px;
}

.detail-chip:hover i {
  color: #ffffff;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--default-color);
  font-size: 14px;
  line-height: 1.8;
}

.detail-list li::marker {
  color: var(--accent-color);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tag {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 8px;
  background: #f5f1eb;
  color: #6b5c4d;
  font-size: 12px;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-cream);
  color: var(--heading-color);
  transition: all 0.2s ease;
}

.owner-card:hover {
  border-color: var(--accent-color);
  background: #ffffff;
  color: var(--heading-color);
  transform: translateY(-1px);
}

.owner-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    var(--person-color),
    color-mix(in srgb, var(--person-color), #000 24%)
  );
  color: #ffffff;
  font-size: 19px;
}

.owner-text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.owner-text strong {
  font-size: 14px;
  font-weight: 600;
}

.owner-text small {
  color: var(--brand-muted);
  font-size: 11.5px;
}

.owner-arrow {
  color: var(--accent-color);
  font-size: 18px;
}

.detail-backup {
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
}

.detail-backup a {
  color: var(--accent-color);
  font-weight: 500;
}

.detail-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--default-color);
  font-size: 13px;
}

.detail-contact span,
.detail-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--default-color);
}

.detail-contact i {
  color: var(--accent-color);
}

.detail-note {
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 50px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-detail:hover {
  background: #a84200;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-detail-ghost {
  border: 1px solid var(--brand-line);
  background: transparent;
  color: var(--heading-color);
}

.btn-detail-ghost:hover {
  border-color: var(--brand-line);
  background: var(--brand-cream);
  color: var(--heading-color);
}

@media (max-width: 575.98px) {
  #detailModal .modal-dialog {
    align-items: flex-end;
    min-height: calc(100% - 16px);
    margin: 16px 0 0;
  }

  #detailModal .modal-content {
    border-radius: 22px 22px 0 0;
  }

  #detailModal .modal-body {
    max-height: 76vh;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .detail-hero {
    gap: 14px;
  }

  .detail-avatar {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 24px;
  }

  .detail-actions .btn-detail {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  padding: 58px 0 26px;
  background: linear-gradient(180deg, #071322 0%, #050f1b 100%);
  color: rgba(255, 255, 255, 0.66);
}

.footer .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer .footer-logo img {
  width: 200px;
  max-width: 70vw;
  height: auto;
}

.footer p {
  max-width: 570px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer .social-links {
  gap: 8px;
  margin-bottom: 26px;
}

.footer .social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.footer .social-links a i {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.footer .social-links a:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.footer .copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
}

.footer .credits {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
}

.footer .credits a {
  color: rgba(255, 255, 255, 0.65);
}

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

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.scroll-top {
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(195, 78, 0, 0.3);
}

.text-brand {
  color: var(--accent-color);
}

/* สถานะ focus ให้เห็นชัดทุกจุดที่กดได้ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.map-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 45%);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
