/* ═══════════════════════════════════════════════
   BCG Business Directory — Frontend Styles
   ═══════════════════════════════════════════════ */

:root {
    --bcg-primary: #1a6b3c;
    --bcg-primary-dark: #12512d;
    --bcg-primary-light: #e8f5ee;
    --bcg-accent: #d4a84b;
    --bcg-text: #2d2d2d;
    --bcg-text-light: #6b7280;
    --bcg-bg: #f8f9fa;
    --bcg-white: #ffffff;
    --bcg-border: #e5e7eb;
    --bcg-radius: 12px;
    --bcg-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --bcg-shadow-hover: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
    --bcg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Directory Header ─── */

.bcg-directory-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: var(--bcg-font);
    color: var(--bcg-text);
}

.bcg-directory-header {
    text-align: center;
    margin-bottom: 30px;
}

.bcg-directory-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bcg-primary-dark);
    margin: 0 0 8px;
}

.bcg-directory-subtitle {
    font-size: 1.05rem;
    color: var(--bcg-text-light);
    margin: 0;
}

/* ─── Controls ─── */

.bcg-directory-controls {
    margin-bottom: 24px;
}

.bcg-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 500px;
}

.bcg-search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--bcg-border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.bcg-search-box input:focus {
    border-color: var(--bcg-primary);
}

.bcg-search-box button {
    padding: 10px 20px;
    background: var(--bcg-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bcg-search-box button:hover {
    background: var(--bcg-primary-dark);
}

.bcg-filters-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.bcg-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bcg-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bcg-text);
    white-space: nowrap;
}

.bcg-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bcg-filter-secondary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bcg-filter-secondary select {
    padding: 7px 12px;
    border: 1.5px solid var(--bcg-border);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    background: var(--bcg-white);
}

.bcg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bcg-filter-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--bcg-border);
    border-radius: 20px;
    background: var(--bcg-white);
    color: var(--bcg-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bcg-filter-btn:hover {
    border-color: var(--bcg-primary);
    color: var(--bcg-primary);
}

.bcg-filter-btn.active {
    background: var(--bcg-primary);
    color: #fff;
    border-color: var(--bcg-primary);
}

.bcg-filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

.bcg-results-info {
    font-size: 0.9rem;
    color: var(--bcg-text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ─── Card Grid ─── */

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

.bcg-card {
    background: var(--bcg-white);
    border-radius: var(--bcg-radius);
    overflow: hidden;
    box-shadow: var(--bcg-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bcg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bcg-shadow-hover);
}

.bcg-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bcg-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bcg-bg);
}

.bcg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bcg-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bcg-primary-light), #d4edda);
    color: var(--bcg-primary);
    font-size: 3rem;
    font-weight: 800;
}

.bcg-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bcg-card-featured {
    border: 2px solid var(--bcg-accent);
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.2);
}

.bcg-card-featured:hover {
    box-shadow: 0 10px 25px rgba(212, 168, 75, 0.25);
}

.bcg-card-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bcg-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bcg-card-body {
    padding: 16px;
}

.bcg-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--bcg-text);
    line-height: 1.3;
}

.bcg-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bcg-stars {
    font-size: 0.85rem;
    line-height: 1;
}

.bcg-star-full { color: var(--bcg-accent); }
.bcg-star-half { color: var(--bcg-accent); opacity: 0.6; }
.bcg-star-empty { color: #d1d5db; }

.bcg-rating-text {
    font-size: 0.8rem;
    color: var(--bcg-text-light);
}

.bcg-price {
    font-size: 0.8rem;
    color: var(--bcg-primary);
    font-weight: 600;
}

.bcg-card-desc {
    font-size: 0.85rem;
    color: var(--bcg-text-light);
    margin: 0 0 8px;
    line-height: 1.5;
}

.bcg-card-address {
    font-size: 0.8rem;
    color: var(--bcg-text-light);
    margin: 0;
}

/* ─── Pagination ─── */

.bcg-pagination {
    text-align: center;
    margin-bottom: 30px;
}

.bcg-load-more-btn {
    padding: 12px 40px;
    background: var(--bcg-white);
    border: 2px solid var(--bcg-primary);
    color: var(--bcg-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bcg-load-more-btn:hover {
    background: var(--bcg-primary);
    color: #fff;
}

.bcg-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bcg-attribution {
    text-align: center;
    color: var(--bcg-text-light);
    font-size: 0.8rem;
}

.bcg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--bcg-text-light);
    font-size: 1.05rem;
}

.bcg-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--bcg-text-light);
}

