/* ================== FONT IMPORTS ================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;1,100;1,300&display=swap");
@import url("https://fonts.googleapis.com/css?family=Quicksand:400,500,700&subset=latin-ext");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quintessential&display=swap');

/* ================== ROOT & GLOBAL ================== */
:root {
  --accent: #1572a1;
  --muted: #6b6b6b;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  padding: 0;
           /* dark outer bg */
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Utility font classes */
.quintessential-regular{
  font-family: 'Quintessential', "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.6px;
}

.baskervville-regular{
  font-family: 'Baskervville', "Georgia", "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
}

/* ===============================
   PLACES & HERITAGE LAYOUT
   =============================== */

.places-heritage-section {
  padding-bottom: 4rem;
}

/* ---------- HERO BANNER (Dynamic Spotlight style) ---------- */

.hero-banner {
  width: 100%;
  padding: 120px 20px 70px;
  margin-top: 60px; /* space under fixed header */
  text-align: center;

  background: radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.06),
      rgba(18, 75, 130, 0.95)
    ),
    #000814;
  color: #ffffff;

  border-radius: 0 0 40px 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-banner .section-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 1.5rem;

  background: linear-gradient(90deg, #a8e6ff, #ffffff, #b4e2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner .subtitle {
  font-size: 1.6rem;
  color: #d6d6d6;
  margin-bottom: 3rem;
}

/* ---------- SEARCH + FILTER (inside hero) ---------- */

.search-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.search {
  width: 60%;
  min-width: 280px;
  max-width: 720px;

  display: flex;
  align-items: center;

  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 12px 20px;

  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);

  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease, background .25s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.search:focus-within{
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.search .icon {
  font-size: 1.8rem;
  margin-right: 10px;
  color: #38bdf8;
  opacity: 0.95;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1.6rem;
  color: #f9fafb;
  background: transparent;
  padding: 6px 4px;
}

.search input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Filter bar exactly like chip buttons */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn{
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #e5e7eb;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, border-color 0.25s ease,
              transform 0.12s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.25);
}

.filter-btn.active{
  background: #4db1ff;
  color: #020617;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(77, 177, 255, 0.65);
}

.filter-btn:focus{
  outline: 2px solid rgba(148, 163, 184, 0.8);
  outline-offset: 2px;
}

/* small responsive tweaks for hero */
@media (max-width: 992px){
  .hero-banner {
    padding: 100px 1.6rem 50px;
    margin-top: 60px;
  }
  .hero-banner .section-title{
    font-size: 3rem;
  }
  .search{
    width: 90%;
    min-width: 220px;
    padding: 10px 16px;
  }
  .search .icon{ font-size:1.6rem; }
}

/* small helper for accessible label-only text */
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ===========================
   GRID & CARDS
   =========================== */

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  gap: 18px;
  padding: 24px 18px 18px;
  border-radius: 24px 24px 0 0;
  background: #f8f3e6;
  box-shadow: var(--shadow);
  max-width: 1200px;
  margin: 0 auto;
  margin-top: -20px; /* overlap a bit with dark hero */
}

.card{
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}

.card .thumb{
  height: 170px;
  border-radius: 8px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .title{
  font-weight: 600;
  font-size: 1.4rem;
  color: #2b2b2b;
  line-height: 1.2;
}

.card .meta{
  font-size: 1.3rem;
  color: var(--muted);
}

.card .actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
}

