/**
 * GenevaDance Members — Listing Styles
 * Pages: Danseurs, PRO/Écoles, Annonces
 */

/* ===== Listing Wrap ===== */
.gdm-listing-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: var(--global-body-font-family);
    color: #111111;
    line-height: 1.6;
}

.gdm-listing-wrap *,
.gdm-listing-wrap *::before,
.gdm-listing-wrap *::after {
    box-sizing: border-box;
}

/* ===================================================================
   Filters
   =================================================================== */

.gdm-listing-filters {
    margin-bottom: 20px;
}

/* Search bar row */
.gdm-listing-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.gdm-listing-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gdm-border);
    border-radius: var(--gdm-radius);
    font-size: 15px;
    font-family: inherit;
    color: #111111;
    background: #fff;
    transition: border-color 0.15s;
}

.gdm-listing-search-input:focus {
    outline: none;
    border-color: var(--gdm-primary);
    box-shadow: 0 0 0 3px rgba(232, 96, 125, 0.1);
}

.gdm-listing-search-btn {
    white-space: nowrap;
}

/* Filter toggle */
.gdm-listing-filter-toggle {
    text-align: right;
    margin-bottom: 10px;
}

.gdm-listing-toggle-btn {
    background: none;
    border: none;
    color: var(--gdm-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
}

.gdm-listing-toggle-btn:hover {
    text-decoration: underline;
}

.gdm-listing-toggle-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
}

/* Filter row */
.gdm-listing-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.gdm-listing-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gdm-listing-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gdm-text);
}

/* Reuse gdm-select from profile CSS, fallback if not loaded */
.gdm-listing-wrap .gdm-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gdm-border);
    border-radius: var(--gdm-radius);
    font-size: 14px;
    font-family: inherit;
    color: #111111;
    background: #fff;
    cursor: pointer;
}

.gdm-listing-wrap .gdm-select:focus {
    outline: none;
    border-color: var(--gdm-primary);
}

/* Active filter badges */
.gdm-listing-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.gdm-listing-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gdm-bg-subtle);
    border: 1px solid var(--gdm-border);
    border-radius: 20px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: all 0.15s;
}

.gdm-listing-filter-badge:hover {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #DC2626;
}

.gdm-listing-filter-badge-x {
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
}

.gdm-listing-clear-all {
    font-size: 13px;
    color: var(--gdm-primary);
    text-decoration: none;
    margin-left: 4px;
}

.gdm-listing-clear-all:hover {
    text-decoration: underline;
}

/* Results info */
.gdm-listing-results-info {
    font-size: 14px;
    color: var(--gdm-text);
    margin-bottom: 20px;
}

/* Empty state */
.gdm-listing-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--gdm-bg-subtle);
    border-radius: var(--gdm-radius);
    color: var(--gdm-text);
}

/* ===================================================================
   Card — Shared base  →  migré dans gdm-base.css
   =================================================================== */

/* Cursor pointer only on cards with stretched link (dancer + annonce) */
.gdm-card--dancer:hover,
.gdm-card--annonce:hover {
    cursor: pointer;
}

/* ===================================================================
   Card — Dancer (list layout)
   =================================================================== */

.gdm-listing-cards {
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
}

.gdm-card--dancer {
    padding: 20px 12px;
    position: relative;
}

/* Nouveau layout: avatar gauche | colonne droite (nom, subtitle, bio, actions) */
.gdm-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.gdm-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Kept for PRO cards which still use gdm-card-header */
.gdm-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.gdm-card-photo {
    display: block;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gdm-bg-subtle);
    position: relative;
}

.gdm-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Heart match badge — red ♥ on avatar */
.gdm-card-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.gdm-card-match-badge {
    position: absolute;
    bottom: -4px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: var(--gdm-primary);
    color: #fff;
    border-radius: 50%;
   /*border: 2px solid #fff;*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 1;
}

.gdm-card-match-badge svg {
    width: 11px;
    height: 11px;
}

/* Profile completion ring — SVG arc around avatar (Step 8) */
.gdm-card-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 0;
}

.gdm-ring-bg {
    fill: none;
    stroke: var(--gdm-bg-subtle);
    stroke-width: 3;
}

