/* ═══════════════════════════════════════════════════════════
   VMD Directory Theme — Lawyers.com-inspired styles
   ═══════════════════════════════════════════════════════════ */

/* ── Shared ───────────────────────────────────────────────── */
.vmdd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1A6FAD;
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}
.vmdd-btn-primary:hover { background: #145a8c; color: #fff !important; text-decoration: none; }

.vmdd-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    color: #1A6FAD !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #1A6FAD;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.vmdd-btn-outline:hover { background: #1A6FAD; color: #fff !important; }

.vmdd-section { padding: 48px 0; border-bottom: 1px solid #e8edf2; }
.vmdd-section:last-child { border-bottom: none; }
.vmdd-section-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A2E4A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1A6FAD;
    display: inline-block;
}

/* ── Star rating ─────────────────────────────────────────── */
.vmdd-card-stars { color: #f5a623; font-size: 14px; display: inline-flex; gap: 2px; }
.vmdd-stars-lg .vmdd-card-stars, .vmdd-stars-lg { font-size: 20px; }

/* ── Hero Search ─────────────────────────────────────────── */
.vmdd-hero {
    position: relative;
    background: #1A2E4A;
    padding: 72px 24px;
    overflow: hidden;
}
.vmdd-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,46,74,0.72);
}
.vmdd-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.vmdd-hero-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}
.vmdd-hero-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.vmdd-hero-form { width: 100%; }
.vmdd-hero-fields {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.vmdd-hero-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-right: 1px solid #e0e6ed;
}
.vmdd-hero-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
}
.vmdd-hero-input {
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #1A2E4A;
    background: transparent;
    width: 100%;
}
.vmdd-hero-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    background: #1A6FAD;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.vmdd-hero-btn:hover { background: #145a8c; }

