@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Playwrite+HU:wght@100..400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
html, body {
    width: 100vw;
    height: 100vh;
}
*/

.main {
    font-family: "Work Sans", sans-serif;
    justify-content: center;
    background-image: url('content/pictures/main-page.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 1000px;
    background-color: #393D3F;
}

.kinnisvara {
    font-family: "Work Sans", sans-serif;
    justify-content: center;
    background-image: url('content/pictures/kinnisvara-page3.png');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
    height: 1000px;
    background-color: #e4f1fd;
}

/* ----- background ----- */

/*
.background-index2 {
    background-color: #000;
    animation: flash 0.15s steps(1) 6;
}

.background-lingid {
    min-height: 100vh;
}

@keyframes flash {
    0%   { background-color: #161724; }
    50%  { background-color: #595db5; }
    100% { background-color: #161724; }
}
*/
/* ------------------------------------ */


/* ----- navigeerimismenüü ----- */

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    text-transform: uppercase;
    color: #FFFFFA;
    background-color: rgba(53, 73, 83, 0.7);
    padding: 10px 60px;
    font-family: "Work Sans", sans-serif;
}

.menu ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.menu ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-menu ul li a {
    display: block;
    position: relative;
    padding: 14px 20px;
    margin: 0 12px;
    color: #FFFFFA;
    text-decoration: none;
    font-size: 24px;
    /* animatsioon */
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* rõhutamise animatsioon */
.left-menu ul li a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFFFFA;
    transition: width 0.3s ease;
}

.left-menu ul li a:hover::after {
    width: 100%;
}

.menu ul li ul.dropdown li {
    display: block;

}

.menu ul li ul.dropdown {
    width: 100%;
    position: absolute;
    display: none;
    background-color: rgba(53, 73, 83, 0.7);
}

.menu ul li ul.dropdown li a {
    text-align: center;
    padding: 20px 0;
    display: block;
}

.menu ul li:hover ul.dropdown {
    display: block;
}

.logo a {
    text-decoration: none;
    color: #FFFFFA;
}

.right-menu li {
    margin: 0 6px;
}

.logform {
    display: flex;
    align-items: center;
}

.menu-button {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button img {
    width: 30px;
    height: 30px;
    display: block;
}

.menu-button:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logout-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logout-button img {
    width: 32px;
    height: 32px;
    display: block;
}

.logout-button:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ------------------------------------ */


/* ----- welcome ----- */

.welcome {
    font-family: "Source Code Pro", monospace;
    font-weight: 500;
    margin: 350px 0 400px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1050px;
    font-size: 48px;
    color: #242728;
    gap: 34px;
}

.welcome a {
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 26px;
    color: #FFFFFA;
    background-color: #546A7B;
    padding: 10px 40px;
    transition: background-color 0.3s ease;
    font-style: normal;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
}

.welcome a:hover {
    transition: background-color 0.3s ease;
    background-color: #73879a;
}

/* ------------------------------------ */


/* ----- main-info ----- */

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-100%);
    transition: all 1.5s;
}

.hidden2 {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1.5s;
    transition-delay: 1500ms;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.main-info {
    margin: 600px 200px 200px;
    text-align: justify;
    font-size: 36px;
    color: #FFFFFA;

}

/* ------------------------------------ */


/* ----- index vertical cards ----- */

.cards-vert {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
}

.card-vert {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 6px rgba(17, 17, 17, 0.8);
    margin: 20px 0;
    width: 400px;
}

.property-image-vert {
    width: 100%;
    height: 300px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image-vert img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info-vert {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.nimetus-vert {
    font-size: 24px;
    font-weight: bold;
    color: #393D3F;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.address-vert {
    color: #393D3F;
    text-transform: uppercase;
    font-size: 20px;
}

.price-vert {
    font-size: 36px;
    font-weight: 600;
    color: #62929E;
    margin: 30px 0 0 0;
}

.property-details-vert {
    display: flex;
    gap: 20px;
    margin: 4px 0 30px 0;
    align-items: center;
    color: #393D3F;
    font-size: 20px;
}

.rooms-vert {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

#room-icon-vert{
    width: 22px;
    height: 22px;
}

.buy-vert {
    background-color: #546A7B;
    color: #FFFFFA;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    transition: background-color 0.2s ease;
}

.buy-vert:hover {
    background-color: #6b8497;
    transition: background-color 0.2s ease;
}

/* ------------------------------------ */


/* ----- otsing ----- */

.search {
    max-width: 800px;
    margin: 120px auto 20px auto;
    /*position: relative;*/
}

.search-container {
    display: flex;
    background: #FBFDFF;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
}

#filter-button {
    background: #393D3F;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    position: relative;
}

#filter-button:hover {
    background: #4c5153;
    transition: background-color 0.2s ease;
}

#filter-button::before {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#filter-button img {
    width: 26px;
    height: 26px;
}

