/* ===== Sandy Wang - Portfolio Tabs, Cards & Modals ===== */

/* --- TABS --- */
.sandy-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sandy-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sandy-tab-btn i {
    font-size: 18px;
}

.sandy-tab-btn .sandy-tab-count {
    background: #e0e0e0;
    color: #555;
    border-radius: 50px;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sandy-tab-btn.active,
.sandy-tab-btn:hover {
    background: #ff5c28;
    border-color: #ff5c28;
    color: #fff;
}

.sandy-tab-btn.active .sandy-tab-count,
.sandy-tab-btn:hover .sandy-tab-count {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* --- TAB CONTENT --- */
.sandy-tab-content {
    display: none;
}

.sandy-tab-content.active {
    display: block;
}

/* --- PROPERTY CARD --- */
.sandy-prop-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sandy-prop-card:hover {
    transform: translateY(-5px);
}

.rs-portfolio-thumb {
    position: relative;
    overflow: hidden;
}

/* --- STATUS BADGE ON CARD --- */
.sandy-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.sandy-status-badge.for-sale {
    background: #ff5c28;
    color: #fff;
}

.sandy-status-badge.sold {
    background: #e07b00;
    color: #fff;
}

/* --- CARD META (beds/baths/price) --- */
.sandy-prop-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.sandy-prop-meta i {
    font-size: 15px;
    color: #ff5c28;
    margin-right: 3px;
}

.sandy-price {
    margin-left: auto;
    font-weight: 600;
    color: #ff5c28;
    font-size: 13px;
}

.sandy-price.withheld {
    color: #999;
    font-weight: 500;
}

.sandy-licensee {
    font-size: 12px;
    color: #888;
}

.sandy-licensee i {
    color: #ff5c28;
}

/* --- MODAL OVERLAY --- */
.sandy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sandy-modal-overlay.active {
    display: flex;
}

/* --- MODAL BOX --- */
.sandy-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- MODAL CLOSE BUTTON --- */
.sandy-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.sandy-modal-close:hover {
    background: #ff5c28;
}

/* --- MODAL IMAGE --- */
.sandy-modal-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.sandy-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sandy-modal-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.sandy-modal-badge.for-sale {
    background: #ff5c28;
    color: #fff;
}

.sandy-modal-badge.sold {
    background: #e07b00;
    color: #fff;
}

/* --- MODAL BODY --- */
.sandy-modal-body {
    padding: 24px 28px 28px;
}

.sandy-modal-body h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.sandy-modal-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sandy-modal-address i {
    color: #ff5c28;
    font-size: 16px;
}

.sandy-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff5c28;
    margin-bottom: 16px;
}

.sandy-modal-price.withheld {
    color: #999;
    font-weight: 500;
    font-size: 15px;
}

/* --- MODAL FEATURES --- */
.sandy-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.sandy-modal-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff5f2;
    border: 1px solid #ffe0d6;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    color: #333;
}

.sandy-modal-features span i {
    color: #ff5c28;
    font-size: 15px;
}

/* --- MODAL TAGS --- */
.sandy-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sandy-modal-tags span {
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 12px;
    color: #555;
}

/* --- MODAL TABLE --- */
.sandy-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.sandy-modal-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.sandy-modal-table td {
    padding: 8px 4px;
    color: #555;
}

.sandy-modal-table td:first-child {
    color: #999;
    width: 40%;
}

/* --- MODAL DESCRIPTION --- */
.sandy-modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- MODAL BUTTON --- */
.sandy-modal-body .rs-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}