@charset "utf-8";
/* CSS Document */

.summaryContainer{
    display: flex;
    box-shadow: 0 0 6px 0 #1C222E;
    border-radius: 5px;
    padding: 13px;
    gap: 4rem;
}
.summaryText {
    display: flex;
    flex-direction: column;
}
.summaryText p {
    padding: 5px 0 0 0;
}

.summaryBody{
    margin: 0 7px 0 0;
    border-radius: 3px;
}
.summaryTitle{
    margin: 0 7px 5px 0;
    width: 100%;
    font-weight: bold;
    font-size: 1.25em;
}
.summaryBody[data-title]:after{
    left: 1em;
    position: relative;
    bottom: 4em;
}
.summaryContent{
    min-height: 60px;
    display: flex;
    justify-content:flex-start;
    height: 90px;
    margin: 0 7px 0 0;
    border-radius: 3px;
}
.summaryContent p{margin:0;}
.summaryImage{ border-radius: 5px;}

.summaryFooter{
    display: flex;
    margin: 0 7px 0 0;
    width: 100%;
    line-height: 30px;
    justify-content: space-between;
}
.summarySuplimentary{
    font-weight: bold;
}

.like{}

button.fa-heart , button.fa-heart-crack {color: #ffffff;}

.btnGreen{	background-color: green;	color: white;}


#listings {
    display:flex;
    flex-direction:column;
    font-family: "Arial, Helvecta, sans-serif";
    width:100%;
}
#listingsIndex,
#featured,
#featured ul{
    display: flex;
    flex-direction: row;
    padding: 5px;
}
#featured{
    flex-direction: column;
    width: 100px;
    text-align: center;
}
#featured ul{flex-direction: column;}

.browse a{
    margin: 0; padding:0;
    text-decoration: none;
    font-size: 18px;
    color: #333;
}
.browse a:hover{
    font-weight: bold;
    color:#000;
}
.browse h2{margin:0px;
    padding:5px;
    color:#333;
}
.brheader, .brodd, .breven , .main-listing,  .flex-item , .flex-double {
    display: flex;
    align-items:center;
    min-height:42px;
    padding-top: 3px;
    padding-bottom: 1px;
    height: fit-content;
}
.brheader {
    padding-left: 10px;
}
.brheader--featured {
    background-color: #fdf6d8;
    font-weight: 800;
}
.row--featured {
    border-left: 3px solid #d4af37;
    font-weight: 600;
}
.main-listing-title {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.breven .main-listing,
.brodd .main-listing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
}

/* =========================================
   10. SEO Content Blocks (Category Pages)
 	 Category Overview Blocks
   ========================================= */

.category-overview {
    padding: 2rem 1rem;
    margin: 2rem auto 0 auto;
    border-top: 1px solid #ddd;
    color: #333;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.category-overview .category-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #121111;
    font-weight: bold;
}

.category-overview .category-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    display: block;
    text-align: left;
}

.category-overview .category-text:last-child {
    margin-bottom: 0;
}

.category-overview a {
    color: #007bff;
    text-decoration: underline;
}

.category-overview a:hover {
    color: #0056b3;
    text-decoration: none;
}


@media screen and (max-width: 1050px) {
    .views-column,
    .views-column-data,
    .date-column,
    .data-column-data,
    .price-column,
    .price-column-data {
        font-size: 1rem;
    }

}
.f1, .listing {
    display: flex; align-items: center;
}