@media ( max-width: 640px ) {
    .vmdd-hero-fields { flex-direction: column; border-radius: 6px; }
    .vmdd-hero-field { border-right: none; border-bottom: 1px solid #e0e6ed; }
    .vmdd-hero-btn { padding: 14px 24px; justify-content: center; }
    .vmdd-hero-heading { font-size: 26px; }
}

/* ── Category Grid ───────────────────────────────────────── */
.vmdd-catgrid-wrap { padding: 48px 0; text-align: center; }
.vmdd-catgrid-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1A2E4A;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.vmdd-catgrid-sub {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    margin-bottom: 40px;
}
.vmdd-catgrid {
    display: grid;
    grid-template-columns: repeat( var(--vmdd-cols, 4), 1fr );
    gap: 20px;
    text-align: left;
}
.vmdd-catgrid-card {
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.vmdd-catgrid-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: #1A6FAD; }
.vmdd-catgrid-card-link { text-decoration: none; display: block; }
.vmdd-catgrid-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26,111,173,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.vmdd-catgrid-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1A2E4A;
    margin-bottom: 10px;
}
.vmdd-catgrid-card-link:hover .vmdd-catgrid-name { color: #1A6FAD; }
.vmdd-catgrid-subcats { list-style: none; padding: 0; margin: 0; }
.vmdd-catgrid-subcats li { margin-bottom: 4px; }
.vmdd-catgrid-subcats a {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #1A6FAD;
    text-decoration: none;
}
.vmdd-catgrid-subcats a:hover { text-decoration: underline; }
.vmdd-catgrid-viewall { margin-top: 36px; text-align: center; }

@media ( max-width: 900px ) { .vmdd-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media ( max-width: 560px ) { .vmdd-catgrid { grid-template-columns: 1fr; } }

/* ── Listing Card ────────────────────────────────────────── */
.vmdd-card {
    position: relative;
    background: #fff;
    border: 1px solid #d8e2ec;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.vmdd-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.vmdd-card-sponsored {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-family: 'Open Sans', sans-serif;
    color: #888;
    font-style: italic;
}
.vmdd-card-body {
    display: flex;
    gap: 20px;
    padding: 24px;
}
.vmdd-card-main { flex: 1; min-width: 0; }
.vmdd-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}
.vmdd-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.vmdd-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.vmdd-card-title a { color: #1A2E4A; text-decoration: none; }
.vmdd-card-title a:hover { color: #1A6FAD; text-decoration: underline; }
.vmdd-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.vmdd-card-rating-score {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A2E4A;
}
.vmdd-card-reviews {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #1A6FAD;
}
.vmdd-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.vmdd-card-meta i { color: #1A6FAD; margin-top: 2px; flex-shrink: 0; }
.vmdd-card-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}
.vmdd-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}
.vmdd-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}
.vmdd-card-btn--primary { background: #1A2E4A; color: #fff !important; }
.vmdd-card-btn--primary:hover { background: #145a8c; color: #fff !important; }
.vmdd-card-btn--outline { background: transparent; color: #1A6FAD !important; border: 1.5px solid #1A6FAD; }
.vmdd-card-btn--outline:hover { background: #1A6FAD; color: #fff !important; }

@media ( max-width: 560px ) {
    .vmdd-card-body { flex-direction: column-reverse; }
    .vmdd-card-thumb { width: 100%; height: 180px; }
}

/* ── Single Hero ─────────────────────────────────────────── */
.vmdd-single-hero { background: #fff; border: 1px solid #d8e2ec; border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.vmdd-single-hero-img {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center top;
}
.vmdd-single-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 32px;
    background: #1A2E4A;
}
.vmdd-single-hero-info { flex: 1; min-width: 200px; }
.vmdd-single-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.vmdd-single-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.vmdd-single-rating-score { font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.vmdd-single-revcount { font-family: 'Open Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,0.8); text-decoration: underline; }
.vmdd-single-address, .vmdd-single-cats {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.vmdd-single-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.vmdd-btn-phone { background: #1A6FAD; color: #fff !important; padding: 12px 22px; border-radius: 4px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.vmdd-btn-phone:hover { background: #145a8c; color: #fff !important; }
.vmdd-btn-contact { border: 2px solid rgba(255,255,255,0.6); color: #fff !important; padding: 10px 20px; border-radius: 4px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.vmdd-btn-contact:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

.vmdd-single-tabs {
    display: flex;
    border-top: 1px solid #d8e2ec;
    background: #fff;
    overflow-x: auto;
}
.vmdd-single-tab {
    flex-shrink: 0;
    padding: 14px 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.vmdd-single-tab:hover, .vmdd-single-tab.vmdd-tab-active {
    color: #1A6FAD;
    border-bottom-color: #1A6FAD;
}

/* ── About ───────────────────────────────────────────────── */
.vmdd-about-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* ── Awards ──────────────────────────────────────────────── */
.vmdd-awards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.vmdd-award-item {
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    min-width: 140px;
    max-width: 200px;
}
.vmdd-award-item img { max-height: 80px; width: auto; max-width: 100%; object-fit: contain; }

/* ── Reviews ─────────────────────────────────────────────── */
.vmdd-reviews-summary {
    background: #f7f9fc;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.vmdd-reviews-overall { display: flex; align-items: center; gap: 12px; }
.vmdd-reviews-score { font-family: 'Oswald', sans-serif; font-size: 48px; font-weight: 700; color: #1A2E4A; line-height: 1; }
.vmdd-reviews-count { font-family: 'Open Sans', sans-serif; font-size: 13px; color: #666; }
.vmdd-reviews-list { display: flex; flex-direction: column; gap: 16px; }
.vmdd-review-item {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 20px 24px;
}
.vmdd-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.vmdd-review-author { font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 700; color: #1A2E4A; }
.vmdd-review-date { font-family: 'Open Sans', sans-serif; font-size: 12px; color: #999; margin-left: auto; }
.vmdd-review-body { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #555; line-height: 1.7; }
.vmdd-reviews-empty { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #888; font-style: italic; }

/* ── Location ────────────────────────────────────────────── */
.vmdd-location-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 360px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d8e2ec;
}
.vmdd-location-info { padding: 32px; }
.vmdd-location-map { min-height: 360px; }
.vmdd-hours-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vmdd-hours-day { font-weight: 600; }

@media ( max-width: 768px ) {
    .vmdd-location-grid { grid-template-columns: 1fr; }
    .vmdd-single-hero-card { flex-direction: column; }
    .vmdd-single-hero-img { height: 200px; }
}
