/* ===== RESET / BASE ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f6f7f8;
    color: #222;
}

a {
    text-decoration: none;
    color: #0a58ca;
}

/* ===== CONTAINER ===== */
.site-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* ===== HEADER ===== */
.site-header {
    background: #111;
    color: #fff;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* ===== MENU ===== */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: #fff;
    font-size: 15px;
    padding: 6px 0;
}

.main-menu li.current-menu-item > a,
.main-menu a:hover {
    border-bottom: 2px solid #f5c518;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.site-footer a{
    color: white;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
}
/* ===== HEADER LAYOUT ===== */
.site-header {
    background: #111;
    color: #fff;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

/* LEFT */
.header-left .site-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* CENTER SEARCH */
.header-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.header-search input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.header-search button {
    padding: 8px 14px;
    border: none;
    background: #f5c518;
    color: #000;
    font-weight: 700;;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* MENU */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
}

.main-menu a {
    color: #fff;
    font-size: 14px;
}

/* BUTTONS */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.btn-primary {
    background: #f5c518;
    color: #000;
}

.btn-outline {
    border: 1px solid #777;
    color: #000;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-search {
        max-width: 100%;
    }

    .header-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}
/* ===== LISTING GRID ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ===== CARD ===== */
.listing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* IMAGE */
.listing-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.no-image {
    height: 180px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* BODY */
.listing-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-title {
    font-size: 16px;
    margin: 0 0 6px;
}

.listing-title a {
    color: #111;
}

.listing-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: auto;
}

/* ACTIONS */
.listing-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

/* SIDEBAR */
.dashboard-sidebar {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
}

.dashboard-sidebar h3 {
    margin-top: 0;
    font-size: 15px;
    margin-bottom: 10px;
}

/* SIDEBAR MENU */
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 6px;
}

.dashboard-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    color: #111;
    font-size: 14px;
}

.dashboard-menu a:hover,
.dashboard-menu .active a {
    background: #111;
    color: #fff;
}

/* CONTENT */
.dashboard-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}

/* MOBILE */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}
/* ===== YARD BADGE ===== */
.yard-badge {
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.2;
    color: #fff;
    font-size: 12px;
    text-align: right;
}

.yard-name {
    font-weight: 700;;
    font-size: 13px;
}

.yard-code {
    font-size: 11px;
    color: #f5c518;
    letter-spacing: 0.5px;
}
/* ===== MESSAGES ===== */
.message-list {
    list-style: none;
    padding: 0;
}

.message-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}
/* ===== ADD LISTING FORM ===== */
.gt-form {
    max-width: 520px;
}

.gt-form .form-group {
    margin-bottom: 16px;
}

.gt-form label {
    display: block;
    font-weight: 700;;
    margin-bottom: 6px;
}

.gt-form select,
.gt-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.gt-form select:focus,
.gt-form input:focus {
    border-color: #f5c518;
    outline: none;
}

.gt-form button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;;
    cursor: pointer;
}
/* ===== ADD LISTING FORM ===== */
.gt-form {
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.three-col .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-weight: 700;;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group select,
.form-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #f5c518;
    outline: none;
}

/* BUTTON */
.gt-form .btn-primary {
    padding: 10px 18px;
    font-size: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}
/* ===== ADD LISTING FORM ===== */
.gt-add-listing-form {
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-3 .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}
.single-listing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.single-image img {
    width: 100%;
    border-radius: 6px;
}

.no-image {
    background: #eee;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.listing-specs {
    list-style: none;
    padding: 0;
}

.listing-specs li {
    margin-bottom: 6px;
}
/* ===== LISTING HERO IMAGE ===== */
.listing-hero {
    width: 100%;
    max-width: 700px;        /* controls size */
    aspect-ratio: 4 / 3;     /* GOOD automotive ratio */
    background: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
}

.listing-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* 🔑 prevents distortion */
    display: block;
}

/* Fallback */
.listing-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}
.listing-single {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .listing-single {
        grid-template-columns: 1fr;
    }
}
/* ===== INQUIRE FORM ===== */
.inquire-section {
    margin-top: 40px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    max-width: 700px;
}

.inquire-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* GRID FOR NAME + EMAIL */
.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;;
    margin-bottom: 6px;
    color: #333;
}

