/* ============================================
   Joe's Highway – Complete Style (XYZ Demo Clone)
   Based on all provided CSS files (Bootstrap 4, blobselect, responsive, theme colours)
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}
a {
    outline: none;
    text-decoration: none;
    cursor: pointer;
    color: #666;
}
a:hover {
    color: #6aaf08;
}
img {
    max-width: 100%;
    height: auto;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

/* Container */
.jh-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 768px) { .jh-container { max-width: 720px; } }
@media (min-width: 992px) { .jh-container { max-width: 960px; } }
@media (min-width: 1200px) { .jh-container { max-width: 1140px; } }

/* Ads Grid */
.jh-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Ad Card */
.jh-ad-item {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-bottom: 5px solid #e9e9e9;
    border-radius: 4px;
    padding: 0 0 15px 0;
    transition: all 0.3s ease;
    background: #f5f5f5;
    cursor: pointer;
}
.jh-ad-item:hover {
    background: #eef4fb;
    border-bottom-color: #69ae09;
    transform: translateY(-3px);
}
.jh-ad-item .jh-image {
    text-align: center;
    background: #fff;
    overflow: hidden;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}
.jh-ad-item .jh-image img {
    transition: transform 0.3s;
    max-height: 160px;
    object-fit: contain;
}
.jh-ad-item:hover .jh-image img {
    transform: scale(1.05);
}
.jh-ad-item h3 {
    font-size: 16px;
    text-align: center;
    margin: 10px 0 5px;
}
.jh-ad-item h3 a {
    color: #6aaf08 !important;
    font-weight: 500;
}
.jh-ad-item h3 a:hover {
    color: #000 !important;
}
.jh-price {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 5px 0;
}
.jh-location {
    text-align: center;
    font-size: 11px;
    color: #000 !important;
    margin: 5px 0;
}
.jh-more {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    margin: 10px auto 0;
    width: auto;
    transition: 0.3s;
}
.jh-more:hover {
    background: #6aaf08;
    color: #fff;
}

/* Submission Form */
.jh-submit-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.jh-submit-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #6aaf08;
}
.jh-submit-form input,
.jh-submit-form textarea,
.jh-submit-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.jh-submit-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    width: auto;
    cursor: pointer;
    transition: 0.3s;
}
.jh-submit-form input[type="submit"]:hover {
    background: #6aaf08;
}

/* Single Ad Page */
.jh-single-ad {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.jh-single-ad h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #6aaf08;
}
.jh-single-ad .jh-price {
    font-size: 22px;
    text-align: left;
    margin: 15px 0;
}
.jh-single-ad .jh-contact {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

/* Pagination */
.jh-pagination {
    text-align: center;
    margin: 20px 0;
}
.jh-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
}
.jh-pagination .page-numbers.current {
    background: #6aaf08;
    color: #fff;
    border-color: #6aaf08;
}
.jh-pagination .page-numbers:hover {
    background: #f5f5f5;
}

/* Breadcrumb */
.jh-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
}
.jh-breadcrumb a {
    color: #6aaf08;
}

/* Messages */
.jh-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.jh-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.jh-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.jh-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .jh-ads-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .jh-ad-item h3 {
        font-size: 14px;
    }
    .jh-price {
        font-size: 12px;
    }
    .jh-more {
        padding: 6px 12px;
        font-size: 12px;
    }
}