@import "../fonts/raisonne-regular-pro/stylesheet.css";
@import "../fonts/raisonne-bold-pro/stylesheet.css";
@import "../fonts/raisonne-extrabold-pro/stylesheet.css";

:root {
    --purple: #471e51;
    --orange: #ff5f26;
    --peach: #fadfc4;
    --lavendar: #cec0f9;
    --purple-black: #1c1526;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-family: raisonne, sans-serif;
    font-feature-settings: 'ss02','ss03','ss08','ss12','ss13','ss14','ss15','ss16';
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
}

h1 {
    margin: 0 0 20px;
    font-weight: 300;
    font-size: 20px;
    color: var(--purple);
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
    vertical-align: middle;
}

p {
    padding: 0;
    line-height: 140%;
}
p, ol, ul, dl {
    margin: .2em 0 .8em 0;
}

a:link,
a:visited {
    color: var(--purple);
    text-decoration: none;
}

form {
    margin: 0;
    padding: 0;
}

label {
    font-weight: normal;
    color: #666;
    font-size: 13px;
}

input, textarea, select, .form-row p, form .button {
    margin: 2px 0;
    padding: 2px 3px;
    vertical-align: middle;
    font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
    font-weight: normal;
    font-size: 13px;
}

input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel], textarea, select, .vTextField {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 6px;
    margin-top: 0;
}

#container {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#container > div {
    flex-shrink: 0;
}

#header {
    width: auto;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: var(--purple);
    color: var(--orange);
    overflow: hidden;
}

.left-header-group {
    display: flex;
    align-items: center;
}

#header-menu {
    display: flex;
    align-items: center;
}

#header-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-menu li {
    margin: 0 15px;
}

#header-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#header-menu a:hover {
    color: var(--orange);
}

#branding {
}

#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
    color: #f5dd5d;
}

#branding h1 {
    padding: 0;
    margin: 0 20px 0 0;
    font-weight: 300;
    font-size: 24px;
    color: #f5dd5d;
}

#user-tools {
}

#logout {
    color: white;
}

div.breadcrumbs {
    background-color: var(--lavendar);
    color: var(--purple-black);
    padding: 10px 40px;
    border: none;
    font-size: 14px;
    text-align: left;
}

div.breadcrumbs a:focus, div.breadcrumbs a:hover {
    color: white;
}

#content {
    padding: 20px 40px;
}

.module {
    border: none;
    margin-bottom: 30px;
    background: #fff;
}

fieldset {
    margin: 0;
    min-width: 0;
    padding: 0;
    border: none;
    border-top: 1px solid #eee;
}
.form-row {
    overflow: hidden;
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.aligned label {
    display: block;
    padding: 4px 10px 0 0;
    float: left;
    width: 160px;
    word-wrap: break-word;
    line-height: 1;
}
.aligned label:not(.vCheckboxLabel):after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 26px;
}
.aligned .form-row input {
    margin-bottom: 0;
}
.form-row img, .form-row input {
    vertical-align: middle;
}

.button, input[type=submit], input[type=button], .submit-row input, a.button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--purple);
    background-color: var(--lavendar);
}

.auth-container {
  display: flex;
  flex-wrap: wrap;
}

.auth-form {
  flex: 1 1 300px;
  padding: 2rem;
  min-width: 280px;
  box-sizing: border-box;
}

.register-hint{
    display: none;
}

/* Add light grey border between columns */
.login-form {
  border-right: 1px solid #e0e0e0;
}

/* Remove the border on mobile */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .login-form {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .register-hint{
    display: block;
  }
}

/* Outer wrapper for the full form container */
.form-wrapper {
  padding: 2rem 1rem;       /* Padding for spacing */
  box-sizing: border-box;
}

/* Form fields block */
.form-wrapper form {
  display: flex;
  flex-direction: column;
}

/* Label above input */
.form-wrapper label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Inputs full width */
.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Submit button */
.form-wrapper button[type="submit"] {
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.form-wrapper button[type="submit"]:hover {
  background-color: #555;
}

/* Help text styling */
.help-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Error message styling */
.error-message {
  border: 1px solid #e53e3e;
  background: #ffe5e5;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* Back link styling */
.back-link {
  margin-top: 1rem;
}

/* Booking cards styles */
.booking-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.booking-card {
  width: 100%;
  max-width: 700px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.booking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.booking-card-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.booking-card-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--purple);
  margin: 0 0 10px 0;
}

.booking-card-date {
  font-size: 14px;
  color: #666;
}

.booking-card-duration {
  font-size: 14px;
  color: #666;
  margin-top: 3px;
}

.booking-card-content {
  display: flex;
  align-items: stretch;
  gap: 15px;
}

.booking-card-image {
  overflow: hidden;
  border-radius: 4px;
  flex: 0 0 150px;
  margin: 0;
}

.booking-card-image img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
  margin: 0;
}

.booking-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  padding: 0;
}

.booking-card-details p {
  margin: 0 0 10px 0;
}

.booking-card-pin {
  background-color: var(--lavendar);
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin: 5px 0;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
}

.booking-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.booking-card-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--lavendar);
  color: var(--purple);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
  align-self: flex-end;
  margin-top: auto;
}

.booking-card-link:hover {
  background-color: var(--peach);
}

/* Host address styles */
.host-address {
  margin-bottom: 15px;
  color: #555;
}

.host-address p {
  margin: 0;
  line-height: 1.4;
}

/* Host tags styles */
.host-tags {
  margin-bottom: 15px;
}

.host-tags h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: var(--purple);
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--lavendar);
  color: var(--purple);
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: var(--peach);
  cursor: default;
}

/* Mobile menu styles */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

#burger-menu-icon {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  position: absolute;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-line:nth-child(1) {
  top: 0;
}

.burger-line:nth-child(2) {
  top: 10px;
}

.burger-line:nth-child(3) {
  top: 20px;
}

#burger-menu-icon.active .burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#burger-menu-icon.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-menu-icon.active .burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

#mobile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  background-color: var(--purple);
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu li:last-child {
  border-bottom: none;
}

#mobile-menu a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--orange);
}

#mobile-menu .user-info {
  padding: 15px 20px;
  color: var(--orange);
  font-weight: bold;
}

@media (max-width: 768px) {
  #header-menu,
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  div.breadcrumbs,
  #content,
  #header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 480px) {
  div.breadcrumbs,
  #content,
  #header {
    padding-left: 10px;
    padding-right: 10px;
  }
}
