/* PropApex Member 0.3.0 (เดิม 0.1.0) — หน้าสมาชิก (ประกาศของฉัน / ฟอร์ม / รูป / ตัวอย่าง), หน้ารายละเอียดประกาศ /listing/{id},
   บทความ /blog/ และติดต่อเรา /contact/ (0.3.0 — สไตล์ท้ายไฟล์)
   แบรนด์แดง #E3191F, ตัวอักษร Sarabun, ปุ่มแตะได้ ≥44px, จอ 360–430 ไม่ล้น */
:root { --pam-red: #E3191F; --pam-red-dark: #B70F16; --pam-ink: #0F0F0E; --pam-muted: #5B6068; --pam-line: #E4E6EA; --pam-surface: #F6F7F8; --pam-ok: #1E8E3E; --pam-warn: #B45309; --pam-radius: 12px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--pam-surface); color: var(--pam-ink); font: 16px/1.5 "Sarabun", "IBM Plex Sans Thai", system-ui, sans-serif; }
a { color: var(--pam-red-dark); }
button, input, select, textarea { font: inherit; }

/* --- ส่วนหัว --- */
.pam-header { background: var(--pam-red); color: #fff; }
.pam-header__inner { padding: 10px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pam-logo-text { color: #fff; font-weight: 800; font-size: 22px; text-decoration: none; }
.propapex-brand-home { display: block; position: relative; width: 150px; aspect-ratio: 1194/311; overflow: hidden; flex-shrink: 0; line-height: 0; background: var(--pam-red); }
/* 0.2.3: แถบบนแบบเดียวกับหน้าแรก + ไอคอน SVG (อาจุ้ย: "ดูเปลืองพื้นที่ ใช้ไอคอน svg แทนได้")
   จอกว้าง: โลโก้ | แท็บไอคอน+ข้อความ | ช่องค้นหา | ปุ่มสมาชิก (แถวเดียว)
   จอ ≤1050px: แถว 1 = โลโก้ + ช่องค้นหา (ปุ่มแว่นขยาย) + ปุ่มสมาชิกแบบไอคอน 40px; แถว 2 = แถบไอคอน 4 ช่อง (ไอคอน 20px + ป้าย 11px) */
.pam-tabs { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pam-tab { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; line-height: 1.2; }
.pam-tab svg, .pam-nav__link svg, .pam-search svg { width: 18px; height: 18px; flex: none; }
.pam-tab:hover { background: rgba(0, 0, 0, .14); }
.pam-tab.is-active { background: var(--pam-red-dark); }
.pam-search { flex: 1 1 220px; min-width: 120px; max-width: 620px; display: flex; gap: 6px; padding: 4px; background: #f4f5f0; border: 1px solid #e3e5dd; border-radius: 12px; }
.pam-search:focus-within { background: #fff; border-color: #d9a928; }
.pam-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 10px; font-size: 14px; background: transparent; color: var(--pam-ink); }
.pam-search input::-webkit-search-cancel-button { cursor: pointer; }
.pam-search button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--pam-red); color: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 700; cursor: pointer; min-height: 40px; }
.pam-search button:hover { background: var(--pam-red-dark); }
.pam-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pam-nav__link { color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.35); white-space: nowrap; }
.pam-nav__link--primary { background: #fff; color: var(--pam-red-dark); font-weight: 700; border-color: #fff; }
.pam-nav__user { opacity: .9; padding: 0 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1050px) {
  /* 0.2.4: 721–1050px แท็บอยู่แถวเดียวกับช่องค้นหา แสดงเฉพาะไอคอน (ชื่อเมนูใน title/aria-label) — แถบสูง ~60px แถวเดียว */
  .pam-header__inner { padding: 8px 14px; gap: 8px; }
  .propapex-brand-home { width: 112px; }
  .pam-search { flex: 1 1 120px; min-width: 100px; max-width: none; padding: 3px; }
  .pam-search button { padding: 8px 10px; }
  .pam-search .pam-search__label { display: none; }
  .pam-nav { gap: 4px; }
  .pam-nav__link { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; gap: 0; }
  .pam-nav__label, .pam-nav__user { display: none; }
  .pam-tabs { gap: 2px; }
  .pam-tab { padding: 8px 9px; border-radius: 8px; }
  .pam-tab svg { width: 20px; height: 20px; }
  .pam-tab__label { display: none; }
}
@media (max-width: 720px) {
  /* มือถือ: แถวที่สองเป็นแถบไอคอน+ป้ายสั้น 4 ช่องเท่ากัน (สูง ~45px) เหมือนหน้าแรก (Map 3.12.3) */
  .pam-header__inner { padding: 6px 12px 4px; gap: 2px 8px; }
  .pam-search { flex: 1 1 60px; min-width: 60px; }
  .pam-tabs { order: 20; flex: 1 0 100%; width: 100%; gap: 0; justify-content: space-around; }
  .pam-tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 5px 4px; font-size: 11px; font-weight: 600; }
  .pam-tab__label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.propapex-brand-home img { position: absolute; display: block; width: 148.5762%; max-width: none; height: auto; left: -24.2881%; top: -91.9614%; margin: 0; }

/* --- โครง --- */
.pam-main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.pam-loading { color: var(--pam-muted); }
.pam-card { background: #fff; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); padding: 16px; }
.pam-card--notice h1 { margin-top: 0; }
.pam-page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.pam-page-title h1 { margin: 0; font-size: 22px; }
.pam-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--pam-ink); background: #fff; color: var(--pam-ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.pam-btn:hover { background: #f1f1f1; }
.pam-btn--primary { background: var(--pam-red); border-color: var(--pam-red); color: #fff; }
.pam-btn--primary:hover { background: var(--pam-red-dark); }
.pam-btn--ghost { border-color: var(--pam-line); }
.pam-btn--danger { border-color: #C2410C; color: #9A3412; }
.pam-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pam-btn--small { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.pam-empty { text-align: center; padding: 40px 16px; color: var(--pam-muted); }
.pam-empty .pam-btn { margin-top: 12px; }

/* --- รายการประกาศของฉัน --- */
.pam-list { display: grid; gap: 12px; }
.pam-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: #fff; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); padding: 12px; }
.pam-item__thumb { width: 120px; aspect-ratio: 4/3; border-radius: 8px; background: var(--pam-surface); object-fit: cover; display: grid; place-items: center; color: var(--pam-muted); font-size: 12px; overflow: hidden; }
.pam-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pam-item__title { margin: 0 0 2px; font-size: 17px; }
.pam-item__meta { color: var(--pam-muted); font-size: 14px; margin: 0; }
.pam-item__price { font-weight: 800; color: var(--pam-red); margin: 4px 0; }
.pam-item__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 480px) { .pam-item { grid-template-columns: 96px 1fr; } .pam-item__thumb { width: 96px; } }

/* --- ป้ายสถานะ --- */
.pam-state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ECEDEF; color: #3F444C; vertical-align: middle; }
.pam-state--active { background: #E6F4EA; color: #1E6B34; }
.pam-state--draft { background: #FFF4D6; color: #8A5A00; }
.pam-state--sold, .pam-state--expired, .pam-state--source_missing, .pam-state--source_closed { background: #E4E6EA; color: #2F343B; }
.pam-state--withdrawn_owner, .pam-state--removed_admin { background: #FDE8E8; color: #9A1B1B; }

/* --- ฟอร์ม --- */
.pam-form { display: grid; gap: 14px; }
.pam-section { background: #fff; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); padding: 16px; }
.pam-section h2 { margin: 0 0 10px; font-size: 17px; }
.pam-section p.pam-hint { margin: 0 0 12px; color: var(--pam-muted); font-size: 14px; }
.pam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pam-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pam-field { display: grid; gap: 4px; min-width: 0; }
.pam-field--full { grid-column: 1 / -1; }
.pam-field label { font-weight: 600; font-size: 14px; }
.pam-field label .req { color: var(--pam-red); }
.pam-field input, .pam-field select, .pam-field textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #C8CCD2; border-radius: 8px; background: #fff; font-size: 16px; }
.pam-field textarea { min-height: 120px; resize: vertical; }
.pam-field input:focus, .pam-field select:focus, .pam-field textarea:focus { outline: 2px solid var(--pam-red); outline-offset: 1px; }
.pam-field.is-error input, .pam-field.is-error select, .pam-field.is-error textarea { border-color: #C2410C; }
.pam-field .pam-error { color: #9A3412; font-size: 13px; }
.pam-field .pam-help { color: var(--pam-muted); font-size: 13px; }
.pam-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.pam-check input { width: 20px; height: 20px; accent-color: var(--pam-red); }
@media (max-width: 640px) { .pam-grid, .pam-grid--3 { grid-template-columns: 1fr; } }

/* --- รูป --- */
.pam-drop { border: 2px dashed #C8CCD2; border-radius: var(--pam-radius); padding: 18px; text-align: center; background: #FAFAFB; }
.pam-drop.is-over { border-color: var(--pam-red); background: #FFF5F5; }
.pam-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pam-drop__limits { color: var(--pam-muted); font-size: 13px; margin: 8px 0 0; }
.pam-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.pam-image { border: 1px solid var(--pam-line); border-radius: 10px; overflow: hidden; background: #fff; display: grid; grid-template-rows: auto auto; }
.pam-image.is-cover { border-color: var(--pam-red); box-shadow: 0 0 0 2px rgba(227,25,31,.18); }
.pam-image__pic { aspect-ratio: 4/3; background: var(--pam-surface); display: grid; place-items: center; color: var(--pam-muted); font-size: 12px; position: relative; overflow: hidden; }
.pam-image__pic img { width: 100%; height: 100%; object-fit: cover; }
.pam-image__badge { position: absolute; left: 6px; top: 6px; background: rgba(15,15,14,.78); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.pam-image__badge--cover { background: var(--pam-red); }
.pam-image__status { position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.92); font-size: 11px; padding: 2px 7px; border-radius: 999px; color: #3F444C; }
.pam-image__status--pending { color: var(--pam-warn); }
.pam-image__status--failed { color: #9A1B1B; }
.pam-image__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.1); }
.pam-image__progress > span { display: block; height: 100%; background: var(--pam-red); transition: width .2s; }
.pam-image__tools { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.pam-image__tools button { min-height: 36px; min-width: 36px; padding: 4px 8px; border: 1px solid var(--pam-line); background: #fff; border-radius: 8px; font-size: 13px; cursor: pointer; }
.pam-image__tools button:hover { background: #f1f1f1; }
.pam-image__error { color: #9A1B1B; font-size: 12px; padding: 0 8px 8px; }

/* --- แถบสถานะ/ปุ่มท้ายฟอร์ม --- */
.pam-actionbar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--pam-line); padding: 10px 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 -16px -16px; border-radius: 0 0 var(--pam-radius) var(--pam-radius); }
.pam-actionbar .pam-spacer { flex: 1; }
.pam-readiness { font-size: 14px; color: var(--pam-muted); }
.pam-readiness ul { margin: 6px 0 0; padding-left: 18px; }
.pam-readiness--ok { color: var(--pam-ok); }
.pam-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--pam-ink); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); z-index: 50; }
.pam-toast.show { opacity: 1; }
.pam-toast--error { background: #9A1B1B; }
.pam-banner { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }
.pam-banner--preview { background: #FFF4D6; color: #8A5A00; }
.pam-banner--history { background: #ECEDEF; color: #3F444C; }
.pam-preview-frame { width: 100%; height: calc(100vh - 180px); min-height: 480px; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); background: #fff; }
.pam-dialog { position: fixed; inset: 0; background: rgba(15,15,14,.5); display: grid; place-items: center; padding: 16px; z-index: 60; }
.pam-dialog__card { background: #fff; border-radius: var(--pam-radius); padding: 18px; width: min(460px, 100%); }
.pam-dialog__card h3 { margin: 0 0 8px; }
.pam-dialog__card textarea { width: 100%; min-height: 80px; margin: 8px 0; padding: 8px; border: 1px solid #C8CCD2; border-radius: 8px; }
.pam-dialog__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* --- หน้ารายละเอียดสาธารณะ --- */
.pam-public .pam-listing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; background: #fff; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); padding: 16px; }
.pam-gallery__main { aspect-ratio: 4/3; background: var(--pam-surface); border-radius: 10px; overflow: hidden; }
.pam-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pam-gallery__thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.pam-gallery__thumb { flex: 0 0 84px; height: 64px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; background: var(--pam-surface); cursor: pointer; }
.pam-gallery__thumb.is-active { border-color: var(--pam-red); }
.pam-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pam-gallery__empty { aspect-ratio: 4/3; display: grid; place-items: center; border: 1px dashed var(--pam-line); border-radius: 10px; color: var(--pam-muted); }
.pam-listing__source { margin: 0; color: var(--pam-muted); font-size: 13px; }
.pam-listing__price { margin: 4px 0 0; color: var(--pam-red); font-size: 30px; font-weight: 800; }
.pam-listing__price.is-history { color: #4B5058; }
.pam-listing__price small { display: block; font-size: 13px; font-weight: 600; color: var(--pam-muted); }
.pam-listing__title { margin: 6px 0 10px; font-size: 22px; line-height: 1.3; }
.pam-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--pam-surface); font-size: 14px; margin: 0 6px 6px 0; }
.pam-tag--type { background: #FFF0F0; color: var(--pam-red-dark); font-weight: 700; }
.pam-tags { margin: 4px 0; }
.pam-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0; }
.pam-facts div { background: var(--pam-surface); border-radius: 8px; padding: 8px 10px; }
.pam-facts dt { font-size: 12px; color: var(--pam-muted); }
.pam-facts dd { margin: 0; font-weight: 600; }
.pam-description h2, .pam-contact h2 { font-size: 16px; margin: 14px 0 6px; }
.pam-description p { margin: 0; white-space: normal; }
.pam-contact ul { margin: 0; padding-left: 18px; }
.pam-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pam-note { color: var(--pam-muted); font-size: 13px; }
@media (max-width: 760px) { .pam-public .pam-listing { grid-template-columns: 1fr; } .pam-facts { grid-template-columns: 1fr 1fr; } .pam-listing__price { font-size: 26px; } }

/* --- 0.3.0: บทความ /blog/ --- */
.pam-page-head { padding: 8px 0 14px; }
.pam-page-head h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; }
.pam-page-head__sub { margin: 0; color: var(--pam-muted); font-size: 14px; }
.pam-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pam-post-card { min-width: 0; }
.pam-post-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pam-line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.pam-post-card__link:hover { box-shadow: 0 10px 28px rgba(15, 15, 14, .12); transform: translateY(-2px); }
.pam-post-card__link:focus-visible { outline: 3px solid var(--pam-red); outline-offset: 2px; }
.pam-post-card__media { aspect-ratio: 16 / 9; background: #ECEEF1; overflow: hidden; }
.pam-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pam-post-card__media--none { display: grid; place-items: center; color: #B8BDC5; }
.pam-post-card__media--none svg { width: 40px; height: 40px; }
.pam-post-card__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.pam-post-card__cat { margin: 0; font-size: 12px; font-weight: 700; color: var(--pam-red-dark); }
.pam-post-card__title { margin: 0; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pam-post-card__excerpt { margin: 0; font-size: 14px; color: var(--pam-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pam-post-card__date { margin: 4px 0 0; font-size: 12px; color: var(--pam-muted); }
.pam-pager { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pam-pager__info { color: var(--pam-muted); font-size: 14px; }
.pam-blog .pam-empty { padding: 32px 16px; }

/* --- 0.3.0: หน้าบทความหนึ่งเรื่อง — ความกว้างอ่านสบาย, เนื้อหาจากตัวแก้ไขบล็อกของ WordPress --- */
.pam-post-page { max-width: 820px; }
.pam-post { background: #fff; border: 1px solid var(--pam-line); border-radius: var(--pam-radius); padding: 24px; }
.pam-post__crumb { margin: 0 0 8px; font-size: 13px; color: var(--pam-muted); }
.pam-post__crumb a { color: var(--pam-red-dark); text-decoration: none; font-weight: 600; }
.pam-post__title { margin: 0 0 8px; font-size: 30px; line-height: 1.3; }
.pam-post__meta { margin: 0 0 16px; color: var(--pam-muted); font-size: 14px; }
.pam-post__cover { margin: 0 0 18px; }
.pam-post__cover img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pam-post__content { font-size: 17px; line-height: 1.85; }
.pam-post__content > * { max-width: 100%; }
.pam-post__content p { margin: 0 0 1.1em; }
.pam-post__content h2 { font-size: 23px; margin: 1.6em 0 .6em; line-height: 1.35; }
.pam-post__content h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.pam-post__content img, .pam-post__content video, .pam-post__content iframe { max-width: 100%; height: auto; border-radius: 8px; }
.pam-post__content figure { margin: 1.2em 0; }
.pam-post__content figcaption { font-size: 13px; color: var(--pam-muted); text-align: center; margin-top: 6px; }
.pam-post__content ul, .pam-post__content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.pam-post__content li { margin-bottom: .35em; }
.pam-post__content blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 4px solid var(--pam-red); background: var(--pam-surface); border-radius: 0 8px 8px 0; }
.pam-post__content table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.1em; display: block; overflow-x: auto; }
.pam-post__content th, .pam-post__content td { border: 1px solid var(--pam-line); padding: 8px 10px; text-align: left; }
.pam-post__content th { background: var(--pam-surface); }
.pam-post__content a { color: var(--pam-red-dark); }
.pam-post__foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--pam-line); }
.pam-post__foot p { margin: 0 0 10px; color: var(--pam-muted); }
@media (max-width: 760px) { .pam-post { padding: 16px; } .pam-post__title { font-size: 24px; } .pam-post__content { font-size: 16px; } }

/* --- 0.3.0: ติดต่อเรา /contact/ --- */
.pam-contact-page { max-width: 720px; }
.pam-contact-card { padding: 24px; }
.pam-contact-card h1 { margin: 0 0 10px; font-size: 28px; }
.pam-contact-lead { margin: 0 0 12px; font-size: 17px; line-height: 1.7; }
.pam-contact-topics { margin: 0 0 18px; padding-left: 1.3em; color: #3F444C; line-height: 1.8; }
.pam-contact-email { background: var(--pam-surface); border: 1px solid var(--pam-line); border-radius: 12px; padding: 16px 18px; }
.pam-contact-email__label { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pam-muted); }
.pam-contact-email__label svg { width: 18px; height: 18px; }
.pam-contact-email__addr { display: inline-block; font-size: 22px; font-weight: 800; color: var(--pam-red-dark); text-decoration: none; word-break: break-all; margin-bottom: 8px; }
.pam-contact-email .pam-actions { margin-top: 8px; }
.pam-contact-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 15px; }
.pam-contact-links a { color: var(--pam-red-dark); font-weight: 600; text-decoration: none; }
.pam-contact-links a:hover { text-decoration: underline; }
@media (max-width: 760px) { .pam-contact-card { padding: 16px; } .pam-contact-card h1 { font-size: 24px; } .pam-contact-email__addr { font-size: 19px; } }

/* --- 0.4.0: แบบฟอร์มติดต่อเรา (ใช้ .pam-form/.pam-grid/.pam-field ของหน้าสมาชิก) --- */
.pam-contact-form-wrap { margin: 16px 0 20px; padding: 18px; border-radius: 12px; background: var(--pam-surface); border: 1px solid var(--pam-line); }
.pam-contact-form-wrap h2 { margin: 0 0 12px; font-size: 19px; }
.pam-contact-form .pam-field input, .pam-contact-form .pam-field select, .pam-contact-form .pam-field textarea { background: #fff; }
.pam-contact-form .pam-field textarea { min-height: 150px; }
.pam-contact-form .pam-actions { align-items: center; margin-top: 12px; }
.pam-contact-form .pam-actions .pam-btn--primary { min-width: 180px; }
.pam-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pam-banner--ok { background: #E6F4EA; color: #1E6B34; }
.pam-banner--error { background: #FDE8E8; color: #9A1B1B; }
.pam-contact-email { margin-top: 8px; }

/* 0.4.2: รอบ ๆ ทำเล — ผลสำรวจ POI (OpenStreetMap) ในหน้าประกาศ */
.pam-around { margin: 14px 0; padding: 12px 14px; background: var(--pam-surface); border-radius: 10px; }
.pam-around h2 { font-size: 16px; margin: 0 0 6px; }
.pam-around__story { margin: 0 0 10px; line-height: 1.6; }
.pam-around__chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 10px; }
.pam-around__chips li { background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.pam-around__cat { font-size: 12px; color: var(--pam-muted); width: 100%; }
.pam-around__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pam-around__dist { margin-left: auto; font-weight: 700; color: var(--pam-red-dark); white-space: nowrap; }
.pam-around__all { margin-top: 10px; font-size: 14px; }
.pam-around__all summary { cursor: pointer; color: var(--pam-red-dark); font-weight: 600; }
.pam-around__all table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.pam-around__all td, .pam-around__all th { text-align: left; padding: 4px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.pam-around__all td:last-child, .pam-around__all th:last-child { text-align: right; white-space: nowrap; }
.pam-around__meta { margin: 8px 0 0; font-size: 12px; color: var(--pam-muted); }
.pam-around__meta a { color: inherit; }

/* 0.4.3: เรื่องเล่า 5 ย่อหน้า + กลุ่มหัวข้อ */
.pam-around__sub { margin: 0 0 10px; font-size: 13px; color: var(--pam-muted); }
.pam-around__p { margin: 0 0 12px; line-height: 1.75; font-size: 15px; }
.pam-around__lead { font-size: 16px; font-weight: 600; line-height: 1.7; }
.pam-around__h { font-size: 15px; margin: 14px 0 4px; }
.pam-around__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.pam-around__group h3 { font-size: 13px; color: var(--pam-muted); margin: 10px 0 6px; font-weight: 600; }
.pam-around__group .pam-around__chips { grid-template-columns: 1fr; }
@media (max-width: 760px) { .pam-around__groups { grid-template-columns: 1fr; } }
