.hero {
    position: relative;
    isolation: isolate;
    min-height: 55vh;
    background: #1b263b;
}

/* Four photos side by side, each an equal share of the hero (2x2 on phones),
   cropped to fill their cell. minmax(0, 1fr) and overflow: hidden keep a tall
   photo from stretching its row past the hero. The navy overlay keeps the
   text readable. */
.hero-images {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    overflow: hidden;
}

.hero-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-images::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.6);
}

@media (max-width: 767.98px) {
    .hero-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Map markers: amber airport dots and navy cluster badges, brand colors.
   The compound selectors outrank Leaflet's `.leaflet-marker-icon { display:
   block }`, which loads after this file and would break the centering. */
.leaflet-marker-icon.airport-marker,
.leaflet-marker-icon.airport-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
}

.airport-marker {
    background: #ffc107;
    color: #1b263b;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.airport-cluster {
    background: #1b263b;
    color: #ffc107;
    border: 2px solid #ffc107;
    border-radius: 50%;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-autocomplete] .ac-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 0.25rem;
    text-align: left;
}

/* Honeypot field of anti-spam forms (pages/antispam.py). Off screen rather
   than display: none, which some bots detect and skip. */
#div_id_website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Listing form: draggable photo tiles; only the first one carries the
   "cover photo" badge */
.photo-tile {
    position: relative;
    width: 120px;
    text-align: center;
    cursor: grab;
}

.photo-tile img {
    display: block;
    width: 120px;
    height: 90px;
    object-fit: cover;
    pointer-events: none;
}

.photo-cover {
    display: none;
    position: absolute;
    top: 4px;
    left: 4px;
}

.photo-tile:first-child .photo-cover {
    display: inline-block;
}

.photo-tile.sortable-ghost {
    opacity: 0.4;
}

/* Profile photo, or the owner's initials on the brand navy when there is none.
   --avatar-size is set per use (profile header, listing detail, settings). */
.profile-avatar {
    width: var(--avatar-size, 88px);
    height: var(--avatar-size, 88px);
    flex: none;
    object-fit: cover;
    border: 2px solid #ffc107;
}

.profile-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1b263b;
    color: #ffc107;
    font-weight: 600;
    /* initials scale with the circle */
    font-size: calc(var(--avatar-size, 88px) * 0.38);
    line-height: 1;
    user-select: none;
}
