/* ═══════════════════════════════════════════
   tenant-detail.css  |  ช่างแอร์ Tenant Page
   ═══════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #0052CC;
    --blue-light: #EBF2FF;
    --blue-mid:   #2D7DD2;
    --green:      #00A650;
    --green-light:#E6F7EE;
    --orange:     #FF6B2B;
    --gold:       #F5A623;
    --text:       #1A1A2E;
    --muted:      #6B7280;
    --border:     #E8ECF4;
    --bg:         #F4F7FD;
    --white:      #FFFFFF;
    --radius:     16px;
    --shadow:     0 4px 24px rgba(0,82,204,.08);
    --shadow-lg:  0 12px 48px rgba(0,82,204,.14);
}

body {
    font-family: 'Sarabun', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.wrap { max-width: 980px; margin: 0 auto; padding: 2rem 1rem 5rem; }
.mb-15 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ─── Section Base ─── */
.section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.section-title {
    font-family: 'Mitr', sans-serif;
    font-size: 1.1rem; font-weight: 600;
    color: var(--text); margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.section-title::before {
    content: ''; width: 4px; height: 20px;
    background: var(--blue); border-radius: 2px; flex-shrink: 0;
}
.section-title-meta {
    font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: auto;
}

/* ══════════════════
   HERO
══════════════════ */
.hero {
    background: linear-gradient(135deg, #0052CC 0%, #1A3D8F 60%, #0F2660 100%);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero::before {
    content: '❄';
    position: absolute; font-size: 280px;
    right: -40px; top: -40px;
    opacity: .05; line-height: 1; pointer-events: none;
}
.hero-body { display: flex; gap: 2rem; align-items: flex-start; position: relative; z-index: 1; }
.hero-logo {
    width: 110px; height: 110px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3);
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.hero-info { flex: 1; padding-bottom: 1.5rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); color: #fff;
    font-size: .75rem; padding: 4px 12px; border-radius: 20px;
    margin-bottom: .6rem; border: 1px solid rgba(255,255,255,.2);
}
.hero-name {
    font-family: 'Mitr', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: #fff; line-height: 1.2; margin-bottom: .4rem;
}
.hero-phone { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.hero-phone a { color: #7DD3FC; font-weight: 700; text-decoration: none; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
    background: var(--green); color: #fff;
    padding: .75rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s; box-shadow: 0 4px 16px rgba(0,166,80,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,166,80,.5); }

.btn-line {
    background: #06C755; color: #fff;
    padding: .75rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s;
}
.btn-line:hover { transform: translateY(-2px); filter: brightness(1.1); }

.hero-strip {
    background: rgba(255,255,255,.08);
    border-top: 1px solid rgba(255,255,255,.12);
    margin: 0 -2.5rem;
    padding: 1rem 2.5rem;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.hero-strip-item { color: rgba(255,255,255,.8); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.hero-strip-item span { color: #fff; font-weight: 700; }

/* ══════════════════
   RATING
══════════════════ */
.rating-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.rating-card-inner { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.rating-big { text-align: center; }
.rating-big .num {
    font-family: 'Mitr', sans-serif;
    font-size: 4rem; font-weight: 700;
    color: var(--blue); line-height: 1;
}
.rating-big .stars { font-size: 1.4rem; margin: .3rem 0; color: var(--gold); letter-spacing: 2px; }
.rating-big .count { font-size: .85rem; color: var(--muted); }
.rating-bars { flex: 1; min-width: 200px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .85rem; }
.bar-label { width: 40px; color: var(--muted); white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: #EEF2FF; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--orange)); }
.bar-n { width: 28px; text-align: right; color: var(--muted); }
.rating-badges { display: flex; flex-direction: column; gap: .6rem; }
.badge-item {
    background: var(--blue-light); border-radius: 12px;
    padding: .6rem 1rem; font-size: .85rem;
    display: flex; align-items: center; gap: 8px;
    color: var(--blue); font-weight: 600;
}

/* ══════════════════
   SERVICES
══════════════════ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.service-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .88rem; padding: .45rem 0;
    border-bottom: 1px solid var(--border);
}
.service-item:nth-last-child(-n+2) { border-bottom: none; }
.service-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ══════════════════
   PRICE TABLE
══════════════════ */
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table tr { border-bottom: 1px solid var(--border); }
.price-table tr:last-child { border-bottom: none; }
.price-table td { padding: .7rem .4rem; vertical-align: top; }
.price-table td:first-child { width: 36px; font-size: 1.1rem; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-sub { font-size: .78rem; color: var(--muted); display: block; }
.price-note { font-size: .78rem; color: var(--muted); margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--border); }

/* ══════════════════
   STEPS
══════════════════ */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 1rem; padding: .9rem 0; position: relative; }
.step:not(:last-child)::after {
    content: ''; position: absolute;
    left: 15px; top: 42px; bottom: -4px;
    width: 2px; background: var(--border);
}
.step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; flex-shrink: 0;
    position: relative; z-index: 1;
}
.step-content h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.step-content p { font-size: .85rem; color: var(--muted); }

/* ══════════════════
   WHY US
══════════════════ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.why-item {
    background: var(--bg); border-radius: 12px;
    padding: 1rem; border: 1px solid var(--border);
    display: flex; gap: 10px; align-items: flex-start;
}
.why-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.why-item h4 { font-size: .88rem; font-weight: 700; margin-bottom: .2rem; }
.why-item p { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════
   GALLERY
══════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.gallery-grid img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 12px; cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    border-color: var(--blue);
}

/* ══════════════════
   REVIEWS
══════════════════ */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(0,82,204,.08); }
.review-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: .6rem;
    flex-wrap: wrap; gap: .5rem;
}
.reviewer-name { font-weight: 700; font-size: .95rem; }
.verified-inline { color: var(--green); font-size: .75rem; font-weight: 600; }
.reviewer-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 1px; }
.review-tag {
    display: inline-block;
    background: var(--blue-light); color: var(--blue);
    font-size: .75rem; padding: 2px 10px;
    border-radius: 20px; font-weight: 600; margin-bottom: .5rem;
}
.review-comment { font-size: .9rem; line-height: 1.7; color: #374151; }
.review-images { display: flex; gap: 6px; margin-top: .75rem; flex-wrap: wrap; }
.review-images img {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid var(--border);
    transition: transform .2s;
}
.review-images img:hover { transform: scale(1.06); }
.review-footer {
    margin-top: .75rem;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.review-verified { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--green); font-weight: 600; }
.helpful-btn {
    background: none; border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 12px;
    font-size: .78rem; color: var(--muted);
    cursor: pointer; font-family: 'Sarabun', sans-serif;
    transition: all .2s; display: flex; align-items: center; gap: 5px;
}
.helpful-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.helpful-btn:disabled { opacity: .6; cursor: default; }

.no-reviews { text-align: center; padding: 2.5rem; color: var(--muted); }
.no-reviews-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.no-reviews-title { font-weight: 700; margin-bottom: .3rem; }
.no-reviews-sub { font-size: .85rem; }

.review-cta {
    background: linear-gradient(135deg, var(--blue-light), #dbeafe);
    border-radius: var(--radius); padding: 1.5rem;
    text-align: center; margin-top: 1rem;
    border: 1px solid #bfdbfe;
}
.review-cta h4 { font-family: 'Mitr', sans-serif; font-size: 1rem; color: var(--blue); margin-bottom: .4rem; }
.review-cta p { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.btn-review {
    background: var(--blue); color: #fff;
    padding: .6rem 1.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: .9rem;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s;
}
.btn-review:hover { background: var(--blue-mid); transform: translateY(-2px); }

/* ══════════════════
   FAQ
══════════════════ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    width: 100%; background: none; border: none;
    text-align: left; padding: 1rem 0;
    font-family: 'Sarabun', sans-serif; font-size: .95rem; font-weight: 700;
    color: var(--text); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--blue); }
.faq-arrow { font-size: .8rem; color: var(--muted); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { font-size: .9rem; color: #374151; padding-bottom: 1rem; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ══════════════════
   LIGHTBOX
══════════════════ */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 9999;
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
    position: fixed; top: 1.2rem; right: 1.5rem;
    color: #fff; font-size: 1.5rem; cursor: pointer;
    background: rgba(255,255,255,.15); border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ══════════════════
   FLOATING CTA
══════════════════ */
.floating-cta {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--green); color: #fff;
    padding: .9rem 1.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 30px rgba(0,166,80,.45);
    z-index: 1000;
    animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 30px rgba(0,166,80,.45); }
    50%       { box-shadow: 0 8px 40px rgba(0,166,80,.7); transform: translateY(-2px); }
}

/* ══════════════════
   RESPONSIVE
══════════════════ */
@media (max-width: 700px) {
    .hero { padding: 1.5rem 1.5rem 0; }
    .hero::before { font-size: 160px; }
    .hero-body { flex-direction: column; align-items: center; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-strip { gap: 1rem; justify-content: center; margin: 0 -1.5rem; padding: .9rem 1.5rem; }
    .hero-name { font-size: 1.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .rating-card-inner { flex-direction: column; }
    .rating-big { display: flex; gap: 1.5rem; align-items: center; }
    .floating-cta { bottom: 1rem; right: 1rem; padding: .75rem 1.2rem; font-size: .9rem; }
}

.hero-premium-card {
    background: linear-gradient(180deg, #004aad 0%, #002d6a 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.profile-avatar img {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.cta-group {
    display: flex; gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.btn-hero-green {
    background: #00b900; color: white;
    padding: 12px 25px; border-radius: 50px; font-weight: bold;
    text-decoration: none; flex: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 16px;
}