.inquiry-form input,
.inquiry-form textarea {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

.inquiry-form textarea {
    resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #f5c518;
    box-shadow: 0 0 0 2px rgba(245,197,24,0.2);
}

.inquiry-form .btn {
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 14px;
}

/* MOBILE */
@media (max-width: 600px) {
    .inquiry-grid {
        grid-template-columns: 1fr;
    }

    .inquire-section {
        padding: 18px;
    }
}
.inquire-disabled {
    padding: 15px;
    border: 1px dashed #ccc;
    background: #fafafa;
    color: #666;
    border-radius: 6px;
}
/* ===== MEMBERS GRID ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ===== MEMBER CARD ===== */
.member-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */
.member-header {
    background: #111;
    color: #fff;
    padding: 12px;
    font-weight: 700;
    font-size: 15px;
}

/* BODY */
.member-body {
    padding: 12px;
    font-size: 14px;
}

.member-row {
    margin-bottom: 6px;
}

.member-desc {
    margin-top: 10px;
    color: #555;
}

/* FOOTER */
.member-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}
/* ===== MEMBERS GRID ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== MEMBER CARD ===== */
.member-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

/* HEADER */
.member-header {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
}

/* BODY */
.member-body {
    padding: 14px 16px;
    font-size: 14px;
    color: #222;
}

.member-row {
    margin-bottom: 6px;
}

.member-address {
    font-weight: 700;
    margin-top: 10px;
    font-size: 13px;
    color: #444;
}

.member-phone {
    margin-top: 8px;
    font-weight: 700;;
    color: #000;
}

/* FOOTER */
.member-footer {
    padding: 12px 16px;
    background: #f7f7f7;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* BUTTON */
.member-btn {
    display: inline-block;
    background: #f5c518;
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;;
    text-decoration: none;
    transition: all .2s ease;
}

.member-btn:hover {
    background: #e6b800;
    color: #000;
}
/* ===== MEMBER BUSINESS CARD ===== */
.member-card {
    width: 320px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.member-header {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

/* BODY */
.member-body {
    padding: 14px 16px;
    font-size: 14px;
    color: #222;
}

.member-row {
    margin-bottom: 10px;
    line-height: 1.4;
}

.member-row a {
    color: #0a58ca;
}

/* ACTIONS */
.member-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #f7f7f7;
    border-top: 1px solid #ddd;
}

/* BUTTONS */
.member-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 700;;
    text-decoration: none;
}

/* MAP BUTTON */
.btn-map {
    background: #198754; /* green */
    color: #fff;
}

.btn-map:hover {
    background: #157347;
}

/* LISTINGS BUTTON */
.btn-listings {
    background: #f5c518; /* Gold-Ticket yellow */
    color: #000;
}

.btn-listings:hover {
    background: #e6b800;
}
/* ===== MEMBER BUSINESS CARD ===== */
.member-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    overflow: hidden;
    max-width: 360px;
}

