/* ===============================
   Full-screen setup
================================ */
body, html {
    height: 100%;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        rgba(2, 0, 36, 1) 0%,
        rgba(130, 130, 254, 1) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===============================
   Logo styling
================================ */
#logo {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    height: 20vh;
    width: 20vh;
    z-index: 10;
}

/* ===============================
   City Row Wrapper (Horizontal Scroll)
================================ */
#city-row-wrapper {
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    margin-top: auto;
    padding-bottom: 10px;
}

/* ===============================
   City Row Container
================================ */
#city-row-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5vw;
    padding-left: 2vw;
    padding-right: 2vw;
    height: 50vh;
    flex-wrap: nowrap;
}

/* ===============================
   Individual City Card
================================ */
.city-wrapper {
    height: 25vh;
    width: 22vw;
    background: center / cover no-repeat;
    border: 1px solid bisque;
    border-radius: 6px;

    display: flex;
    align-items: flex-end;        /* 🔑 text sticks to bottom */
    justify-content: center;

    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* ===============================
   City Name Overlay (NO OVERLAP)
================================ */
.city-wrapper .city-overlay {
    width: 100%;
    padding: 10px 12px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );

    color: #fff;
    text-align: center;
    font-family: 'Anuphan', sans-serif;
    font-weight: 500;

    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.25;

    white-space: normal;          /* 🔑 allow wrapping */
    word-break: break-word;

    border-radius: 0 0 6px 6px;
}

/* ===============================
   Scrollbar Styling
================================ */
#city-row-wrapper::-webkit-scrollbar {
    height: 8px;
}

#city-row-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

#city-row-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
}

/* ===============================
   General Text
================================ */
p {
    color: white;
    font-family: 'Anuphan', sans-serif;
    margin: 0;
}

/* ===============================
   Tablet & Mobile Responsive
================================ */
@media (max-width: 768px) {

    #logo {
        top: 14vh;
        height: 18vh;
        width: 18vh;
    }

    #city-row-container {
        gap: 5vw;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .city-wrapper {
        height: 22vh;
        width: 70vw;   /* 🔑 wider cards = no text clash */
    }

    .city-wrapper .city-overlay {
        font-size: clamp(14px, 3vw, 18px);
    }
}
