/* ==========================================================================
   PT Business Directory — Medium Theme
   Balanced neutral palette. Warm grays, medium contrast, refined feel.
   Applied via .ptvd-theme-medium wrapper class.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */

.ptvd-theme-medium,
.ptvd-theme-medium .pt-bd-directory-wrap,
.ptvd-theme-medium .pt-bd-modal,
.pt-bd-modal.ptvd-theme-medium,
.ptvd-theme-medium .pt-bd-auth-wrap {
    color-scheme: light;

    /* Colors */
    --pt-bd-primary:         #2a2a2a;
    --pt-bd-primary-dk:      #1a1a1a;
    --pt-bd-accent:          #444444;
    --pt-bd-featured:        #555555;
    --pt-bd-success:         #2a2a2a;
    --pt-bd-error:           #111111;
    --pt-bd-warning:         #555555;

    /* Text */
    --pt-bd-text:            #1a1a1a;
    --pt-bd-text-muted:      #6e6e6e;
    --pt-bd-text-inverse:    #f5f5f5;

    /* Surfaces */
    --pt-bd-bg:              #eeeeee;
    --pt-bd-card-bg:         #f5f5f5;
    --pt-bd-input-bg:        #f5f5f5;
    --pt-bd-overlay-bg:      rgba(0, 0, 0, 0.50);

    /* Borders */
    --pt-bd-border:          #cccccc;
    --pt-bd-border-focus:    #444444;

    /* Shadows */
    --pt-bd-shadow:          0 1px 3px rgba(0,0,0,0.09), 0 1px 2px rgba(0,0,0,0.06);
    --pt-bd-shadow-hover:    0 6px 18px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08);
    --pt-bd-shadow-card:     0 1px 4px rgba(0,0,0,0.09);

    /* Radii & transitions */
    --pt-bd-radius:          8px;
    --pt-bd-radius-sm:       5px;
    --pt-bd-transition:      0.18s ease;

    /* Button tokens */
    --pt-bd-btn-primary-bg:      #2a2a2a;
    --pt-bd-btn-primary-text:    #f5f5f5;
    --pt-bd-btn-primary-hover:   #1a1a1a;
    --pt-bd-btn-secondary-bg:    #e0e0e0;
    --pt-bd-btn-secondary-text:  #3a3a3a;
    --pt-bd-btn-secondary-hover: #cccccc;
    --pt-bd-btn-outline-border:  #aaaaaa;
    --pt-bd-btn-outline-text:    #3a3a3a;
    --pt-bd-btn-outline-hover:   #eeeeee;

    /* Badges */
    --pt-bd-badge-featured-bg:   #e8e8e8;
    --pt-bd-badge-featured-text: #2a2a2a;
    --pt-bd-badge-verified-bg:   #e4e4e4;
    --pt-bd-badge-verified-text: #1a1a1a;
    --pt-bd-badge-claimed-bg:    #dcdcdc;
    --pt-bd-badge-claimed-text:  #1a1a1a;
    --pt-bd-cat-pill-bg:         #e0e0e0;
    --pt-bd-cat-pill-text:       #3a3a3a;
    --pt-bd-cat-pill-border:     #cccccc;

    /* Controls */
    --pt-bd-select-bg:       #f5f5f5;
    --pt-bd-select-text:     #1a1a1a;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-card {
    background: var(--pt-bd-card-bg);
    border: 1px solid var(--pt-bd-border);
    box-shadow: var(--pt-bd-shadow-card);
}

.ptvd-theme-medium .pt-bd-card:hover,
.ptvd-theme-medium .pt-bd-card:focus-within {
    box-shadow: var(--pt-bd-shadow-hover);
    border-color: #aaaaaa;
    transform: translateY(-1px);
}

.ptvd-theme-medium .pt-bd-card--featured {
    border-color: #888888;
    box-shadow: 0 0 0 2px #e8e8e8, var(--pt-bd-shadow-card);
}

.ptvd-theme-medium .pt-bd-card--featured:hover {
    box-shadow: 0 0 0 2px #e8e8e8, var(--pt-bd-shadow-hover);
}

