/* ── Property Card Component (Global) ── */
.prop-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Image area */
.prop-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 190px;
    background: #eaeaea;
}

.prop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prop-card:hover .prop-card-img {
    transform: scale(1.04);
}

.prop-card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(to top, rgba(5, 17, 36, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
}

.prop-location-badge {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prop-type-badge {
    background: rgba(35, 152, 182, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prop-agency-logo {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 56px;
    height: 28px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Card body */
.prop-card-body {
    padding: 0.85rem 1rem 0.5rem;
    flex-grow: 1;
}

.prop-address {
    font-size: 0.875rem;
    font-weight: 600;
    color: #051124;
    margin-bottom: 0.4rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #7e8299;
    font-size: 0.8rem;
    font-weight: 500;
}

.prop-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.prop-stats img {
    opacity: 0.6;
}

/* Card footer */
.prop-card-footer {
    padding: 0.6rem 1rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f5f5f5;
    gap: 0.5rem;
}

.prop-card-actions {
    display: flex;
    gap: 0.4rem;
}

.prop-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 0.45rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    line-height: 1.4;
}

.prop-btn-edit {
    background: #f1faff;
    color: #2398b6;
    border: 1px solid #d0edf5;
}

.prop-btn-edit:hover {
    background: #2398b6;
    color: #fff;
    border-color: #2398b6;
}

.prop-btn-delete {
    background: #fff5f5;
    color: #d9534f;
    border: 1px solid #f5c6c5;
}

.prop-btn-delete:hover {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
}

.prop-seemore {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2398b6;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
}

.prop-seemore:hover {
    color: #176d8a;
}

/* Property Type Variants */
.prop-type-buy {
    background: rgba(25, 135, 84, 0.9);
}

.prop-type-rent {
    background: rgba(13, 110, 253, 0.9);
}

.prop-type-new {
    background: rgba(111, 66, 193, 0.9);
}

.prop-type-short {
    background: rgba(220, 53, 69, 0.9);
}

/* ========================================
   GOOGLE PLACES AUTOCOMPLETE STYLES
   ======================================== */
.pac-container {
    font-family: 'Inter', 'Roboto', sans-serif;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    padding: 8px 0;
    z-index: 9999 !important;
    min-width: 300px !important;
    /* Force a decent width to avoid text wrapping */
    /* Ensure it stays above modals/navs */
}

.pac-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-top: 1px solid #f9fafb;
    line-height: 1.5;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item.pac-item-selected {
    background-color: #f3f4f6;
}

.pac-icon {
    margin-right: 12px;
    margin-top: 2px;
    opacity: 0.5;
}

.pac-item-query {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    padding-right: 4px;
}

/* Highlight matching typed text */
.pac-matched {
    color: #2398B6;
    font-weight: 700;
}

/* Hide "powered by Google" logo */
.pac-logo::after {
    display: none !important;
}