@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700&display=swap');

.user-cabinet-wrapper {
  max-width: 420px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  font-family: 'Montserrat', sans-serif;
}

.user-cabinet-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 22px;
  color: #222;
}

.user-cabinet-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-cabinet-wrapper input[type="text"],
.user-cabinet-wrapper input[type="email"],
.user-cabinet-wrapper input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(34,34,34,.3);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: .2s;
}

.user-cabinet-wrapper input:focus {
  border-color: #49c0c0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(73,192,192,.2);
}

.user-cabinet-wrapper button {
  height: 45px;
  background: #49c0c0;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
  text-transform: uppercase;
}

.user-cabinet-wrapper button:hover {
  background: #3aa5a5;
}

.user-cabinet-wrapper p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.user-cabinet-wrapper p a {
  color: #49c0c0;
  text-decoration: none;
  font-weight: 500;
}

.user-cabinet-wrapper p a:hover {
  text-decoration: underline;
}

/* Mesaje */
.user-cabinet-message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
}
.user-cabinet-message.error {
  background: #ffe6e6;
  color: #cc0000;
}
.user-cabinet-message.success {
  background: #e6ffea;
  color: #008a2e;
}


body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.cabinet-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
}

.cabinet-wrap h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

.cabinet-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.cabinet-menu li:before{
    display: none;
}
.cabinet-menu li a {
    text-decoration: none;
    font-weight: 500;
    color: #555;
    padding: 8px 15px;
    border-radius: 6px;
    transition: .2s;
}

.cabinet-menu li a.active,
.cabinet-menu li a:hover {
    background: #49c0c0;
    color: #fff;
}

.cabinet-content {
    /*background: #fafafa;
    border-radius: 8px;
    padding: 20px;*/
}

.cabinet-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cabinet-content input[type="text"],
.cabinet-content input[type="email"],
.cabinet-content input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(34,34,34,.3);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: .2s;
}

.cabinet-content input:focus {
    border-color: #49c0c0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(73,192,192,.2);
}



.user-cabinet-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.user-cabinet-message.error {
    background: #ffe6e6;
    color: #cc0000;
}

.user-cabinet-message.success {
    background: #e6ffea;
    color: #008a2e;
}

/* Responsive */
@media screen and (max-width:768px) {
    .cabinet-wrap {
        margin: 20px;
        padding: 20px;
    }

    .cabinet-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .cabinet-content h1 {
      font-size: 1.5rem;
    }
    .cabinet-content {
        padding: 0;
    }
}
/* favorite */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
}

/* Card */
.fav-card-wrapper {
  position: relative;
}

.fav-card {
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.fav-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.fav-img {
  width: 100%;
  padding-top: 62%;
  background: #f3f3f3 center/cover no-repeat;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0;
}

.fav-body {
  padding: 12px 14px 16px;
}

.fav-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333;
}

.fav-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Share button - icon small */
.fav-share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #49c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.fav-share-btn:hover {
  transform: scale(1.1);
}
.fav-share-btn svg {
  width: 16px;
  height: 16px;
  transition: fill 0.2s ease;
}

/* Popup */
.fav-share-popup {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  padding: 6px 8px;
  border-radius: 6px;
  z-index: 20;
  min-width: 130px;
}

.fav-share-popup a,
.fav-share-popup button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: #49c0c0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.fav-share-popup a:hover,
.fav-share-popup button:hover {
  text-decoration: underline;
}

.fav-share-popup svg {
  width: 14px;
  height: 14px;
  fill: #1e90ff;
}

/* Responsive */
@media (min-width: 1200px) {
  .fav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 760px) and (max-width: 1199px) {
  .fav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 759px) {
  .fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .fav-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
/*listing__wrapper*/
.listing__wrapper .fav-share-btnl {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #49c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.listing__wrapper .fav-share-btnl svg{
  width: 16px;
  height: 16px;
  transition: fill 0.2s ease;
}
.listing__wrapper .fav-share-popup {
    margin-top: 100px;
    top: unset;
}
.fav-grid .fav-remove-btn svg {

}
.fav-grid .fav-remove-btn {
  position: absolute;
  top: 10px;
  right: 50px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 0;
}
button.ucab-fav-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0;
    z-index: 7;
}
button.ucab-fav-btn.is-fav {
  path {
    fill: #fff;
  }
}
.buy-card__fav {
  display: none;
}
.hearth-iconh svg {
    width: 20px;
    cursor: pointer;
}
.hearth-iconh.active svg path:last-child {
    fill: #f26e22 !important;
}
.listing-info__saveh>div {
    flex-grow: 1;
}
#ucab-save-search {
  margin-right: auto;
}
.saved-searches-wrapper h2{ text-align:center; font-size:22px; margin-bottom:20px; font-weight:600; color:#222;}
.saved-search{ border:1px solid #e6e6e6; border-radius:8px; padding:15px 20px; margin-bottom:15px; display:flex; justify-content:space-between; align-items:center;}
.saved-search a{ font-weight:500; color:#007bff; text-decoration:none;}
.saved-search p{ margin:4px 0 0; font-size:14px; color:#555;}
.actions{ display:flex; gap:10px; align-items:center; font-size:13px; color:#888;}
.actions .status{ font-weight:500; cursor:pointer; user-select:none;}
.actions a{ color:#007bff; text-decoration:none; font-weight:500;}
.actions a:hover{ text-decoration:underline;}
.new-search{ display:block; text-align:right; font-weight:500; color:#007bff; text-decoration:none;margin-top: 20px;}
.new-search:hover{ text-decoration:underline;}
@media screen and (max-width: 768px) {
  .actions,
  .saved-search {
      flex-direction: column;
  }
}