/*
 * Κάρτα αγγελίας της αρχικής — ακριβές αντίγραφο του "feature-block-one" του Clasifico template.
 * Εικονίδια: icomoon (ετικέτα ⚡ και ✓ του template) και "tags" από το Font Awesome (CC BY 4.0).
 */
@font-face {
    font-family: "icomoon";
    src: url("../fonts/icomoon.woff") format("woff"), url("../fonts/icomoon.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
}

.feature-block-one,
.feature-block-one * {
    box-sizing: border-box;
}

.feature-block-one {
    font-family: Quicksand, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 26px;
    color: #848484;
}

.feature-block-one ul,
.feature-block-one figure,
.feature-block-one p,
.feature-block-one h3,
.feature-block-one h5,
.feature-block-one h6 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-block-one h3,
.feature-block-one h5,
.feature-block-one h6 {
    font-family: Nunito, "Segoe UI", sans-serif;
    color: #061a3a;
}

.feature-block-one a {
    text-decoration: none;
    transition: all 500ms ease;
}

.feature-block-one img {
    max-width: 100%;
    vertical-align: middle;
}

.feature-block-one [class^="icon-"] {
    font-family: "icomoon" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-block-one .icon-16:before { content: "\e90f"; }
.feature-block-one .icon-18:before { content: "\e911"; }

.feature-block-one .inner-box {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.1);
}

.feature-block-one .inner-box .image-box {
    position: relative;
    display: block;
}

.feature-block-one .inner-box .image-box .image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px 10px 0px 0px;
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, #7360ff 0%, #f85c70 100%);
}

.feature-block-one .inner-box .image-box .image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 54px;
}

.feature-block-one .inner-box .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 500ms ease;
}

.feature-block-one .inner-box:hover .image-box img {
    transform: scale(1.05);
}

.feature-block-one .inner-box .image-box .feature {
    position: absolute;
    top: 16px;
    right: -36px;
    width: 130px;
    padding: 3px 0px;
    font-size: 12px;
    color: #fff;
    line-height: 20px;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(45deg);
    z-index: 1;
    clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 0% 100%, 20% 0%);
    background-color: #2dbe6c;
    pointer-events: none;
}

.feature-block-one .inner-box .image-box .shape {
    position: absolute;
    width: 110px;
    height: 110px;
    top: 0px;
    right: 0px;
    pointer-events: none;
}

.feature-block-one .inner-box .image-box .shape:before {
    position: absolute;
    content: "";
    width: 8px;
    height: 7px;
    left: 25px;
    top: -7px;
    background-color: #1b8a4b;
}

.feature-block-one .inner-box .image-box .shape:after {
    position: absolute;
    content: "";
    right: -6px;
    bottom: 26px;
    width: 7px;
    height: 8px;
    background-color: #1b8a4b;
}

.feature-block-one .inner-box .image-box .icon {
    position: absolute;
    left: 30px;
    top: -7px;
    width: 30px;
    height: 40px;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    z-index: 1;
    background-color: #f85c70;
    pointer-events: none;
}

.feature-block-one .inner-box .image-box .icon .icon-shape {
    position: absolute;
    top: 0px;
    right: -8px;
    width: 8px;
    height: 7px;
    clip-path: polygon(0% 0%, 0% 0%, 100% 100%, 0% 100%, 0% 0%);
    background-color: #e42828;
}

.feature-block-one .inner-box .image-box .icon:before {
    position: absolute;
    content: "";
    width: 14px;
    height: 5px;
    left: 0px;
    bottom: -4px;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%, 0% 100%, 0% 0%);
    border-bottom-left-radius: 10px;
    background-color: #f85c70;
}

.feature-block-one .inner-box .image-box .icon:after {
    position: absolute;
    content: "";
    width: 14px;
    height: 5px;
    right: 0px;
    bottom: -4px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%, 0% 0%);
    border-bottom-right-radius: 10px;
    background-color: #f85c70;
}

.feature-block-one .inner-box .image-box:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    right: 0px;
    box-shadow: inset 0px -140px 50px -40px rgba(0, 0, 0, 0.7);
    z-index: 1;
    transition: all 500ms ease;
    pointer-events: none;
}

/* Στη θέση των αστεριών του template: τοποθεσία της αγγελίας (δεν υπάρχουν αξιολογήσεις) */
.feature-block-one .inner-box .image-box .location {
    position: absolute;
    display: inline-block;
    left: 30px;
    bottom: 47px;
    z-index: 1;
    max-width: 55%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 26px;
    color: #fff;
    pointer-events: none;
}

.feature-block-one .inner-box .image-box .location svg {
    margin-right: 5px;
    vertical-align: -2px;
}

.feature-block-one .inner-box .image-box h5 {
    position: absolute;
    display: inline-block;
    right: 30px;
    bottom: 48px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 800;
    z-index: 1;
    color: #f85c70;
    pointer-events: none;
}

.feature-block-one .inner-box .lower-content {
    position: relative;
    display: block;
    padding: 0px 30px 32px 30px;
}

