@font-face {
    font-family: 'SamsungGothicCondensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/SamsungGothicCondensed-Light.otf') format('opentype');
}

@font-face {
    font-family: 'SamsungGothicCondensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/SamsungGothicCondensed-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'SamsungGothicCondensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/SamsungGothicCondensed-Medium.otf') format('opentype');
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: #17233d;
    background: #f6f8fc;
    font-family: Arial, 'Malgun Gothic', sans-serif
}

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

button,
input,
textarea,
select {
    font: inherit
}

button,
.button {
    cursor: pointer;
    border: 0;
    border-radius: 9px;
    background: #183c88;
    color: white;
    padding: 11px 17px;
    display: inline-block
}

button.danger {
    background: #8c3040
}

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

.top {
    background: white;
    border-bottom: 1px solid #e3e7ee
}

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

.logo {
    width: 210px;
    max-width: 55vw
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center
}

.nav a:hover {
    color: #b11b40
}

.hero {
    background: linear-gradient(105deg, #101e52, #173f9b);
    color: white;
    padding: 66px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center
}

.hero h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.17;
    margin: 12px 0
}

.hero p {
    line-height: 1.7
}

.hero img {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    border-radius: 14px
}

.eyebrow {
    color: #a5c6ff;
    letter-spacing: .15em
}

.section {
    padding: 62px 0
}

.section h2 {
    font-size: 30px;
    margin: 0 0 8px
}

.muted {
    color: #65728b;
    line-height: 1.65
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 27px
}

.card {
    background: white;
    border: 1px solid #e1e6ee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px #142c5708
}

.photo {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f4f9;
    color: #8893a7
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px
}

.card-body {
    padding: 20px
}

.tag {
    color: #234c99;
    font-size: 13px;
    font-weight: bold
}

.card h3 {
    min-height: 52px;
    font-size: 17px
}

.price {
    font-size: 22px;
    font-weight: bold
}

.price small {
    font-size: 12px;
    color: #6a7790
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px
}

.detail .photo {
    height: 440px;
    border-radius: 15px
}

.panel {
    background: white;
    border: 1px solid #e0e5ef;
    border-radius: 14px;
    padding: 28px;
    margin: 25px auto
}

.table-wrap {
    overflow-x: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 630px
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #e5e9f1;
    padding: 14px
}

td img {
    width: 65px;
    height: 60px;
    object-fit: contain
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.actions form {
    margin: 0
}

label {
    display: block;
    margin: 17px 0 6px;
    font-weight: bold
}

input:not([type=checkbox]),
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd4e2;
    border-radius: 8px;
    background: white
}

textarea {
    min-height: 105px;
    resize: vertical
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 20px 0
}

.check input {
    width: 18px;
    height: 18px
}

.check label {
    margin: 0
}

.flash {
    background: #e9f3ff;
    padding: 12px;
    border-radius: 8px
}

footer {
    background: #101c35;
    color: #c5d0e2;
    padding: 35px 0;
    margin-top: 50px
}

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

    .hero-grid,
    .detail {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 45px 0
    }

    .hero img {
        max-height: 240px
    }

    .top .wrap {
        flex-wrap: wrap;
        padding: 14px 0
    }

    .nav {
        flex-wrap: wrap
    }
}

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

    .photo {
        height: 230px
    }

    .section {
        padding: 40px 0
    }

    .nav {
        font-size: 13px;
        gap: 12px
    }

    .detail .photo {
        height: 300px
    }
}

body {
    font-family: 'SamsungGothicCondensed', Arial, 'Malgun Gothic', sans-serif;
    font-synthesis: none
}

button,
input,
select,
textarea {
    font-family: inherit
}

/* Login and shared administration navigation. */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 15%, #e8edff, transparent 42%), #f5f7fb;
    padding: 36px 20px;
}

.login-home {
    display: block;
    max-width: 1080px;
    margin: 0 auto;
    color: #526078;
    font-size: 14px;
}

.login-card {
    max-width: 460px;
    margin: 60px auto 24px;
    padding: 44px;
    background: white;
    border: 1px solid #e3e8f1;
    border-radius: 20px;
    box-shadow: 0 24px 70px #1428a014;
}

.login-logo {
    width: 200px;
    max-width: 100%;
    margin-bottom: 34px;
}

.login-eyebrow {
    color: #1428a0;
    font-size: 11px;
    letter-spacing: .16em;
    margin: 0 0 12px;
}

.login-card h1 {
    margin: 0 0 12px;
    font-weight: 500;
    font-size: 30px;
}

.login-form {
    margin-top: 28px;
}

.login-form label {
    display: block;
    margin: 20px 0 8px;
    color: #263249;
}

.login-form input:not([type=hidden]) {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dbe1eb;
    border-radius: 8px;
}

.login-form button {
    width: 100%;
    margin-top: 24px;
    min-height: 50px;
    background: #1428a0;
}

.login-form button span {
    float: right;
}

.login-error {
    background: #fff1f1;
    color: #a62838;
    padding: 14px;
    line-height: 1.5;
    font-size: 14px;
    border-radius: 8px;
}

.login-help {
    margin: 24px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #778399;
}

.login-copyright {
    text-align: center;
    font-size: 11px;
    letter-spacing: .08em;
    color: #7c8799;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand span {
    border-left: 1px solid #dfe4ee;
    padding-left: 14px;
    font-size: 12px;
    color: #6c7890;
    white-space: nowrap;
}

.logout-button {
    background: #eef1f7;
    color: #39465e;
    font-size: 12px;
    padding: 9px 14px;
}

.nav form {
    margin: 0;
}

@media (max-width: 700px) {
    .login-card {
        padding: 28px;
        margin-top: 36px;
    }

    .admin-top .wrap {
        flex-wrap: wrap;
        padding: 18px 0;
    }

    .admin-top .nav {
        flex-wrap: wrap;
        gap: 14px;
        font-size: 13px;
    }
}

[data-rental-fields][hidden], [data-sale-fields][hidden] { display:none !important; }
