/* City Page Generator - Public Stylesheet (GBP & Yelp Directory Layout) */
.cpg-listing-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Breadcrumbs */
.cpg-breadcrumbs {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 20px;
}

.cpg-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.cpg-breadcrumbs a:hover {
    text-decoration: underline;
}

.cpg-sep {
    margin: 0 6px;
    color: #adb5bd;
}

.cpg-current {
    color: #212529;
    font-weight: 600;
}

/* GBP Header Card */
.cpg-gbp-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.cpg-gbp-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cpg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cpg-badge-verified {
    background: #e8f4fd;
    color: #1da1f2;
}

.cpg-badge-category {
    background: #f1f3f5;
    color: #495057;
}

.cpg-price-tier {
    font-weight: 700;
    color: #28a745;
    font-size: 14px;
}

.cpg-listing-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    line-height: 1.25;
}

.cpg-gbp-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.cpg-stars {
    color: #f59e0b;
    font-size: 16px;
}

.cpg-rating-score {
    font-weight: 700;
    color: #111;
}

.cpg-review-count a {
    color: #0066cc;
    text-decoration: underline;
}

.cpg-dot-sep {
    color: #ced4da;
}

.cpg-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.cpg-status-open {
    color: #166534;
}

.cpg-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

/* Yelp / Yellow Pages Action Grid */
.cpg-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid #f1f3f5;
    padding-top: 20px;
}

.cpg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.cpg-btn-primary {
    background: #d9232d; /* Yelp Red */
    color: #fff !important;
}

.cpg-btn-primary:hover {
    background: #b51a23;
}

.cpg-btn-whatsapp {
    background: #25d366;
    color: #fff !important;
}

.cpg-btn-whatsapp:hover {
    background: #1eb956;
}

.cpg-btn-secondary {
    background: #f8f9fa;
    color: #212529 !important;
    border: 1px solid #ced4da;
}

.cpg-btn-secondary:hover {
    background: #e9ecef;
}

.cpg-btn-accent {
    background: #0f172a;
    color: #fff !important;
}

.cpg-btn-accent:hover {
    background: #1e293b;
}

/* Two-Column Grid */
.cpg-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .cpg-grid-layout {
        grid-template-columns: 1fr;
    }
}

.cpg-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.cpg-card h2, .cpg-card h3 {
    margin-top: 0;
    color: #111;
    font-weight: 700;
}

/* Product Hero */
.cpg-product-hero {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 600px) {
    .cpg-product-hero {
        grid-template-columns: 1fr;
    }
}

.cpg-featured-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cpg-price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.cpg-stock-pill {
    display: inline-block;
    padding: 3px 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cpg-attr-table {
    font-size: 13px;
    display: grid;
    gap: 4px;
}

.cpg-attr-key {
    font-weight: 600;
    color: #495057;
}

/* Directives Box */
.cpg-directives-box {
    background: #f8fafc;
    border-left: 4px solid #0f172a;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.cpg-directives-box h3 {
    font-size: 15px;
    margin: 0 0 6px 0;
}

/* Reviews Card */
.cpg-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cpg-overall-score {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #fef3c7;
}

.cpg-score-number {
    font-size: 30px;
    font-weight: 800;
    color: #92400e;
}

.cpg-score-meta {
    font-size: 12px;
    color: #78350f;
    display: flex;
    flex-direction: column;
}

.cpg-reviews-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cpg-review-item {
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 16px;
}

.cpg-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cpg-reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpg-avatar-circle {
    width: 30px;
    height: 30px;
    background: #0f172a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.cpg-verified-tag {
    font-size: 11px;
    color: #166534;
    font-weight: 600;
    margin-left: 6px;
}

.cpg-rev-date {
    font-size: 12px;
    color: #868e96;
}

.cpg-rev-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 6px;
}

/* FAQ Accordion */
.cpg-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpg-faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.cpg-faq-question {
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpg-faq-answer {
    display: none;
    padding: 14px 18px;
    background: #fff;
    font-size: 14px;
    color: #495057;
}

.cpg-faq-item.cpg-active .cpg-faq-answer {
    display: block;
}

/* Map Card */
.cpg-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.cpg-map-link {
    color: #0066cc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cpg-map-link:hover {
    text-decoration: underline;
}

/* GBP Hours & Contact */
.cpg-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.cpg-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}

.cpg-hours-table {
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
}

.cpg-hours-table td {
    padding: 3px 0;
}

/* Localities Pill Cloud */
.cpg-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cpg-locality-pill {
    background: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.cpg-pill-street {
    background: #e2e8f0;
    font-weight: 600;
}

/* Master Hub Page */
.cpg-hub-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.cpg-hub-hero {
    text-align: center;
    margin-bottom: 40px;
}

.cpg-hub-hero h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cpg-hub-search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.cpg-hub-search-box input:focus {
    border-color: #0066cc;
}

.cpg-country-title {
    font-size: 22px;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.cpg-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cpg-state-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.cpg-city-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.cpg-page-link-item {
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}

.cpg-page-link-item a {
    color: #0f172a;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpg-page-link-item a:hover {
    color: #0066cc;
}

.cpg-micro-stars {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
}