/* HEADER */
.member-card-header {
    background: linear-gradient(135deg, #111, #2a2a2a);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

.member-name {
    margin: 0;
    font-size: 18px;
}

/* BODY */
.member-card-body {
    padding: 16px;
    font-size: 14px;
}

.member-row {
    margin-bottom: 8px;
}

.member-row strong {
    display: inline-block;
    width: 70px;
    color: #555;
}

/* FOOTER */
.member-card-footer {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.member-card-footer .btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;;
}

/* BUTTONS */
.btn-map {
    background: #f5c518;
    color: #000;
}

.btn-profile {
    background: #111;
    color: #fff;
}
/* ===== MEMBER CARD ===== */
.member-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    max-width: 520px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* LOGO */
.member-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: #eee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #777;
}

/* INFO */
.member-header {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.member-address {
    font-weight: 700;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.member-contact {
    font-size: 13px;
    margin-bottom: 10px;
}

/* ACTIONS */
.member-actions {
    display: flex;
    gap: 10px;
}

.member-actions a {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;;
}

/* BUTTONS */
.btn-map {
    background: #f5c518;
    color: #000;
}

.btn-profile {
    background: #111;
    color: #fff;
}
/* ===== YARD SITE ===== */
.yard-header {
    background: #111;
    color: #fff;
    padding: 30px 20px;
}

.yard-header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.yard-logo {
    max-height: 80px;
}

.yard-info-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}
body.yard-site {
    background: #f5f5f5;
}

.yard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.yard-header {
    background: white;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}
/* ===== YARD HEADER ===== */
.yard-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    background: white;
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* COLUMNS */
.yard-header-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LOGO */
.yard-logo-col {
    align-items: flex-start;
}

.yard-logo {
    max-width: 160px;
    height: auto;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
}

/* INFO */
.yard-info-col {
    text-align: center;
}

.yard-name {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.yard-address {
    margin-top: 6px;
    font-size: 14px;
    color: #ddd;
}

/* CONTACT */
.yard-contact-col {
    align-items: flex-end;
    font-size: 14px;
}

.yard-contact-col a {
    color: #f5c518;
    text-decoration: none;
}

/* ===== YARD MENU ===== */
.yard-nav {
    background: #111;
    border-radius: 10px;
    margin-bottom: 30px;
}

.yard-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 0;
    margin: 0;
}

.yard-nav a {
    color: #fff;
    font-weight: 700;;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
}

.yard-nav a:hover {
    background: #f5c518;
    color: #000;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .yard-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .yard-logo-col,
    .yard-contact-col {
        align-items: center;
    }
}
/* ===== YARD HEADER ===== */
.yard-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #000, #222);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
}

.yard-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yard-col-logo {
    align-items: flex-start;
}

.yard-col-info {
    text-align: center;
}

.yard-col-contact {
    align-items: flex-end;
    text-align: right;
}

.yard-logo {
    max-width: 180px;
    height: auto;
}

.yard-name {
    margin: 0;
    font-size: 28px;
}

.yard-address {
    margin: 6px 0 0;
    font-size: 15px;
    opacity: 0.9;
}

.yard-phone,
.yard-email {
    margin: 4px 0;
    font-size: 15px;
}

.yard-email a {
    color: #f5c518;
}

/* ===== YARD MENU ===== */
.yard-nav {
    background: #111;
    border-radius: 10px;
    margin-bottom: 25px;
}

.yard-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.yard-menu a {
    color: #fff;
    font-weight: 700;;
    padding-bottom: 4px;
}

.yard-menu a:hover {
    border-bottom: 2px solid #f5c518;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .yard-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .yard-col-logo,
    .yard-col-contact {
        align-items: center;
        text-align: center;
    }

    .yard-menu {
        flex-direction: column;
        gap: 12px;
    }
}
.yard-website {
    margin-top: 6px;
    font-size: 14px;
}

.yard-website a {
    color: #f5c518;
    text-decoration: none;
    font-weight: 500;
}

.yard-website a:hover {
    text-decoration: underline;
}
/* ===== MODAL ===== */
/*.gt-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}*/

.gt-modal-box {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 420px;
    border-radius: 6px;
}

.gt-modal textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 10px;
}

.gt-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

/*#gt-thankyou-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
*/
/*.gt-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 360px;
}*/
.gt-parts-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* GRID LAYOUT */
.gt-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* EACH CATEGORY BOX */
.gt-part-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* HEADER */
.gt-part-header {
    background: #f3f3f3;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* LIST */
.gt-part-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.gt-part-list li {
    font-size: 13px;
    padding: 2px 0;
}

.gt-part-list input {
    margin-right: 6px;
}

/* SUBMIT */
.gt-parts-submit {
    margin-top: 25px;
    text-align: center;
}
.gt-parts-wrapper {
    max-width: 1600px;
    margin: auto;
    padding: 20px;
}

.gt-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.gt-part-box {
    border: 1px solid #ccc;
    background: #fff;
}

.gt-part-header {
    background: #eee;
    padding: 6px 10px;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}

.gt-part-list {
    list-style: none;
    padding: 8px 10px;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    font-size: 12px;
}

.gt-part-list li {
    padding: 2px 0;
}

.no-parts {
    color: #888;
    font-style: italic;
}
.gt-ymm-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gt-ymm-bar select {
    padding: 6px;
    min-width: 140px;
}
/* FULL WIDTH TABLE */
.listing-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Columns */
.listing-table th,
.listing-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    text-align: left;
}

/* Image column */
.listing-table .col-image {
    width: 90px;
}

/* Thumbnail */
.listing-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background: #f3f3f3;
}

/* Title links */
.listing-table td a {
    font-weight: 700;;
    color: #1a1a1a;
    text-decoration: none;
}