#otsisona {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    color: #666;
}

.search-form {
    display: flex;
    flex: 1;
}

#search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    color: #333;
    background: transparent;
}

#search-input::placeholder {
    color: #aaa;
}

#search-button {
    background: #546A7B;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background: #6b8497;
}

#search-button::before {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#search-button img {
    width: 26px;
    height: 26px;
}

#filter-panel {
    display: none;
    transition: all 0.3s ease;
}

#filter-panel.visible {
    display: block;
}

.filter-content {
    padding: 20px;
}

.filter-title {
    font-size: 24px;
    font-weight: bold;
    color: #393D3F;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.filter-option {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #393D3F;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    text-decoration: none;
}

.filter-option a {
    text-decoration: none;
}

.filter-option:hover {
    background-color: #f4f4f4;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-reset {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 650;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    background-color: #546A7B;
    color: #FFFFFA;
    text-decoration: none;
}

.btn-reset:hover {
    background-color: #6b8497;
}

.btn-apply {
    background-color: #546A7B;
    color: #FFFFFA;
    text-transform: uppercase;
}

/* ------------------------------------ */


/* ----- kinnisvara ----- */

.cards {
    display: flex;
    justify-content: center;
}

.card {
    display: flex;
    background: #fff;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    margin: 20px 0;
    width: 800px;
}

.ettevoteCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    margin: 20px 0;
    width: 700px;
    padding: 20px 0;
}

.property-image {
    width: 300px;
    height: 320px;
    background: #b9c7c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nimetus {
    font-size: 24px;
    font-weight: bold;
    color: #393D3F;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    letter-spacing: 1px;
}

.address {
    color: #393D3F;
    text-transform: uppercase;
    font-size: 20px;
}

.price {
    font-size: 36px;
    font-weight: 600;
    color: #62929E;
}

.property-details {
    display: flex;
    gap: 20px;
    margin: 4px 0 4px 0;
    align-items: center;
    color: #393D3F;
    font-size: 20px;
    justify-content: flex-end;
}

.rooms {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

#room-icon{
    width: 22px;
    height: 22px;
}

.buy-price {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.buy {
    background-color: #546A7B;
    color: #FFFFFA;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 4px 6px rgba(84, 106, 123, 0.5);
    transition: background-color 0.2s ease;
}

.buy:hover {
    background-color: #6b8497;
    transition: background-color 0.2s ease;
}

.muuda-input {
    background-color: #fff;
    padding: 10px 12px;
    border: 1px solid #292929;
    outline: none;
    width: 260px;
    font-size: 16px;
}

.suurusHind-input {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.property-info a {
    text-decoration: none;
    color: #393D3F;
    text-transform: uppercase;
}

.admin-links a {
    text-decoration: none;
    color: #393D3F;
    text-transform: uppercase;
}

.salvesta {
    margin: 18px 0 8px 0;
    color: #FFFFFA;
    text-transform: uppercase;
    font-size: 18px;
    padding: 12px 30px;
    background-color: #546A7B;
    transition: background-color 0.2s ease;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    border: none;
    width: 180px;
}

.salvesta:hover {
    background-color: #6b8497;
    transition: background-color 0.2s ease;
}

.salvestaKatkesta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.star img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.star.active img {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.ettevote {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}




/* ------------------------------------ */


/* ----- andmete lisamine ----- */

.andmed-lisamine {
    font-family: "Work Sans", sans-serif;
    justify-content: center;
    background-image: url('content/pictures/kinnisvara-page.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #e4f1fd;
}

.andmed-input {
    width: 700px;
    margin: 80px auto;
    padding: 90px 80px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.andmed-input h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #323638;
    text-transform: uppercase;
}

.andmed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #323638;
}

.form-group input[type="text"], input[type="number"], input[type="password"], select {
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.form-group input:focus, select:focus {
    border-color: #546A7B;
    outline: none;
}

.lisa-button {
    margin-top: 20px;
    background-color: #546A7B;
    color: #fff;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.lisa-button:hover {
    background-color: #6b8497;
}

.signup {
    text-align: center;
    /*text-decoration: none;*/
    color: #323638;
}

/* ------------------------------------ */


footer {
    text-align: center;
    background-color: #242728;
    color: #FFFFFA;
    padding: 16px;
    bottom: 0;
    text-transform: uppercase;
}