/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    font-size: 10px;
}
/*
    2. Remove default margin
  */
* {
    margin: 0;
}
/*
    3. Allow percentage-based heights in the application
  */
html,
body {
    height: 100%;
    --fontPrimary: 'Montserrat', sans-serif;
    --fontSecondary: 'Lato', sans-serif;
    --colorPurple: #8a2d87;
    --colorBlack: #000000;
    --colorWhite: #ffffff;
    --colorGrey1: #909090;
    --colorGrey2: #686666;
    --colorGrey3: #dbdbdb;
}
/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
  */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
    font: inherit;
}
/*
    8. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
/*
    9. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.mainContent {
    margin-top: 3.8rem;
    padding: 1.6rem 1.6rem 10rem 1.6rem;
    width: 100%;
    z-index: 1;
}

.appHeader {
    display: flex;
    height: 3.8rem;
    width: 100%;
    position: fixed;
    z-index: 10000;
    align-items: center;
    width: 100%;
    padding-right: 1.6rem;
    padding-left: 1.6rem;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
    background: var(--colorWhite);
}

.appHeaderItems {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo {
    display: inline-block;
    line-height: 0.11rem;
    cursor: pointer;
    padding-top: 0.26rem;
    padding-bottom: 0.26rem;
}

.appTitle {
    flex: 1;
    margin: auto 1.6rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--colorGrey2);
    font-family: var(--fontPrimary);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
}

.title {
    width: 344px;
    color: var(--colorGrey1);
    margin-bottom: 1.6rem;
    font-family: var(--fontPrimary);
    font-style: normal;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 3.2rem;
    letter-spacing: -0.12rem;
}

.title b {
    color: var(--colorBlack);
    font-size: inherit;
}

.bodyText {
    font-family: var(--fontSecondary);
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--colorBlack);
    padding-bottom: 1.6rem;
}

.bodyText b {
    font-size: inherit;
}

.primaryButton {
    color: var(--colorWhite);
    height: 4.4rem;
    margin: 0;
    padding: 0 1.2rem;
    font-weight: 700;
    font-size: 1.6rem;
    font-family: var(--fontPrimary);
    line-height: 2rem;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    background: var(--colorPurple);
    border-style: solid;
    border-width: 0.1rem;
    border-radius: 0.2rem;
    outline: none;
    cursor: pointer;
    min-width: 13.6rem;
}

.primaryButton:disabled {
    color: var(--colorWhite);
    background: var(--colorGrey1);
    border: none;
    cursor: not-allowed;
}

.formInput {
    background: var(--colorWhite);
    border: 0.1rem solid var(--colorGrey1);
    border-radius: 2px;
    height: 4.4rem;
    width: 100%;
    padding: 1.6rem;
    color: var(--colorBlack);
    font-family: var(--fontSecondary);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    outline: none;
}

.formInput:focus {
    border: 0.3rem solid var(--colorPurple);
}

.inputGroup {
    margin-bottom: 1.6rem;
    position: relative;
}

.suggestionList {
    list-style: none;
    z-index: 1000;
    position: absolute;
    left: 0;
    top: 3.8rem;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0rem -0.8rem 1rem rgba(0, 0, 0, 0.08);
    background: var(--colorWhite);
    border-left: 0.1rem solid var(--colorGrey1);
    border-right: 0.1rem solid var(--colorGrey1);
}

.suggestionList li {
    margin: 0;
    padding: 0;
    display: block;
    font-weight: 700;
    font-size: 1.6rem;
    font-family: var(--fontSecondary);
    line-height: 2rem;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
    width: 100%;
    padding: 1rem 1.6rem;
    border-bottom: 0.1rem solid var(--colorGrey1);
}

.textRadioGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.textRadio {
    display: block;
    position: relative;
    height: 5.5rem;
    width: 100%;
}

.textRadio input[type='radio'] {
    display: none;
}

.textRadio label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    top: 0;
    text-align: center;
    line-height: 5.5rem;
    font-family: var(--fontSecondary);
    font-weight: 400;
    font-size: 2.1rem;
    color: var(--colorPurple);
    border-radius: 0.5rem;
    border: 0.1rem solid var(--colorGrey3);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.16);
    width: 100%;
}

.textRadio input[type='radio']:checked + label {
    border: 0.3rem solid var(--colorPurple);
    line-height: 5.1rem;
}

.addLocationForm {
    margin-bottom: 2rem;
}

.locationsSelected {
    padding-bottom: 2rem;
}

.locationsSelected .location {
    position: relative;
    display: block;
    width: 100%;
    padding: 2rem 5.2rem 2rem 5.2rem;
    background-image: url('/pin.svg');
    background-size: 2.2rem 3.2rem;
    background-position: 1.6rem 2rem;
    background-repeat: no-repeat;
    border: 0.1rem solid var(--colorGrey3);
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.locationsSelected .location .locationText,
.locationsSelected .location .locationText span {
    font-size: 1.6rem;
    font-family: var(--fontPrimary);
    font-weight: 700;
    color: var(--colorBlack);
}

.locationsSelected .location .remove {
    position: absolute;
    right: 2rem;
    top: 2rem;
    border: 0;
    outline: 0;
    background-color: transparent;
    background-image: url('/remove.svg');
    background-repeat: no-repeat;
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
}

.propertyTypeList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.propertyType {
    text-align: center;
    background: #ffffff;
    border: 0.1rem solid var(--colorGrey3);
    box-shadow: 0px 0.4rem 0.8rem rgba(0, 0, 0, 0.12);
    border-radius: 0.4rem;
    padding: 1.5rem;
}

.propertyType.active {
    padding: 1.3rem;
    border: 0.3rem solid var(--colorPurple);
}

.propertyType input[type='checkbox'] {
    display: none;
}

.propertyType label {
    display: block;
    width: 100%;
}

.propertyType img {
    display: inline;
    margin-bottom: 0.5rem;
}

.propertyType span {
    display: block;
    font-size: 1.6rem;
    font-family: var(--fontSecondary);
    font-weight: 700;
    color: var(--colorPurple);
}

.appFooter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 1.6rem;
    position: absolute;
    width: 100%;
    height: 7.6rem;
    left: 0rem;
    bottom: 0rem;
    background: var(--colorWhite);
    box-shadow: 0rem -0.8rem 1rem rgba(0, 0, 0, 0.08);
    z-index: 1000;
}
