@import url("https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
}

:root {
    --nav-height: 84px;
    --side-margin: 32px;
    --side-margin-small: 16px;
    --border-color: #efefef;
    --primary-blue: #3f66ed;
    --links-height: 400px;
}

html,
body {
    min-height: 100vh;
}

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

.standard-link {
    color: revert; /* blue for unvisited, purple for visited */
    text-decoration: revert; /* underlined */
    cursor: revert;
}

.d-flex {
    display: flex;
}

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

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.p-half {
    padding: 0.5rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.px-1 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pl-1 {
    padding-left: 1rem;
}

.pt-half {
    padding-top: 0.5rem;
}

.pt-1 {
    padding-top: 1rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.my-1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-half {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-half {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.ml-1 {
    margin-left: 1rem;
}

.ml-2 {
    margin-left: 2rem;
}

.ml-half {
    margin-left: 0.5rem;
}

.mr-half {
    margin-right: 0.5rem;
}

.mr-1 {
    margin-right: 1rem;
}

.mr-2 {
    margin-right: 2rem;
}

.h-100 {
    height: 100%;
}

.side-margin {
    margin-left: var(--side-margin);
    margin-right: var(--side-margin);
}

.fw-bold {
    font-weight: bold;
}

.d-none {
    display: none;
}

.h-0 {
    height: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.btn {
    padding: 0.6rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-secondary {
    background: #efefef;
    color: #5f6071;
}

.btn-green {
    background: #06895b;
    color: white;
}

.btn-danger {
    background: #ed3f3f;
    color: white;
}

.btn-primary-border {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: white;
}

.btn-green-border {
    border: 1px solid #06895b;
    color: #06895b;
    background: white;
}

.text-white {
    color: white;
}

.text-light {
    color: #1e1e38;
}

.text-red {
    color: red;
}

.text-green {
    color: #43a538;
}

.text-blue {
    color: var(--primary-blue);
}

.text-muted {
    color: rgba(0, 0, 0, 0.47);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.w-100 {
    width: 100%;
}

.position-relative {
    position: relative;
}

.bg-grey {
    background: #f1f1f1;
}

.main-nav {
    height: var(--nav-height);
    border-bottom: 1px solid var(--border-color);
}

.hero-container,
.about-hero-container {
    /* background-image: url("/static/images/hero_bg.jpg"); */
    background-color: #0c132d;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; /* Centers the image */
}

.hero-container {
    background-image: url("/static/images/hero_bg.jpg");
}

.about-hero-container {
    background-image: url("/static/images/about_bg.jpg");
}

.text-center {
    text-align: center;
}

.hero,
.about-hero {
    width: 60%;
    text-align: center;
    color: white;
}

.hero {
    min-height: 70vh;
}

.about-hero {
    height: 50vh;
}

.hero h1,
.about-hero h1,
.hero-heading {
    font-size: 3rem;
}

.hero p,
.about-hero p,
.hero-p {
    font-size: 1.5rem;
}

.hero button {
    font-size: 1.2rem;
}

.sub-hero {
    padding: 5rem 0;
}

.hero-card-grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hero-card {
    padding: 2rem;
    border-radius: 5px;
    background: var(--primary-blue);
    color: white;
    min-height: 300px;
}

.hero-card-green {
    background: #06895b;
}

.listing-card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
    /* max-width: 330px; */
    border-radius: 12px;
}

.price {
    background: #e1ece0;
    padding: 0.3em;
    border-radius: 5px;
}

.listing-image-container {
    height: 300px;
    /* height: auto; */
    width: 100%;
}

.listing-image-container img, .listing-image-detail img {
    width: 100%; /* Image takes the full width of its container */
    height: 100%;
    object-fit: cover;
}
.listing-image-container img {
    width: 100%; /* Image takes the full width of its container */
    height: 100%;
    object-fit: cover;
}

.listings-grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.search-options {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
}

.search-input {
    border: 1px solid var(--border-color);
    background: #efefef;
    padding: 1rem;
    border-radius: 40px;
    width: 30%;
    position: relative;
}

.search-input input {
    border: none;
    outline: none;
    background: #efefef;
    width: 100%;
    border: 1px solid var(--border-color);
    font-size: 20px;
}

.search-button {
    position: absolute;
}

.search-icon {
    position: absolute;
    right: 20px;
    cursor: pointer;
}

.search-pill,
.category-pill {
    border-radius: 40px;
    background: #e3e9ff;
    border: 1px solid var(--primary-blue);
    font-weight: normal;
    padding: 0.2rem 1.2rem;
    cursor: pointer;
}

.category-pill {
    width: fit-content;
}

.search-selects select,
.form-select {
    padding: 0.8rem;
    color: var(--primary-blue);
    font-weight: bold;
    border: 1px solid var(--primary-blue);
    background: white;
    border-radius: 5px;
    margin-right: 1rem;
}

.category-link {
    color: var(--primary-blue);
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.categories-grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.create-form,
.auth-form {
    width: 50%;
}

.form-group label {
    font-weight: bold;
    font-size: 1.125rem;
}

.form-input {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    font-size: 1.125rem;
    border-radius: 8px;
}

.form-input:focus {
    outline: 1px solid var(--primary-blue);
}

.listing-form-container {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.search-icon {
    position: absolute;
}

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

.listing-img {
    width: 100%;
    /* height: 600px; */
    height: auto;
    border-radius: 12px;
    /* max-width: 600px;
    max-height: 600px; */
    object-fit: cover;
}

.hamburger-menu {
    display: none;
    /* position: relative; */
    cursor: pointer;
    z-index: 2;
    border-bottom: 1px solid #e7e7e7;
    border-top: 1px solid #e7e7e7;
}

.hamburger-links {
    position: absolute;
    background: #f5f5f5;
    width: 100vw;
    right: 0;
    text-align: center;
    height: 0;
    overflow: hidden;
    /* transition: max-height 0.8s ease; */
}

.links-height {
    /* min-height: var(--links-height); */
    height: auto;
}

.hamburger-link {
    padding: 1rem 2rem;
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
}

.hamburger-link:hover {
    background: #e3e2e2;
}

#image-preview {
    object-fit: cover;
}

.reply {
    background: #f5f5f5;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.account-info {
    background: #efefef;
    border: 1px solid #dbdbdb;
    /* width: 50%; */
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 6px;
}

.page {
    background: #e7e7e7;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin-right: 0.8rem;
}

.page-current {
    background: var(--primary-blue);
    border: none;
    color: white;
    font-weight: bold;
}

.faq {
    background: #f1f1f1;
    border-radius: 4px;
    padding: 2rem;
}

.text-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notification {
    /* position: absolute; */
    /* bottom: 1rem; */
    border-radius: 6px;
}

.notification-success {
    background: #06895b;
}

.notification-info {
    background: #065f89;
}

.remember-me-checkbox {
    margin-left: 0.5rem;
    margin-top: 0.1rem;
    display: block;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
}

.tab {
    display: block;
}

@media (max-width: 1208px) {
    .search-options {
        display: block;
    }

    .search-selects {
        row-gap: 10px;
        margin-top: 1rem;
    }

    .search-input {
        width: 100%;
    }
}

/* large breakpoint */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero {
        width: 90%;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .create-form, .auth-form {
        width: 90%;
    }

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

/* breakpoint for hamburger menu */
@media (max-width: 576px) {
    .side-margin {
        margin-left: var(--side-margin-small);
        margin-right: var(--side-margin-small);
    }

    .hero-heading {
        font-size: 2rem;
    }

    .tab {
        width: 100%;
        margin-left: 0;
    }
}
