/* ==================================================
ITSSOSO DIRECTORY SINGLE CSS
File: assets/css/directory-single.css
Premium business profile styling (FINAL POLISH)
================================================== */

/* RESET */
.itssoso-business-profile * {
    box-sizing: border-box;
}

/* ==================================================
GLOBAL SECTION SYSTEM (NEW 🔥)
================================================== */

.itssoso-section {
    margin-bottom: 28px;
}

.itssoso-section:last-child {
    margin-bottom: 0;
}

/* ==================================================
LAYOUT
================================================== */

.itssoso-business-profile {
    width: 100%;
    background: #f8fafc;
    color: #111827;
}

.itssoso-container {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
}

.itssoso-business-body {
    padding: 32px 0 64px;
}

.itssoso-business-body .grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 26px;
    align-items: start;
}

.left,
.right {
    min-width: 0;
}

/* ==================================================
HERO
================================================== */

.itssoso-business-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: #111827;
}

.itssoso-business-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: brightness(.65);
}

.itssoso-business-hero .hero-overlay {
    position: relative;
    z-index: 2;
    padding: 72px 0 42px;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.18) 0%,
            rgba(0,0,0,.55) 55%,
            rgba(0,0,0,.82) 100%
        );
}

.itssoso-business-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.05;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.03em;
    max-width: 860px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-meta .badge,
.hero-meta .location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    background: rgba(255,255,255,.14);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-meta .badge {
    background: rgba(59,130,246,.28);
}

.trust-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.trust-box strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==================================================
CARDS (UPGRADED 🔥)
================================================== */

.card,
.itssoso-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 24px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.03),
        0 8px 24px rgba(0,0,0,.04);
    margin-bottom: 24px;
    transition: .2s ease;
}

.itssoso-card:hover {
    box-shadow:
        0 2px 6px rgba(0,0,0,.04),
        0 12px 30px rgba(0,0,0,.06);
}

.card h2,
.card h3,
.itssoso-card h2,
.itssoso-card h3 {
    margin: 0 0 14px;
    font-size: 1.22rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.02em;
}

/* ==================================================
CONTENT IMPROVEMENTS 🔥
================================================== */

.content,
.itssoso-content {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
}

/* About readability */
.itssoso-content p {
    margin-bottom: 12px;
}

/* ==================================================
MUTED / EMPTY
================================================== */

.muted,
.itssoso-empty,
.step-hint {
    color: #6b7280;
    font-size: .96rem;
    line-height: 1.55;
}

/* ==================================================
BUTTONS
================================================== */

.itssoso-btn,
.itssoso-btn-primary,
.itssoso-btn-secondary,
.itssoso-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    transition: .2s ease;
    white-space: nowrap;

    /* 🔥 CLICK SAFETY */
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.itssoso-btn,
.itssoso-btn-secondary {
    background: #fff;
    color: #111827;
    border-color: #d1d5db;
}

.itssoso-btn:hover,
.itssoso-btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.itssoso-btn-primary {
    background: #2563eb;
    color: #fff;
}

.itssoso-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.itssoso-btn-small {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
}

.save-btn.active {
    background: #f59e0b;
    color: #111827;
}

/* ==================================================
DIRECTORY HERO ACTION CLICK FIX 🔥
================================================== */

.itssoso-business-hero,
.hero-overlay,
.hero-actions {
    position: relative;
}

.hero-actions {
    z-index: 50;
    pointer-events: auto;
}

.hero-actions .itssoso-btn,
.hero-actions .itssoso-btn-primary,
.hero-actions .itssoso-btn-secondary,
.hero-actions [data-itssoso-message] {
    z-index: 60;
    pointer-events: auto;
}

.hero-bg {
    pointer-events: none;
}


/* ==================================================
CONTACT & PAYMENT (NEW 🔥)
================================================== */

.itssoso-contact-list p {
    margin: 0 0 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.itssoso-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itssoso-payment-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

/* ==================================================
MAP (ENHANCED 🔥)
================================================== */

.map,
#itssoso-single-map {
    width: 100%;
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
}

.address {
    margin-top: 14px;
    color: #374151;
    font-weight: 500;
}

/* ==================================================
COMMUNITY / BOOST (PREP 🔥)
================================================== */

.itssoso-community-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.itssoso-comment {
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
}

/* ==================================================
GALLERY
================================================== */

.gallery-grid,
.itssoso-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 14px;
}

.gallery-grid img,
.itssoso-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .25s ease;
    cursor: pointer;
}

.gallery-grid img:hover,
.itssoso-gallery-grid img:hover {
    transform: scale(1.03);
}

/* ==================================================
SERVICES
================================================== */

.itssoso-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itssoso-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: .92rem;
}

/* ==================================================
SHOWCASE
================================================== */

.itssoso-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 18px;
}

.itssoso-showcase-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: .2s ease;
}

.itssoso-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.itssoso-showcase-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.showcase-body {
    padding: 16px;
}

.showcase-body h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.showcase-body p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.55;
    font-size: .94rem;
}

/* ==================================================
RIGHT SIDEBAR
================================================== */

.right .card p {
    margin: 0 0 12px;
    color: #374151;
}

/* ==================================================
MOBILE STICKY ACTION BAR
================================================== */

@media (max-width: 768px) {

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .itssoso-btn,
    .hero-actions .itssoso-btn-primary {
        flex: 1 1 calc(50% - 10px);
    }

    .itssoso-business-body {
        padding-bottom: 100px;
    }

    .hero-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(0,0,0,.14);
    }

    .itssoso-business-hero .hero-overlay {
        padding-bottom: 110px;
    }
}

/* ==================================================
RESPONSIVE
================================================== */

@media (max-width: 1080px) {

    .itssoso-business-body .grid {
        grid-template-columns: 1fr;
    }

    .right {
        order: -1;
    }
}

@media (max-width: 640px) {

    .itssoso-container {
        width: min(100%, calc(100% - 18px));
    }

    .card,
    .itssoso-card {
        padding: 18px;
        border-radius: 18px;
    }

    .itssoso-business-hero {
        min-height: 360px;
    }

    .itssoso-business-hero h1 {
        font-size: 2rem;
    }

    .gallery-grid,
    .itssoso-gallery-grid,
    .itssoso-showcase-grid {
        grid-template-columns: 1fr;
    }

    .map,
    #itssoso-single-map {
        min-height: 280px;
    }
}

.itssoso-full-btn{
   width:100%;
   min-height:52px;
}