.flex-double {
    flex-direction:column;
    width:120px;
    height: 30px;
    justify-content:center;
}
.brheader {
    background:#648ECF;
    font-size:20px;
    font-weight: bold;
    color: #424242;
    align-items:center;
    background-image: -webkit-linear-gradient(#F0FAFF 0%, #648ECF 100%);
    background-image: -o-linear-gradient(#F0FAFF 0%, #648ECF 100%);
    background-image: linear-gradient(#F0FAFF 0%, #648ECF 100%);
}

.brheader a , .brodd a , .breven a{ text-decoration:none;color: #000;}

.brheader a:hover{ color: FireBrick;}

.brodd a:hover , .breven a:hover{ font-weight:bold; color:FireBrick;}
.brodd  { background: #99ccff; color:#00004d;}
.breven  { background: #cce5ff; color: #000080;}
.brodd a{color:#000080; }
.breven a{ color: #000000;}

.listing-header{ flex:auto; }
.main-listing{flex: 2; height: fit-content;}
.listing{flex: 9;}
.feature{flex: 9;
    font-weight: bold;

}

.image-count i{
    font-size: 1.5em;
}

.special-feature {flex: 9;
    font-weight: bold;
    font-size:24px;
    padding: 7px 0 7px 0;
}

a.special-feature { text-decoration:none; color: lightcoral;}


.views-column,
.views-column-data,
.date-column,
.data-column-data,
.recent-column,
.total-column,
.price-column,
.price-column-data {
    display: flex;
    justify-content: center;
    padding: 0 8px;

}


.views-column,
.views-column-data {
    width: 55px;
}

.price-column,
.price-column-data {
    width: 120px;
}

.views-column button,
.views-column-data button {
    color: #000080;
}

.date-column,
.data-column-data {
    width: 120px;
}

.date-column button,
.date-column-data button {
    color: #000080;
}



.numbers-column {
    display: flex;
    flex:1;
    font-size: .7em;
    align-items: center;
    gap: 5px;
}
.numbers-column span {
    font-weight: lighter;
}

.image-count {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0 3px;
    font-size: smaller;
}

@media screen and (max-width: 500px) {
    .view-column,
    .views-column,
    .date-column,
    .date-columns,
    .breven .ad-key-info,
    .brodd .ad-key-info,
    .main-listing span {
        display: none;
    }
}

.brh1 {	background: #FF9;
    color: #C00;
    font-size: 14px;
    font-weight: bold;
}
.brh2 { background: #F9F;}
.brf1 {	background: #FF9;}
.brf2 { background: #F9F;}
.brp{ padding: 4px;}
.brsec{
    background: #06F;
    padding: 2px 2px 2px 5px;
    text-decoration: none;
}



/* Advert View */
#advertView {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.adTitle {
    display: flex;
    justify-content: space-between;
}

#adButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}


#adButtons button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: darkgreen;
    gap: 10px;
    padding: 5px 20px;
    font-size: 1rem;
    flex: 1;
}

#adButtons button i,
#adButtons button svg {
    color: whitesmoke;
    font-size: 1.1rem;
}

.summaryContainer {
    display: flex;
    gap: 4rem;
}

.description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adPrice {
    font-weight: bold;
    font-size: 1.1rem;
}

@media screen and (max-width: 700px) {
    #adButtons {
        flex-direction: column;
        gap: 10px;
    }
    .adTitle {
        flex-direction: column;
        gap: 1rem;
    }
    .summaryContainer {
        flex-direction: column;
        gap: 1rem;
    }
}
.margin10{margin: 10px;}

/* ================================ */
/* Listings Grid/List View System   */
/* ================================ */

/* Grid View Container - responsive card grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* List View Container - vertical stack */
.listings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

/* Card adjustments when inside grid container */
.listings-grid .featured-ad-card,
.listings-grid .ad-card {
    flex-direction: column;
    margin-bottom: 0;
}

.listings-grid .ad-image {
    width: 100%;
    height: 200px;
}

.listings-grid .ad-image img {
    border-radius: 4px 4px 0 0;
}



/* Card adjustments when inside list container */
.listings-list .featured-ad-card,
.listings-list .ad-card {
    flex-direction: row;
}

.listings-list .ad-image {
    width: 250px;
    height: auto;
}

.listings-list .ad-image img {
    border-radius: 4px 0 0 4px;
}

/* Responsive adjustments for grid */
@media screen and (max-width: 700px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listings-list .featured-ad-card,
    .listings-list .ad-card {
        flex-direction: column;
    }

    .listings-list .ad-image {
        width: 100%;
        min-height: 180px;
    }

    .listings-list .ad-image img {
        border-radius: 4px 4px 0 0;
    }
}

/* New Design */
/* Top change view icons */
.view-icons {
    display: flex;
    align-items: center;
    color: #333333;
    margin: 1rem;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.view-icons button {
    border: 1px solid #1e78ba;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #0b0b0b;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0.5rem;
}


.view-change-btns {
    display: flex;
    gap: 10px;
}
.view-toggle-btn {
    background: #e0e0e0;
    color: #666;
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    background: #d0d0d0;
    color: #333;
}

.view-toggle-btn.active {
    background: #1e78ba;
    color: #fff;
    border-color: #1e78ba;
}

.view-toggle-btn i {
    font-size: 1rem;
}

.view-dropdown,
#viewLegacyContainer {
    display: flex;
    flex-direction: column;
}
#viewDropdownContainer {
    display: none;
    flex-direction: column;
}

#viewLegacyContainer .featured-accordion {
    margin-bottom: 1rem;
}


/* Accordion Container Styles */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden; /* So if content is hidden, corners look neat */
}

/* Accordion Header */
.accordion-header {
    background: #f8f9fa;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.accordion-header h2 {
    margin: 0;
    font-size: 1.1rem;
}
.accordion-header:hover {
    background: #e9ecef;
}

/* Accordion Content (collapsible area) */
.accordion-content {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
    background: #fff;
}

/* When .accordion-item has .open, reveal the content */
.accordion-item.open .accordion-content {
    padding-top: 10px;
    padding-bottom: 10px;
    max-height: 1000px;
    overflow-y: scroll;

}

#viewCardContainer {
    /*display: flex;*/
    flex-direction: column;
    gap: 1rem;
}
#viewCardContainer .accordion-section {
    background: #dedede;
}
/* Ad Card Layout */
.ad-card {
    display: flex;
    background: #fff;
    border: 1px solid #939393;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin:  0 15px 20px;
}

/* Ad Image */
.ad-image {
    width: 250px;
    flex-shrink: 0;
    background: #f3f3f3;
    overflow: hidden;
    position: relative;
}
.ad-image img {
    width: 100%;
    height: 100%;


    object-fit: cover;
    border-radius: 4px 0 0 4px;
}

/* Ad Details */
.ad-details {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ad-title-container {
    display: flex;
}
.ad-title-container .fa-sparkle,
.ad-title-container .fa-sparkles {
    color: #f39c12;
    font-size: 2rem;
    padding: 0 5px;
    --fa-secondary-opacity: 0.7;
}

.ad-title {
    flex: 1;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}
.ad-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ad-title a:hover {
    color: #007bff;
}

.ad-key-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: #404040;
    margin-bottom: 8px;
}
.ad-key-info span {
    background: #c0e6fe;
    padding: 3px 6px;
    border-radius: 4px;
    max-height: 30px;
}


.ad-feature-list {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.ad-text {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 5px;
    flex: 1;
}

.ad-text video,
.ad-text img {
    display: none;
}

.ad-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3px;
    margin: 5px 0;
}
.ad-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}
.ad-views-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 16px;
}
.ad-cta {
    display: flex;
    gap: 10px;
}
.ad-cta a {
    flex: 1;
}
.ad-seller-commercial {
    display: flex;
    gap: 1rem;
}
.ad-seller-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}
.ad-seller-url {
    flex: 1;
}