.listing-table td a:hover {
    text-decoration: underline;
}

/* Section / Part styling */
.part-name {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}
.part-categories-page {
    padding: 30px;
}

.part-categories-page .page-title {
    margin-bottom: 30px;
    font-size: 28px;
}

.part-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.part-category-column {
    background: #fff;
    border-radius: 6px;
    padding: 15px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.part-category-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;;
}

.part-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.part-category-list li {
    margin: 6px 0;
}

.part-category-list a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.part-category-list a:hover {
    text-decoration: underline;
}
/* ===============================
   PART CATEGORIES – MASONRY GRID
================================ */

.gt-part-categories-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.gt-part-categories-page .page-title {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

/* Masonry-style grid */
.gt-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: minmax(10px, auto);
    gap: 20px;
    align-items: start;
}

/* Category card */
.gt-category-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 15px 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Parent title */
.gt-category-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    background: #e0e0e0;
    padding: 6px 8px;
    border-radius: 4px;
}

/* Child list */
.gt-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-category-list li {
    margin: 4px 0;
}

.gt-category-list a {
    text-decoration: none;
    color: #1a73e8;
    font-size: 14px;
}

.gt-category-list a:hover {
    text-decoration: underline;
}

/* Empty text */
.gt-empty {
    font-size: 13px;
    color: #777;
}
/* ===== PARTS CATEGORY MASONRY ===== */

.parts-category-page {
    padding: 30px;
}

.parts-category-page h1 {
    margin-bottom: 25px;
}

/* Masonry columns */
.masonry-columns {
    column-count: 4;
    column-gap: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-columns { column-count: 3; }
}
@media (max-width: 900px) {
    .masonry-columns { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-columns { column-count: 1; }
}

/* Card */
.category-card {
    break-inside: avoid;
    background: #fefefe;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Title */
.category-title {
    background: #e3e3e3;
    font-weight: 700;
    padding: 6px 10px;
    margin: -12px -14px 10px;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
}

/* List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin: 3px 0;
}

.category-list a {
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
}

.category-list a:hover {
    text-decoration: underline;
}
/* === MASONRY GRID === */
.parts-masonry {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .parts-masonry { column-count: 3; }
}
@media (max-width: 800px) {
    .parts-masonry { column-count: 2; }
}
@media (max-width: 500px) {
    .parts-masonry { column-count: 1; }
}

/* === CATEGORY CARD === */
.part-card {
    display: inline-block;
    width: 100%;
    background: #f7f7f7;
    border-radius: 8px;
    margin: 0 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    break-inside: avoid;
}

.part-card-title {
    background: #e6e6e6;
    padding: 10px 12px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

/* === PART LIST === */
.part-list {
    list-style: none;
    margin: 0;
    padding: 10px 12px;
}

.part-list li {
    margin: 6px 0;
}

.part-list a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0056b3;
    font-size: 14px;
}

.part-list a:hover {
    text-decoration: underline;
}

/* === COUNT BUBBLE === */
.part-count {
    background: #ffd200;
    color: #000;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}
/* === CATEGORY MASONRY === */
.category-masonry {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .category-masonry { column-count: 3; }
}
@media (max-width: 768px) {
    .category-masonry { column-count: 2; }
}
@media (max-width: 480px) {
    .category-masonry { column-count: 1; }
}

.category-card {
    break-inside: avoid;
    background: #fefefe;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.category-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.category-header h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin: 0 0 10px;
}

.count-bubble {
    background: #f5c400;
    color: #000;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.category-parts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-parts li {
    margin-bottom: 4px;
}

.category-parts a {
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    color:gray;
    display: flex;
    justify-content: space-between;
}

.category-parts a:hover {
    text-decoration: underline;
}

.category-parts .count {
    color: #777;
    font-size: 11px;
}
.listing-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.listing-cat-image {
    background: #f5f5f5;
}/* === LISTING CARD === */
.listing-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    align-items: stretch;
}

/* IMAGE */
.listing-image {
    flex: 0 0 120px;
    display: block;
}

.listing-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 8px;
}

/* CONTENT */
.listing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TITLE */
.listing-title {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 700;;
}

.listing-title a {
    color: #111;
    text-decoration: none;
}

.listing-title a:hover {
    text-decoration: underline;
}

/* SECTION / PART */
.listing-part-meta {
    font-size: 14px;
    color: #555;
}

.listing-section {
    display: block;
    font-weight: 700;;
    color: #333;
}

.listing-part {
    display: block;
    color: #666;
}

/* ACTIONS */
.listing-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #999;
    background: #fff;
}

