a {
    color: inherit;
    text-decoration: none;
}
h1, h2, h3 {
    line-height: 1.2;
    margin: 10px;
}
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/background.jpg') center/cover no-repeat;
    color: #fff;
}

.hero-bg select,
.hero-bg input,
.hero-bg textarea {
    color: #000;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Honeypot — invisible to real users */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form__error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.contact-form__errors {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* ── FAQ Accordion ── */
.faq {
    border-bottom: 1px solid var(--color-gray-01, #d2d2d2);
}

.faq__question {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__question::marker,
.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::before {
    content: '+';
    display: inline-block;
    width: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

details[open] > .faq__question::before {
    content: '−';
}

.faq__answer {
    padding: 0 0 1rem 1.5rem;
}

main {
    max-width: 1800px;
    margin: 0 auto;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Cards */
.card { color: white; }

/* Search form selects — Method has no form control classes, so we define these */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.search-form__fields {
    width: 100%;
    max-width: 720px;
    justify-content: center;
}

.search-form__select {
    flex: 1 1 180px;
    padding: 0.375rem 0.5rem;
    font: inherit;
    font-size: 0.875rem;
    border: 1px solid var(--color-gray-300, #d1d5db);
    border-radius: var(--radius-md, 0.375rem);
    background-color: #fff;
    color: inherit;
    cursor: pointer;
    appearance: auto;
}

.search-form__select:focus {
    outline: 2px solid var(--color-primary, #1a3c1a);
    outline-offset: 2px;
}

/* ── Listing filter: desktop select vs mobile button ── */
.listing-filter--desktop { display: none; }
.listing-filter--mobile  { display: inline-block; }

@media (min-width: 758px) {
    .listing-filter--desktop { display: flex; gap: .5rem; align-items: center; }
    .listing-filter--mobile  { display: none; }
}

.listing-filter__btn {
    padding: .625rem 1.25rem;
    font: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-gray-300, #d1d5db);
    border-radius: var(--radius-md, .375rem);
    background: #fff;
    cursor: pointer;
}

/* ── Mobile modal ── */
.listing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    transition: visibility .2s;
}
.listing-modal[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}
.listing-modal[aria-hidden="false"] {
    visibility: visible;
}

.listing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.listing-modal[aria-hidden="true"] .listing-modal__backdrop { opacity: 0; }
.listing-modal[aria-hidden="false"] .listing-modal__backdrop { opacity: 1; transition: opacity .2s; }

.listing-modal__panel {
    position: relative;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .75rem .75rem 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform .25s ease;
}
.listing-modal[aria-hidden="false"] .listing-modal__panel {
    transform: translateY(0);
}

.listing-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.listing-modal__header h2 { margin: 0; font-size: 1.25rem; }

.listing-modal__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem;
}

.listing-modal__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.listing-modal__link {
    display: block;
    padding: .75rem 1rem;
    border-radius: var(--radius-md, .375rem);
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
}
.listing-modal__link:hover { background: var(--color-gray-01, #d2d2d2); }
.listing-modal__link--active {
    background: var(--color-primary, #ed1c24);
    color: #fff;
}

.listing-modal__body .search-form__select {
    padding: 0.25rem 0.4rem;
    font-size: 0.8125rem;
    min-height: 0;
    height: auto;
    line-height: 1.4;
}

@media (min-width: 758px) {
    .listing-modal { display: none; }
}

/* ── Listing detail table ── */
.listing-details table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 1rem;
    background-color: #ed1c24;
}
.listing-details tr {
    border-bottom: 1px solid var(--color-gray-01, #d2d2d2);
}

.listing-details th,
.listing-details td {
    padding: .75rem 1rem;
    text-align: left;
}

.listing-details th {
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    width: 1%;
}

.listing-details td {
    color: #FFFFFF;
}

/* ── Listing detail layout ── */
.listing-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

@media (min-width: 758px) {
    .listing-detail-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .listing-detail-layout > .listing-details {
        flex: 1 1 0%;
    }
    .listing-detail-layout > .listing-detail-contact {
        flex: 1 1 0%;
    }
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination__info {
    font-size: 0.875rem;
}

.listing-images {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding: 20px;
}
.listing-images img {
    width: 100%;
    max-width: 600px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md, .375rem);
    object-fit: cover;
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox[aria-hidden="false"] {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md, .375rem);
}
.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}