/* ═══════════════════════════════════════════
   URBAN TENANTS — base.css
   Replace your existing base.css with this
═══════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.9
    }

    50% {
        opacity: 0.15
    }
}

@keyframes twinkle2 {

    0%,
    100% {
        opacity: 0.4
    }

    50% {
        opacity: 1
    }
}

@keyframes twinkle3 {

    0%,
    100% {
        opacity: 0.7
    }

    50% {
        opacity: 0.1
    }
}

@keyframes moveClouds {
    from {
        transform: translateX(-150px)
    }

    to {
        transform: translateX(110vw)
    }
}

@keyframes floatA {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-18px)
    }
}

@keyframes floatC {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-9px)
    }
}

@keyframes floatD {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
    background: #0a1628;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3.2rem 2.5rem 0;
}

/* Stars */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.s1 {
    width: 2px;
    height: 2px;
    top: 8%;
    left: 15%;
    animation: twinkle 2.1s ease-in-out infinite;
}

.s2 {
    width: 1px;
    height: 1px;
    top: 12%;
    left: 40%;
    animation: twinkle2 1.7s ease-in-out infinite;
}

.s3 {
    width: 2px;
    height: 2px;
    top: 6%;
    left: 62%;
    animation: twinkle3 2.4s ease-in-out infinite;
}

.s4 {
    width: 1px;
    height: 1px;
    top: 18%;
    left: 75%;
    animation: twinkle 1.9s ease-in-out infinite;
}

.s5 {
    width: 2px;
    height: 2px;
    top: 9%;
    left: 88%;
    animation: twinkle2 2.6s ease-in-out infinite;
}

.s6 {
    width: 1px;
    height: 1px;
    top: 22%;
    left: 55%;
    animation: twinkle3 1.5s ease-in-out infinite;
}

.s7 {
    width: 2px;
    height: 2px;
    top: 5%;
    left: 30%;
    animation: twinkle 3.0s ease-in-out infinite;
}

.s8 {
    width: 1px;
    height: 1px;
    top: 15%;
    left: 92%;
    animation: twinkle2 2.0s ease-in-out infinite;
}

/* Moon */
.moon {
    position: absolute;
    top: 22px;
    right: 180px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5d77a;
    box-shadow: 0 0 18px 4px rgba(245, 215, 122, 0.25);
    pointer-events: none;
}

.moon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0a1628;
}

/* Clouds */
.cloud {
    position: absolute;
    top: 36px;
    pointer-events: none;
    opacity: 0.1;
}

.cloud-1 {
    left: -120px;
    animation: moveClouds 28s linear infinite;
}

.cloud-2 {
    left: 30%;
    top: 55px;
    animation: moveClouds 38s 12s linear infinite;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.2rem;
    animation: rise 0.5s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e8a020;
    display: inline-block;
}

.hero h1 {
    font-size: 33px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    animation: rise 0.6s 0.1s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero h1 em {
    color: #e8a020;
    font-style: normal;
}

.hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.75;
    margin-bottom: 1.8rem;
    animation: rise 0.6s 0.2s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Search form */
.hero-search {
    display: flex;
    width: 100%;
    max-width: 480px;
    animation: rise 0.6s 0.3s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.search-input {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.09);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #fff;
    font-size: 14px;
    padding: 0 18px;
    outline: none;
    transition: background 0.2s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.13);
}

.search-btn {
    height: 48px;
    padding: 0 22px;
    background: #e8a020;
    color: #0a1628;
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #f5b830;
}

/* ── SKYLINE ── */
.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 1;
}

.building {
    display: block;
}

.b-floatA {
    animation: floatA 4.5s ease-in-out infinite;
}

.b-floatB {
    animation: floatB 5.5s ease-in-out infinite;
}

.b-floatC {
    animation: floatC 3.8s ease-in-out infinite;
}

.b-floatD {
    animation: floatD 6.0s ease-in-out infinite;
}

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-bar {
    display: flex;
    background: #0d1f36;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.stat {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-right: 0.5px solid rgba(255, 255, 255, 0.06);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
}

.stat strong em {
    color: #e8a020;
    font-style: normal;
}

.stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ════════════════════════════════════════
   NOTIFICATION BAR
════════════════════════════════════════ */
.notif-wrap {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

.notif-bar {
    background: #fff;
    border: 0.5px solid rgba(232, 160, 32, 0.35);
    border-radius: 10px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notif-bar p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.notif-btn {
    font-size: 13px;
    padding: 8px 18px;
    background: #e8a020;
    color: #0a1628;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.notif-btn:hover {
    background: #f5b830;
}

/* ════════════════════════════════════════
   LISTINGS
════════════════════════════════════════ */
.listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.6rem 1.5rem 1rem;
}

.listings-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a2e;
}

.listings-header span {
    font-size: 13px;
    color: #888;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 3rem;
    font-size: 15px;
}

/* ── ROOM CARD ── */
.room-card {
    background: #fff;
    border-radius: 14px;
    border: 0.5px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    animation: fadeInUp 0.4s ease both;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

/* Stagger card animations */
.room-card:nth-child(1) {
    animation-delay: 0.00s;
}

.room-card:nth-child(2) {
    animation-delay: 0.07s;
}

.room-card:nth-child(3) {
    animation-delay: 0.14s;
}

.room-card:nth-child(4) {
    animation-delay: 0.21s;
}

.room-card:nth-child(5) {
    animation-delay: 0.28s;
}

.room-card:nth-child(6) {
    animation-delay: 0.35s;
}

.room-card:nth-child(7) {
    animation-delay: 0.42s;
}

.room-card:nth-child(8) {
    animation-delay: 0.49s;
}

.card-img-wrap {
    position: relative;
}

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

.card-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: #e8a020;
    color: #0a1628;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
}

.card-body {
    padding: 12px 14px 14px;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-loc {
    font-size: 11px;
    color: #999;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-rent {
    font-size: 16px;
    font-weight: 500;
    color: #0a1628;
}

.card-rent span {
    font-size: 11px;
    font-weight: 400;
    color: #bbb;
}

.card-btn {
    font-size: 11px;
    padding: 6px 13px;
    border-radius: 7px;
    border: 0.5px solid #0a1628;
    background: transparent;
    color: #0a1628;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.card-btn:hover {
    background: #0a1628;
    color: #fff;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 2.5rem 1.5rem 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .search-input {
        font-size: 13px;
    }

    .search-btn {
        padding: 0 16px;
        font-size: 13px;
    }

    .moon {
        right: 80px;
    }

    .stats-bar {
        flex-wrap: wrap;
    }

    .stat {
        min-width: 50%;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero {
        min-height: 360px;
    }

    .hero-search {
        flex-direction: column;
    }

    .search-input {
        border-right: 0.5px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .search-btn {
        border-radius: 10px;
        width: 100%;
    }

    .notif-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .moon {
        display: none;
    }
}