@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

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

body {
    /*font-family: "Montserrat", sans-serif;*/
    background-color: #263143;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 1000px) {
    body,
    p {
        font-size: 0.8rem;
    }

    input,
    textarea,
    select {
        font-size: 0.75rem;
    }
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1000px) {
    main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }
}

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

.active {
    font-weight: bolder !important;
}

.hidden {
    display: none !important;
}

.white {
    color: #FFFFFF;
}

.blue {
    color: #263143;
}

.center {
    margin: auto;
}

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

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

.w-10 {
    width: 10%;
    white-space: nowrap;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-70 {
    width: 70%;
}

.w-100 {
    width: 100%;
}

.white-space-nowrap {
    white-space: nowrap;
}

.display-inline-block {
    display: inline-block;
}

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

.flex-row {
    display: flex;
}

.gap-0 {
    gap: 0 !important;
}

.gap-0-5 {
    gap: 0.5rem !important;
}

.gap-1 {
    gap: 1rem !important;
}

.gap-2 {
    gap: 2rem !important;
}

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

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

.text-justified {
    text-align: justify;
    text-align-last: left;
}

.textbox {
    padding: 0.3rem 1rem;
    text-align: center;
    border-radius: 5px;
    font-size: 0.9rem;
}

.textbox-white {
    background-color: #FFFFFF;
    color: #000000;
    border: solid 2px #FFFFFF;
}

.textbox-white-border {
    background-color: #FFFFFF;
    color: #000000;
    border: solid 2px #263143;
    width: 15rem;
}

.btn {
    padding: 0.3rem 1rem;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

.btn-blue {
    background-color: #263143;
    color: #FFFFFF;
    border: solid 2px #263143;
}

.btn-blue:hover {
    color: #263143;
    background-color: #FFFFFF;
    border: solid 2px #263143;
}

.btn-green {
    background-color: green;
    color: #FFFFFF;
    border: solid 2px green;
}

.btn-green:hover {
    color: green;
    background-color: #FFFFFF;
    border: solid 2px green;
}

.btn-red {
    background-color: red;
    color: #FFFFFF;
    border: solid 2px red;
}

.btn-red:hover {
    color: red;
    background-color: #FFFFFF;
    border: solid 2px red;
}

.btn-white {
    background-color: white;
    color: #263143;
    border: solid 2px white;
}

.btn-white:hover {
    color: white;
    background-color: #263143;
    border: solid 2px white;
}

.btn-transparent {
    border: none;
    background-color: transparent;
}

.btn-transparent:hover {
    cursor: pointer;
}

.btn-delete {
    background-color: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.btn-delete:hover {
    background-color: rgba(255, 0, 0, 0.9);
}

.btn-delete:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.text-red,
.link-red {
    color: red;
    font-size: small;
}

.text-black,
.link-black {
    color: #000000;
    font-size: small;
}

.link-blue {
    color: blue;
}

.link-white,
.link-red,
.link-black,
.link-blue {
    text-decoration: underline;
    cursor: pointer;
}

.grayed-out {
    color: #B4B4B4;
}

.bold {
    font-weight: 600;
}

.font-weight-normal {
    font-weight: normal;
}

.font-size-0-9 {
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem 1rem 5rem;
    box-shadow: rgba(14, 30, 37, 0.12) 0 2px 4px 0, rgba(14, 30, 37, 0.32) 0 2px 16px 0;
    background-color: #FFFFFF;
    gap: 1rem;
}

@media (max-width: 1000px) {
    .navbar {
        padding: 1rem;
    }
}

.logo {
    max-width: 10rem;
}

@media (max-width: 1000px) {
    .logo {
        max-width: 7rem;
    }
}

.menu-section {
    display: flex;
}

.menu-section > ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 1000px) {
    .menu-section > ul {
        gap: 0.5rem
    }
}

.dropdown {
    position: relative;
    display: flex;
    width: fit-content;
    flex-direction: column;
}

.profile-btn {
    cursor: pointer;
    display: flex;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 120%;
    right: 0;
    width: fit-content;
    align-items: center;
    border-radius: 0.5rem;
    overflow: hidden;
    z-index: 1000;
    background-color: #FFFFFF;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .dropdown-menu a {
        font-size: 0.8rem;
    }
}

.dropdown-menu.hidden {
    display: none;
}

.nav-item,
.footer-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #263143;
    /*font-family: "Roboto", sans-serif;*/
}