button.btn{
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.btn-locate{
  background: transparent;
  border: 1px solid #cfe6ef;
  color: #15607c;
}

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

/* ===========================
   MODAL & POPUP
   =========================== */

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal{
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 90vh;
}

.modal .modal-body{
  display: flex;
  gap: 18px;
  padding: 22px;
  overflow: auto;
  align-items: flex-start;
  line-height: 1.65;
  letter-spacing: 0.2px;
  font-size: 1.5rem;
}

.modal .left{
  flex: 0 0 48%;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal .right{
  flex: 1;
  min-width: 260px;
  max-height: calc(90vh - 80px);
  overflow: auto;
}

.modal h2{
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 2rem;
}

.modal p{
  margin: 8px 0;
  color: #333;
  line-height: 1.6;
}

.modal .meta{
  color: var(--muted);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.modal .footer{
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #eee;
  background: #fafafa;
}

.close{
  background: #eee;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.popup{
  padding: 16px 18px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(2,24,32,0.06);
  max-width: 560px;
}

/* ===========================
   CAROUSEL
   =========================== */

.carousel-wrap{
  position: relative;
  width: 100%;
  max-width: 460px;
}

.carousel{
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  position: relative;
}

.carousel .slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease;
}

.carousel .slide.active{
  opacity: 1;
  transform: scale(1);
}

.carousel .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.carousel-btn.prev{ left: 8px; }
.carousel-btn.next{ right: 8px; }

.carousel-thumbs{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.carousel-thumbs img{
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .7;
  border: 2px solid transparent;
}

.carousel-thumbs img.active{
  opacity: 1;
  border-color: var(--accent);
}

/* responsive tweaks for modal & carousel */
@media (max-width:900px){
  .modal .modal-body{
    flex-direction: column;
  }
  .modal .left,
  .modal .right{
    max-width: 100%;
    flex: 1 1 100%;
  }
  .carousel{
    height: 220px;
  }
}

/* ===========================
   (optional) extra job-search block you had
   =========================== */

.section-title-alt{
  color:#323842;
  font:700 48px/1 Sarabun, sans-serif;
  text-align:center;
  margin-bottom:46px;
}
.section-title-alt span{ color:#0ea89b; }

.search-form{
  display:flex;
  gap:1px;
  font:400 18px/2 Lato, sans-serif;
}
.input-group{ flex-grow:1; position:relative; }
.search-input{ width:100%; padding:12px 20px 12px 48px; border:none; border-radius:6px 0 0 6px; background:#f3f4f6; font-size:18px; }
.search-icon{ position:absolute; left:20px; top:50%; transform:translateY(-50%); width:24px; height:24px; }
.dropdown{ background:#f3f4f6; }
.dropdown-toggle{ display:flex; align-items:center; gap:35px; padding:12px 20px; border:none; background:none; font-size:18px; color:#171a1f; cursor:pointer; }
.dropdown-icon{ width:18px; height:18px; }
.search-button{ padding:12px 34px; border:none; border-radius:0 6px 6px 0; background:#0ea89b; color:#fff; font-size:18px; cursor:pointer; }

@media (max-width:991px){
  .job-search-section{ padding:40px 20px; }
  .section-title-alt{ font-size:40px; }
  .search-form{ flex-direction:column; }
  .search-input,
  .dropdown-toggle,
  .search-button{ border-radius:6px; }
}
/* -----------------------
   Popup & Modal color tweaks
   Paste this at end of temple.css
   ----------------------- */

/* palette variables - change these to taste */
:root{
  --popup-bg: #ffffff;         /* modal / popup background */
  --popup-fg: #0f1724;         /* text color inside modal */
  --popup-muted: #6b7280;      /* secondary/meta text */
  --popup-accent: #1572a1;     /* buttons / highlight */
  --popup-border: rgba(21,114,161,0.12);
  --popup-backdrop: rgba(2,6,23,0.55); /* overlay tint */
}

/* backdrop (darker overlay) */
.modal-backdrop{
  background: var(--popup-backdrop);
  display: none; /* keep existing show/hide logic */
}

/* main modal card */
.modal{
  background: var(--popup-bg);
  color: var(--popup-fg);
  border: 1px solid var(--popup-border);
  box-shadow: 0 20px 50px rgba(2,6,23,0.35);
}

/* right column details */
.modal .right{
  color: var(--popup-fg);
  font-size: 1.45rem;
}

/* metadata rows */
.modal .meta-row strong{
  color: var(--popup-accent);
  font-weight: 700;
  margin-right: 6px;
}
.modal .meta-row span{
  color: var(--popup-muted);
}

/* modal title */
.modal h2{
  color: var(--popup-accent);
  font-size: 2rem;
  margin-bottom: 8px;
}

/* footer buttons */
.modal .footer .close{
  background: transparent;
  border: 1px solid var(--popup-border);
  color: var(--popup-fg);
  padding: 8px 14px;
  border-radius: 8px;
}
.modal .footer .btn-locate,
.modal .btn-locate{
  background: linear-gradient(90deg, var(--popup-accent), #4db1ff);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(21,114,161,0.18);
}

/* small text / history / addInfo */
.modal .right .meta-row{
  margin-bottom: 10px;
  line-height: 1.6;
}

/* the small popup box style (if you use .popup) */
.popup{
  background: var(--popup-bg);
  color: var(--popup-fg);
  border: 1px solid var(--popup-border);
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
  padding: 16px 18px;
}

/* carousel thumbs active border to match accent */
.carousel-thumbs img.active{
  border-color: var(--popup-accent);
  box-shadow: 0 6px 18px rgba(21,114,161,0.12);
}

/* responsive: ensure text remains readable on small screens */
@media (max-width:900px){
  .modal .modal-body{ color: var(--popup-fg); }
}

/* Utility: show modal when you add .open class (if you want JS toggling) */
.modal-backdrop.open{
  display: flex;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}