.gdm-ring-fg {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.gdm-ring--high .gdm-ring-fg { stroke: #22c55e; }
.gdm-ring--mid .gdm-ring-fg  { stroke: #f59e0b; }
.gdm-ring--low .gdm-ring-fg  { stroke: #d1d5db; }

/* gdm-card-identity kept for potential legacy use */
.gdm-card-identity {
    flex: 1;
    min-width: 0;
}

.gdm-card-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gdm-text-title);
    text-decoration: none;
    line-height: 1;
}

.gdm-card-name:hover {
    color: var(--gdm-primary);
}

/* Stretched link — makes entire card clickable via ::after on the name link */
.gdm-stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Subtitle: "Danseuse • Genève" under the name */
.gdm-card-subtitle {
    display: block;
    font-size: 1rem;
    color: var (--gdm-text-muted);
    margin-top: 2px;
    line-height: 1;
}

/* Login link inside card (z-index above stretched link) */
.gdm-card-login-link {
    position: relative;
    z-index: 1;
}

.gdm-card-gender {
    display: block;
    font-size: 13px;
    color: var(--gdm-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.gdm-card-meta {
    margin-top: 4px;
}

.gdm-card-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.gdm-card-description {
    font-size: 0.9rem;
    color: var(--gdm-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.gdm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gdm-card-search-tags {
    margin-top: -6px; /* tighten gap between dance tags and search tags */
}

.gdm-card-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* XS tag variant for listings */

.gdm-tag--xs {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 14px;
}

.gdm-tag--more {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

/* Reuse tag colors from profile CSS */
.gdm-listing-wrap .gdm-tag--dance {
    background: var(--gdm-primary-light);
    color: var(--gdm-primary);
}

/* Colored dance tag with CSS custom properties */
.gdm-listing-wrap .gdm-tag--colored {
    background: var(--tag-bg, var(--gdm-primary-light));
    color:      var(--tag-text, var(--gdm-primary));
}

/* Clickable dance tags in listings — z-index lifts above stretched-link ::after */
.gdm-listing-wrap a.gdm-tag--colored,
.gdm-listing-wrap a.gdm-tag--dance {
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.gdm-listing-wrap a.gdm-tag--colored:hover,
.gdm-listing-wrap a.gdm-tag--dance[href]:hover {
    filter: brightness(0.88);
    text-decoration: none;
}

.gdm-listing-wrap .gdm-tag--region {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

.gdm-listing-wrap .gdm-tag--search {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

.gdm-listing-wrap .gdm-tag--learning {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

/* ===================================================================
   Card — PRO (grid layout)
   =================================================================== */

.gdm-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gdm-listing-wrap .gdm-card--pro {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-width: 0;
}

.gdm-listing-wrap .gdm-card--pro:hover {
    text-decoration: none;
    color: inherit;
}

.gdm-listing-wrap .gdm-card-cover {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gdm-bg-subtle) 0%, var(--gdm-border) 100%);
    flex-shrink: 0;
}

.gdm-listing-wrap .gdm-card-cover--empty {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.gdm-listing-wrap .gdm-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gdm-listing-wrap .gdm-card-pro-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--gdm-shadow);
    margin: -36px auto 0;
    position: relative;
    z-index: 1;
    background: var(--gdm-bg-subtle);
    flex-shrink: 0;
}

.gdm-listing-wrap .gdm-card-pro-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gdm-listing-wrap .gdm-card-pro-body {
    padding: 12px 20px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gdm-listing-wrap .gdm-card-pro-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--gdm-text-title);
}

.gdm-listing-wrap .gdm-card-pro-name a {
    color: inherit;
    text-decoration: none;
}

.gdm-listing-wrap .gdm-card-pro-name a:hover {
    color: var(--gdm-primary);
}

.gdm-listing-wrap .gdm-card-pro-type {
    font-size: 13px;
    color: var(--gdm-text);
    display: block;
    margin-bottom: 8px;
}

.gdm-listing-wrap .gdm-card-pro-regions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.gdm-listing-wrap .gdm-card-pro-desc {
    font-size: 13px;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.gdm-listing-wrap .gdm-card-pro-dances {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
}

/* Social icons row */
.gdm-listing-wrap .gdm-card-pro-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gdm-border);
}

.gdm-listing-wrap .gdm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
    text-decoration: none;
    transition: all 0.15s;
}

.gdm-listing-wrap .gdm-social-icon:hover {
    background: var(--gdm-primary-light);
    color: var(--gdm-primary);
}

.gdm-listing-wrap .gdm-social-icon svg {
    width: 16px;
    height: 16px;
}

/* ===================================================================
   Card — Annonce
   =================================================================== */

.gdm-listing-wrap--annonces {
    max-width: 640px;
}

/**
 * GenevaDance Members — Listing Styles
 * Pages: Danseurs, PRO/Écoles, Annonces
 */

/* ===== Listing Wrap ===== */
.gdm-listing-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: var(--global-body-font-family);
    color: #111111;
    line-height: 1.6;
}

.gdm-listing-wrap *,
.gdm-listing-wrap *::before,
.gdm-listing-wrap *::after {
    box-sizing: border-box;
}

/* ===================================================================
   Filters
   =================================================================== */

.gdm-listing-filters {
    margin-bottom: 20px;
}

/* Search bar row */
.gdm-listing-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.gdm-listing-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gdm-border);
    border-radius: var(--gdm-radius);
    font-size: 15px;
    font-family: inherit;
    color: #111111;
    background: #fff;
    transition: border-color 0.15s;
}

.gdm-listing-search-input:focus {
    outline: none;
    border-color: var(--gdm-primary);
    box-shadow: 0 0 0 3px rgba(232, 96, 125, 0.1);
}

.gdm-listing-search-btn {
    white-space: nowrap;
}

/* Filter toggle */
.gdm-listing-filter-toggle {
    text-align: right;
    margin-bottom: 10px;
}

.gdm-listing-toggle-btn {
    background: none;
    border: none;
    color: var(--gdm-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
}

.gdm-listing-toggle-btn:hover {
    text-decoration: underline;
}

.gdm-listing-toggle-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
}

/* Filter row */
.gdm-listing-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.gdm-listing-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gdm-listing-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gdm-text);
}