/* ═══════════════════════════════════════════════
   Single Listing Page
   ═══════════════════════════════════════════════ */

.bcg-single-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    font-family: var(--bcg-font);
    color: var(--bcg-text);
}

.bcg-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--bcg-text-light);
}

.bcg-breadcrumb a {
    color: var(--bcg-primary);
    text-decoration: none;
    font-weight: 500;
}

.bcg-breadcrumb a:hover {
    text-decoration: underline;
}

.bcg-breadcrumb-sep {
    margin: 0 8px;
}

.bcg-single-hero {
    border-radius: var(--bcg-radius);
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 420px;
}

.bcg-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 420px;
}

.bcg-single-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.bcg-single-category {
    display: inline-block;
    background: var(--bcg-primary-light);
    color: var(--bcg-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bcg-single-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--bcg-primary-dark);
    line-height: 1.2;
}

.bcg-single-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bcg-single-rating .bcg-stars {
    font-size: 1.1rem;
}

.bcg-rating-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bcg-text);
}

.bcg-rating-count {
    font-size: 0.9rem;
    color: var(--bcg-text-light);
}

.bcg-single-description {
    margin-bottom: 30px;
}

.bcg-single-description h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--bcg-text);
}

.bcg-single-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--bcg-text);
}

.bcg-single-map-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.bcg-single-map {
    width: 100%;
    height: 300px;
    border-radius: var(--bcg-radius);
    border: 1px solid var(--bcg-border);
    margin-bottom: 8px;
}

.bcg-single-address {
    font-size: 0.9rem;
    color: var(--bcg-text-light);
}

/* Sidebar */

.bcg-info-card {
    background: var(--bcg-white);
    border: 1px solid var(--bcg-border);
    border-radius: var(--bcg-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.bcg-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bcg-border);
}

.bcg-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.bcg-info-row:last-child {
    margin-bottom: 0;
}

.bcg-info-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.bcg-info-row a {
    color: var(--bcg-primary);
    text-decoration: none;
}

.bcg-info-row a:hover {
    text-decoration: underline;
}

.bcg-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bcg-hours-list li {
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--bcg-text);
}

.bcg-hours-list li:last-child {
    border-bottom: none;
}

/* ─── Agoda Affiliate ─── */

.bcg-card-agoda {
    padding: 0 16px 14px;
}

.bcg-agoda-btn {
    display: block;
    text-align: center;
    padding: 8px 16px;
    background: #5392f9;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.bcg-agoda-btn:hover {
    background: #3b7de8;
    color: #fff !important;
    text-decoration: none;
}

.bcg-agoda-card {
    text-align: center;
}

.bcg-agoda-btn-large {
    display: block;
    padding: 14px 20px;
    background: #5392f9;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.bcg-agoda-btn-large:hover {
    background: #3b7de8;
    color: #fff !important;
    text-decoration: none;
}

.bcg-agoda-note {
    font-size: 0.8rem;
    color: var(--bcg-text-light);
    margin: 10px 0 0;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .bcg-directory-title { font-size: 1.5rem; }
    .bcg-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .bcg-single-content { grid-template-columns: 1fr; }
    .bcg-single-title { font-size: 1.4rem; }
    .bcg-filters { gap: 6px; }
    .bcg-filter-btn { padding: 5px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .bcg-grid { grid-template-columns: 1fr; }
    .bcg-search-box { flex-direction: column; }
    .bcg-search-box button { width: 100%; }
}