@media (max-width: 1000px) {
    .nav-item,
    .footer-text {
        font-size: 0.8rem;
    }
}

/* Main */
.page-container {
    width: 70%;
    margin: auto;
}

@media (max-width: 1000px) {
    .page-container {
        width: 90%;
    }
}

/* Login and Register */
#login_form {
    gap: 1rem;
    text-align: center;
}

.login-row {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.login-left-column {
    width: 50%;
    text-align: right;
}

@media (max-width: 1000px) {
    .login-left-column {
        width: 30%;
    }

}

.login-right-column {
    width: 50%;
    text-align: left;
}

@media (max-width: 1000px) {
    .login-right-column {
        width: 70%;
    }

}

.login-input {
    width: 70%;
}

@media (max-width: 1000px) {
    .login-input {
        width: 90%;
    }
}

#login_form button {
    margin: 1rem 0;
}

/* Card */
.card {
    display: flex;
    gap: 2rem;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    border-radius: 5px;
    padding: 1rem;
}

@media (max-width: 1000px) {
    .card {
        padding: 0.5rem;
    }
}

/* Card properties */
.offers-card-container {
    display: flex;
    gap: 2rem;
    width: 100%;
}

@media (max-width: 1000px) {
    .offers-card-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.user-list-card-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
}

@media (max-width: 1000px) {
    .user-list-card-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}


.image-section {
    display: flex;
    align-items: center;
    width: calc(30% - 1rem);
}

@media (max-width: 1000px) {
    .image-section {
        width: 100%;
    }
}

.image-section img {
    min-width: 50%;
    max-width: 100%;
}

.content-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(70% - 1rem);
    gap: 1rem;
}

@media (max-width: 1000px) {
    .content-section {
        width: 100%;
    }
}

.content-section > .content-header {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1000px) {
    .content-section > .content-header {
        flex-direction: column;
        gap: 1rem;
    }
}

.content-section > .content-description,
.content-section > .content-contact{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .content-section > .content-description,
    .content-section > .content-contact{
        font-size: 0.7rem;
        flex-direction: column;
    }
}

.content-description > .column {
    width: calc(50% - 0.5rem);
}

@media (max-width: 1000px) {
    .content-description > .column {
        width: auto;
    }
}

.content-row {
    display: flex;
    gap: 1rem;
    width: 50%;
}

@media (max-width: 1000px) {
    .content-row {
        width: 100%;
    }
}

.content-section > .content-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.content-section > .content-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

@media (max-width: 1000px) {
    .content-section > .content-footer {
        flex-direction: column;
        font-size: 0.7rem;
    }
}

.content-footer-column {
    display: flex;
    width: 30%;
    gap: 1rem;
}

@media (max-width: 1000px) {
    .content-footer-column {
        width: 100%;
    }
}

/* Add property page */
.property-main {
    width: 70%;
    margin: auto;
}

@media (max-width: 1000px) {
    .property-main {
        width: 100%;
    }
}

.property-input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.property-input {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.property-input-line {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.property-input-left-column {
    width: 30%;
    text-align: right;
}

.property-input-right-column {
    width: 70%;
    text-align: left;
}

.property-input-fill-long {
    width: 70%;
}

@media (max-width: 1000px) {
    .property-input-fill-long {
        width: 90%;
    }
}

.property-input-fill-mid {
    width: 50%;
}

.property-input-fill-small {
    width: 20%;
}

@media (max-width: 1000px) {
    .property-input-fill-small {
        width: 30%;
    }
}

/* Company page */
.company-logo-section {
    display: flex;
    align-items: center;
    width: calc(20% - 1rem);
    margin: auto;
}

@media (max-width: 1000px) {
    .company-logo-section {
        width: 70%;
    }
}

.company-logo-section img{
    min-width: 50%;
    max-width: 100%;
    margin: auto;
}

.company-content-section {
    width: calc(80% - 1rem) !important;
}


.logo-container {
    margin: auto;
    padding-top: 1rem;
}

.logo-container > img {
    max-width: 20vw;
    max-height: 10vw;
    height: auto;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .logo-container > img {
        max-width: 50vw;
        max-height: 30vw;
    }
}


/* Properties page */
.page-title {
    margin-bottom: 2rem;
}

.offer-list-section,
.filter-sort-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    padding-bottom: 2rem;
    width: 70%;
}

@media (max-width: 1000px) {
    .filter-sort-section,
    .offer-list-section{
        width: 90%;
    }
}

.filter-sort-section .card {
    flex-direction: column;
    gap: 1rem;
}

.filter-sort-section .row {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: space-between;
}

.filter-sort-section label {
    padding-right: 0.5rem;
}

.filter-section {
    margin-top: 1rem;
}

.filter-items-container {
    display: flex;
    width: 100%;
    text-align: center;
}

@media (max-width: 1000px) {
    .filter-items-container {
        flex-direction: column;
        gap: 1rem;
    }

}

.filter-item {
    width: 50%;
    max-width: 50%;
    display: flex;
}

@media (max-width: 1000px) {
    .filter-item {
        width: 100%;
        max-width: 100%;
    }
}

.filter-left-column {
    width: 45%;
    text-align: right;
}

@media (max-width: 1000px) {
    .filter-left-column {
        width: 35%;
    }
}

.filter-right-column {
    width: 50%;
    text-align: left;
    flex-grow: 1;
}

@media (max-width: 1000px) {
    .filter-right-column {
        width: 65%;
    }
}

#filter-input {
    width: 20rem;
}