/* Reuse gdm-select from profile CSS, fallback if not loaded */
.gdm-listing-wrap .gdm-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gdm-border);
    border-radius: var(--gdm-radius);
    font-size: 14px;
    font-family: inherit;
    color: #111111;
    background: #fff;
    cursor: pointer;
}

.gdm-listing-wrap .gdm-select:focus {
    outline: none;
    border-color: var(--gdm-primary);
}

/* Active filter badges */
.gdm-listing-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.gdm-listing-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gdm-bg-subtle);
    border: 1px solid var(--gdm-border);
    border-radius: 20px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: all 0.15s;
}

.gdm-listing-filter-badge:hover {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #DC2626;
}

.gdm-listing-filter-badge-x {
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
}

.gdm-listing-clear-all {
    font-size: 13px;
    color: var(--gdm-primary);
    text-decoration: none;
    margin-left: 4px;
}

.gdm-listing-clear-all:hover {
    text-decoration: underline;
}

/* Results info */
.gdm-listing-results-info {
    font-size: 14px;
    color: var(--gdm-text);
    margin-bottom: 20px;
}

/* Empty state */
.gdm-listing-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--gdm-bg-subtle);
    border-radius: var(--gdm-radius);
    color: var(--gdm-text);
}

/* ===================================================================
   Card — Shared base  →  migré dans gdm-base.css
   =================================================================== */

/* Cursor pointer only on cards with stretched link (dancer + annonce) */
.gdm-card--dancer:hover,
.gdm-card--annonce:hover {
    cursor: pointer;
}

/* ===================================================================
   Card — Dancer (list layout)
   =================================================================== */

.gdm-listing-cards {
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
}

.gdm-card--dancer {
    padding: 20px 12px;
    position: relative;
}

/* Nouveau layout: avatar gauche | colonne droite (nom, subtitle, bio, actions) */
.gdm-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.gdm-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Kept for PRO cards which still use gdm-card-header */
.gdm-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.gdm-card-photo {
    display: block;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gdm-bg-subtle);
    position: relative;
}