.btn-primary {
    background: #f5c400;
    border: none;
    color: #000;
}

/* MOBILE */
@media (max-width: 640px) {
    .listing-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .listing-image img {
        width: 100px;
        height: 100px;
    }

    .listing-actions {
        justify-content: center;
    }
}
.listing-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    align-items: stretch;
}

.listing-thumb {
    flex: 0 0 140px;
    display: block;
}

.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f6f6f6;
}

.listing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing-title {
    font-size: 18px;
    margin: 0 0 6px;
}

.listing-title a {
    color: #111;
    text-decoration: none;
}

.listing-meta {
    margin-bottom: 10px;
}

.listing-section {
    display: block;
    font-weight: 700;;
    color: #555;
    font-size: 13px;
}

.listing-part {
    display: block;
    font-size: 15px;
    color: #000;
}

.listing-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Buttons */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #aaa;
    background: #fff;
}

.btn-primary {
    background: #f7c600;
    border: none;
    font-weight: 700;;
}
.gt-listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.gt-listings-table th,
.gt-listings-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

.gt-listings-table th {
    text-align: left;
    font-weight: 700;;
}

.gt-listings-table img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.col-title a {
    font-weight: 700;;
    color: #000;
    text-decoration: none;
}

.col-part strong {
    display: block;
}

.part-child {
    color: #666;
    font-size: 0.9em;
}
.col-yard{
    border: 1px;
    align-items: center;
}
.col-yard a {
    color: #c99700;
    text-decoration: none;
}
/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-sidebar {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 16px;
}

.dashboard-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}
/* ===== LISTING GRID ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== LISTING CARD ===== */
.listing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.listing-thumb img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f7f7f7;
}

.listing-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.dashboard-menu li {
    margin-bottom: 8px;
}

.dashboard-menu a {
    display: block;
    padding: 10px 12px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.dashboard-menu li.active a,
.dashboard-menu a:hover {
    background: #f5c400;
    color: #000;
}
.listing-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: #f5c400;
    color: #000;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
}
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .dashboard-content {
        order: 1;
    }
}
/* ===== SEARCH BAR WRAPPER ===== */
.gt-search-wrapper {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* ===== SEARCH FORM ===== */
.gt-search-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr auto;
    gap: 12px;
    align-items: center;
}

/* ===== INPUTS ===== */
.gt-search-input,
.gt-search-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
}

/* Placeholder */
.gt-search-input::placeholder {
    color: #777;
}

/* Focus */
.gt-search-input:focus,
.gt-search-select:focus {
    outline: none;
    border-color: #f5c400;
    box-shadow: 0 0 0 2px rgba(245,196,0,0.25);
}

/* ===== BUTTON ===== */
.gt-search-form button {
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #f5c400;
    color: #000;
    transition: background 0.2s ease;
}

.gt-search-form button:hover {
    background: #e6b800;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .gt-search-form {
        grid-template-columns: 1fr;
    }

    .gt-search-form button {
        width: 100%;
    }
}
/* ===== MODALS ===== */
.gt-modal {
    display: none;              /* 🔑 REQUIRED */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gt-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}


/*login css*/
/* ======================================================
   AHC AUTH FORMS (Login / Forgot / Reset Password)
   ====================================================== */

.ahc-login-form {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Field blocks */
.ahc-login-form .field {
  margin-bottom: 1rem;
}

/* Labels */
.ahc-login-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #374151;
}

/* Inputs */
.ahc-login-form input[type="text"],
.ahc-login-form input[type="email"],
.ahc-login-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Focus */
.ahc-login-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Submit row */
.ahc-login-form .submit-row {
  margin-top: 0.75rem;
}

