body{
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

button{
    border-style: none;
    border-radius: 8px;
}

.textcenter{
    text-align: center;
    align-self: center;
}

/* --- home button --- */

#homeBtn {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 600;
    background: rgba(75, 11, 11, 0.85);
    color: white;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 125ms;
}

#homeBtn:hover {
    background: rgba(75, 11, 11, 1);
}

/* --- callback page --- */

.callbackPage {
    padding: 32px 24px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.callbackPage h1 { margin: 0 0 8px; }

.callbackContext { color: #555; margin-bottom: 20px; }

.callbackError { color: #c00; margin-bottom: 12px; font-size: 0.9rem; }

.callbackForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.callbackRow { display: flex; gap: 16px; }

.callbackField { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.callbackField label { font-size: 0.85rem; font-weight: 600; color: #444; }

.callbackField input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.callbackForm button[type='submit'] {
    align-self: flex-start;
    padding: 10px 28px;
    background: rgb(150, 20, 20);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 125ms;
}

.callbackForm button[type='submit']:hover { background: rgb(120, 10, 10); }

.callbackThanks { text-align: center; margin-top: 60px; }

.callbackThanks h1 { margin-bottom: 12px; }

.callbackThanks p { color: #555; margin-bottom: 24px; }

@media (max-width: 480px) {
    .callbackRow { flex-direction: column; gap: 12px; }
}

/* --- catalog grid --- */

.catalogPage {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.catalogHeader {
    margin-bottom: 24px;
}

.catalogHeader h1 {
    margin: 4px 0 8px;
}

.catalogDescription {
    color: #555;
    margin: 0;
}

.equipGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.equipCard {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 150ms, transform 150ms;
}

.equipCard:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    transform: translateY(-2px);
}

.equipCardImage {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

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

.equipCardPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ccc;
    background: #f5f5f5;
    text-transform: uppercase;
}

.equipCardBody {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.equipCardName {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.equipCardCat {
    font-size: 0.78rem;
    color: #999;
}

.equipCardRate {
    font-size: 0.82rem;
    color: rgb(140, 20, 20);
    font-weight: 500;
    margin-top: 4px;
}

.catalogSearch {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.catalogSearch input {
    flex: 1;
    max-width: 360px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-size: 0.9rem;
}

.catalogSearch button {
    padding: 6px 16px;
    background: rgb(150, 20, 20);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
}

.catalogSearch button:hover {
    background: rgb(120, 10, 10);
}

.catalogClearSearch {
    font-size: 0.82rem;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

.catalogEmpty {
    color: #aaa;
    text-align: center;
    margin-top: 60px;
    font-style: italic;
}

/* --- equipment page --- */

.equipPage {
    padding: 24px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.equipBreadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.equipBreadcrumb a {
    color: #888;
    text-decoration: none;
}

.equipBreadcrumb a:hover {
    text-decoration: underline;
}

.equipMain {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.equipImage {
    flex: 0 0 340px;
}

.equipImage img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.equipImagePlaceholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9rem;
}

.equipDetails {
    flex: 1;
}

.equipDetails h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.equipBadge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.equipBadge.available {
    background: #d4edda;
    color: #276133;
}

.equipBadge.unavailable {
    background: #f8d7da;
    color: #7a2027;
}

.equipBadge.unpublished {
    background: #fff3cd;
    color: #856404;
}

.equipDescription {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.equipRates {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.equipRates th, .equipRates td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.equipRates thead tr {
    background: #f7f7f7;
}

.equipCallbackBtn {
    display: inline-block;
    background: rgb(150, 20, 20);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 125ms;
}

.equipCallbackBtn:hover {
    background: rgb(120, 10, 10);
}

@media (max-width: 640px) {
    .equipMain {
        flex-direction: column;
    }
    .equipImage {
        flex: none;
        width: 100%;
    }
}

#primarySearchBar{
    position: relative;
}

a.catalogBtn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 6px 0;
    width: 30% !important;
    height: auto !important;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 125ms;
}

a.catalogBtn:hover {
    background: rgba(255, 255, 255, 0.30);
}

#searchDropdown{
    position: absolute;
    top: calc(100% + 4px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 100;
    overflow: hidden;
}

#searchDropdown:empty{
    display: none;
}

#searchDropdown li{
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
}

#searchDropdown li:hover{
    background: #f0f0f0;
}