/* =========================================================
   BARA ALBASTRĂ GLOBALĂ (layout.php)
   ========================================================= */

.search-header {
    background: #1976d2;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

/* coloane custom pentru bara de căutare */
.search-header .col-destination {
    flex: 0 0 28%;
    max-width: 28%;
}

.search-header .col-date {
    flex: 0 0 16%;
    max-width: 16%;
}

.search-header .col-guests {
    flex: 0 0 16%;
    max-width: 16%;
}

.search-header .col-voucher {
    flex: 0 0 9%;
    max-width: 9%;
}

.search-header .col-action {
    flex: 0 0 15%;
    max-width: 15%;
}

/* inputuri compacte */
.search-header .form-control,
.search-header .form-select {
    font-size: 13px;
    padding: 4px 8px;
    height: 34px;
    line-height: 1.2;
}

.search-header .btn {
    font-size: 13px;
    padding: 6px 10px;
}

/* responsive bara albastră */
@media (max-width: 991.98px) {
    .search-header .col-destination,
    .search-header .col-date,
    .search-header .col-guests,
    .search-header .col-voucher,
    .search-header .col-action {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .search-header {
        padding-bottom: 14px;
    }
}

/* autocomplete */

.search-wrapper {
    position: relative;
}

#global-search-results {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-result-item:hover {
    background: #f2f7ff;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.search-result-sub {
    font-size: 12px;
    color: #777;
}

/* iPhone fix */
@supports (-webkit-touch-callout: none) {
    #global-search-results {
        max-height: 40vh;
    }
}

/* popup oaspeți */

.guests-selector {
    display: flex;
    align-items: center;
    height: 32px;
    cursor: pointer;
    background: #fff;
    color: #000;              /* <– textul să fie negru, nu alb */
    padding: 0 8px;
}

.guests-selector span {
    font-size: 13px;
    font-weight: 500;
}

.guests-popup {
    position: absolute;
    background: #fff;
    color: #000;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px;
    margin-top: 4px;
    z-index: 2000;
    display: none;
    width: 210px;
}

.guests-popup.open {
    display: block;
}

.guests-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.guests-row span {
    font-size: 13px;
    font-weight: 500;
}

.guests-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-guest {
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.guests-count {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
}

/* =========================================================
   PAGINA DE JUDEȚ (COUNTY) – STIL TURISTINFO
   ========================================================= */

.pagedescription {
    margin-top: 10px;
    margin-bottom: 0;
}

.pagedescription h1 {
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.pagedescription .grey-text {
    font-size: 15px;
    color: #9e9e9e;
    margin: 0 0 15px 0;
}

/* lista localități */

.liste {
    margin-top: 0;
}

.liste .col5 {
    column-count: 5;
    column-gap: 55px;
    padding-left: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.liste .col5 li {
    list-style: none;
    break-inside: avoid-column;
    margin-bottom: 4px;
}

.liste .col5 a {
    color: #039BE5;
    text-decoration: none;
    font-weight: 500;
}

.liste .col5 a:hover {
    text-decoration: underline;
}

.liste .col5 sup {
    font-size: 11px;
    color: #808080;
}

/* responsive pentru lista de localități */

@media (max-width: 1280px) {
    .liste .col5 { column-count: 4; }
}

@media (max-width: 992px) {
    .liste .col5 { column-count: 3; }
}

@media (max-width: 768px) {
    .liste .col5 { column-count: 2; }
    .liste { padding: 0 12px; }
    .pagedescription { padding: 0 12px; }
}

@media (max-width: 480px) {
    .liste .col5 { column-count: 2; }
}

/* =========================================================
   HERO JUDEȚ (IMAGINE)
   ========================================================= */

.county-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto 15px auto;
}

.county-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* pe mobil să nu iasă absolut deloc în afară */
@media (max-width: 576px) {
    .county-hero {
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================================
   PAGINA DE LOCALITATE (CITY)
   ========================================================= */

.city-page {
    max-width: 1280px;
    margin: 30px auto 60px auto;
}

.city-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.city-subtitle {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 16px;
}

.property-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.property-card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* sidebar localități */

.city-sidebar {
    max-height: 480px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.city-sidebar ul {
    padding-left: 18px;
}

.city-sidebar li {
    margin-bottom: 3px;
}

/* =========================================================
   PAGINA UNITATE (PROPERTY)
   ========================================================= */

.property-page {
    max-width: 1280px;
    margin: 30px auto 60px auto;
}

.property-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.property-location {
    font-size: 0.95rem;
    color: #777;
}

/* galerie */

.property-main-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
}

.property-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.property-thumb:hover {
    opacity: 1;
}

/* secțiuni */

.property-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

/* =========================================================
   NAVBAR & GLOBAL
   ========================================================= */

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-size: 14px;
}

body {
    background: #fafafa;
    overflow-x: hidden; /* siguranță să nu mai avem scroll orizontal */
}

.text-muted {
    color: #777 !important;
}
/* ============================
   TEXT ÎN CÂMPURI (ALINIAT CU OASPETI)
   ============================ */

.search-header .form-control,
.search-header .guests-selector {
    color: #000;            /* text negru */
    font-weight: 500;       /* ca la Oaspeți */
    font-size: 14px;        /* clar și consistent */
}

/* Placeholder tot negru + semitransparent */
.search-header .form-control::placeholder {
    color: rgba(0,0,0,0.55);
    font-weight: 400;
}

/* Iconul de calendar — îl facem vizibil ca la guests */
.search-header input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);          /* face iconul alb → negru */
    opacity: .7;
}
@media (min-width: 1200px) {
  .search-header .container {
    max-width: 1280px !important;
  }
}

