/* Resets */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body,
html,
img,
a,
table,
tr,
td,
ul,
ol,
li,
dd,
p,
h1,
h2,
h3,
h4,
h5,
h6,
fieldset,
textarea,
blockquote,
pre,
form {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.1rem;
}
h4,
h5,
h6 {
  font-size: 1rem;
}
a img,
:link img,
:visited img {
  border: none;
}
table {
  border-collapse: collapse;
}

/* ================================================================================= */
/*                 HERE       BEGINS       MORENO      RENTALS        CSS            */
/* ================================================================================= */

/* Brand colors */
:root {
  --brand-grey: #525252;
  --brand-yellow: #fff72e;
  --brand-orange: #deae29;
  --brand-white: #ffffff;
  --bg1: #eed;
  --bg2: #fef8cb;
  --text-color1: #04131c;
  --text-color2: var(--brand-grey);
  /* Font: Albert Sans */
}

html {
  font-size: 115%;
}

@media (min-width: 480px) {
  html {
    font-size: 110%;
  }
}

body {
  background: var(--bg2);
  color: var(--text-color2);
  font-family: "Segoe UI", Verdana, Arial, Helvetica, sans-serif;
  padding: 10px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title > span {
  font-size: 3rem;
}

.logo {
  max-width: 100%;
  display: block;
  height: auto;
}

main {
  padding: 1rem;
  margin: 0 auto;
  max-width: 980px;
}

h1,
h2 {
  margin: 1rem 0;
}

p {
  margin-bottom: 1rem;
}

.listing {
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.listing-img {
  max-width: 100%;
  object-fit: cover;
  height: auto;
  min-height: 150px;
}

.card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.error {
  color: #f80;
  font-weight: bold;
  font-style: italic;
}

.success {
  color: green;
  font-weight: bold;
}

.form-field label {
  display: block;
  padding: 0.25rem 0;
}

.form-field input,
.form-field textarea {
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
}

.form-field textarea {
  min-width: 150px;
  max-width: 100%;
}

@media (min-width: 480px) {
  .apartment {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.url {
  display: none;
}

.submit-btn {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #3e9adf;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

.submit-btn:hover {
  background-color: #6ebaef;
  color: #fff;
}

.submit-btn:active {
  background-color: #28388f;
  color: #fff;
}

@media only screen and (min-width: 480px) {
  .form-field {
    width: 90%;
  }
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
