/* ===================== Page-scoped Minimal UI ===================== */
:root {
    --bg: #ffffff;
    --text: #0f172a;
    /* slate-900 */
    --muted: #64748b;
    /* slate-500 */
    --accent: #0ea5e9;
    /* sky-500 */
    --border: #e5e7eb;
    /* gray-200 */
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(2, 6, 23, .06);
    --radius: 1rem;
}

body {
    background: var(--bg);
    color: var(--text);
}

.section {
    padding: clamp(24px, 4vw, 48px) 0;
}

/* ---------- Heading / Hero ---------- */
.heading-wrap {
    position: relative;
    text-align: center;
    margin-bottom: clamp(18px, 3vw, 28px);
}

.heading-wrap h2 {
    font-weight: 800;
    letter-spacing: -.02em;
}

.heading-wrap .subtitle {
    color: var(--muted);
}

.radial {
    position: absolute;
    inset: auto 0 -40% 0;
    height: 240px;
    pointer-events: none;
    filter: blur(50px);
    opacity: .6;
    background: radial-gradient(60% 60% at 50% 0%, rgba(14, 165, 233, .10), rgba(14, 165, 233, 0));
}

/* ---------- Card ---------- */
.card-min {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-min:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, .08);
    border-color: #d1e9f9;
}

.card-min .card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(2, 6, 23, .04);
}

.card-min:hover .icon {
    transform: scale(1.03);
}

.text-muted {
    color: var(--muted) !important;
}

.address p {
    margin: 0 0 4px 0;
}

/* ---------- Copyable rows ---------- */
.copyable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: .75rem .9rem;
    border: 1px dashed var(--border);
    border-radius: .8rem;
}

.copyable .label {
    font-weight: 600;
}

.copyable a {
    text-decoration: none;
}

.copyable button {
    border: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .6rem;
    padding: .45rem .7rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, transform .12s ease;
}

.copyable button:hover {
    border-color: #bae6fd;
}

.copyable button:active {
    transform: scale(.98);
}

/* ---------- Map ---------- */
.map-wrap {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + .25rem);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-min {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: .8rem;
    padding: .6rem .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, transform .12s;
    will-change: transform;
}

.btn-min:hover {
    border-color: #bae6fd;
}

.btn-min:active {
    transform: scale(.98);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .card-min,
    .reveal {
        transition: none
    }
}

/* ==== Combined card styles ==== */
.card-min.combined {
    position: relative;
    padding: clamp(18px, 1.5vw, 28px);
}

.card-min.combined::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, rgba(14, 165, 233, .5), rgba(14, 165, 233, 0));
}

.subhead {
    font-weight: 700;
    margin: 4px 0 10px;
    letter-spacing: -.01em;
}

.split-md {
    display: grid;
    gap: 16px;
}

@media(min-width:768px) {
    .split-md {
        grid-template-columns: 1fr 1px 1fr;
        align-items: start;
    }

    .vrule {
        display: block;
        width: 1px;
        background: var(--border);
        height: 100%;
        border-radius: 999px;
    }
}

@media(max-width:767.98px) {
    .vrule {
        display: none;
    }
}


/* ==== Enhanced Combined Contact UI ==== */
.card-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.card-hero .title {
    font-weight: 800;
    letter-spacing: -.01em
}

.card-hero .meta {
    color: var(--muted);
    font-weight: 600;
    font-size: .85rem
}

.info-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: .8rem;
    transition: border-color .2s
}

.info-row .i {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.info-row:hover {
    border-color: #bae6fd
}

.info-row .label {
    font-weight: 600
}

.info-row .value a {
    text-decoration: none
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}

.btn-ghost-min {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: .8rem;
    padding: .6rem .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, transform .12s
}

.btn-ghost-min:hover {
    border-color: #bae6fd
}

.btn-ghost-min:active {
    transform: scale(.98)
}

/* Focus visibility for keyboard users */
.btn-ghost-min:focus-visible,
.btn-min:focus-visible,
.copyable button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ให้ปุ่มคัดลอกชิดขวาสุดในแต่ละ info-row */
.info-row .btn-copy {
    margin-left: auto;
}