/* === BAZA === */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    margin: 0;
    overflow-x: hidden;
}

html, body {
    overflow-x: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.site-header.no-sticky {
    position: relative;
}

/* === HEADER TOP === */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo a {
    font-size: 26px;
    font-weight: bold;
    color: #bc62f0;
    text-decoration: none;
    margin: 0 auto;
}

.menu-icon {
    font-size: 24px;
    color: #bc62f0;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: auto;
}

/* === MENIU ORASE (SCROLL) === */
.top-cities-scroll {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.top-cities-scroll::-webkit-scrollbar {
    display: none;
}

.top-cities-scroll a {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: 0.3s ease;
    flex: 0 0 auto;
}

.top-cities-scroll a:hover {
    background: #f06292;
    box-shadow: 0 2px 6px rgba(255, 105, 135, 0.4);
}

/* === SEARCH BAR === */
.search-bar {
    background: #121212;
    padding: 10px;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.search-form input {
    padding: 8px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
    color: #333;
    min-width: 150px;
    flex: 1;
}

.search-form select {
    display: none;
}

.search-form button {
    background: #f06292;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    background: #c2185b;
}

/* === BARA ORASE DIN JUDET === */
.city-bar {
    background: #eee;
    padding: 10px;
    text-align: center;
}

.city-bar a {
    margin: 0 8px;
    text-decoration: none;
    color: #d63384;
    font-weight: bold;
}

/* === PROFILE GRID === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
    text-decoration: none !important;
    color: inherit;
}

.card * {
    text-decoration: none !important;
}

.card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-img {
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}


.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    font-size: 13px;
    color: #666;
}

/* === PAGINARE === */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    transition: 0.2s;
}

.pagination a:hover {
    background: #eee;
}

.pagination a.active {
    background: #d63384;
    color: #fff;
    border-color: #d63384;
}

/* === FOOTER === */
.site-footer {
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* === ACCENT ROZ === */
.top-accent-bar {
    height: 10px;
    background: linear-gradient(to right, #bc62f0, #ffb6c1);
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .header-top {
        padding: 6px 0;
    }

    .top-cities-scroll {
        padding: 6px 8px;
        gap: 6px;
    }

    .search-bar {
        padding: 8px;
    }

    .search-form input,
    .search-form button {
        flex: 0 0 auto;
        min-width: 120px;
    }
}

/* === POPUP JUDETE === */
.county-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    z-index: 9999;
    overflow: auto;
}

.county-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === CONTINUT POPUP === */
.popup-content {
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 10px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #f06292;
    border: 2px solid #f06292;
    background: #1a1a1a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 35px;
    text-align: center;
    z-index: 10001;
    transition: 0.2s ease;
}

.popup-close:hover {
    background: #f06292;
    color: white;
}


/* === Titlu popup === */
.popup-content h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #f06292;
    text-align: center;
}

/* === Lista judete === */
.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.popup-content li a {
    display: block;
    background: #333;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: 0.2s;
}

.popup-content li a:hover {
    background: #bc62f0;
}

/* === FULLSCREEN PE MOBILE === */
@media screen and (max-width: 768px) {
    .popup-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        padding: 20px;
        overflow-y: auto;
    }

    .popup-content ul {
        grid-template-columns: 1fr;
    }

    .popup-close {
        top: 10px;
        right: 20px;
    }
}

.profile-detail {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.profile-detail h1 {
    color: #d63384;
    text-align: center;
    margin-bottom: 20px;
}

.profile-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-description {
    margin-top: 20px;
    font-size: 15px;
    color: #333;
}

.profile-meta {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.profile-contact {
    margin-top: 25px;
    text-align: center;
}

.message-button {
    background: #d63384;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: background 0.3s;
}

.message-button:hover {
    background: #a31960;
}




/* Stil general pentru buton */
.btn-contact {
  display: block;
  width: auto;
  max-width: 600px;
    background: linear-gradient(135deg, #ff4081, #f06292);
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 30px auto 0 auto;
}

/* Efect hover */
.btn-contact:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buton fix pe mobil */
@media (max-width: 768px) {
  .btn-contact {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    margin: 0 auto;
    padding: 16px;
    border-radius: 20px;
    z-index: 999;
  }

  body {
    padding-bottom: 100px; /* Spațiu pentru buton */
  }
}