/* Primary button */
.ahc-btn--primary {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;;
  color: #ffffff;
  background-color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ahc-btn--primary:hover {
  background-color: #1d4ed8;
}

/* Ghost link buttons */
.ahc-btn--ghost {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.ahc-btn--ghost:hover {
  text-decoration: underline;
}

/* Aux links */
.ahc-login-form .aux-links {
  display: flex;
  justify-content: center;
}

/* Mobile */
@media (max-width: 480px) {
  .ahc-login-form {
    padding: 1.25rem 1rem;
  }
}
.gt-listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gt-listings-table th,
.gt-listings-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.gt-listings-table th {
    text-align: left;
    background: #f9fafb;
    font-weight: 700;;
}

.gt-listings-table tr:hover {
    background: #f1f5f9;
}
.listing-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;   /* change to 1/1 or 16/9 if you want */
    overflow: hidden;
    background: #f3f4f6;  /* placeholder bg while image loads */
}
.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fills without stretching */
    object-position: center;
    display: block;
}
.gt-listings-table th:first-child,
.gt-listings-table td:first-child {
    width: 120px;          /* adjust: 60 / 80 / 100 */
    min-width: 120px;
    max-width: 120px;
}
.gt-listings-table td:first-child .listing-thumb,
.gt-listings-table td:first-child img {
    width: 100px;
    height: 100px;
}
.member-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    max-width: 520px;
}

/* LEFT: LOGO */
.member-logo {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

/* RIGHT: INFO */
.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* HEADER */
.member-header {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    letter-spacing: .3px;
}

/* ADDRESS */
.member-address {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

/* CONTACT */
.member-contact {
    font-size: 14px;
    color: #111;
}

.member-contact strong {
    font-weight: 700;;
}

.member-contact a {
    color: #2563eb;
    text-decoration: none;
}

.member-contact a:hover {
    text-decoration: underline;
}

/* ACTION BUTTONS */
.member-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.member-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

/* MAP BUTTON */
.btn-map {
    background: #facc15;
    color: #111;
}

.btn-map:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* PROFILE BUTTON */
.btn-profile {
    background: #111;
    color: #fff;
}

.btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
@media (max-width: 480px) {
    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-actions {
        width: 100%;
    }

    .member-logo {
        margin-bottom: 8px;
    }
}
.member-card {
    display: flex;
    flex-direction: column;   /* ⬅️ important */
    overflow: hidden;
}
.member-logo {
    width: 100%;
    height: 120px;            /* adjust: 100–160px */
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* use cover if you want cropping */
    padding: 10px;
}
.member-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.member-logo {
    border-bottom: 1px solid #e5e7eb;
}
.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; /* 👈 space between cards */
}
.member-card {
    margin-bottom: 20px;
}
.member-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;   /* 👈 important for cropping */
}
.member-logo {
    width: 100%;
    height: 140px;          /* adjust: 100–180px */
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 👈 crops height */
    object-position: center;
    display: block;
}
.member-info {
    padding: 16px;
}
/* Modal overlay */
.gt-modal {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0,0,0,0.6);
    display: none;               /* show with JS */
    align-items: center;         /* vertical center */
    justify-content: center;     /* horizontal center */
    z-index: 9999;
}

/* Modal box */
.gt-modal-box {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    animation: gtModalIn .2s ease-out;
}

/* Simple fade/scale animation */
@keyframes gtModalIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.listing-thumb-wrap {
    position: relative;
    display: block;
}

.listing-thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay label */
.no-photo-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Optional: make it more obvious */
/*.no-photo .no-photo-label {
    background: rgba(180, 0, 0, 0.75);
}*/
.listing-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.gt-listings-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

/* FILTER BAR */
.gt-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gt-filter-bar input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 160px;
}
.listing-thumb-wrap {
    position: relative;
}


.upload-photo-link {
    position: absolute;
    top: 8px;
    left: 50%;

    transform: translateX(-50%);
    border-radius: 6px;
    background: #f5c400;
    color: #000;
    padding: 6px 12px;
    font-weight: 700;;
    z-index: 2;
    cursor: pointer;
}
.upload-photo-link1 {
    position: absolute;
    top: 8px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 6px 12px;
    font-weight: 700;;
    z-index: 2;
    cursor: pointer;
}

/*upload modal*/

.gt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.gt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.gt-modal-box {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 1;
    text-align: center;
}

.gt-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.gt-upload-preview img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
}
/* FORCE MODAL VISIBILITY */
#gt-upload-modal {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    z-index: 999999 !important;
}

#gt-upload-modal.is-open {
    display: block !important;
}
/* ===== Upload Modal ===== */

#gt-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;              /* hidden by default */
}