.gdm-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Heart match badge — red ♥ on avatar */
.gdm-card-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.gdm-card-match-badge {
    position: absolute;
    bottom: -4px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: var(--gdm-primary);
    color: #fff;
    border-radius: 50%;
   /*border: 2px solid #fff;*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 1;
}

.gdm-card-match-badge svg {
    width: 11px;
    height: 11px;
}

/* Profile completion ring — SVG arc around avatar (Step 8) */
.gdm-card-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 0;
}

.gdm-ring-bg {
    fill: none;
    stroke: var(--gdm-bg-subtle);
    stroke-width: 3;
}

.gdm-ring-fg {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.gdm-ring--high .gdm-ring-fg { stroke: #22c55e; }
.gdm-ring--mid .gdm-ring-fg  { stroke: #f59e0b; }
.gdm-ring--low .gdm-ring-fg  { stroke: #d1d5db; }

/* gdm-card-identity kept for potential legacy use */
.gdm-card-identity {
    flex: 1;
    min-width: 0;
}

.gdm-card-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gdm-text-title);
    text-decoration: none;
    line-height: 1;
}

.gdm-card-name:hover {
    color: var(--gdm-primary);
}

/* Stretched link — makes entire card clickable via ::after on the name link */
.gdm-stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Subtitle: "Danseuse • Genève" under the name */
.gdm-card-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--gdm-text-muted);
    margin-top: 2px;
    line-height: 1;
}

/* Login link inside card (z-index above stretched link) */
.gdm-card-login-link {
    position: relative;
    z-index: 1;
}

.gdm-card-gender {
    display: block;
    font-size: 13px;
    color: var(--gdm-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.gdm-card-meta {
    margin-top: 4px;
}

.gdm-card-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.gdm-card-description {
    font-size: 0.9rem;
    color: var(--gdm-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.gdm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gdm-card-search-tags {
    margin-top: -6px; /* tighten gap between dance tags and search tags */
}

.gdm-card-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* XS tag variant for listings */

.gdm-tag--xs {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 14px;
}

.gdm-tag--more {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

/* Reuse tag colors from profile CSS */
.gdm-listing-wrap .gdm-tag--dance {
    background: var(--gdm-primary-light);
    color: var(--gdm-primary);
}

/* Colored dance tag with CSS custom properties */
.gdm-listing-wrap .gdm-tag--colored {
    background: var(--tag-bg, var(--gdm-primary-light));
    color:      var(--tag-text, var(--gdm-primary));
}

/* Clickable dance tags in listings — z-index lifts above stretched-link ::after */
.gdm-listing-wrap a.gdm-tag--colored,
.gdm-listing-wrap a.gdm-tag--dance {
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.gdm-listing-wrap a.gdm-tag--colored:hover,
.gdm-listing-wrap a.gdm-tag--dance[href]:hover {
    filter: brightness(0.88);
    text-decoration: none;
}

.gdm-listing-wrap .gdm-tag--region {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

.gdm-listing-wrap .gdm-tag--search {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

.gdm-listing-wrap .gdm-tag--learning {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
}

/* ===================================================================
   Card — PRO (grid layout)
   =================================================================== */

.gdm-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gdm-listing-wrap .gdm-card--pro {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-width: 0;
}

.gdm-listing-wrap .gdm-card--pro:hover {
    text-decoration: none;
    color: inherit;
}

.gdm-listing-wrap .gdm-card-cover {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gdm-bg-subtle) 0%, var(--gdm-border) 100%);
    flex-shrink: 0;
}

.gdm-listing-wrap .gdm-card-cover--empty {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.gdm-listing-wrap .gdm-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gdm-listing-wrap .gdm-card-pro-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--gdm-shadow);
    margin: -36px auto 0;
    position: relative;
    z-index: 1;
    background: var(--gdm-bg-subtle);
    flex-shrink: 0;
}

.gdm-listing-wrap .gdm-card-pro-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gdm-listing-wrap .gdm-card-pro-body {
    padding: 12px 20px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gdm-listing-wrap .gdm-card-pro-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--gdm-text-title);
}

.gdm-listing-wrap .gdm-card-pro-name a {
    color: inherit;
    text-decoration: none;
}

.gdm-listing-wrap .gdm-card-pro-name a:hover {
    color: var(--gdm-primary);
}

.gdm-listing-wrap .gdm-card-pro-type {
    font-size: 13px;
    color: var(--gdm-text);
    display: block;
    margin-bottom: 8px;
}

.gdm-listing-wrap .gdm-card-pro-regions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.gdm-listing-wrap .gdm-card-pro-desc {
    font-size: 13px;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.gdm-listing-wrap .gdm-card-pro-dances {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
}

/* Social icons row */
.gdm-listing-wrap .gdm-card-pro-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gdm-border);
}

.gdm-listing-wrap .gdm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gdm-bg-subtle);
    color: var(--gdm-text);
    text-decoration: none;
    transition: all 0.15s;
}

.gdm-listing-wrap .gdm-social-icon:hover {
    background: var(--gdm-primary-light);
    color: var(--gdm-primary);
}

.gdm-listing-wrap .gdm-social-icon svg {
    width: 16px;
    height: 16px;
}

/* ===================================================================
   Card — Annonce
   =================================================================== */

.gdm-listing-wrap--annonces {
    max-width: 100%;
}

.gdm-listing-annonces {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: start; /* hauteur variable — chaque card prend sa hauteur naturelle */
}


.gdm-card--annonce {
    padding: 20px;
    background: #ffffff;
    position: relative;
    border-top: none;
    border-radius: var(--gdm-radius);
    box-shadow: var(--gdm-shadow);
}
.gdm-card--annonce:hover {
    box-shadow: var(--gdm-shadow-hover);
}

.gdm-card--annonce .gdm-card-description {
    margin-top: 4px;
}

/* ===================================================================
   Buttons (listing scope — redefine if gdm-profile.css not loaded)
   =================================================================== */

/* ===================================================================
   Pictos en card — override taille (base.css : 60px → ici 44px)
   =================================================================== */

.gdm-card-pictos {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gdm-card-pictos .gdm-picto {
    height: 44px;
    min-width: 44px;
    padding: 0 11px;
}

.gdm-card-pictos .gdm-picto:hover {
    padding: 0 16px;
}

.gdm-card-pictos .gdm-picto-icon,
.gdm-card-pictos .gdm-picto-icon svg {
    width: 18px;
    height: 18px;
}

/* ===================================================================
   Pagination
   =================================================================== */

.gdm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gdm-border);
}