/* Enhanced Featured Listing Styles */
.featured-listings {
    margin-top: -50px; /* Inline with the change view buttons */
}
.featured-listings h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
    padding: 1rem 0 .5rem 0;
}
/* 1. The Card Container (The Frame) */
.featured-ad-card {
    position: relative;
    overflow: hidden;
    display: flex;
    background: linear-gradient(135deg, #fff, #fefefe);
    border: 2px solid #f39c12;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-ad-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


@media screen and (max-width: 900px) {
    .ad-card, .featured-ad-card {
        flex-direction: column;
    }

    .ad-image, .ad-image img {
        width: 100%;
        height: 250px;
        border-radius: 4px 4px 0 0;
    }

    .ad-details {
        padding: 12px;
    }
}
@media screen and (max-width: 500px) {
    .ad-text {
        max-height: 120px;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

/* =============== */
/* Advert Comments */
/* =============== */

button.advertCommentBtn {
    background-color: #00b6ff;
    color: #0b0b0b;
    margin: 1rem 0;
}

button.advertCommentBtn i,
button.advertCommentBtn svg {
    color: #ff0000;
}


.comments-section {
    width: 100%;
    background-color: #dfdede;
    border-radius: 8px;
    box-shadow: var(--bs-light);
}

.comment-input-area {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px groove white;
}

.user-avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: lightgrey;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px groove white;
}

.comments-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.comment-count {
    background-color: #1e78ba;
    color: whitesmoke;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

.comment-list {
    padding: 1rem;
}

.comment-item {
    position: relative;
    display: flex;
    margin-bottom: 20px;
}

.comment-content {
    position: relative;
    flex-grow: 1;
}

.comment-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin-bottom: 5px;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.comment-time {
    font-size: 12px;
    color: #333333;
}

.comment-body {
    font-size: 14px;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #333333;
}

.action-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.action-item i {
    margin-right: 5px;
    cursor: pointer;
}

.reply-link {
    color: #1e78ba;
    text-decoration: none;
    font-weight: bold;
}

.replies-container {
    margin-top: 15px;
}

.main-comment-thread-line {
    position: absolute;
    height: 48%;
    width: 2px;
    border-left: 1px solid #a8a5a5;
    left: -44px;
    top: 60px;
}

.reply-comment-thread-line {
    position: absolute;
    height: calc(100% + 32px);
    width: 44px;
    border-radius: 0 0 0 35px;
    border-left: 1px solid #a8a5a5;
    border-bottom: 1px solid #a8a5a5;
    left: -119px;
    top: calc(2px - 100%);
}

.adTitle{margin: .5rem 0 1rem 0;}
.summaryContainer {
    display: flex;
    margin: 0 2.5em 2rem 2.5rem;
    gap: 4rem;
}
.description h2{
    margin: 1rem 0 2rem 0;
}

.home-hero h1,
.home-hero p,
.section-header h2,
.section-header p {
    padding: 5px 0;
}

/* =============================================
   LISTINGS LAYOUT — sidebar + main
   ============================================= */

#viewCardContainer {
    padding: 0;  /* let .listings-layout control spacing */
}

.listings-layout {
    display: flex;
    flex-direction: row; /* Explicitly define direction */
    align-items: flex-start;
    gap: 1.5rem;
    min-height: 180px;
    width:100%;
}

/* Sidebar */
.category-nav {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 110px; /* match your site header height */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #f4f6fb;
    border: 1px solid #ccd3e8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.nav-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0.5rem 0 0.4rem;
}

.category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: #334;
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    gap: 5px;
}

.category-nav li a:hover,
.category-nav li a.active {
    background: #6b7eb8;
    color: #fff;
}

.nav-count {
    font-size: 0.72rem;
    background: rgba(0,0,0,0.10);
    border-radius: 10px;
    padding: 1px 6px;
    flex-shrink: 0;
}

/* Main listings area */
.listings-main {
    flex: 1;
    min-width: 0; /* prevents flex overflow with long titles */
}

/* =============================================
   CATEGORY SECTION HEADERS
   ============================================= */

.card-category-header {
    width: 100%;
    background: #6b7eb8;
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 4px;
    margin: 1.25rem 0 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    scroll-margin-top: 110px; /* clears sticky site header on anchor jump */
    box-sizing: border-box;
    grid-column: 1 / -1;
}

.card-category-header .count {
    font-size: 0.78rem;
    font-weight: normal;
    opacity: 0.85;
}

/* Mobile — sidebar collapses to pill nav above listings */
@media screen and (max-width: 900px) {
    .listings-layout {
        flex-direction: column;
        gap: 0.75rem;
    }
    /* Remove from mobile for now*/
    .category-nav {
        display: none;
    }
    /*.category-nav ul {*/
    /*	flex-direction: row;*/
    /*	flex-wrap: wrap;*/
    /*	gap: 0.4rem;*/
    /*}*/
    /*.category-nav li a {*/
    /*	background: #e0e5f0;*/
    /*	border-radius: 20px;*/
    /*	padding: 0.25rem 0.65rem;*/
    /*}*/
    /*.category-nav li a:hover,*/
    /*.category-nav li a.active {*/
    /*	background: #6b7eb8;*/
    /*	color: #fff;*/
    /*}*/
}

.nav-sections {
    flex-direction: column;
    gap: 0.1rem;
}

.nav-section-item {
    width: 100%;
}

.nav-section-name {
    display: block;
    font-size: 0.78rem;
    font-weight: bold;
    color: #445;
    padding: 0.4rem 0.25rem 0.2rem;
    border-bottom: 1px solid #dde2f0;
    margin-bottom: 0.2rem;
    text-transform: capitalize;
}

.nav-cat-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.3rem 0.5rem; /* indent under section */
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-cat-list li a {
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}