#gt-upload-modal.is-open {
    display: block;             /* shown by JS */
}

.gt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.gt-modal-box {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 1;
}
.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.upload-modal.is-open {
    display: block;
}
.listing-thumb {
    position: relative;
}

/* Disable clicks on the link */
.listing-thumb {
    pointer-events: none;
}

/* Re-enable clicks on actual content */
.listing-thumb img,
.listing-thumb .upload-photo-link,
.listing-thumb .no-photo-label {
    pointer-events: auto;
}
.gt-edit-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

.gt-edit-form {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.gt-image-card {
    margin-bottom: 25px;
    text-align: center;
}

.gt-image-preview img {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.gt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gt-field label {
    font-weight: 700;;
    margin-bottom: 4px;
    display: block;
}

.gt-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.gt-actions {
    margin-top: 25px;
    text-align: right;
}

.gt-btn-primary {
    background: #0a58ca;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.gt-btn-primary:hover {
    background: #084298;
}
.gt-field-full {
    grid-column: 1 / -1;
}

.gt-field textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
/* ===== SINGLE LISTING LAYOUT ===== */

.gt-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.gt-single-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* ===== IMAGE CARD ===== */

.gt-single-media {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 16px;
}

.listing-thumb-wrap {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #eaeaea;
}

.listing-thumb-wrap img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fff;
}

/* Upload overlay */
/*.upload-photo-link,*/
.no-photo-label {
    position: absolute;
   /* bottom: 12px;*/
    right: 12px;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* ===== DETAILS ===== */

.gt-single-details {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.listing-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Specs list */
.listing-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.listing-specs li {
    font-size: 15px;
}

.listing-specs strong {
    color: #333;
}

/* Description */
.listing-description {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
    line-height: 1.6;
    color: #444;
}

/* ===== ACTIONS ===== */

.inquire-disabled,
.gt-single-actions {
    margin-top: 24px;
}

.inquire-disabled a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 700;;
}

button.gt-open-inquiry {
    /*margin-top: 22px;*/
    padding: 12px 22px;
    font-size: 16px;
    border-radius: 8px;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
    .gt-single-grid {
        grid-template-columns: 1fr;
    }

    .listing-thumb-wrap img {
        height: 240px;
    }
}
.listing-thumb-wrap.no-photo {
   /* height: 160px; */                /* ⬅ MUCH shorter */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    border: 2px dashed #ccc;
    border-radius: 12px;
    position: relative;
}
/* ===== LISTING ROW VIEW ===== */

.listing-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-row {
    display: grid;
    grid-template-columns:160px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.listing-row-image img {
    width:160px;
    height: 120px;
    object-fit: contain;
}

.row-no-image {
    width: 160px;
    height: 120px;
    background: #f1f1f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
}

.listing-row-title {
    font-weight: 700;;
    font-size: 15px;
    text-decoration: none;
    color: #000;
}

.listing-row-meta {
    font-size: 13px;
    color: #666;
}

.listing-row-part {
    font-size: 14px;
    font-weight: 500;
}
.listing-row {
    height: 120px;              /* ⬅ fixed row height */
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.listing-row-image img {
    max-height: 96px;
    width: auto;
    object-fit: contain;
}

.listing-row-main {
    overflow: hidden;
}

.listing-row-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =========================
   PAGINATION (BUTTON STYLE)
   ========================= */

.pagination {
    display: flex;
    justify-content: center;     /* center on page */
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Base button style */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;

    border-radius: 8px;
    background: #f1f1f1;
    color: #222;
    font-weight: 700;;
    font-size: 14px;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* Hover */
.pagination .page-numbers:hover {
    background: #f5c400;        /* theme gold */
    color: #000;
}

/* Current page */
.pagination .page-numbers.current {
    background: #f5c400;        /* theme gold */
    color: #000;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Next / Prev buttons */
.pagination .page-numbers.next,
.pagination .page-numbers.prev {
    padding: 0 18px;
}

/* Disabled state (if WP outputs it) */
.pagination .page-numbers.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 600px) {
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
/* =========================
   TEARDOWN TOP TOOLBAR
   ========================= */

.gt-teardown-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* YMM inline */
.gt-ymm-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gt-ymm-inline input,
.gt-ymm-inline select {
    height: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #bbb;
    min-width: 120px;
}

/* Actions inline */
.gt-teardown-actions-inline {
    display: flex;
    gap: 10px;
}

/* Make buttons visually equal height */
.gt-teardown-actions-inline .btn {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
    .gt-teardown-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gt-teardown-actions-inline {
        justify-content: flex-end;
    }
}
/* ================================
   Stacked Centered Filter Form
   ================================ */

.gt-filter-form {
    max-width: auto;
    margin: 40px auto;              /* center horizontally */
    display: flex;
    flex-direction: row;
    gap: 14px;                      /* spacing between fields */
}

.gt-filter-form select,
.gt-filter-form button {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 6px;
}

/* Make selects look consistent */
.gt-filter-form select {
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Button emphasis */
.gt-filter-form button {
    margin-top: 10px;
    font-weight: 700;;
}

/* Optional: mobile-friendly */
@media (max-width: 480px) {
    .gt-filter-form {
        max-width: 90%;
    }
}
.phone-icon {
    filter: invert(72%) sepia(38%) saturate(450%) hue-rotate(8deg);
}
.phone-icon {
    width: 25px!important;
    height: 25px!important;
    vertical-align: middle;
    margin-right: 6px;
    color: #d4af37; /* gold */
}
.yard-phone {
    color: #d4af37;
    font-weight: 600;
}
.gt-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    color: #d4af37; /* Gold-Carparts gold */
}
.dashboard-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.ebay-export-card h3 {
    margin-top: 0;
}

.ebay-export-card p {
    margin-bottom: 15px;
}
.gt-field input,
.gt-field select,
.gt-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.gt-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}
.gt-yard-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.gt-yard-card {
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.yard-name {
    margin: 0 0 10px;
}

.yard-meta div {
    margin-bottom: 6px;
}

.gt-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gt-listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.listing-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.listing-body {
    padding: 12px;
}

.no-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}
.yard-hero {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.yard-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.75),
        rgba(0,0,0,.35)
    );
}

.yard-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1100px;
    padding: 60px 40px;
    width: 100%;
}

.yard-name {
    font-size: 44px;
    margin-bottom: 10px;
}

.yard-location {
    font-size: 20px;
    opacity: .9;
    margin-bottom: 30px;
}

.yard-contact-info {
    max-width: 520px;
}

.yard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.yard-row .label {
    min-width: 90px;
    font-weight: 600;
    opacity: .85;
}

.yard-row a {
    color: #ffd400;
    text-decoration: none;
}

.yard-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.yard-btn {
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.yard-btn.primary {
    background: #ffd400;
    color: #000;
}

.yard-btn.secondary {
    border: 2px solid #fff;
    color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .yard-name {
        font-size: 32px;
    }

    .yard-row {
        flex-direction: column;
        gap: 4px;
    }

    .yard-actions {
        flex-direction: column;
        width: 100%;
    }

    .yard-btn {
        text-align: center;
    }
}

/*//////////////////////////////////*/
.gt-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.gt-modal.active {
    display: none;
}

.gt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
}

.gt-modal-box {
    position: relative;
    max-width: 520px;
    margin: 10vh auto;
    background: #257508;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    z-index: 2;
}

.gt-modal-box textarea {
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
}

.gt-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    color: #fff;
    font-size: 26px;
    border: none;
    cursor: pointer;
}

#gt-message-status {
    margin-top: 10px;
}
/*-----------------------------*/
/* 🔒 MODAL CLOSED BY DEFAULT */
#gt-message-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;            /* ← THIS IS THE KEY */
}

/* Backdrop */
#gt-message-modal .gt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

/* Modal box */
#gt-message-modal .gt-modal-box {
    position: relative;
    max-width: 520px;
    margin: 10vh auto;
    background: #257508;
    padding: 20px;
    border-radius: 6px;
}

/* ✅ OPEN STATE */
#gt-message-modal.active {
    display: block;
}
/*-----------------------------------*/
/* MAIN FORM STACK */
.gt-request-form {
    max-width: 520px;
    margin: 40px auto;          /* 👈 THIS CENTERS IT */
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* INPUTS + SELECTS */
.gt-request-form select,
.gt-request-form input {
    width: 100%;
    height: 44px;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
}

/* BUTTON */
#gt-open-message {
    margin-top: 10px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#gt-open-message:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.gt-parts-request h1 {
    text-align: center;
    margin-bottom: 30px;
}
