#form-reserva-2 {
  color: var(--c-bg-crema);
}

/* Estructura del formulario */
#form-reserva-2 .mphb_sc_search-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 1.15fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
  margin: 0;
}

/* Reset de campos */
#form-reserva-2 .mphb_sc_search-form p,
#form-reserva-2 .mphb-check-in-date-wrapper,
#form-reserva-2 .mphb-check-out-date-wrapper,
#form-reserva-2 .mphb-adults-wrapper,
#form-reserva-2 .mphb-children-wrapper,
#form-reserva-2 .mphb_sc_search-submit-button-wrapper {
  width: auto !important;
  margin: 0 !important;
}

/* Aviso campos obligatorios */
#form-reserva-2 .mphb-required-fields-tip {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0 0 2px !important;
  color: var(--c-bg-crema) !important;
  font-size: 14px !important;
  line-height: 1.4;
}

/* Labels */
#form-reserva-2 label {
  display: block;
  margin-bottom: 8px !important;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bg-crema) !important;
}

/* Inputs y selects */
#form-reserva-2 input[type="text"],
#form-reserva-2 input[type="number"],
#form-reserva-2 select {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: #ffffff;
  border: 1px solid rgba(42, 72, 50, 0.25);
  border-radius: 999px;
  color: #284934;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  box-shadow: none;
  transition: all 0.25s ease;
}

/* Placeholder */
#form-reserva-2 input::placeholder {
  color: rgba(40, 73, 52, 0.55);
}

/* Focus */
#form-reserva-2 input[type="text"]:focus,
#form-reserva-2 input[type="number"]:focus,
#form-reserva-2 select:focus {
  border-color: #d89a4c;
  box-shadow: 0 0 0 3px rgba(216, 154, 76, 0.16);
}

/* Botón */
#form-reserva-2 .mphb_sc_search-submit-button-wrapper input[type="submit"],
#form-reserva-2 .mphb_sc_search-submit-button-wrapper button {
  position: relative;
  z-index: 2;
  height: 48px !important;
  min-height: 48px !important;
  padding: 14px 32px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background-color: var(--c-primary) !important;
  color: var(--c-white, #ffffff) !important;
  border: 1px solid var(--c-primary) !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600 !important;
  letter-spacing: var(--letter-spacing-btn, 0.14em);
  font-size: 12px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

/* Hover botón */
#form-reserva-2 .mphb_sc_search-submit-button-wrapper:hover input[type="submit"],
#form-reserva-2 .mphb_sc_search-submit-button-wrapper:hover button {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* Mensajes / errores */
#form-reserva-2 .mphb-errors-wrapper,
#form-reserva-2 .mphb-message,
#form-reserva-2 .mphb_sc_search_results-info {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(216, 154, 76, 0.12);
  color: #284934;
  font-size: 14px;
}

/* Responsive tablet */
@media (max-width: 1024px) {
  #form-reserva-2 {
    max-width: 720px;
  }

  #form-reserva-2 .mphb_sc_search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #form-reserva-2 .mphb_sc_search-submit-button-wrapper {
    grid-column: 1 / -1;
  }

  #form-reserva-2 .mphb_sc_search-submit-button-wrapper input[type="submit"],
  #form-reserva-2 .mphb_sc_search-submit-button-wrapper button {
    width: 100%;
  }
}

/* Responsive móvil */
@media (max-width: 640px) {
  #form-reserva-2 {
    max-width: 100%;
  }

  #form-reserva-2 .mphb_sc_search-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #form-reserva-2 .mphb-required-fields-tip,
  #form-reserva-2 .mphb-errors-wrapper,
  #form-reserva-2 .mphb-message,
  #form-reserva-2 .mphb_sc_search_results-info,
  #form-reserva-2 .mphb_sc_search-submit-button-wrapper {
    grid-column: auto;
  }
}

/* ================================
   CUENTA / LOGIN HOTEL BOOKING
   Shortcode MotoPress Hotel Booking
================================ */

.mphb_sc_account {
  max-width: 920px;
  margin: 0 auto;
  color: #284934;
}

/* Caja principal */
.mphb_sc_account .mphb-account-content {
  background: #ffffff;
  border: 1px solid rgba(42, 72, 50, 0.14);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

/* ================================
   MENÚ / PESTAÑAS DE CUENTA
================================ */

.mphb_sc_account .mphb-account-menu,
.mphb_sc_account .mphb-account-navigation,
.mphb_sc_account nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none !important;
}

