/**
 * GW Business Listings – Widget & Front-end Styles
 *
 * Covers:
 *  - Listing action buttons (edit / delete)
 *  - My Listings table layout
 *  - My Listings card layout
 *  - Status badge colours
 *  - Current image preview (edit form)
 *
 * @package GW_Business_Listings
 * @since 1.0.0
 */

/* ==========================================================================
   Current-image preview (shown above upload field when editing)
   ========================================================================== */

.gw-current-image-preview {
	margin-bottom: 10px;
}

.gw-current-image-preview__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
}

.gw-current-image-preview__img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.gw-current-image-preview__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gw-current-image-preview__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0369a1;
}

.gw-current-image-preview__hint {
	font-size: 0.8rem;
	color: #475569;
	line-height: 1.4;
}

/* When a replacement file has been chosen, shift colour to amber to signal the swap */
.gw-current-image-preview--replacing .gw-current-image-preview__inner {
	background: #fffbeb;
	border-color: #fcd34d;
}

.gw-current-image-preview--replacing .gw-current-image-preview__label {
	color: #92400e;
}

.gw-current-image-preview--replacing .gw-current-image-preview__hint {
	color: #78350f;
}

/* ==========================================================================
   Action buttons
   ========================================================================== */

.gw-listing-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.gw-listing-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	background-color: #a52425;
	padding: 6px;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	border: none;
	border-radius: 4px;
	font-size: 0.8rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gw-listing-btn:hover {
	background-color: #528a36;
	color: #ffffff;
}

.gw-listing-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Stacked layout modifier */
.gw-listing-actions.layout-stacked {
	flex-direction: column;
	align-items: flex-start;
}

.gw-listing-actions.layout-stacked .gw-listing-action-button {
	width: 100%;
	justify-content: center;
}

/* ==========================================================================
   My Listings – table layout
   ========================================================================== */

.gw-my-listings-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gw-my-listings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.gw-my-listings-table th,
.gw-my-listings-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: middle;
}

.gw-my-listings-table thead th {
	background-color: #f9fafb;
	font-weight: 600;
	white-space: nowrap;
}

.gw-my-listings-table tbody tr:last-child td {
	border-bottom: none;
}

.gw-my-listings-table tbody tr:hover {
	background-color: #f3f4f6;
}

/* ==========================================================================
   My Listings – cards layout
   ========================================================================== */

.gw-my-listings-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 20px;
}

.gw-my-listings-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gw-my-listings-card .card-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.gw-my-listings-card .card-title a {
	text-decoration: none;
	color: inherit;
}

.gw-my-listings-card .card-title a:hover {
	text-decoration: underline;
}

.gw-my-listings-card .card-meta {
	font-size: 0.8rem;
	color: #6b7280;
}

.gw-my-listings-card .card-actions {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Status badges
   ========================================================================== */

.gw-listing-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: capitalize;
	white-space: nowrap;
}

.gw-listing-status.status-publish {
	background-color: #d1fae5;
	color: #065f46;
}

.gw-listing-status.status-pending {
	background-color: #fef3c7;
	color: #92400e;
}

.gw-listing-status.status-draft {
	background-color: #e5e7eb;
	color: #374151;
}

.gw-listing-status.status-trash {
	background-color: #fee2e2;
	color: #991b1b;
}

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

.gw-my-listings-pagination {
	display: flex;
	gap: 6px;
	margin-top: 16px;
	flex-wrap: wrap;
	align-items: center;
}

.gw-my-listings-pagination a,
.gw-my-listings-pagination span {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 0.875rem;
	text-decoration: none;
	color: #374151;
	background: #ffffff;
}

.gw-my-listings-pagination .current {
	background-color: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	font-weight: 600;
}

.gw-my-listings-pagination a:hover {
	background-color: #f3f4f6;
}

/* ==========================================================================
   Empty / notice states
   ========================================================================== */

.gw-my-listings-notice {
	padding: 12px 16px;
	background-color: #f0f9ff;
	border-left: 4px solid #2563eb;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #1e40af;
}


.gw-listing-btn  {
  color:#ffffff!important;
  background-color: #a52425!important;
  padding: 6px 6px!important;
  text-transform: uppercase;
  letter-spacing: 0.2px!important;
  border-style:none!important;
  border-radius:4px!important;
  font-size:0.8rem!important;
  
}
.gw-listing-btn:hover {
  background-color:#528a36!important;
}
.menu-bold-text {
  font-weight:bold!important;
  color:#000000;
}