/* Public Business Directory Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --pd-primary: #3b82f6;
    --pd-secondary: #6366f1;
    --pd-dark: #0f172a;
    --pd-light: #f8fafc;
    --pd-glass: rgba(255, 255, 255, 0.8);
    --pd-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.pd-public {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: var(--pd-dark);
}

.pd-hero {
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    background-size: cover;
    background-position: center;
    padding: 50px 20px 80px;
    text-align: center;
    color: white;
    margin-bottom: -50px;
    position: relative;
    margin-top: -32px;
    /* Pull it up to be absolutely flush with the nav */
}

.pd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.pd-hero h1,
.pd-hero p {
    position: relative;
    z-index: 2;
}

.pd-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.pd-search-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--pd-glass);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--pd-shadow);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.pd-search-container input,
.pd-search-container select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.pd-search-container button {
    padding: 15px 40px;
    background: var(--pd-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.pd-search-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pd-main-content {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .pd-main-content {
        grid-template-columns: 1fr;
    }
}

.pd-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.pd-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.pd-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pd-card-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pd-card-logo {
    width: 80%;
    height: 130px;
    border-radius: 12px;
    background: white;
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.pd-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.pd-card-body {
    padding: 75px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pd-card-category {
    font-size: 12px;
    font-weight: 800;
    color: var(--pd-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pd-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pd-dark);
}

.pd-card-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.pd-mini-site-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -32px;
    /* Flush with menu */
}

.pd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.pd-site-info {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.pd-site-logo {
    width: 380px;
    height: 220px;
    border-radius: 30px;
    background: white;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-site-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-site-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

#pd-map {
    height: 500px;
    width: 100%;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: var(--pd-shadow);
    margin-bottom: 30px;
}

.pd-sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pd-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.pd-social-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pd-social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--pd-dark);
    font-size: 20px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.pd-social-btn:hover {
    transform: scale(1.1);
}

/* Social Colors */
.pd-social-btn.facebook {
    color: #1877F2;
    background: #e7f3ff;
}

.pd-social-btn.instagram {
    color: #E4405F;
    background: #fdf2f2;
}

.pd-social-btn.twitter {
    color: #1DA1F2;
    background: #e8f5fd;
}

.pd-social-btn.youtube {
    color: #FF0000;
    background: #fff1f1;
}

.pd-social-btn.linkedin {
    color: #0A66C2;
    background: #eef4f9;
}

.pd-social-btn.tiktok {
    color: #000000;
    background: #f1f1f1;
}

.pd-social-btn.whatsapp {
    color: #25D366;
    background: #e8fbed;
}

.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pd-gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.pd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pd-gallery-item:hover img {
    transform: scale(1.1);
}

.pd-vcard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1e293b;
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    transition: background 0.2s;
}

.pd-vcard-btn:hover {
    background: #0f172a;
    color: white;
}

.pd-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--pd-dark);
}

.pd-contact-btn:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(5px);
}

.pd-contact-btn i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.pd-qr-container {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.pd-qr-container img {
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pd-product-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white !important;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.pd-product-wa-btn:hover {
    background: #1eb954;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.pd-product-wa-btn i {
    font-size: 1.2rem;
}

/* Modal Styles */
.pd-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.pd-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pd-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
}

.pd-card-body {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Ensure content is spread out */
}

@media (max-width: 768px) {
    .pd-site-logo {
        width: 220px;
        height: 130px;
    }

    .pd-site-title h1 {
        font-size: 2.2rem;
    }

    /* Responsive Modal Fixes */
    .pd-product-modal-content {
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }

    .pd-product-modal-body {
        flex-direction: column;
    }

    .pd-product-modal-img-container {
        height: 180px !important;
        width: 100%;
    }

    .pd-product-modal-info {
        padding: 20px !important;
    }
}

.pd-product-wa-btn {
    margin-top: auto;
    /* Push to bottom */
}