.gdm-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 4px 10px;
    border-radius: var(--gdm-radius);
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: all 0.15s;
}

.gdm-pagination-link:hover {
    background: var(--gdm-bg-subtle);
    color: var(--gdm-primary);
}

.gdm-pagination-link--active {
    background: var(--gdm-primary);
    color: #fff;
    pointer-events: none;
}

.gdm-pagination-link--active:hover {
    background: var(--gdm-primary);
    color: #fff;
}

.gdm-pagination-dots {
    font-size: 14px;
    color: var(--gdm-text);
    padding: 0 4px;
}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 640px) {
    .gdm-listing-search-row {
        flex-direction: column;
    }
    
    .gdm-listing-filter-row {
        grid-template-columns: 1fr;
    }
    
    .gdm-listing-grid {
        grid-template-columns: 1fr;
    }
    
    .gdm-card-header {
        gap: 14px;
    }
    
    .gdm-card-photo {
        width: 64px;
        height: 64px;
    }
    
    .gdm-card--dancer,
    .gdm-card--annonce {
        padding: 16px;
    }
    
    .gdm-listing-wrap .gdm-card-cover {
        height: 140px;
    }
}

/* =====================================================================
   Initiales de secours — cards dancers et pro
   Affichées quand la photo est absente ou privée.
   ===================================================================== */

/* Card dancer — .gdm-card-photo contient soit <img> soit ce <span> */
.gdm-card-photo-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--gdm-white);
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none !important;
}

/* Card pro — .gdm-card-pro-avatar contient soit <img> soit ce <span> */
.gdm-listing-wrap .gdm-card-pro-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 600;
    color: var(--gdm-white);
    line-height: 1;
    text-decoration: none;
}