.mphb_sc_account .mphb-account-menu li,
.mphb_sc_account .mphb-account-navigation li,
.mphb_sc_account nav ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.mphb_sc_account .mphb-account-menu a,
.mphb_sc_account .mphb-account-navigation a,
.mphb_sc_account nav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 20px;
  background: rgba(40, 73, 52, 0.06);
  border: 1px solid rgba(40, 73, 52, 0.12);
  border-radius: 999px;
  color: #284934;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.2s ease;
  width: 100% !important;
}

.mphb_sc_account .mphb-account-menu a:hover,
.mphb_sc_account .mphb-account-navigation a:hover,
.mphb_sc_account nav ul li a:hover {
  background: rgba(216, 154, 76, 0.14);
  border-color: rgba(216, 154, 76, 0.45);
  color: #284934;
  transform: translateY(-2px);
}

/* Activo / página actual */
.mphb_sc_account .mphb-account-menu .active a,
.mphb_sc_account .mphb-account-menu .current a,
.mphb_sc_account .mphb-account-menu .current-menu-item a,
.mphb_sc_account .mphb-account-navigation .active a,
.mphb_sc_account .mphb-account-navigation .current a,
.mphb_sc_account nav ul li.current-menu-item a,
.mphb_sc_account nav ul li.is-active a,
.mphb_sc_account a[aria-current="page"] {
  background: var(--c-primary, #284934);
  border-color: var(--c-primary, #284934);
  color: var(--c-white, #ffffff) !important;
}

/* ================================
   FORMULARIO LOGIN / REGISTRO
================================ */

.mphb_sc_account .mphb-login-form,
.mphb_sc_account .mphb-registration-form,
.mphb_sc_account .mphb-account-form {
  max-width: 540px;
  margin: 0 auto;
}

.mphb_sc_account form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.mphb_sc_account form p {
  margin: 0 !important;
}

/* Labels */
.mphb_sc_account label {
  display: block;
  margin-bottom: 8px !important;
  color: #284934 !important;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Inputs */
.mphb_sc_account input[type="text"],
.mphb_sc_account input[type="email"],
.mphb_sc_account input[type="password"],
.mphb_sc_account input[type="tel"],
.mphb_sc_account input[type="number"],
.mphb_sc_account input[type="url"],
.mphb_sc_account select,
.mphb_sc_account textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(42, 72, 50, 0.25);
  border-radius: 999px;
  color: #284934;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  box-shadow: none;
  transition: all 0.25s ease;
}

.mphb_sc_account textarea {
  min-height: 120px;
  border-radius: 22px;
  resize: vertical;
}

.mphb_sc_account input::placeholder,
.mphb_sc_account textarea::placeholder {
  color: rgba(40, 73, 52, 0.55);
}

/* Focus */
.mphb_sc_account input[type="text"]:focus,
.mphb_sc_account input[type="email"]:focus,
.mphb_sc_account input[type="password"]:focus,
.mphb_sc_account input[type="tel"]:focus,
.mphb_sc_account input[type="number"]:focus,
.mphb_sc_account input[type="url"]:focus,
.mphb_sc_account select:focus,
.mphb_sc_account textarea:focus {
  border-color: #d89a4c;
  box-shadow: 0 0 0 3px rgba(216, 154, 76, 0.16);
}

/* Checkbox recordar sesión */
.mphb_sc_account .login-remember label,
.mphb_sc_account label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0 !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #284934 !important;
}

.mphb_sc_account input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--c-primary, #284934);
}

/* ================================
   BOTONES
================================ */

.mphb_sc_account input[type="submit"],
.mphb_sc_account button,
.mphb_sc_account .button,
.mphb_sc_account .mphb-button,
.mphb_sc_account a.button {
  min-height: 48px !important;
  padding: 14px 32px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background-color: var(--c-primary, #284934) !important;
  color: var(--c-white, #ffffff) !important;
  border: 1px solid var(--c-primary, #284934) !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  text-decoration: none !important;
  font-weight: 600 !important;
  letter-spacing: var(--letter-spacing-btn, 0.14em);
  font-size: 12px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.mphb_sc_account input[type="submit"]:hover,
.mphb_sc_account button:hover,
.mphb_sc_account .button:hover,
.mphb_sc_account .mphb-button:hover,
.mphb_sc_account a.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16) !important;
}

/* Botón login a ancho completo */
.mphb_sc_account .login-submit input[type="submit"],
.mphb_sc_account #wp-submit {
  width: 100%;
}

/* Link recuperar contraseña */
.mphb_sc_account .mphb-login-form > a,
.mphb_sc_account a[href*="lostpassword"],
.mphb_sc_account a[href*="lost-password"] {
  display: inline-block;
  margin-top: 18px;
  color: #284934;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mphb_sc_account .mphb-login-form > a:hover,
.mphb_sc_account a[href*="lostpassword"]:hover,
.mphb_sc_account a[href*="lost-password"]:hover {
  color: #d89a4c;
}

/* ================================
   TEXTOS, ENLACES Y MENSAJES
================================ */

.mphb_sc_account p {
  color: #284934;
  font-size: 15px;
  line-height: 1.6;
}

.mphb_sc_account a {
  color: #284934;
  transition: color 0.2s ease;
}

.mphb_sc_account a:hover {
  color: #d89a4c;
}

/* Mensajes del plugin */
.mphb_sc_account .mphb-message,
.mphb_sc_account .mphb-errors-wrapper,
.mphb_sc_account .mphb-error,
.mphb_sc_account .mphb-success,
.mphb_sc_account .mphb-notice,
.mphb_sc_account .login-error,
.mphb_sc_account .message {
  margin: 0 0 20px !important;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(216, 154, 76, 0.12);
  border: 1px solid rgba(216, 154, 76, 0.28);
  color: #284934;
  font-size: 14px;
  line-height: 1.5;
}

.mphb_sc_account .mphb-errors-wrapper,
.mphb_sc_account .mphb-error,
.mphb_sc_account .login-error {
  background: rgba(160, 55, 40, 0.08);
  border-color: rgba(160, 55, 40, 0.2);
}

/* Mensaje tipo "You are not allowed..." */
.mphb_sc_account .mphb-account-content {
  font-size: 15px;
  line-height: 1.6;
}

/* ================================
   TABLAS: RESERVAS / PEDIDOS
================================ */

.mphb_sc_account table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid rgba(42, 72, 50, 0.14);
  border-radius: 18px;
  background: #ffffff;
}

.mphb_sc_account table th,
.mphb_sc_account table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(42, 72, 50, 0.1);
  color: #284934;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.mphb_sc_account table th {
  background: rgba(40, 73, 52, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mphb_sc_account table tr:last-child td {
  border-bottom: none;
}

.mphb_sc_account table a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================================
   BLOQUES INTERNOS / DETALLES
================================ */

.mphb_sc_account .mphb-account-details,
.mphb_sc_account .mphb-customer-details,
.mphb_sc_account .mphb-booking-details,
.mphb_sc_account .mphb-reservation-details,
.mphb_sc_account .mphb-accommodation-details {
  padding: 22px;
  margin: 20px 0;
  background: rgba(40, 73, 52, 0.045);
  border: 1px solid rgba(42, 72, 50, 0.1);
  border-radius: 20px;
}

.mphb_sc_account h1,
.mphb_sc_account h2,
.mphb_sc_account h3,
.mphb_sc_account h4 {
  color: #284934;
  margin-top: 0;
}

.mphb_sc_account h2,
.mphb_sc_account h3 {
  margin-bottom: 16px;
}

/* ================================
   LOGOUT
================================ */

.mphb_sc_account a[href*="logout"],
.mphb_sc_account .mphb-logout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 22px;
  margin-top: 0px;
  background: transparent;
  border: 1px solid rgba(40, 73, 52, 0.25);
  border-radius: 999px;
  color: #284934;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.mphb_sc_account a[href*="logout"]:hover,
.mphb_sc_account .mphb-logout a:hover {
  background: rgba(216, 154, 76, 0.12);
  border-color: rgba(216, 154, 76, 0.45);
  color: #284934;
}

/* ================================
   RESPONSIVE
================================ */

@media screen and (min-width: 768px) {
    .mphb_sc_account .mphb-account-menu {
        width: 20% !important;
    }
}

@media (max-width: 768px) {
  .mphb_sc_account {
    max-width: 100%;
  }

  .mphb_sc_account .mphb-account-content {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .mphb_sc_account .mphb-account-menu,
  .mphb_sc_account .mphb-account-navigation,
  .mphb_sc_account nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mphb_sc_account .mphb-account-menu a,
  .mphb_sc_account .mphb-account-navigation a,
  .mphb_sc_account nav ul li a {
    width: 100%;
  }

  .mphb_sc_account input[type="submit"],
  .mphb_sc_account button,
  .mphb_sc_account .button,
  .mphb_sc_account .mphb-button,
  .mphb_sc_account a.button {
    width: 100%;
  }

  .mphb_sc_account table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .mphb_sc_account .mphb-account-content {
    padding: 22px 16px;
  }

  .mphb_sc_account input[type="text"],
  .mphb_sc_account input[type="email"],
  .mphb_sc_account input[type="password"],
  .mphb_sc_account input[type="tel"],
  .mphb_sc_account input[type="number"],
  .mphb_sc_account input[type="url"],
  .mphb_sc_account select,
  .mphb_sc_account textarea {
    min-height: 46px;
    font-size: 14px;
  }

  .mphb_sc_account table th,
  .mphb_sc_account table td {
    padding: 13px 14px;
  }
}