/**
 * ACADP grid card — dark/gold restyle with hover effects.
 *
 * All selectors are scoped under .acadp-grid-view so list and map views
 * are unaffected. Fonts (Playfair Display, Inter) are assumed to be
 * enqueued elsewhere; fallbacks render acceptably if not.
 *
 * Used by:
 *   - acadp/listings/acadp-public-listings-grid-display.php
 */

/* ----- Card container ----- */

.acadp-grid-view .thumbnail.acadp-entry {
    background: #1a1a1a;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 0;
    padding: 0;
    margin: 0 0 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    transition: border-color 0.2s, transform 0.2s;
    transform: translateY(0);
}

.acadp-grid-view .thumbnail.acadp-entry:hover {
    border-color: rgba(201, 168, 76, 0.45);
    transform: translateY(-4px);
}

/* ----- Image ----- */

.acadp-grid-view .thumbnail.acadp-entry .acadp-responsive-container,
.acadp-grid-view .thumbnail.acadp-entry > a.acadp-responsive-container {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
}

.acadp-grid-view .thumbnail.acadp-entry .listing-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transform: scale(1);
    transition: transform 0.4s ease !important;
    will-change: transform;
}

/* Two hover triggers: hovering the whole card, or hovering the image link directly.
   The second wins when something between them blocks :hover propagation. */
.acadp-grid-view .thumbnail.acadp-entry:hover .listing-bg-image,
.acadp-grid-view .thumbnail.acadp-entry .acadp-responsive-container:hover .listing-bg-image {
    transform: scale(1.05) !important;
}

/* ----- Label (HOT / New / Featured etc.) ----- */

.acadp-grid-view .thumbnail.acadp-entry .acadp-labels-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    margin: 0;
}

.acadp-grid-view .acadp-labels-container .acadp-labels {
    display: flex;
    gap: 6px;
}

.acadp-grid-view .acadp-labels-container .label,
.acadp-grid-view .acadp-labels-container .label-primary,
.acadp-grid-view .acadp-labels-container .label-default,
.acadp-grid-view .acadp-labels-container .label-success,
.acadp-grid-view .acadp-labels-container .label-info,
.acadp-grid-view .acadp-labels-container .label-warning,
.acadp-grid-view .acadp-labels-container .label-danger {
    background: #E2593C;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px !important;
    border-radius: 0;
    line-height: 1.4;
    display: inline-block;
}

/* ----- Caption (text area) ----- */

.acadp-grid-view .thumbnail.acadp-entry .caption {
    padding: 18px 18px 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    display: flex;
    flex-direction: column;
    flex: 1;
    color: rgba(255, 255, 255, 0.75);
}

/* Collapse empty helper <p> wrappers left in the template. */
.acadp-grid-view .caption > p.acadp-no-margin:empty,
.acadp-grid-view .caption > p.acadp-listings-desc:empty {
    margin: 0;
    min-height: 0;
    display: none;
}
.acadp-grid-view .caption p.acadp-no-margin small:empty {
    display: none;
}

/* ----- Title ----- */

.acadp-grid-view .acadp-listings-title-block {
    margin-bottom: 10px;
    flex: 1;
}

.acadp-grid-view .acadp-listings-title-block h3 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.acadp-grid-view .acadp-listings-title-block h3 a,
.acadp-grid-view .acadp-listings-title-block h3 a:hover,
.acadp-grid-view .acadp-listings-title-block h3 a:focus {
    color: #FFFFFF;
    text-decoration: none;
}

/* ----- Price ----- */

.acadp-grid-view .acadp-listings-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.2;
}

.acadp-grid-view .acadp-asking-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.acadp-grid-view .acadp-price-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #C9A84C;
}

/* ----- Location ----- */

.acadp-grid-view .acadp-listings-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 16px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.acadp-grid-view .acadp-pin-icon {
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.3);
}

/* ----- More Details button ----- */

.acadp-grid-view .more-details-container {
    margin: 0;
    padding: 0;
    width: 100%;
}

.acadp-grid-view .more-details-container a.et_pb_button,
.acadp-grid-view .more-details-container a.et_pb_button:hover {
    display: block !important;
    width: 100%;
    background: #C9A84C !important;
    color: #0A0A0A !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    padding: 12px !important;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.acadp-grid-view .more-details-container a.et_pb_button:hover {
    background: #E2BC62 !important;
}

/* Divi injects a pseudo-element arrow on hover — suppress it here. */
.acadp-grid-view .more-details-container a.et_pb_button::after {
    display: none !important;
    content: none !important;
}
.label-pending{
	background-color: orange !important;
}

.label-reduced{
	background-color: green !important;
}
.acadp-entry .caption > *{
    margin-bottom: 16px !important;
}
.acadp-entry .caption > *:last-child{
    margin-bottom: 0 !important;
}
.acadp-entry .caption > .acadp-listings-title-block{
    margin-bottom: 9px !important;
}