/* Custom additions to the theme */

/* Breadcrumb */
.td-breadcrumb {
    padding: 12px 0;
    background: var(--td-white);
    border-bottom: 1px solid var(--td-border);
    font-size: 14px;
}
.td-breadcrumb a { color: var(--td-primary); }
.td-breadcrumb i { font-size: 10px; margin: 0 8px; color: var(--td-gray); }
.td-breadcrumb span { color: var(--td-gray); }

/* Pagination */
.td-pagination { text-align: center; margin: 40px 0; }
.td-pagination ul { display: inline-flex; gap: 4px; list-style: none; padding: 0; }
.td-pagination li a, .td-pagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--td-white); border: 1px solid var(--td-border);
    color: var(--td-dark); font-weight: 600; font-size: 14px;
    transition: var(--td-transition);
}
.td-pagination li a:hover, .td-pagination li .current {
    background: var(--td-primary); color: var(--td-white); border-color: var(--td-primary);
}

/* Alert */
.td-alert { border-radius: var(--td-radius); padding: 16px 20px; margin-bottom: 20px; }
.td-alert-success { background: #d1fae5; color: #065f46; }
.td-alert-warning { background: #fef3c7; color: #92400e; }
.td-alert-danger { background: #fecaca; color: #991b1b; }
.td-alert-info { background: #dbeafe; color: #1e40af; }

/* Star Rating Interactive */
.td-rating-select i { cursor: pointer; font-size: 24px; color: #e2e8f0; transition: 0.2s; }
.td-rating-select i.fas { color: #f59e0b; }
.td-rating-select i:hover { transform: scale(1.2); }

/* Social Login Buttons */
.td-social-login { display: flex; gap: 12px; margin: 20px 0; }
.td-social-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: var(--td-radius-sm); font-weight: 600; font-size: 14px;
    border: 2px solid var(--td-border); cursor: pointer; transition: var(--td-transition);
    background: var(--td-white); color: var(--td-dark);
}
.td-social-btn:hover { border-color: var(--td-primary); }
.td-social-btn.google i { color: #ea4335; }
.td-social-btn.facebook i { color: #1877f2; }
.td-social-btn.outlook i { color: #0078d4; }

/* Mobile Nav Show */
.td-nav.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--td-white);
    padding: 20px;
    box-shadow: var(--td-shadow-lg);
    z-index: 999;
}

/* Enquiry Form */
.td-enquiry-form .td-form-group { margin-bottom: 16px; }

/* Map Adjustment */
.td-map-adjust {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 13px; color: var(--td-gray);
}
.td-map-adjust input[type="range"] { flex: 1; }

/* Loading Skeleton */
@keyframes tdShimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.td-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400px 100%;
    animation: tdShimmer 1.5s infinite;
    border-radius: 4px;
}

/* Listing Card Excerpt */
.card-excerpt {
    font-size: 13px;
    color: var(--td-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Dashboard Mobile Toggle */
.td-dash-toggle {
    display: none;
    position: fixed; top: 10px; left: 10px; z-index: 101;
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--td-primary); color: white;
    border: none; font-size: 18px; cursor: pointer;
}
@media (max-width: 768px) {
    .td-dash-toggle { display: flex; align-items: center; justify-content: center; }
}

/* Referral Code Box */
.td-referral-box {
    background: var(--td-primary-light);
    border: 2px dashed var(--td-primary);
    border-radius: var(--td-radius);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.td-referral-box code {
    font-size: 24px;
    font-weight: 800;
    color: var(--td-primary);
    letter-spacing: 2px;
}
