/* ============================================
   LISTING DETAILS PAGE
   Municibid - Item Detail View
   ============================================ */

/* ============================================
   TITLE SECTION
   ============================================ */
.titleTextContainer {
    text-align: left !important;
    margin-left: 20px;
}

.titleTextForItem {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #222222;
    margin: 0 0 10px 0;
}

.subTitleText {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: normal;
    vertical-align: middle;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #555;
}

    .subTitleText .separator {
        color: #ccc;
        margin: 0 3px;
    }

    .subTitleText .location i,
    .subTitleText .agency-link i {
        margin-right: 5px;
        font-size: 14px;
    }

.listing-number strong {
    color: #666;
}

/* ============================================
   LINKS
   ============================================ */
a.linkTag {
    border-bottom: 2px solid #3586BB;
    text-decoration: none;
    padding-bottom: 2px;
    color: #3586BB;
    transition: opacity 0.2s ease;
}

    a.linkTag:hover,
    a.linkTag:active,
    a.linkTag:focus {
        border-bottom: 2px solid #3586BB;
        color: #3586BB;
        opacity: 0.8;
        text-decoration: none;
    }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumbCustom {
    background-color: #FAFAFA !important;
    box-shadow: none !important;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .breadcrumbCustom a {
        color: #3586BB !important;
        text-decoration: none;
    }

        .breadcrumbCustom a:hover {
            text-decoration: underline;
        }

    .breadcrumbCustom li {
        display: inline-flex;
        align-items: center;
    }

        .breadcrumbCustom li + li::before {
            display: inline-block;
            margin: 0 0.75rem;
            color: #adadad;
            content: ">";
        }

.breadcrumbContainer {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   SELLER BUTTON
   ============================================ */
.btn-seller-listings {
    background-color: #3586BB;
    border-color: #3586BB;
    color: #ffffff !important;
    margin-left: 15px;
    vertical-align: middle;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

    .btn-seller-listings:hover,
    .btn-seller-listings:focus,
    .btn-seller-listings:active {
        background-color: #2a6a94;
        border-color: #2a6a94;
        color: #ffffff !important;
        text-decoration: none !important;
    }

/* ============================================
   WATCHLIST BUTTON
   ============================================ */
.watchlist-btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

    .watchlist-btn:hover {
        text-decoration: none !important;
    }

    .watchlist-btn.unwatched {
        background-color: transparent;
        border-color: #3586BB;
        color: #3586BB;
    }

        .watchlist-btn.unwatched:hover {
            background-color: #3586BB;
            border-color: #3586BB;
            color: #fff;
        }

    .watchlist-btn.active,
    .watchlist-btn.watched {
        background-color: #3586BB;
        border-color: #3586BB;
        color: #fff;
    }

        .watchlist-btn.active:hover,
        .watchlist-btn.watched:hover {
            background-color: #2a6a94;
            border-color: #2a6a94;
        }

/* ============================================
   BUYER FEE WARNING
   ============================================ */
.btn-buyer-fee-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-size: 12px;
    margin-top: 10px;
    display: inline-block;
}

    .btn-buyer-fee-warning i {
        margin-right: 5px;
    }

/* ============================================
   FEES MODAL
   ============================================ */
.fees-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fees-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.fees-modal .modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

    .fees-modal .modal-body h2 {
        color: #222;
        margin-bottom: 20px;
    }

    .fees-modal .modal-body h4,
    .fees-modal .modal-body h5 {
        color: #333;
        margin-top: 20px;
    }

    .fees-modal .modal-body p {
        color: #555;
        line-height: 1.6;
    }

    .fees-modal .modal-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }

        .fees-modal .modal-body table td {
            padding: 10px;
            border: 1px solid #ddd;
        }

        .fees-modal .modal-body table tr:first-child td {
            background-color: #f5f5f5;
            font-weight: 600;
        }

.fees-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

/* Example box in modal */
.fees-example-box {
    background: #f3f3f3;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 15px 0;
}

.fees-warning-box {
    background: #fffada;
    border-radius: 0.5rem;
    padding: 1.2rem;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .titleTextForItem {
        font-size: 28px;
    }

    .subTitleText {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .titleTextForItem {
        font-size: 24px;
    }

    .subTitleText {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .subTitleText .separator {
            display: none;
        }

    .btn-seller-listings {
        margin-left: 0;
        margin-top: 8px;
    }

    .titleTextContainer {
        margin-left: 10px;
    }

    .watchlist-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .breadcrumbCustom {
        font-size: 13px;
    }

        .breadcrumbCustom li + li::before {
            margin: 0 0.5rem;
        }
}

@media (max-width: 480px) {
    .titleTextForItem {
        font-size: 20px;
    }

    .subTitleText {
        font-size: 13px;
    }

    .titleTextContainer {
        margin-left: 5px;
    }

    .watchlist-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .breadcrumbCustom {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    a.linkTag,
    .btn-seller-listings,
    .watchlist-btn {
        transition: none;
    }
}

a.linkTag:focus-visible,
.btn-seller-listings:focus-visible,
.watchlist-btn:focus-visible {
    outline: 3px solid #3586BB;
    outline-offset: 2px;
}
