/* =========================================================
   PTK CONTACT & SOCIAL v2.0.0
   - Contact page / shortcode
   - Compact Footer Social
   - Drawer base markup (layout-specific CSS supplied separately)
========================================================= */

.ptk-social-section,
.ptk-contact-info,
.ptk-contact-map,
.ptk-footer-social-wrap,
.ptk-compact-social{
  box-sizing:border-box;
}

/* =========================
   COMPACT FOOTER SOCIAL
   v1.2.0: ใช้พื้นหลังของ .site-footer โดยตรง
   ไม่ขยายด้วย 100vw/negative margin เพื่อป้องกันเส้นขาวด้านข้าง
========================= */
.ptk-footer-social-wrap{
  position:relative;
  width:100%;
  max-width:100%;
  margin:12px 0 0;
  padding:var(--ptk-footer-padding,12px) 0;
  color:var(--ptk-footer-text,#bdbdbd);
  background:transparent;
  border:0;
  outline:0;
  box-shadow:none;
}
.ptk-compact-social--footer{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 14px;
  text-align:center;
}
.ptk-compact-social__title{
  color:var(--ptk-footer-text,currentColor);
  font-weight:700;
}
.ptk-compact-social__links{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}
.ptk-compact-social__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--ptk-footer-link,#e5c66f);
  text-decoration:none;
  line-height:1.3;
  position:relative;
  overflow:hidden;
  transform:translateZ(0);
  transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}