/*Pagination*/
.page-select-container {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    background-color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    border-radius: 5px;
    padding: 1rem;
}

@media (max-width: 1000px) {
    padding: 0.5rem;
    font-size: 0.8rem;
}

.pagination a {
    padding: 0.5rem;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .pagination a {
        padding: 0.2rem;
    }
}

.pagination .current-page {
    padding: 0.5rem;
    font-weight: bold;
}

@media (max-width: 1000px) {
    .pagination .current-page {
        padding: 0.2rem;
    }
}

/* Property page */

.page-heading,
.images-section,
.info-section,
.comments-section,
.buttons-section {
    width: 100%;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.images-section {
    gap: 2rem;
    justify-content: space-between;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    gap: 1rem;
}

.info-left-column {
    width: 30%;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .info-left-column {
        width: 35%;
        flex-wrap: wrap;
        white-space: normal;
    }
}

.info-right-column {
    width: 60%;
}

.price-column {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 1000px) {
    .price-column {
        flex-direction: column;
        gap: 0;
    }
}

.page-heading > h1 {
    padding: 0;
}

.image-container {
    width: 100%;
    height: 28rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1000px) {
    .image-container {
        height: 16rem;
    }
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.glide__arrow {
    color: #263143;
    font-weight: bolder;
    border: none;
    background-color: transparent;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
}

.glide__arrow--left {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 10;
}

@media (max-width: 1000px) {
    .glide__arrow--left {
        left: 5px;
    }
}

.glide__arrow--right {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 10;
}

@media (max-width: 1000px) {
    .glide__arrow--right {
        right: 5px;
    }
}

.upload-image-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 1000px) {
    .upload-image-form {
        flex-direction: column;
        align-items: center;
    }

    .upload-image-form > * {
        width: 100%;
    }
}

.custom-file-upload {
    display: inline-block;
    cursor: pointer;
}

#carousel-status {
    font-size: 0.9rem;
    color: #B4B4B4;
    padding: 0.5rem;
}

#delete-picture-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    width: 100%;
    border: solid 1px black;
    border-radius: 5px;
    padding: 1rem;
}

@media (max-width: 1000px) {
    .comment-item {
        font-size: 0.7rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.comment-col-name,
.comment-col-date {
    width: 20%;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .comment-col-name {
        width: 60%;
        flex-grow: 1;
    }

    .comment-col-date {
        width: 30%;
        flex-grow: 1;
    }
}

.comment-col-comment {
    width: 60%;
}

@media (max-width: 1000px) {
    .comment-col-comment {
        width: 100%;
    }
}

.add-comment-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.add-comment-section > details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-comment-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 1000px) {
    .add-comment-form {
        flex-direction: column;
    }
}

.page-container .buttons-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.page-container .buttons-section > div {
    width: calc(50% - 0.5rem);
    text-align: center;
}

@media (max-width: 1000px) {
    .page-container .buttons-section .btn {
        padding: 0.5rem;
    }
}

#modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 20px;
    margin: 15% auto;
    width: 300px;
    border-radius: 8px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: space-evenly;
}

/* Footer */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 1rem 5rem 1rem 5rem;
    box-shadow: rgba(14, 30, 37, 0.12) 0 2px 4px 0, rgba(14, 30, 37, 0.32) 0 2px 16px 0;
    background-color: #FFFFFF;
}

.footer > p {
    color: #263143;
}