.feature-block-one .inner-box .lower-content .author-box {
    position: relative;
    background: #fff;
    padding: 22px 15px;
    border-radius: 10px;
    margin-top: -35px;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    margin-bottom: 30px;
}

.feature-block-one .inner-box .lower-content .author-box .inner {
    position: relative;
    padding-left: 52px;
}

.feature-block-one .inner-box .lower-content .author-box .inner > a {
    display: block;
    color: inherit;
}

.feature-block-one .inner-box .lower-content .author-box .inner img,
.feature-block-one .inner-box .lower-content .author-box .inner .avatar-fallback {
    position: absolute;
    left: 0px;
    top: -7px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feature-block-one .inner-box .lower-content .author-box .inner .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7360ff 0%, #f85c70 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* Όνομα + ✓ : το όνομα κόβεται με "…" ώστε να μην πέφτει πάνω στο pill */
.feature-block-one .inner-box .lower-content .author-box .inner .name {
    position: relative;
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 88px);
    padding-right: 26px;
}

.feature-block-one .inner-box .lower-content .author-box.is-business .inner .name {
    max-width: calc(100% - 140px);
}

/* Σε στενή κάρτα το pill κρύβεται ώστε να χωράει το όνομα του πωλητή */
.feature-block-one {
    container-type: inline-size;
}


.feature-block-one .inner-box .lower-content .author-box .inner .name h6 {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 26px;
    font-weight: 700;
}

.feature-block-one .inner-box .lower-content .author-box .inner .name .verified {
    position: absolute;
    top: 5px;
    right: 0px;
    width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    font-size: 8px;
    color: #fff;
    border-radius: 50%;
    background-color: #2dbe6c;
}

.feature-block-one .inner-box .lower-content .author-box .inner .pill {
    position: absolute;
    top: 0px;
    right: 0px;
    display: inline-block;
    font-size: 11px;
    line-height: 18px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 15px;
    border-radius: 25px;
    background-color: #7360ff;
}

.feature-block-one .inner-box .lower-content .category {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1px;
}

.feature-block-one .inner-box .lower-content .category svg {
    position: absolute;
    left: 0px;
    top: 8px;
    width: 15px;
    height: 12px;
    fill: #f85c70;
}

.feature-block-one .inner-box .lower-content h3 {
    display: block;
    font-size: 22px;
    line-height: 30px;
    font-weight: 800;
}

.feature-block-one .inner-box .lower-content h3 a {
    display: inline-block;
    color: #061a3a;
}

.feature-block-one .inner-box .lower-content h3 a:hover {
    color: #f85c70;
}

/* Χωρίς κάρτα πωλητή (προφίλ πωλητή): η τιμή/τοποθεσία κατεβαίνουν στο κάτω μέρος της φωτογραφίας */
.feature-block-one.no-author .inner-box .image-box .location {
    bottom: 14px;
}

.feature-block-one.no-author .inner-box .image-box h5 {
    bottom: 15px;
}

.feature-block-one.no-author .inner-box .lower-content {
    padding-top: 22px;
}

.showcase-grid .ad-slot {
    grid-column: 1 / -1;
}

@media only screen and (max-width: 1200px) {
    .feature-block-one .inner-box .lower-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 991px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media only screen and (max-width: 767px) {
    .feature-block-one .inner-box .image-box .location {
        left: 15px;
    }
    .feature-block-one .inner-box .image-box h5 {
        right: 15px;
    }
}

@media only screen and (max-width: 599px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .feature-block-one {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 399px) {
    .feature-block-one .inner-box .lower-content .author-box .inner .pill {
        display: none;
    }
}

/* Λίστα αγγελιών / προφίλ: ο αριθμός στηλών προσαρμόζεται στο διαθέσιμο πλάτος (τελευταίο, ώστε να υπερισχύει των breakpoints) */
.showcase-grid.showcase-grid-fluid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: none;
}

/* Σε στενή κάρτα το pill κρύβεται ώστε να χωράει το όνομα του πωλητή (στο τέλος, ώστε να υπερισχύει των βασικών κανόνων) */
@container (max-width: 339px) {
    .feature-block-one .inner-box .lower-content .author-box .inner .pill {
        display: none;
    }
    .feature-block-one .inner-box .lower-content .author-box .inner .name,
    .feature-block-one .inner-box .lower-content .author-box.is-business .inner .name {
        max-width: 100%;
    }
}

/* Καρδιά «αγαπημένο» στη δεξιά άκρη της γραμμής κατηγορίας */
.feature-block-one .inner-box .lower-content .category {
    padding-right: 44px;
    min-height: 36px;
}

.feature-block-one .inner-box .lower-content .category .fav-btn {
    position: absolute;
    right: 0;
    top: -4px;
}

/* «Παρόμοιες αγγελίες» στο κάτω μέρος της σελίδας αγγελίας (includes/related-listings.php) */
.related-listings {
    margin-top: 40px;
}

.related-listings h2 {
    margin: 0 0 20px;
    font-size: 20px;
}