.ptk-compact-social__link:hover,
.ptk-compact-social__link:focus-visible{
  color:var(--ptk-footer-hover,#fff);
  transform:translateY(-2px);
}
.ptk-compact-social__link:active,
.ptk-compact-social__link.is-ptk-social-pressed{
  transform:scale(.88) rotate(-5deg);
}
.ptk-compact-social__link::after{
  content:"";
  position:absolute;
  inset:50%;
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(0);
}
.ptk-compact-social__link.is-ptk-social-pressed::after{
  animation:ptkSocialTapRipple .34s ease-out;
}
@keyframes ptkSocialTapRipple{
  0%{opacity:.28;transform:translate(-50%,-50%) scale(0)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(8)}
}
.ptk-compact-social__separator{
  color:var(--ptk-footer-text,#bdbdbd);
  opacity:.55;
}
.ptk-compact-social--footer.ptk-compact-social--icon .ptk-compact-social__link{
  width:calc(var(--ptk-footer-icon-size,22px) + 16px);
  height:calc(var(--ptk-footer-icon-size,22px) + 16px);
  border-radius:50%;
}
.ptk-compact-social--boxed .ptk-compact-social__link{
  padding:7px 11px;
  border:1px solid color-mix(in srgb,var(--ptk-footer-link,#e5c66f) 42%,transparent);
  border-radius:8px;
}
.ptk-compact-social--boxed .ptk-compact-social__link:hover{
  border-color:var(--ptk-footer-hover,#fff);
}
.ptk-compact-social--footer .ptk-social-icon{
  flex:0 0 auto;
  width:var(--ptk-footer-icon-size,22px);
  height:var(--ptk-footer-icon-size,22px);
  font-size:var(--ptk-footer-icon-size,22px);
  line-height:var(--ptk-footer-icon-size,22px);
}

/* =========================
   CONTACT PAGE SOCIAL CARD
========================= */
.ptk-social-section{
  margin:18px 0 0;
  padding:18px;
  border:1px solid rgba(214,177,73,.28);
  border-radius:16px;
  background:linear-gradient(180deg,#191919 0%,#101010 100%);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.ptk-social-title{margin:0 0 14px;text-align:center;font-size:18px;line-height:1.35;color:#e5c66f}
.ptk-social-shell{display:flex;align-items:center;gap:10px;min-width:0}
.ptk-social-list{display:flex;gap:10px;flex:1;min-width:0}
.ptk-social-item{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 15px;border-radius:12px;color:#f5f5f5;text-decoration:none;background:#202020;border:1px solid rgba(255,255,255,.08);transition:transform .2s ease,border-color .2s ease,background .2s ease}
.ptk-social-item:hover,.ptk-social-item:focus-visible{transform:translateY(-2px);border-color:rgba(229,198,111,.7);background:#292929;color:#fff}
.ptk-social-icon{width:22px;height:22px;font-size:22px;line-height:22px;color:#e5c66f}
.ptk-social-label{font-weight:700;white-space:nowrap}
.ptk-social-arrow{display:none;width:40px;height:40px;flex:0 0 40px;border:1px solid rgba(229,198,111,.35);border-radius:50%;background:#191919;color:#e5c66f;cursor:pointer}
.ptk-social-section[data-desktop-layout="row"] .ptk-social-list{display:flex;flex-wrap:wrap;justify-content:center}
.ptk-social-section[data-desktop-layout="row"] .ptk-social-item{flex:1 1 150px;max-width:220px}
.ptk-social-section[data-desktop-layout="grid"] .ptk-social-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ptk-social-section[data-desktop-layout="slider"] .ptk-social-list{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain}
.ptk-social-section[data-desktop-layout="slider"] .ptk-social-list::-webkit-scrollbar{display:none}
.ptk-social-section[data-desktop-layout="slider"] .ptk-social-item{flex:0 0 210px;scroll-snap-align:start}
.ptk-social-section[data-desktop-layout="slider"] .ptk-social-arrow{display:inline-flex;align-items:center;justify-content:center}

/* =========================
   CONTACT INFORMATION
========================= */
.ptk-contact-info{margin:0 0 22px;padding:24px;border-radius:18px;background:#151515;border:1px solid rgba(214,177,73,.25)}
.ptk-contact-info h2{margin:0 0 10px;color:#e5c66f}
.ptk-contact-intro{margin:0 0 18px;color:#d9d9d9;line-height:1.8}
.ptk-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ptk-contact-card{display:flex;gap:12px;padding:16px;border-radius:13px;background:#202020;color:#eee}
.ptk-contact-card>.dashicons{color:#e5c66f;font-size:23px;width:23px;height:23px}
.ptk-contact-card strong{display:block;margin-bottom:4px;color:#fff}
.ptk-contact-card a{color:#e5c66f}
.ptk-contact-map{margin:0 0 22px;overflow:hidden;border-radius:18px;border:1px solid rgba(214,177,73,.25)}
.ptk-contact-map iframe{display:block;width:100%;min-height:360px;border:0}

@media(min-width:861px){
  .ptk-compact-social--footer .ptk-social-label{
    font-size:var(--ptk-footer-label-size,16px);
  }
}

@media(prefers-reduced-motion:reduce){
  .ptk-compact-social__link{
    transition:none;
  }
  .ptk-compact-social__link:hover,
  .ptk-compact-social__link:focus-visible,
  .ptk-compact-social__link:active,
  .ptk-compact-social__link.is-ptk-social-pressed{
    transform:none;
  }
  .ptk-compact-social__link.is-ptk-social-pressed::after{
    animation:none;
  }
}

@media(max-width:860px){
  .ptk-footer-social-wrap{margin-top:10px;padding-left:14px;padding-right:14px}
  .ptk-compact-social--footer{display:block}
  .ptk-compact-social--footer .ptk-compact-social__title{margin-bottom:7px}
  .ptk-compact-social--footer.ptk-compact-social--text .ptk-compact-social__links{gap:6px}
  .ptk-social-section{padding:14px;margin-top:14px}
  .ptk-social-section[data-mobile-layout="grid"] .ptk-social-shell{display:block}
  .ptk-social-section[data-mobile-layout="grid"] .ptk-social-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important;gap:9px}
  .ptk-social-section[data-mobile-layout="grid"] .ptk-social-item{max-width:none!important;min-width:0;flex:none}
  .ptk-social-section[data-mobile-layout="grid"] .ptk-social-arrow{display:none!important}
  .ptk-social-section[data-mobile-layout="slider"] .ptk-social-list{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .ptk-social-section[data-mobile-layout="slider"] .ptk-social-list::-webkit-scrollbar{display:none}
  .ptk-social-section[data-mobile-layout="slider"] .ptk-social-item{flex:0 0 72%;max-width:260px;scroll-snap-align:start}
  .ptk-social-section[data-mobile-layout="slider"] .ptk-social-arrow{display:none!important}
  .ptk-contact-grid{grid-template-columns:1fr}
  .ptk-contact-info{padding:18px}
}
