/* ═══════════════════════════════════════════════════════
   PLACES — Agerpix v2 Design System
   Place/location selector screen
   ═══════════════════════════════════════════════════════ */

.places {
    height: 100%;
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    background-image: url(../img/places_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.places_wp {
    height: 100%;
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    background: linear-gradient(
        135deg,
        rgba(22,47,38,0.88) 0%,
        rgba(26,77,62,0.75) 40%,
        rgba(0,0,0,0.45) 100%
    );
    backdrop-filter: blur(2px);
}

.places_scroll {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.places_scroll::-webkit-scrollbar { width: 5px; }
.places_scroll::-webkit-scrollbar-track { background: transparent; }
.places_scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.places_header {
    color: #fff;
    padding: 3rem 4rem 1.5rem;
    margin: auto;
}

.places_title {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font);
    position: relative;
    letter-spacing: -0.01em;
}

.places_content_wp {
    width: 100%;
    min-width: 100%;
}

.places_content_loader {
    width: 3em;
    height: 3em;
    background-image: url(../img/loading.gif);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 1em auto;
}

.places_content_inner {
    margin: auto 3.5rem;
    text-align: left;
    padding-bottom: 3rem;
}

.place {
    border-radius: var(--radius-lg, 12px);
    padding: 1.4rem 1.8rem;
    padding-right: 4rem;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 0.5rem;
    font-family: var(--font);
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.place:hover {
    background: url(../img/places_enter.png) no-repeat right 1.5em center;
    background-size: 1.6em;
    background-color: var(--color-primary, #1a4d3e);
    border-color: var(--color-primary-light, #25644f);
    transform: translateY(-1px);
}

.place_name {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.place_address_row {
    padding: 0.1em 0;
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 400;
}

.place_info {
    margin-top: 0.4em;
}

.place_type {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 2rem;
    font-size: 0.72rem;
    padding: 0.3em 0.75em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.place_area {
    margin-left: 0.7em;
    display: inline-block;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Fade gradients at top/bottom */
.places_content_gradients[side="top"] {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2em;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(22,47,38,0.6) 0%, transparent 100%);
    pointer-events: none;
}
.places_content_gradients[side="bottom"] {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2em;
    z-index: 1;
    background: linear-gradient(to top, rgba(22,47,38,0.6) 0%, transparent 100%);
    pointer-events: none;
}

/* Action buttons */
.places_close_session {
    position: absolute;
    right: 0;
    top: 0;
    height: 1.5em;
    width: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s;
}
.places_close_session:hover {
    background-color: rgba(255,255,255,0.1);
}
.places_close_session::before {
    font-family: "Font Awesome 5 Free";
    content: "\f2f5";
    font-weight: 900;
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
}
.places_close_session:hover::before {
    color: #fff;
}

.places_add_new {
    position: absolute;
    right: 1.5em;
    top: 0;
    background-image: url(../img/places_exit.png);
    background-size: 0.9em;
    background-position: center;
    background-repeat: no-repeat;
    height: 1em;
    width: 1em;
    cursor: pointer;
}

.places_search {
    position: absolute;
    right: 3em;
    top: 0;
    background-image: url(../img/places_exit.png);
    background-size: 0.9em;
    background-position: center;
    background-repeat: no-repeat;
    height: 1em;
    width: 1em;
    cursor: pointer;
}