/* --------------------------------------------------------------------------
   Controls bar
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-controls {
    background: #f5f5f5;
    border-color: #cccccc;
}

.ptvd-theme-medium .pt-bd-search-input,
.ptvd-theme-medium .pt-bd-filter-input,
.ptvd-theme-medium .pt-bd-select {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #aaaaaa;
}

.ptvd-theme-medium .pt-bd-search-input:focus,
.ptvd-theme-medium .pt-bd-filter-input:focus,
.ptvd-theme-medium .pt-bd-select:focus {
    border-color: #444444;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.10);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-btn-primary {
    background: var(--pt-bd-btn-primary-bg);
    color: var(--pt-bd-btn-primary-text);
    border-color: var(--pt-bd-btn-primary-bg);
}

.ptvd-theme-medium .pt-bd-btn-primary:hover {
    background: var(--pt-bd-btn-primary-hover);
}

.ptvd-theme-medium .pt-bd-btn-secondary {
    background: var(--pt-bd-btn-secondary-bg);
    color: var(--pt-bd-btn-secondary-text);
    border: 1px solid var(--pt-bd-border);
}

.ptvd-theme-medium .pt-bd-btn-secondary:hover {
    background: var(--pt-bd-btn-secondary-hover);
}

.ptvd-theme-medium .pt-bd-btn-outline {
    background: transparent;
    color: var(--pt-bd-btn-outline-text);
    border: 1px solid var(--pt-bd-btn-outline-border);
}

.ptvd-theme-medium .pt-bd-btn-outline:hover {
    background: var(--pt-bd-btn-outline-hover);
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-badge--featured {
    background: var(--pt-bd-badge-featured-bg);
    color: var(--pt-bd-badge-featured-text);
}

.ptvd-theme-medium .pt-bd-badge--verified {
    background: var(--pt-bd-badge-verified-bg);
    color: var(--pt-bd-badge-verified-text);
}

.ptvd-theme-medium .pt-bd-badge--claimed {
    background: var(--pt-bd-badge-claimed-bg);
    color: var(--pt-bd-badge-claimed-text);
}

.ptvd-theme-medium .pt-bd-cat-pill {
    background: var(--pt-bd-cat-pill-bg);
    color: var(--pt-bd-cat-pill-text);
    border: 1px solid var(--pt-bd-cat-pill-border);
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-modal-content,
.pt-bd-modal.ptvd-theme-medium .pt-bd-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #1a1a1a;
    padding: 0;
}

.ptvd-theme-medium .pt-bd-single-listing,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing {
    background: #e8e8e8 !important;
    color: #1a1a1a !important;
    border: 1px solid #cccccc;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dt,
.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dt {
    color: #4a4a4a !important;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dd,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dd a,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-location-list li,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing p,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-desc-text,
.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dd,
.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-details dd a,
.ptvd-theme-medium .pt-bd-single-listing .pt-bd-location-list li,
.ptvd-theme-medium .pt-bd-single-listing p {
    color: #1a1a1a !important;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-title,
.ptvd-theme-medium .pt-bd-single-listing .pt-bd-single-title {
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-modal-close,
.pt-bd-modal.ptvd-theme-medium .pt-bd-modal-close {
    color: #6e6e6e;
    background: rgba(0,0,0,0.15);
}

.ptvd-theme-medium .pt-bd-modal-close:hover,
.pt-bd-modal.ptvd-theme-medium .pt-bd-modal-close:hover {
    color: #1a1a1a;
    background: #e0e0e0;
}

/* --------------------------------------------------------------------------
   Single listing (modal inner elements)
   -------------------------------------------------------------------------- */

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-title,
.pt-bd-modal.ptvd-theme-medium h2,
.pt-bd-modal.ptvd-theme-medium h3 {
    color: #1a1a1a;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-details dt {
    color: #6e6e6e;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-details dd,
.pt-bd-modal.ptvd-theme-medium p,
.pt-bd-modal.ptvd-theme-medium .pt-bd-desc-text {
    color: #1a1a1a !important;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-details dd a,
.ptvd-theme-medium .pt-bd-single-details dd a {
    color: #1a1a1a !important;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-cat-pill {
    background: #e0e0e0;
    color: #3a3a3a;
    border: 1px solid #cccccc;
}

.pt-bd-modal.ptvd-theme-medium .pt-bd-single-upsell {
    background: #e8e8e8;
    border: 1px solid #cccccc;
    color: #1a1a1a;
}

.ptvd-theme-medium .pt-bd-single-upsell {
    background: #e8e8e8;
    border: 1px solid #cccccc;
}

.ptvd-theme-medium .pt-bd-single-claim {
    border-top: none;
    background: rgba(0,0,0,0.06);
}

.ptvd-theme-medium .pt-bd-single-description {
    background: rgba(0,0,0,0.05);
    border-bottom: none;
}

.ptvd-theme-medium .pt-bd-single-details dt {
    color: #6e6e6e;
}

.ptvd-theme-medium .pt-bd-single-details dd {
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-former-locations-wrap,
.pt-bd-modal.ptvd-theme-medium .pt-bd-former-locations-wrap {
    background: #d8d8d8;
    color: #1a1a1a;
}

.ptvd-theme-medium .pt-bd-former-locations-wrap .pt-bd-toggle-prev-locations,
.pt-bd-modal.ptvd-theme-medium .pt-bd-former-locations-wrap .pt-bd-toggle-prev-locations {
    color: #3a3a3a !important;
}

.ptvd-theme-medium .pt-bd-former-locations-wrap .pt-bd-location-list li,
.pt-bd-modal.ptvd-theme-medium .pt-bd-former-locations-wrap .pt-bd-location-list li {
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-single-footer-row,
.pt-bd-modal.ptvd-theme-medium .pt-bd-single-footer-row {
    background: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-page-btn {
    background: #f5f5f5;
    color: #3a3a3a;
    border: 1px solid #cccccc;
}

.ptvd-theme-medium .pt-bd-page-btn:hover {
    background: #e0e0e0;
    border-color: #aaaaaa;
}

.ptvd-theme-medium .pt-bd-page-btn.active {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #2a2a2a;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-auth-card,
.ptvd-theme-medium .pt-bd-register-wrap {
    background: #f5f5f5;
    border: 1px solid #cccccc;
    box-shadow: var(--pt-bd-shadow-card);
}

.ptvd-theme-medium .pt-bd-auth-wrap.pt-bd-dark {
    background: #e0e0e0;
}

.ptvd-theme-medium input[type="text"],
.ptvd-theme-medium input[type="email"],
.ptvd-theme-medium input[type="password"],
.ptvd-theme-medium input[type="search"],
.ptvd-theme-medium input[type="url"],
.ptvd-theme-medium textarea,
.ptvd-theme-medium select.widefat {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #aaaaaa;
}

/* --------------------------------------------------------------------------
   Logo placeholder
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-card-logo--placeholder {
    background: #e0e0e0;
    color: #6e6e6e;
    border: 1px solid #cccccc;
}

/* --------------------------------------------------------------------------
   Results summary
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-results-summary {
    color: #6e6e6e;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-map-controls {
    background: #f5f5f5;
    border-color: #cccccc;
}

.ptvd-theme-medium .pt-bd-map-canvas {
    border-color: #cccccc;
}

/* --------------------------------------------------------------------------
   Color scheme — force light native controls inside medium theme
   -------------------------------------------------------------------------- */

.ptvd-theme-medium,
.pt-bd-modal.ptvd-theme-medium,
.ptvd-theme-medium .pt-bd-auth-field select[multiple],
.ptvd-theme-medium .pt-bd-locations-select,
.ptvd-theme-medium input,
.ptvd-theme-medium select,
.ptvd-theme-medium textarea {
    color-scheme: light;
}

/* --------------------------------------------------------------------------
   Category checkbox grid & upload zones — medium light styling
   -------------------------------------------------------------------------- */

.ptvd-theme-medium .pt-bd-auth-field select[multiple],
.ptvd-theme-medium .pt-bd-locations-select,
.ptvd-theme-light  .pt-bd-auth-field select[multiple],
.ptvd-theme-light  .pt-bd-locations-select {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1.5px solid #cccccc !important;
    position: relative !important;
    z-index: 20 !important;
}
.ptvd-theme-medium .pt-bd-auth-field select[multiple] option,
.ptvd-theme-medium .pt-bd-locations-select option,
.ptvd-theme-light  .pt-bd-auth-field select[multiple] option,
.ptvd-theme-light  .pt-bd-locations-select option {
    background: #ffffff !important;
    color: #1a1a1a !important;
}
.ptvd-theme-medium .pt-bd-auth-field select[multiple] option:checked,
.ptvd-theme-light  .pt-bd-auth-field select[multiple] option:checked {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.ptvd-theme-medium .pt-bd-checkbox-grid {
    background: #f5f5f5 !important;
    border-color: #cccccc !important;
    color: #1a1a1a;
}
.ptvd-theme-medium .pt-bd-checkbox-label,
.ptvd-theme-medium .pt-bd-checkbox-label--inline {
    color: #1a1a1a !important;
}
.ptvd-theme-medium .pt-bd-upload-zone,
.ptvd-theme-light  .pt-bd-upload-zone {
    background: #f5f5f5 !important;
    border-color: #cccccc !important;
    color: #1a1a1a;
}
.ptvd-theme-medium .pt-bd-upload-zone *,
.ptvd-theme-light  .pt-bd-upload-zone * {
    color: #3a3a3a;
}
.ptvd-theme-medium .pt-bd-upload-zone:hover,
.ptvd-theme-light  .pt-bd-upload-zone:hover {
    background: #eeeeee !important;
    border-color: #888888 !important;
}
.ptvd-theme-medium .pt-bd-nl-checkbox-row,
.ptvd-theme-light  .pt-bd-nl-checkbox-row,
.ptvd-theme-dark   .pt-bd-nl-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-direction: row;
}
.pt-bd-nl-checkbox-row input[type="checkbox"] {
    order: -1;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Social icons — medium theme
   -------------------------------------------------------------------------- */
.ptvd-theme-medium .pt-bd-card-social-links {
    border-bottom-color: #dddddd;
}

.ptvd-theme-medium .pt-bd-social-icon {
    color: #555555;
    border-color: #cccccc;
}

.ptvd-theme-medium .pt-bd-social-icon:hover {
    color: #111111;
    border-color: #888888;
    background: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Share buttons — medium theme (ensure icons are visible)
   -------------------------------------------------------------------------- */
.ptvd-theme-medium .pt-bd-share-btn,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn {
    color: #1a1a1a !important;
    border-color: #888888 !important;
    background: #ffffff;
}

.ptvd-theme-medium .pt-bd-share-btn--facebook,
.ptvd-theme-medium .pt-bd-share-btn--twitter,
.ptvd-theme-medium .pt-bd-share-btn--linkedin,
.ptvd-theme-medium .pt-bd-share-btn--copy,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--facebook,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--twitter,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--linkedin,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy {
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-share-btn svg,
.ptvd-theme-medium .pt-bd-share-btn svg path,
.ptvd-theme-medium .pt-bd-share-btn svg rect,
.ptvd-theme-medium .pt-bd-share-btn svg circle,
.ptvd-theme-medium .pt-bd-share-btn svg polygon,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn svg,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn svg path,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn svg rect,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn svg circle,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn svg polygon {
    fill: #1a1a1a !important;
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-share-btn--copy svg,
.ptvd-theme-medium .pt-bd-share-btn--copy svg path,
.ptvd-theme-medium .pt-bd-share-btn--copy svg rect,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy svg,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy svg path,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy svg rect {
    fill: none !important;
    stroke: #1a1a1a !important;
    color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-share-btn:hover,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
}

.ptvd-theme-medium .pt-bd-share-btn:hover svg,
.ptvd-theme-medium .pt-bd-share-btn:hover svg path,
.ptvd-theme-medium .pt-bd-share-btn:hover svg rect,
.ptvd-theme-medium .pt-bd-share-btn:hover svg circle,
.ptvd-theme-medium .pt-bd-share-btn:hover svg polygon,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover svg,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover svg path,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover svg rect,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover svg circle,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn:hover svg polygon {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg,
.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg path,
.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg rect,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg path,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-btn--copy:hover svg rect {
    fill: none !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.ptvd-theme-medium .pt-bd-share-label,
.pt-bd-modal.ptvd-theme-medium .pt-bd-share-label {
    color: #1a1a1a !important;
    opacity: 0.9;
}
