@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');


/* ========================================
   1. GLOBAL COLOURS AND BASE STYLES
======================================== */

:root {
    --bg: #141414;
    --panel: #1c1c1c;
    --ink: #f0eeeb;
    --muted: #aaa7a2;
    --accent: #d1b48d;
    --line: #383633;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Barlow, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

h2 {
    margin: 0;
}

.wrap {
    width: min(1390px, calc(100% - 9%));
    margin: auto;
}

.graffiti {
    font-family: 'Permanent Marker', 'Arial Black', cursive;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}


/* ========================================
   2. NAVIGATION
======================================== */

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 15px #0003;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    gap: 20px;
}

.brand {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 16px;
    color: var(--accent);
}

.brand span {
    color: var(--muted);
}

.links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.links a {
    padding: 5px 0;
    font-weight: 600;
    font-size: 17px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.4s ease;
}

.links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.links .login-link {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    color: var(--accent);
    border-radius: 4px;
}

.links .login-link:hover {
    background: #303030;
}


/* ========================================
   3. HERO SECTION
======================================== */

.hero {
    width: 100%;
    min-height: clamp(430px, 49vw, 760px);
    position: relative;
    display: flex;
    align-items: center;

    background-color: var(--bg);

    background-image:
        linear-gradient(
            90deg,
            #141414 0%,
            rgba(20, 20, 20, .92) 12%,
            rgba(20, 20, 20, .60) 28%,
            rgba(20, 20, 20, .08) 51%,
            transparent 68%
        ),
        linear-gradient(
            0deg,
            #141414 0%,
            rgba(20, 20, 20, .25) 16%,
            transparent 36%
        ),
        url('assets/hero.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-copy {
    padding: 40px 0 65px;
}

.hero h1 {
    margin: 0;
    max-width: 43%;
    text-shadow: 2px 3px 12px #000;
}

.hero-name {
    display: block;
    font-size: clamp(36px, 5.4vw, 80px);
    color: var(--ink);
    line-height: 1.02;
}

.motel {
    display: block;
    font-size: clamp(38px, 5vw, 74px);
    letter-spacing: 4px;
    color: var(--accent);
    width: max-content;
    margin: 5px 0 0;
    text-shadow: 2px 3px #151515;
}


/* ========================================
   4. RENTAL SECTION LAYOUT
======================================== */

.section,
#home {
    scroll-margin-top: 12px;
}

.section {
    padding: 31px 0 22px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 45px);
}

.rooms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

#apartments,
#storefront {
    margin-top: 48px;
    padding-top: 12px;
}

.storefront-section {
    padding-bottom: 28px;
}

.rental-list {
    display: grid;
    gap: 35px;
}


/* ========================================
   5. RENTAL CARDS
======================================== */

.room {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 5px 18px #0004;

    transition: border-color 0.8s ease,
                box-shadow 0.8s ease;
}

.room:hover {
    border-color: rgba(209, 180, 141, 0.45);
    box-shadow: 0 0 8px rgba(209, 180, 141, 0.15);
}


/* Property image */

.room img {
    display: block;
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
}


/* Property information */

.room-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
    text-align: center;
}


/* Rental price and prim count */

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 16px;
}

.room-meta strong {
    color: var(--accent);
    font-size: 22px;
}

.room-meta small {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.room-meta .prim-count {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}


/* Property details */

.rental-details {
    text-align: left;
    border-top: 1px solid #ffffff15;
    padding-top: 14px;
    margin-bottom: 18px;
    flex: 1;
}

.property-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin: 0 0 16px;
}

.property-facts div {
    min-width: 0;
}

.property-facts dt,
.property-description h4 {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin: 0 0 5px;
}

.property-facts dd {
    font-size: 15px;
    color: var(--ink);
    margin: 0;
    overflow-wrap: anywhere;
}


/* Property description */

.property-description {
    border-top: 1px solid #ffffff15;
    padding-top: 13px;
}

.property-description p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}


/* ----------------------------------------
   COMPACT MOTEL ROOM CARDS
---------------------------------------- */

#rooms .room img {
    aspect-ratio: 1.8;
    object-position: center 44%;
}

#rooms .room-info {
    padding: 12px 15px 14px;
}

#rooms .room-meta {
    margin: 5px 0 9px;
}

#rooms .rental-details {
    padding-top: 8px;
    margin-bottom: 10px;
}

#rooms .property-facts {
    gap: 7px 12px;
    margin-bottom: 9px;
}

#rooms .property-facts dt,
#rooms .property-description h4 {
    margin-bottom: 3px;
}

#rooms .property-description {
    padding-top: 8px;
}

#rooms .property-description p {
    line-height: 1.35;
}


/* ----------------------------------------
   APARTMENTS AND STOREFRONTS
---------------------------------------- */

.apartment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.apartment-photo {
    position: relative;
    min-height: 280px;
}

.apartment-photo img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    aspect-ratio: auto;
}

.apartment .room-info {
    padding: 25px;
    min-width: 0;
}


/* ========================================
   6. BUTTONS AND RENTAL STATUS
======================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid #75654e;
    border-radius: 5px;
    padding: 12px 22px;
    color: #e7d7c0;
    background: #242424;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background .2s;
}

.button:hover {
    background: #303030;
}

.visit-inworld[aria-disabled="true"] {
    cursor: not-allowed;
}


/* Rental status */

.status {
    display: block;
    text-align: center;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    border-radius: 5px;
    padding: 4px 8px;
    letter-spacing: .4px;
}

.available {
    background: #344834;
    color: #d5e8c7;
}

