/**
 * Proxy Equipment - Public Site Styles
 * Location: /home/proxyequipmentsa/public_html/backend/frontend/css/style.css
 */

:root {
    --primary-color: #F08519;
    --secondary-color: #151515;
    --light-bg: #eeee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.navbar-brand img {
    max-height: 50px;
}

/* Primary button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d97316;
    border-color: #d97316;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Search */
.hero-search .search-form .input-group {
    border-radius: 6px;
    overflow: hidden;
}

.hero-search .form-control {
    border: 4px solid #fff;
    padding: 0.75rem 1rem;
}

.hero-search .btn {
    padding: 0.75rem 2.5rem;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.category-card .card-header {
    padding: 1.5rem;
    border-bottom: none;
}

.category-icon img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* The big count on the right */
.category-count {
    font-size: 3rem;
    opacity: .5;              /* was 0.1 (muted); now readable */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* Bright count badge inside the count area */
.category-count-badge {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
}

.category-card .card-body {
    padding: 1.5rem;
}

/* Default link behavior inside card body */
.category-card .card-body a {
    color: #333;
    transition: color 0.2s ease;
}

.category-card .card-body a:hover {
    color: var(--primary-color);
}

/* Card-wide link wrapper */
.category-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.category-card-link:focus-visible {
    outline: 3px solid rgba(240, 133, 25, 0.4);
    border-radius: 6px;
}

/* Two-button layout */
.category-card .button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.category-card .button-group .btn {
    flex: 1;
    white-space: nowrap;
}

/* Grey + orange outline button (use everywhere for View buttons) */
.btn-outline-proxy {
    color: var(--primary-color);      /* orange text */
    border-color: #6c757d;            /* grey border */
    background: #fff;                 /* white background */
}

/* Hover: dark background, orange border + orange text */
.btn-outline-proxy:hover,
.btn-outline-proxy:focus {
    color: var(--primary-color) !important;      /* orange text */
    background-color: #151515 !important;        /* dark charcoal */
    border-color: var(--primary-color) !important; /* orange border */
}

/* Optional: a little nicer focus ring */
.btn-outline-proxy:focus-visible {
    outline: 3px solid rgba(240, 133, 25, 0.35);
    outline-offset: 2px;
}

/* Ensure buttons are clickable even if card is wrapped in a link */
.category-card .card-body .btn,
.category-card .card-body a {
    position: relative;
    z-index: 10;
}

/* Listing Cards */
.listing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.listing-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-card:hover .listing-overlay {
    opacity: 1;
}

/* Services Section */
.services {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23151515" width="100" height="100"/></svg>');
}

/* Newsletter */
.newsletter .card {
    border-radius: 6px;
}

/* Footer */
.site-footer a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .category-count {
        font-size: 2rem;
    }

    .listing-image {
        height: 200px;
    }
}

/* Search Auto Complete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffff;
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: .35rem .75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.autocomplete-item small {
    color: #666;
}

.autocomplete-item:hover {
    background-color: #f2f2f2;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

/* Listing Detail Page Styles */
.listing-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 10px 0;
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li + li:before {
    content: " › ";
    padding: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: #b15f0c;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #b15f0c;
    text-decoration: underline;
}

.breadcrumb .active {
    color: #333;
}

.hero-search h1 {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hero-search h1 {
        font-size: 1.75rem;
        white-space: normal;
    }
}

.listing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .listing-content {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-container {
    position: sticky;
    top: 20px;
}

.gallery-main {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.gallery-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    aspect-ratio: 1;
}

.gallery-thumbnail:hover {
    border-color: #0066cc;
}

.gallery-thumbnail.active {
    border-color: #0066cc;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info Section Styles */
.listing-info h1 {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #333;
}

.listing-price {
    font-size: 24px;
    font-weight: bold;
    color: #218838;
    margin-bottom: 15px;
}

.listing-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.listing-location .label {
    color: #999;
    margin-right: 5px;
}

.contact-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.btn-contact {
    display: block;
    width: 100%;
    padding: 15px;
    background: #F08519;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: #cc5200;
}

.price-financing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.btn-financing {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-financing:hover {
    background: #333;
    color: #fff;
}

.contact-phone {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.contact-phone a {
    color: #b15f0c;
    text-decoration: none;
    font-weight: bold;
}

.section-heading {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
    border-bottom: 2px solid #F08519;
    padding-bottom: 10px;
}

.description-text {
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specifications-table td {
    padding: 12px 8px;
}

.specifications-table td:first-child {
    font-weight: bold;
    color: #666;
    width: 40%;
}

.specifications-table td:last-child {
    color: #333;
}

.utility-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-utility {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-utility:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-utility i {
    font-size: 16px;
}

/* Links in dark services section */
.services a {
    color: var(--primary-color);
    text-decoration: none;
}

.services a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}