.rented {
    background: #633b35;
    color: #f9d6c9;
}

.pending {
    background: #333;
    color: #ddd;
}


/* Rental card action buttons */

.room-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.room-actions .status,
.room-actions .button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.2;
    padding: 9px 8px;
    min-width: 0;
}

#rooms .room-actions .status,
#rooms .room-actions .button {
    padding-block: 8px;
}


/* ========================================
   CONTACT US
======================================== */

.contact-section {
    margin-top: 70px;
    margin-bottom: 70px;
}

.contact-section .section-head h2 {
    font-size: clamp(28px, 3.4vw, 45px);
}

.managers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
    max-width: 750px;
    margin: 30px auto 0;
}

.manager-card {
    background: #1c1c1c;
    border: 1px solid #333333;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* PROFILE PHOTO */

.manager-photo {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #526b57;
    margin-bottom: 18px;
}

/* MANAGER NAME */

.manager-card h3 {
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 8px;
}

/* MANAGER TITLE */

.manager-title {
    font-size: 16px;
    color: #aaaaaa;
    margin: 0 0 20px;
}

/* CONTACT BUTTON */

.manager-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 25px;
    background: #526b57;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #607b65;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.manager-contact:hover {
    background: #657f6a;
    color: #ffffff;
}


/* ========================================
   7. FOOTER
======================================== */

.centered-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
    background: var(--bg);
    padding: 0 18px;
    margin-top: 60px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: var(--muted);
}


/* Footer navigation */

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    width: 100%;
    padding: 17px 12px 24px;
    color: var(--ink);
}

.footer-links a:hover {
    color: var(--accent);
}


/* Copyright */

.copyright {
    display: block;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 20px 10px;
    font-size: 16px;
    color: var(--muted);
}

.trademark {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    padding: 0 10px 20px;
}


/* ========================================
   8. LOGIN PAGE
======================================== */

.login-main {
    max-width: 520px;
    margin: 70px auto;
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

.login-brand {
    font-size: 32px;
    color: var(--accent);
}

.login-main h1 {
    font-size: 36px;
}

.login-main p {
    color: var(--muted);
    line-height: 1.6;
}

.login-main .button {
    margin-top: 18px;
}

.login-main label {
    display: block;
    text-align: left;
    margin: 16px 0 6px;
}

.login-main input {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
}

.login-main button:disabled {
    opacity: .5;
    cursor: not-allowed;
    background: transparent;
}


/* ========================================
   9. RESPONSIVE LAYOUT
======================================== */


/* ----------------------------------------
   SMALL DESKTOPS
---------------------------------------- */

@media (max-width: 1050px) {

    .links {
        gap: 20px;
    }

    .room-actions {
        gap: 6px;
    }

    .room-actions .status,
    .room-actions .button {
        font-size: 15px;
        padding: 8px 5px;
    }

}


/* ----------------------------------------
   TABLETS
---------------------------------------- */

@media (max-width: 850px) {

    html {
        scroll-padding-top: 155px;
    }

    .sticky-nav .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
        min-height: 0;
    }

    .sticky-nav .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .sticky-nav .links a {
        padding: 8px 0;
        font-size: 14px;
    }

    .sticky-nav .links .login-link {
        padding: 8px 14px;
    }

    .hero {
        background-position: center, center, 62% center;
    }

    .rooms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-main {
        margin: 32px auto;
    }

}


/* ----------------------------------------
   SMALL TABLETS AND LARGE PHONES
---------------------------------------- */

@media (max-width: 650px) {

    .wrap {
        width: calc(100% - 32px);
    }

    .nav {
        flex-direction: column;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rooms {
        gap: 20px 14px;
    }

    #apartments,
    #storefront {
        margin-top: 32px;
    }

    .room-meta {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .room-meta strong {
        font-size: 18px;
    }

    .room-meta .prim-count {
        font-size: 17px;
    }

    .room-actions {
        flex-wrap: wrap;
    }

    .room-actions .status,
    .room-actions .button {
        flex: 1 1 auto;
        font-size: 14px;
    }

    .centered-footer {
        padding: 0 10px;
        font-size: 14px;
    }

    .footer-links {
        gap: 14px 18px;
        padding: 17px 12px 24px;
    }


    .copyright {
        font-size: 11px;
        line-height: 1.5;
    }

}


/* ----------------------------------------
   MOBILE PHONES
---------------------------------------- */

@media (max-width: 560px) {

    .hero {
        min-height: 420px;
        align-items: flex-end;

        background-image:
            linear-gradient(
                90deg,
                #14141490,
                transparent 65%
            ),
            linear-gradient(
                0deg,
                #141414 0%,
                #141414bb 30%,
                transparent 75%
            ),
            url('assets/hero.jpg');

        background-size: cover;
        background-position: center, center, 72% center;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero-copy {
        padding: 20px 0 28px;
    }

    .hero-name {
        font-size: 42px;
    }

    .motel {
        font-size: 36px;
    }

    .rooms,
    .apartment {
        grid-template-columns: 1fr;
    }

    .apartment-photo {
        min-height: 230px;
    }

    .room-info,
    .apartment .room-info {
        padding: 17px;
    }

    .room-actions {
        flex-wrap: nowrap;
    }

}

/* ========================================
   CONTACT US - MOBILE
======================================== */

@media (max-width: 600px) {

    .managers-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 20px;
    }

    .manager-card {
        padding: 25px;
    }

    .manager-photo {
        width: 180px;
        height: 180px;
    }

}

/* ----------------------------------------
   ACCESSIBILITY - REDUCED MOTION
---------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}